/* CSSVariantEngine v3.0 — okoo-ml.com.cn */
/* Palette: amber-ink | Radius: pillowy | Shadow: airy */
/* Spacing: generous | Transition: smooth */
/* Section layouts: {"news":"featured-left","features":"horizontal","hero":"centered","testimonials":"grid-3","partners":"grid-6","faq":"single-column","stats":"grid-3","cta":"centered"} */

:root {
    --color-primary: #b45309;
    --color-primary-dark: #78350f;
    --color-accent: #fbbf24;
    --color-surface: #fffbeb;
    --color-text: #1c1917;
    --rgb-primary: 180,83,9;
    --rgb-accent: 251,191,36;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px -2px rgba(120,53,15,.08), 0 1px 3px rgba(120,53,15,.05);
    --shadow-md: 0 8px 24px -6px rgba(120,53,15,.12), 0 4px 10px -4px rgba(120,53,15,.08);
    --shadow-lg: 0 20px 48px -12px rgba(120,53,15,.18), 0 8px 20px -8px rgba(120,53,15,.10);
    --space-section: 2.4rem;
    --space-card: 1.2rem;
    --space-gap: 0.9rem;
    --transition: 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    --heading-weight: 700;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: #fffdf7; }
h1, h2, h3, h4 { font-weight: var(--heading-weight); color: #292524; }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
section:nth-of-type(odd), .section:nth-of-type(odd) { background: #fffdf7; }
section:nth-of-type(even), .section:nth-of-type(even) { background: #fffbeb; }
.card, [class*="card"] { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-card); transition: var(--transition); background: #ffffff; border: 1px solid rgba(251,191,36,.18); }
.card:hover, [class*="card"]:hover { box-shadow: var(--shadow-lg); border-color: rgba(180,83,9,.25); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: var(--color-primary); color: #fffdf7; border: 1px solid transparent; box-shadow: var(--shadow-sm); }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-color: rgba(180,83,9,.35); }
a:not([class]):hover { color: var(--color-primary-dark); }

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

/* news: featured-left */
/* 左大右小 (1大+2小) */
                .news-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: var(--space-gap); }
                .news-grid > *:first-child { grid-row: span 2; }

/* 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: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-content h1 { text-shadow: 0 2px 24px rgba(251,191,36,.35); }

/* testimonials: grid-3 */
.testimonial-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }

/* partners: grid-6 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-gap); align-items: center; }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

/* stats: grid-3 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); text-align: center; }
.stats-grid > * { border-radius: var(--radius-lg); padding: var(--space-card); background: rgba(251,191,36,.08); box-shadow: inset 0 0 0 1px rgba(180,83,9,.10); }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; padding: var(--space-card); border-radius: var(--radius-xl); background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); box-shadow: var(--shadow-lg); border: 1px solid rgba(251,191,36,.30); }

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

/* 条件性装饰 */
header, .header, .navbar { background: transparent; backdrop-filter: blur(8px) saturate(120%); }

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