/* CSSVariantEngine v3.0 — tw-fifa.com */
/* Palette: coral | Radius: sharp | Shadow: colored */
/* Spacing: comfortable | Transition: gentle */
/* Section layouts: {"news":"grid-3","features":"horizontal","hero":"centered","testimonials":"carousel","partners":"grid-6","faq":"with-sidebar","stats":"big-number","cta":"card-style"} */

:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-accent: #93c5fd;
    --color-surface: #f8fbff;
    --color-text: #1e293b;
    --rgb-primary: 59,130,246;
    --rgb-accent: 147,197,253;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 4px 10px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(59, 130, 246, 0.08);
    --shadow-md: 0 8px 18px rgba(15, 23, 42, 0.07), 0 24px 44px -16px rgba(30, 41, 59, 0.18), 0 2px 6px rgba(59, 130, 246, 0.10);
    --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.08), 0 32px 56px -18px rgba(30, 41, 59, 0.22), 0 4px 12px rgba(96, 165, 250, 0.12);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 0.36s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 700;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%); caret-color: var(--color-primary); accent-color: var(--color-primary); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); color: #0f172a; text-shadow: 0 1px 0 rgba(255,255,255,0.65); }
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(180deg, #ffffff 0%, #f8fbff 100%); border-color: rgba(148, 163, 184, 0.34); border-style: solid; backdrop-filter: blur(10px); filter: saturate(1.02); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%); border-color: rgba(59, 130, 246, 0.35); border-style: solid; color: #1d4ed8; box-shadow: 0 6px 14px rgba(59, 130, 246, 0.12), 0 2px 4px rgba(15, 23, 42, 0.06); text-shadow: 0 1px 0 rgba(255,255,255,0.7); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-color: rgba(59, 130, 246, 0.32); text-shadow: 0 1px 0 rgba(255,255,255,0.55); }

/* ========== 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; scrollbar-color: #94a3b8 #e2e8f0; }
                .feature-list > * { flex: 0 0 300px; scroll-snap-align: start; }

/* hero: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; color: #334155; }

/* testimonials: carousel */
/* 单条轮播 */
                .testimonial-list { display: flex; overflow: hidden; } 
                .testimonial-list > * { flex: 0 0 100%; }

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

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

/* stats: big-number */
/* 大数字居中 */
                .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .stats-grid .stat-value { font-size: 3rem; color: #1d4ed8; text-shadow: 0 2px 10px rgba(59, 130, 246, 0.18); }

/* cta: card-style */
.cta-inner { background: linear-gradient(135deg, #ffffff 0%, #eff6ff 55%, #dbeafe 100%); border-radius: var(--radius-xl); padding: 3rem; text-align: center; box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08), 0 30px 60px -24px rgba(30, 41, 59, 0.22), inset 0 1px 0 rgba(255,255,255,0.85); border-color: rgba(148, 163, 184, 0.3); border-style: solid; }

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

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); text-decoration-color: rgba(147, 197, 253, 0.7); opacity: 0.96; }
.card { border-left: 3px solid var(--color-primary); outline: 1px dashed rgba(148, 163, 184, 0.18); outline-color: rgba(148, 163, 184, 0.18); }
.card:hover, [class*="card"]:hover { box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10), 0 34px 64px -22px rgba(30, 41, 59, 0.24), 0 4px 12px rgba(59, 130, 246, 0.14); filter: saturate(1.05); }

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