/* Basic Reset and Box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add some padding on sides */
}

/* Reusable Classes */
.section-padding {
    padding: 80px 0; /* Consistent vertical padding for sections */
}

.bg-light {
    background-color: #f8f9fa; /* Light background for contrast */
}

.bg-primary {
    background-color: #0056b3; /* Example primary color (blue) */
    color: #fff;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 40px; /* Slightly less margin now */
}

.section-title h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: #004085; /* Darker blue */
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #0056b3; /* Primary color for logo */
}

.logo-vision {
    color: #007bff; /* Accent color for Vision */
}


/* Section A: Hero - Primarily Visual */
.hero-section {
    /* Background image based on AI prompt 1 - Placeholder */
    background-image: url('imgs/ai-erp-core-background.jpg');
    background-size: cover; /* Cover the entire section */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat */
    min-height: 500px; /* Set a minimum height for the visual area */
    display: flex; /* Use flexbox to center content vertically */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    position: relative; /* Needed for overlay positioning */
    color: #fff; /* Default text color for hero */
    text-align: center;
    /* Fallback background if image fails */
    background-color: #6c757d; /* Greyish color */
}

/* Overlay to improve text readability on background image */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay */
    z-index: 1; /* Below content, above background */
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
    max-width: 800px; /* Limit content width for better readability */
    padding: 20px; /* Add some padding */
}

.hero-content h1 {
    font-size: 4em; /* Larger title */
    margin-bottom: 20px;
    color: #fff; /* White text on dark overlay */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2); /* Subtle shadow for readability */
}

.hero-content .subtitle {
    font-size: 1.5em; /* Larger subtitle */
    margin-bottom: 0; /* No margin below subtitle now */
    color: #eee; /* Lighter text for contrast */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Section A Extension: Key Value Proposition */
.value-proposition-section {
    /* Styles defined by section-padding and bg-light */
}

.value-proposition-section .section-title {
    /* Inherits section-title styles */
}


.value-points {
    display: flex;
    justify-content: center;
    gap: 30px; /* Space between items */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.value-item {
    flex-basis: 220px; /* Base width for flex items, slightly larger */
    text-align: center;
    padding: 30px 20px; /* More padding */
    background-color: #fff; /* Opaque white background */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); /* Add shadow */
}

.value-item i {
    font-size: 3em; /* Larger icons */
    color: #007bff; /* Accent color for icons */
    margin-bottom: 15px;
}

.value-item h3 {
    font-size: 1.3em; /* Slightly larger heading */
    margin-bottom: 10px;
    color: #333;
}

.value-item p {
    font-size: 1em;
    color: #555;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background-color: #007bff; /* Blue */
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0 10px; /* Space between buttons */
}

.cta-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.secondary-cta {
    background-color: #28a745; /* Green */
}

.secondary-cta:hover {
    background-color: #218838; /* Darker green */
}

.tertiary-cta {
    background-color: #6c757d; /* Gray */
    color: #fff;
}

.tertiary-cta:hover {
     background-color: #5a6268; /* Darker gray */
}


/* Section B: Problem/Solution */
.problem-solution-section .problem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 30px;
    margin-bottom: 60px;
}

.problem-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.problem-item i {
    font-size: 2.5em;
    color: #dc3545; /* Red for problems */
    margin-bottom: 15px;
}

.problem-item h3 {
     font-size: 1.3em;
     margin-bottom: 10px;
     color: #333;
}

.problem-solution-section .solution-title {
    margin-top: 40px;
    margin-bottom: 30px;
}

.solution-intro p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    color: #555;
}

.solution-intro ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.solution-intro li {
    font-size: 1.1em;
    margin-bottom: 10px;
    display: inline-block;
    margin: 0 15px 10px 15px;
    color: #28a745; /* Green for solutions */
}

.solution-intro li i {
    margin-right: 8px;
    color: #28a745;
}


/* Section C: Features & Benefits */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 40px;
}

.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex; /* Use flexbox for layout inside item */
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center content horizontally */
}

/* Container for feature illustration images */
.feature-image-container {
    width: 100px; /* Fixed width for the container */
    height: 100px; /* Fixed height for the container */
    margin: 0 auto 20px; /* Center the container and add space below */
    overflow: hidden; /* Hide parts of the image if it overflows */
    border-radius: 8px; /* Optional: match card corner radius */
    background-color: #fff; /* Ensure container background is white */
    display: flex; /* Use flexbox to center the image inside */
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Prevent the container from shrinking */
}


/* Styling for the image inside the container */
.feature-item .feature-illustration {
    display: block; /* 确保它像一个块级元素 */
    width: 100%; /* 让图片宽度填充父容器 */
    height: 100%; /* 让图片高度填充父容器 */
    object-fit: cover; /* 缩放图片以填充容器，同时保持其长宽比，不足的部分会被裁切 */
    object-position: center; /* 居中图片，配合 object-fit: cover; 进行中心裁切 */
    border-radius: 10px; /* 添加圆角，这里的 10px 是示例值，你可以根据需要调整，比如 50% 可以得到圆形图片 */
}

.feature-item h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #555;
    /* flex-grow: 1; Optional: allow paragraph to take up available space if needed */
}


/* Section D: How it Works */
.how-it-works-diagram {
    text-align: center; /* Center the image */
    margin-bottom: 60px; /* Space below the diagram */
}

.how-it-works-diagram img {
    max-width: 800px; /* Max width for the diagram */
    width: 100%; /* Make it responsive */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.how-it-works-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 50px; /* Adjust padding for connector lines */
    flex-wrap: wrap; /* Allow wrapping */
    margin-top: 40px; /* Space above steps if diagram is above */
}

.how-it-works-steps::before {
    content: '';
    position: absolute;
    top: 50px; /* Align with step-icon center */
    left: 70px; /* Align with first step */
    right: 70px; /* Align with last step */
    height: 4px;
    background-color: #ddd; /* Connector line color */
    z-index: 0;
    /* Hide connector on small screens or wrap correctly */
    @media (max-width: 768px) {
        display: none;
    }
}

.step-item {
    flex: 1; /* Equal width */
    text-align: center;
    z-index: 1; /* Above the connector line */
    background-color: #fff; /* White background over line */
    padding: 20px; /* Padding to look better over line */
}

.step-icon {
    width: 100px;
    height: 100px;
    background-color: #007bff;
    color: #fff;
    font-size: 2.5em;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-number {
    font-size: 1.8em;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 10px;
}

.step-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #333;
}

.step-item p {
     color: #555;
}

/* Hide connector on smaller screens */
@media (max-width: 768px) {
    .how-it-works-steps {
        flex-direction: column;
        padding: 0;
        margin-top: 20px;
    }
    .how-it-works-steps::before {
        display: none;
    }
    .step-item {
        margin-bottom: 40px; /* Space out vertical items */
        width: 100%; /* Full width */
        padding: 20px 0; /* Adjust padding */
    }
}


/* Section E: Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    font-style: italic;
    position: relative; /* For quotes icon */
}

.testimonial-item::before {
    content: '\f10d'; /* Font Awesome quote-left icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2em;
    color: rgba(0, 123, 255, 0.2); /* Semi-transparent accent color */
}

.testimonial-item p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
    padding-top: 20px; /* Space for quote icon */
}

.testimonial-meta h4 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.testimonial-meta p {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
    font-style: normal; /* Reset italic */
    padding-top: 0; /* Remove padding */
}

.testimonial-result {
    font-size: 1em;
    font-weight: 600;
    color: #28a745; /* Green */
    font-style: normal;
}


/* Section F: Audience/Industries */
.audience-content {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
    text-align: center;
}

.audience-content ul {
    list-style: none;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 40px; /* Gap between list items */
}

.audience-content li {
    font-weight: 600;
    color: #333;
}

.audience-content li i {
    margin-right: 10px;
    color: #007bff; /* Accent color */
}

/* Section G: Final CTA */
.final-cta-section h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2.8em;
}

.final-cta-section .cta-subtitle {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 40px;
}

.final-cta-section .cta-button {
    margin: 10px; /* Space out buttons */
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #ddd;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

/* Basic Responsiveness */
@media (max-width: 1200px) {
     .how-it-works-diagram img {
         max-width: 700px; /* Adjust for slightly smaller screens */
     }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3em;
    }
     .hero-content .subtitle {
        font-size: 1.3em;
    }
     .section-title h2 {
        font-size: 2.2em;
    }
    .how-it-works-steps {
         padding: 0 20px;
    }
    .how-it-works-diagram img {
         max-width: 100%; /* Ensure it fits */
     }
     .feature-image-container {
         width: 80px; /* Slightly smaller container on medium screens */
         height: 80px;
     }
}

@media (max-width: 768px) {
     .section-padding {
        padding: 60px 0;
    }
    .hero-section {
        min-height: 400px; /* Adjust min height */
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content .subtitle {
        font-size: 1.1em;
    }
    .value-points {
        flex-direction: column;
        gap: 20px;
    }
    .problem-solution-section .problem-list {
        grid-template-columns: 1fr; /* Single column */
    }
    .features-grid {
         grid-template-columns: 1fr; /* Single column */
    }
     .final-cta-section h2 {
        font-size: 2em;
    }
     .final-cta-section .cta-subtitle {
        font-size: 1.1em;
    }
     .final-cta-section .cta-button {
        display: block; /* Stack buttons */
        margin: 15px auto;
        width: 80%; /* Make buttons wider */
        max-width: 300px;
    }
    .how-it-works-steps {
        flex-direction: column;
        padding: 0;
        margin-top: 20px;
    }
    .how-it-works-steps::before {
        display: none;
    }
    .step-item {
        margin-bottom: 40px; /* Space out vertical items */
        width: 100%; /* Full width */
        padding: 20px 0; /* Adjust padding */
    }
    .feature-image-container {
         width: 100px; /* Revert to 100px or adjust as needed on small screens */
         height: 100px;
         margin: 0 auto 15px; /* Adjust margin */
     }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
     .section-title h2 {
        font-size: 1.8em;
    }
    .cta-button {
         font-size: 1em;
         padding: 12px 25px;
    }
    .value-item i, .problem-item i {
        font-size: 2em;
    }
     .feature-image-container {
        width: 80px; /* Smaller container on very small screens */
        height: 80px;
        margin: 0 auto 15px;
     }
     .step-icon {
        width: 80px;
        height: 80px;
        font-size: 2em;
    }
     .step-number {
        font-size: 1.5em;
    }
    .testimonial-item p {
         font-size: 1em;
    }
}