/* CSSVariantEngine v3.0 — zh-zuxie.cn */
/* Palette: vibrant citrus mosaic | Radius: soft rounded | Shadow: multi-layer gradient | Spacing: mosaic-friendly | Transition: smooth long */
/* Section layouts: {"news":"featured-left","features":"grid-4","hero":"overlay","testimonials":"carousel","partners":"centered","faq":"with-sidebar","stats":"big-number","cta":"centered"} */

:root {
    --color-primary: #ea580c;
    --color-primary-dark: #c2410c;
    --color-accent: #facc15;
    --color-surface: #fffbeb;
    --color-text: #431407;
    --rgb-primary: 234, 88, 12;
    --rgb-accent: 250, 204, 21;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 6px rgba(234, 88, 12, 0.12), 0 1px 2px rgba(250, 204, 21, 0.08);
    --shadow-md: 0 8px 16px rgba(234, 88, 12, 0.15), 0 3px 6px rgba(194, 65, 12, 0.1);
    --shadow-lg: 0 16px 32px rgba(234, 88, 12, 0.18), 0 6px 12px rgba(194, 65, 12, 0.08), 0 2px 4px rgba(250, 204, 21, 0.06);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.75rem;
    --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: linear-gradient(180deg, #fffbeb 0%, #fef3c7 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: linear-gradient(145deg, #ffffff 0%, #fff7ed 100%); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(90deg, #ea580c, #f97316, #facc15); color: white; border: none; }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ========== 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; background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); }
                .news-grid > *:nth-child(2) { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
                .news-grid > *:nth-child(3) { background: linear-gradient(135deg, #fbcfe8 0%, #f9a8d4 100%); }

/* features: grid-4 */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); }
.feature-list > *:nth-child(1) { background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 100%); }
.feature-list > *:nth-child(2) { background: linear-gradient(145deg, #dcfce7 0%, #bbf7d0 100%); }
.feature-list > *:nth-child(3) { background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%); }
.feature-list > *:nth-child(4) { background: linear-gradient(145deg, #fce7f3 0%, #fbcfe8 100%); }

/* hero: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; }
                .hero-content { position: relative; z-index: 1; }

/* testimonials: carousel */
/* 单条轮播 */
                .testimonial-list { display: flex; overflow: hidden; } 
                .testimonial-list > * { flex: 0 0 100%; background: radial-gradient(circle at top left, #fef3c7 0%, #ffffff 70%); }

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.partner-grid > * { background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%); }

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
                .faq-wrapper > *:last-child { background: linear-gradient(180deg, #ffedd5 0%, #fed7aa 100%); }

/* stats: big-number */
/* 大数字居中 */
                .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .stats-grid .stat-value { font-size: 3rem; background: linear-gradient(90deg, #ea580c, #ec4899); -webkit-background-clip: text; color: transparent; }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; background: radial-gradient(ellipse at center, #fff7ed 0%, #ffedd5 100%); padding: 3rem; border-radius: var(--radius-xl); }

/* Page Layout: wide */
/* 超宽 */
            .page-main { max-width: 1400px; margin: 0 auto; }

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #ea580c 0%, #f97316 30%, #facc15 60%, #ec4899 100%); }
.card { border-left: 3px solid; border-image: linear-gradient(180deg, #ea580c, #facc15, #ec4899) 1 stretch; }

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