/* Palette: warm-minimal | Radius: soft | Shadow: sage-glow */
/* Spacing: vertical-flow | Transition: soft-ease */
/* Section layouts: news=grid-4, features=grid-4, hero=centered, testimonials=masonry, partners=centered, faq=with-sidebar, stats=big-number, cta=card-style */

:root {
    --color-primary: #4a6540;
    --color-primary-dark: #344d2d;
    --color-accent: #87a878;
    --color-surface: #f7f2e8;
    --color-text: #2d2d2d;
    --rgb-primary: 74, 101, 64;
    --rgb-accent: 135, 168, 120;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(45, 45, 45, 0.05), 0 0 12px rgba(135, 168, 120, 0.16);
    --shadow-md: 0 8px 20px rgba(45, 45, 45, 0.06), 0 0 24px rgba(135, 168, 120, 0.32);
    --shadow-lg: 0 14px 28px rgba(45, 45, 45, 0.1), 0 0 32px rgba(135, 168, 120, 0.6);
    --space-section: 3.5rem;
    --space-card: 1.5rem;
    --space-gap: 1.125rem;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --heading-weight: 600;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body {
    color: var(--color-text);
    background-color: #faf8f3;
    line-height: var(--body-line-height);
}
h1, h2, h3, h4 {
    font-weight: var(--heading-weight);
}
section, .section {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}
.card, [class*="card"] {
    border-radius: var(--radius-lg);
    background-color: #fffdf8;
    box-shadow: var(--shadow-md);
    padding: var(--space-card);
    transition: var(--transition);
}
.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
a:not([class]) {
    color: var(--color-primary);
    text-shadow: 0 0 18px rgba(135, 168, 120, 0.18);
    transition: var(--transition);
}

/* ========== Section Layout Variants ========== */

/* news: grid-4 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--space-gap) * 0.8);
}

/* features: grid-4 */
.feature-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-gap);
}

/* hero: centered */
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* testimonials: masonry */
.testimonial-list {
    column-count: 2;
    column-gap: var(--space-gap);
}
.testimonial-list > * {
    break-inside: avoid;
    margin-bottom: var(--space-gap);
}

/* partners: centered */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.25rem;
}

/* faq: with-sidebar */
.faq-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.25rem;
}

/* stats: big-number */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}
.stats-grid .stat-value {
    font-size: 3rem;
}

/* cta: card-style */
.cta-inner {
    background: linear-gradient(145deg, #fbf8f1, #e9eadc);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    animation: glowPulse 6s ease-in-out infinite;
}

/* Page Layout: narrow-centered */
.page-main {
    max-width: 860px;
    margin: 0 auto;
}

/* 条件性装饰 */
.card:hover, [class*="card"]:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.hero, [class*="hero"], section:first-of-type {
    background: radial-gradient(120% 60% at 50% 0%, rgba(135, 168, 120, 0.2), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #f6f2e7, #faf8f3);
    color: var(--color-text);
}
header, .header, .navbar {
    background: transparent;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(45, 45, 45, 0.06), 0 0 18px rgba(135, 168, 120, 0.25);
    }
    50% {
        box-shadow: 0 8px 28px rgba(45, 45, 45, 0.09), 0 0 36px rgba(135, 168, 120, 0.5);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .feature-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .partner-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .hero-inner {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 640px) {
    :root {
        --space-section: 2.25rem;
        --space-card: 1.125rem;
        --space-gap: 0.875rem;
    }
    .news-grid {
        grid-template-columns: 1fr !important;
    }
    .feature-list {
        grid-template-columns: 1fr !important;
    }
    .faq-list {
        grid-template-columns: 1fr !important;
    }
    .testimonial-list {
        column-count: 1 !important;
    }
    .partner-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .cta-inner {
        grid-template-columns: 1fr !important;
    }
}