:root {
    --color-primary: #1a7f37;
    --color-primary-dark: #0b3d20;
    --color-accent: #ff3d5a;
    --color-surface: #eafff2;
    --color-text: #10221a;

    --rgb-primary: 26,127,55;
    --rgb-accent: 255,61,90;

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;

    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;

    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;

    --transition: 140ms cubic-bezier(.2,.8,.2,1);
    --heading-weight: 700;
    --body-line-height: 1.62;
}

/* 基础覆盖 */
body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background: #f6fbf8;
    caret-color: var(--color-accent);
    accent-color: var(--color-accent);
}

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);
    box-shadow: none;
    padding: var(--space-card);
    transition: background-color var(--transition), border-color var(--transition), transform 180ms cubic-bezier(.2,.8,.2,1), color var(--transition);
    border: 2px solid rgba(8, 28, 16, 0.18);
    background: #ffffff;
}

.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform 180ms cubic-bezier(.2,.8,.2,1);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

a:not([class]) {
    color: var(--color-primary);
    transition: color var(--transition), text-decoration-color var(--transition), background-color var(--transition), border-color var(--transition);
    text-decoration-color: rgba(26,127,55,0.35);
}

a:not([class]):focus-visible {
    outline: 2px solid rgba(255,61,90,0.9);
    outline-style: solid;
    outline-color: rgba(255,61,90,0.9);
}

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

/* news: masonry-2 */
/* 两列瀑布流 */
                .news-grid { column-count: 2; column-gap: var(--space-gap); }
                .news-grid .card {
                    break-inside: avoid;
                    margin-bottom: var(--space-gap);
                    border-radius: 6px;
                    border-color: rgba(8, 28, 16, 0.22);
                    background: #f3fff7;
                }
                .news-grid .card:nth-child(3n+1) { background: #ecfbff; border-color: rgba(0, 180, 216, 0.35); }
                .news-grid .card:nth-child(3n+2) { background: #fff0f3; border-color: rgba(255, 61, 90, 0.35); }
                .news-grid .card:nth-child(3n) { background: #f6fff1; border-color: rgba(26, 127, 55, 0.35); }
                .news-grid .card:hover { background: #ffffff; border-color: rgba(255, 61, 90, 0.55); }

/* features: horizontal */
/* 水平滚动 */
                .feature-list {
                    display: flex;
                    gap: var(--space-gap);
                    overflow-x: auto;
                    scroll-snap-type: x mandatory;
                    padding-bottom: 6px;
                }
                .feature-list > * {
                    flex: 0 0 300px;
                    scroll-snap-align: start;
                }
                .feature-list > * { border-radius: var(--radius-sm); border: 2px solid rgba(8, 28, 16, 0.18); background: #ffffff; box-shadow: none; }
                .feature-list > *:hover { border-color: rgba(255,61,90,0.65); background: #fff7f8; }
                .feature-list > *:focus-within { outline: 2px solid rgba(0, 180, 216, 0.35); outline-offset: 3px; }

/* hero: minimal */
.hero { padding: 2rem 0; }
.hero-content { max-width: 560px; }
.hero { background: #072b15; }
.hero-content { border-radius: var(--radius-xl); padding: 1rem 1.25rem; border: 2px solid rgba(255,255,255,0.16); }
.hero h1, .hero h2 { text-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 0 22px rgba(255,61,90,0.18); }
.hero p, .hero .lead { color: rgba(255,255,255,0.86); }

/* testimonials: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); }
                .testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); }
                .testimonial-list > * { border-radius: 6px; border: 2px solid rgba(8, 28, 16, 0.18); background: #ffffff; }
                .testimonial-list > *:nth-child(2n) { background: #f2f6ff; border-color: rgba(10, 90, 255, 0.25); }
                .testimonial-list > *:nth-child(3n) { background: #fff6e8; border-color: rgba(255, 162, 0, 0.28); }

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.partner-grid > * {
    border-radius: var(--radius-sm);
    border: 2px solid rgba(8, 28, 16, 0.18);
    background: #ffffff;
    box-shadow: none;
    transition: border-color var(--transition), background-color var(--transition), transform 180ms cubic-bezier(.2,.8,.2,1);
}
.partner-grid > *:hover { border-color: rgba(0,180,216,0.6); background: #f0fbff; }

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
                .faq-wrapper {
                    border-radius: var(--radius-xl);
                    border: 2px solid rgba(8, 28, 16, 0.18);
                    background: #ffffff;
                    overflow: hidden;
                }
                .faq-wrapper > * { padding: 0; }
                .faq-wrapper .faq-list, .faq-wrapper .contact, .faq-wrapper [class*="faq"], .faq-wrapper [class*="contact"] {
                    background: #f6fff1;
                    border-color: rgba(26, 127, 55, 0.35);
                    border-radius: var(--radius-lg);
                    border-style: solid;
                    border-width: 2px;
                }
                .faq-wrapper .contact, .faq-wrapper [class*="contact"] {
                    background: #f3f0ff;
                    border-color: rgba(120, 64, 255, 0.30);
                }

/* stats: grid-3 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); text-align: center; }
.stats-grid .card, .stats-grid [class*="card"] {
    border-radius: 6px;
    border-color: rgba(8, 28, 16, 0.18);
    background: #ffffff;
}
.stats-grid > * {
    transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}
.stats-grid > *:nth-child(1) { background: #ecfbff; border-color: rgba(0,180,216,0.35); }
.stats-grid > *:nth-child(2) { background: #fff0f3; border-color: rgba(255,61,90,0.35); }
.stats-grid > *:nth-child(3) { background: #f6fff1; border-color: rgba(26,127,55,0.35); }
.stats-grid > *:hover { border-color: rgba(255,61,90,0.65); background: #ffffff; }

/* cta: card-style */
.cta-inner { background: var(--color-surface); border-radius: var(--radius-xl); padding: 3rem; text-align: center; }
.cta-inner {
    border: 2px solid rgba(8, 28, 16, 0.18);
    box-shadow: none;
}
.cta-inner strong, .cta-inner h2, .cta-inner h3 { color: #0b2a18; text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
.cta-inner .btn, .cta-inner button[class*="btn"], .cta-inner a[class*="btn"] {
    background: #ff3d5a;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.35);
    outline-color: rgba(255,61,90,0.85);
}
.cta-inner .btn:hover, .cta-inner button[class*="btn"]:hover, .cta-inner a[class*="btn"]:hover {
    background: #d82b42;
    border-color: rgba(255,255,255,0.55);
    transform: translateY(-2px);
}

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover {
    transform: translateY(-4px);
    box-shadow: none;
    border-color: rgba(255,61,90,0.70);
    background: #ffffff;
}
.hero, [class*="hero"], section:first-of-type { background: #072b15; border-top: 4px solid rgba(255,61,90,0.75); }
header, .header, .navbar { background: transparent; }
header, .header, .navbar { border-bottom: 2px solid rgba(255,255,255,0.10); }
header a:not([class]), .header a:not([class]), .navbar a:not([class]) { color: rgba(255,255,255,0.86); text-decoration-color: rgba(255,255,255,0.35); }

/* 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; }

    .feature-list { gap: 1.1rem !important; }
    .news-grid { column-gap: 1.1rem !important; }
}

@media (max-width: 640px) {
    :root { --space-section: 2rem; --space-card: 1rem; --space-gap: 0.75rem; --radius-lg: 7px; --radius-xl: 9px; }
    .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; padding: 1.75rem; }

    .feature-list { scroll-snap-type: x proximity; }
}