/* CSSVariantEngine v3.0 — beijingdianjing.com.cn */
/* Palette: slate-sidebar | Radius: soft-pill | Shadow: pillowy-airy */
/* Spacing: airy-generous | Transition: gentle */
/* Section layouts: {"news":"grid-4","features":"grid-3","hero":"centered","testimonials":"carousel","partners":"scroll","faq":"two-column","stats":"grid-3","cta":"split"} */

:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #252e3a;
    --color-accent: #60a5fa;
    --color-surface: #f8fafc;
    --color-text: #1e293b;
    --rgb-primary: 59, 130, 246;
    --rgb-accent: 96, 165, 250;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 26px;
    --radius-xl: 36px;
    --shadow-sm: 0 2px 8px rgba(37, 46, 58, 0.07), 0 1px 3px rgba(37, 46, 58, 0.04);
    --shadow-md: 0 8px 24px rgba(37, 46, 58, 0.09), 0 3px 10px rgba(37, 46, 58, 0.05);
    --shadow-lg: 0 16px 48px rgba(37, 46, 58, 0.11), 0 6px 20px rgba(37, 46, 58, 0.06);
    --space-section: 4.5rem;
    --space-card: 2.25rem;
    --space-gap: 2rem;
    --transition: 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    --heading-weight: 800;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: #fefefe; }
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: white; border: 1px solid rgba(37, 46, 58, 0.06); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-primary); color: white; box-shadow: 0 4px 12px rgba(var(--rgb-primary), 0.2); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: grid-4 */
/* 四列紧凑网格 */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 0.8); }

/* features: grid-3 */
.feature-list { display: grid; grid-template-columns: repeat(3, 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 28s linear infinite; }
@keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* faq: two-column */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-gap); }

/* stats: grid-3 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); text-align: center; }

/* cta: split */
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }

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

/* 条件性装饰 */
header, .header, .navbar { box-shadow: 0 4px 16px rgba(37, 46, 58, 0.08); background-color: white; border-bottom: 1px solid rgba(37, 46, 58, 0.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: 2.5rem; --space-card: 1.25rem; --space-gap: 1rem; }
    .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; }
}