/* CSSVariantEngine v3.0 — use-official-kaiyun.com.cn */
/* Palette: ember-cream | Radius: pillowy | Shadow: airy */
/* Spacing: spacious | Transition: flowing */
/* Section layouts: {"news":"featured-top","features":"grid-4","hero":"centered","testimonials":"carousel","partners":"scroll","faq":"single-column","stats":"inline","cta":"card-style"} */

:root {
    --color-primary: #b45a2b;
    --color-primary-dark: #3f2418;
    --color-accent: #e3a857;
    --color-surface: #f8efe4;
    --color-text: #2b211b;
    --rgb-primary: 180, 90, 43;
    --rgb-accent: 227, 168, 87;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 6px rgba(63, 36, 24, 0.06), 0 1px 2px rgba(63, 36, 24, 0.04);
    --shadow-md: 0 12px 32px -12px rgba(63, 36, 24, 0.20), 0 4px 12px -4px rgba(63, 36, 24, 0.10);
    --shadow-lg: 0 24px 56px -20px rgba(63, 36, 24, 0.30), 0 10px 24px -12px rgba(63, 36, 24, 0.16);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;
    --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 800;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: var(--color-surface); accent-color: var(--color-primary); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); background: #fffdf9; }
.card, [class*="card"] { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-card); transition: var(--transition); background: var(--color-surface); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: var(--color-primary); color: #fffdf9; box-shadow: 0 8px 20px -8px rgba(var(--rgb-primary), 0.50); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-color: rgba(var(--rgb-primary), 0.42); }

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

/* news: featured-top */
/* 首篇横跨全宽 */
                .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
                .news-grid > *:first-child { grid-column: span 3; }

/* 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: carousel */
/* 单条轮播 */
                .testimonial-list { display: flex; overflow: hidden; } 
                .testimonial-list > * { flex: 0 0 100%; }

/* 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: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

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

/* cta: card-style */
.cta-inner { background: linear-gradient(135deg, #2b1d16 0%, #4a2a1c 55%, #b45a2b 100%); color: #fffaf3; border-radius: var(--radius-xl); padding: 3rem; text-align: center; box-shadow: var(--shadow-lg); }

/* Page Layout: full-width */
/* 无侧边栏, 全宽 */
            .page-main { max-width: 1200px; margin: 0 auto; }

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-left-color: var(--color-accent); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #3f2418 0%, #6b3a24 45%, #b45a2b 100%); color: #fffaf3; }
.card { border-left: 3px solid var(--color-primary); }

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