/* CSSVariantEngine v3.0 — zh-zh-28circle.com.cn */
/* Palette: indigo-tangerine | Radius: minimal | Shadow: none */
/* Spacing: mosaic-balanced | Transition: snappy-flat */
/* Section layouts: {"news":"grid-3","features":"horizontal","hero":"left-aligned","testimonials":"carousel","partners":"grid-4","faq":"single-column","stats":"big-number","cta":"centered"} */

:root {
    --color-primary: #4f46e5;
    --color-primary-dark: #3730a3;
    --color-accent: #f97316;
    --color-surface: #f8fafc;
    --color-text: #0f172a;
    --rgb-primary: 79,70,229;
    --rgb-accent: 249,115,22;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 6px;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --space-section: 3rem;
    --space-card: 1.25rem;
    --space-gap: 1.75rem;
    --transition: 0.15s ease-out;
    --heading-weight: 700;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: #f1f5f9; }
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-color: #ffffff; border: 1px solid #e2e8f0; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-primary); color: #ffffff; border: 2px solid var(--color-primary); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

/* ========== 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; background-color: #eff6ff; border: 1px solid #bfdbfe; }

/* hero: left-aligned */
.hero-content { text-align: left; max-width: 600px; }

/* testimonials: carousel */
/* 单条轮播 */
.testimonial-list { display: flex; overflow: hidden; } 
.testimonial-list > * { flex: 0 0 100%; background-color: #fff7ed; border: 1px solid #fed7aa; }

/* partners: grid-4 */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 1.5); align-items: center; }
.partner-grid > * { background-color: #f0fdf4; border: 1px solid #bbf7d0; padding: 1rem; }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list > * { background-color: #faf5ff; border: 1px solid #e9d5ff; }

/* stats: big-number */
/* 大数字居中 */
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.stats-grid .stat-value { font-size: 3rem; color: var(--color-primary); }
.stats-grid > * { background-color: #fef2f2; border: 1px solid #fecaca; padding: 1.5rem; border-radius: var(--radius-sm); }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; background-color: #fef3c7; border: 2px solid #fcd34d; padding: 2rem; border-radius: var(--radius-md); }

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

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); }
.card { border-left: 3px solid var(--color-accent); }
header, .header, .navbar { box-shadow: none; border-bottom: 3px solid var(--color-primary); background-color: #ffffff; }

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