/* CSSVariantEngine v3.0 — mushezm.com */
/* Palette: warm-terracotta | Radius: soft-rounded | Shadow: layered-warm */
/* Spacing: spacious | Transition: smooth */
/* Section layouts: {"news":"grid-3","features":"horizontal","hero":"split","testimonials":"stacked","partners":"scroll","faq":"with-sidebar","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #c47b5a;
    --color-primary-dark: #7a3f22;
    --color-accent: #87a878;
    --color-surface: #f4ede2;
    --color-text: #2d2d2d;
    --rgb-primary: 196,123,90;
    --rgb-accent: 135,168,120;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;
    --shadow-sm: 0 2px 4px -1px rgba(122,63,34,.14), 0 0 0 1px rgba(196,123,90,.07);
    --shadow-md: 0 8px 20px -8px rgba(122,63,34,.26), 0 3px 8px -2px rgba(45,45,45,.08), inset 0 0 0 1px rgba(196,123,90,.10);
    --shadow-lg: 0 22px 44px -14px rgba(122,63,34,.30), 0 10px 22px -10px rgba(45,45,45,.16), inset 0 0 0 1px rgba(135,168,120,.16);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;
    --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 700;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background-color: #faf8f3;
    background-image:
        radial-gradient(1100px 620px at 12% -12%, rgba(196,123,90,.12) 0%, rgba(196,123,90,.04) 42%, rgba(250,248,243,0) 72%),
        radial-gradient(900px 540px at 92% 4%, rgba(135,168,120,.12) 0%, rgba(135,168,120,.03) 48%, rgba(250,248,243,0) 76%),
        linear-gradient(180deg, #fdfbf7 0%, #faf8f3 55%, #f3ede3 100%);
}
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: var(--shadow-md);
    padding: var(--space-card);
    transition: var(--transition);
    background-image: linear-gradient(158deg, #fffdfa 0%, #f8f2e8 46%, #efe6d8 78%, #e9dcc9 100%);
    accent-color: var(--color-primary);
    caret-color: var(--color-primary);
}
.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: var(--transition);
    background-image: linear-gradient(120deg, #c47b5a 0%, #b06a4a 40%, #87a878 100%);
    color: #faf8f3;
    box-shadow: 0 6px 16px -6px rgba(122,63,34,.42), inset 0 1px 0 rgba(255,255,255,.24);
    accent-color: var(--color-accent);
}
a:not([class]) { color: var(--color-primary); transition: var(--transition); caret-color: var(--color-primary); }

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

/* news: grid-3 */
/* 三列等宽网格 */
                .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }

/* features: horizontal */
/* 水平滚动 */
                .feature-list { display: flex; gap: var(--space-gap); overflow-x: auto; scroll-snap-type: x mandatory; }
                .feature-list > * { flex: 0 0 300px; scroll-snap-align: start; }

/* hero: split */
/* 左文右图 */
                .hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }

/* testimonials: stacked */
/* 垂直堆叠 */
                .testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }

/* partners: scroll */
/* 自动滚动 */
                .partner-grid { display: flex; gap: 2rem; overflow: hidden; animation: partnerScroll 20s linear infinite; }
                @keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

/* stats: inline */
/* 水平排列 */
                .stats-grid { display: flex; justify-content: center; gap: 3rem; }

/* cta: centered */
.cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background-image: radial-gradient(560px 300px at 50% 0%, rgba(135,168,120,.16) 0%, rgba(196,123,90,.08) 52%, rgba(250,248,243,0) 82%);
}

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

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); }
.hero, [class*="hero"], section:first-of-type {
    background: linear-gradient(142deg, #2d2d2d 0%, #4b3226 26%, #7a3f22 58%, #c47b5a 86%, #87a878 100%);
    box-shadow: inset 0 -60px 120px -60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.10);
}

/* 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: 2rem; --space-card: 1rem; --space-gap: 0.75rem; }
    .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; }
}