/* ==========================================================================
   1. 初始化与变量定义 (Reset & Variables)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* 品牌颜色规范 */
    --color-primary: #2E7D32;       /* 深绿，代表新鲜白菜 */
    --color-secondary: #81C784;     /* 浅绿，代表生机 */
    --color-accent: #FF6F00;        /* 橙色，用于CTA按钮，代表丰收 */
    --color-accent-hover: #FF8F00;  /* 橙色悬停状态 */
    --color-bg: #FAFAFA;            /* 浅灰白背景，降低视觉疲劳 */
    --color-text: #212121;          /* 深灰文字，确保高可读性 */
    --color-text-muted: #757575;    /* 次要文字灰色 */
    --color-white: #FFFFFF;
    --color-border: #E0E0E0;
    --color-shadow: rgba(0, 0, 0, 0.08);
    
    /* 字体规范 */
    --font-sans: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    
    /* 页面基础配置 */
    --max-width: 1200px;
    --header-height: 70px;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
}

body {
    line-height: 1.8;
    overflow-x: hidden;
}

/* ==========================================================================
   2. 通用原子样式与排版 (Typography & Utilities)
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 3rem; position: relative; padding-bottom: 0.5rem; }
h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background-color: var(--color-secondary); border-radius: 2px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    font-weight: 400;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--color-border);
}

/* 按钮基础与交互样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-accent:hover, .btn-accent:focus {
    background-color: var(--color-accent-hover);
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
    transform: scale(1.03);
}

.btn-accent:active {
    transform: scale(0.98);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transform: scale(1.03);
}

.btn-outline:active {
    transform: scale(0.98);
}

/* 无障碍焦点样式 */
*:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* ==========================================================================
   3. 置顶导览列 (Header & Navigation)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--color-shadow);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text svg {
    width: 28px;
    height: 28px;
    fill: var(--color-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: 700;
}

.nav-cta {
    display: block;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 汉堡菜单激活状态 */
.menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ==========================================================================
   4. 英雄区块 (Hero Section)
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 8rem 0;
    background: url('/images/hero-bg.jpg') no-repeat center center / cover;
    min-height: 70vh;
    display: flex;
    align-items: center;
    border-bottom: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 800px;
}

.hero-section h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   5. 痛点与情境区块 (Pain Points Section)
   ========================================================================== */
.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.pain-card {
    background-color: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--color-shadow);
    border-top: 4px solid #E57373; /* 红色警示感 */
    transition: transform 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
}

.pain-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: #FFEBEE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pain-icon-wrapper svg {
    width: 26px;
    height: 26px;
    fill: #D32F2F;
}

.pain-card h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.pain-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   6. 解决方案区块 (Solutions Section)
   ========================================================================== */
.solutions-section {
    background-color: var(--color-white);
}

.solution-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
}

.solution-row:nth-child(even) {
    flex-direction: row-reverse;
}

.solution-row:last-child {
    margin-bottom: 0;
}

.solution-image, .solution-content {
    flex: 1;
    width: 50%;
}

.solution-image img {
    width: 100%;
    box-shadow: 0 10px 30px var(--color-shadow);
    transition: transform 0.5s ease;
}

.solution-image:hover img {
    transform: scale(1.02);
}

.solution-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #E8F5E9;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.solution-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.solution-features {
    list-style: none;
    margin-top: 1.5rem;
}

.solution-features li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* ==========================================================================
   7. 信任背书区块 (Social Proof Section)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-bottom: 5rem;
    background-color: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--color-shadow);
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--color-shadow);
    position: relative;
}

.testimonial-stars {
    color: #FFB300;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--color-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
}

.media-proof {
    text-align: center;
    border-top: 1px dashed var(--color-border);
    padding-top: 3rem;
}

.media-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.media-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    font-weight: 600;
    color: #B0BEC5;
}

/* ==========================================================================
   8. 关于我们区块 (About Us & Local SEO)
   ========================================================================== */
.about-section {
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-info h3 {
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 2rem;
    background-color: var(--color-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.map-embed-container {
    height: 100%;
    min-height: 350px;
    background-color: #ECEFF1;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

.map-icon {
    width: 48px;
    height: 48px;
    fill: var(--color-text-muted);
    margin-bottom: 1rem;
}

/* ==========================================================================
   9. 常见问题区块 (FAQ Section Accordion)
   ========================================================================== */
.faq-max-width {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-secondary);
}

.faq-question-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s ease;
}

.faq-question-btn:hover {
    background-color: rgba(129, 199, 132, 0.05);
}

.faq-toggle-icon {
    width: 14px;
    height: 14px;
    fill: var(--color-text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background-color: var(--color-bg);
}

.faq-answer-content {
    padding: 1.25rem 1.5rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    font-size: 0.98rem;
    line-height: 1.8;
}

/* FAQ激活状态由JS控制 */
.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* 足够容纳展开文本的高值 */
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* ==========================================================================
   10. 终极呼吁区块 (Final CTA Section)
   ========================================================================== */
.final-cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1B5E20 100%);
    color: var(--color-white);
    text-align: center;
    padding: 6rem 0;
    border-bottom: none;
}

.final-cta-section h2 {
    color: var(--color-white);
}

.final-cta-section h2::after {
    background-color: var(--color-accent);
}

.cta-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    max-width: 550px;
    margin: 0 auto;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscribe-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    font-size: 1rem;
    color: var(--color-white);
    outline: none;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-form .btn-accent {
    padding: 0.75rem 2rem;
}

.form-message {
    margin-top: 1rem;
    font-weight: 600;
    min-height: 24px;
}

/* ==========================================================================
   11. 页尾布局 (Footer)
   ========================================================================== */
.site-footer {
    background-color: #1A237E; /* 使用深蓝色系形成鲜明的视觉区隔 */
    background: #111827;       /* 极富质感的现代暗色调页脚 */
    color: #9CA3AF;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h4.logo-text {
    color: var(--color-white);
    margin-bottom: 1.2rem;
}

.footer-brand h4.logo-text svg {
    fill: var(--color-secondary);
}

.footer-brand p {
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9CA3AF;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-contact-item {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #1F2937;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright p {
    margin-bottom: 0;
}

.footer-beian a {
    color: #9CA3AF;
    text-decoration: none;
}

.footer-beian a:hover {
    color: var(--color-secondary);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: var(--color-white);
}

/* ==========================================================================
   12. 响应式断点媒体查询 (Responsive Media Queries - Mobile First)
   ========================================================================== */

/* sm: 640px */
@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero-section h1 { font-size: 2.2rem; }
    .subscribe-form {
        flex-direction: column;
        background: transparent;
        padding: 0;
        border: none;
        border-radius: 0;
    }
    .subscribe-input {
        background-color: var(--color-white);
        color: var(--color-text);
        border-radius: 50px;
        margin-bottom: 1rem;
        height: 48px;
    }
    .subscribe-input::placeholder {
        color: var(--color-text-muted);
    }
}

/* md: 768px (汉堡菜单导航切换) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        overflow-y: auto;
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-cta {
        width: 80%;
        text-align: center;
        margin-top: 1rem;
    }
    
    .nav-cta .btn {
        width: 100%;
    }

    .solution-row, .solution-row:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
    }

    .solution-image, .solution-content {
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* lg: 1024px */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* xl: 1280px */
@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    }
}