/* CSSVariantEngine v3.0 — 500caiguanwang.com.cn */
/* Palette: deep-blue-sidebar | Radius: medium | Shadow: glow-accent */
/* Spacing: moderate | Transition: bouncy-glow */
/* Section layouts: {"news":"featured-top","features":"grid-2","hero":"left-aligned","testimonials":"carousel","partners":"grid-4","faq":"single-column","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-accent: #60a5fa;
    --color-surface: #f8fafc;
    --color-text: #1e293b;
    --rgb-primary: 59,130,246;
    --rgb-accent: 96,165,250;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 4px rgba(37,46,58,0.12);
    --shadow-md: 0 4px 14px rgba(37,46,58,0.16);
    --shadow-lg: 0 0 24px rgba(var(--rgb-accent), 0.4);
    --space-section: 2.25rem;
    --space-card: 1.2rem;
    --space-gap: 1rem;
    --transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.2);
    --heading-weight: 700;
    --body-line-height: 1.65;
}

@keyframes pulse-glow {
    0% { box-shadow: var(--shadow-sm), 0 0 12px rgba(var(--rgb-accent), 0.3); }
    100% { box-shadow: var(--shadow-md), 0 0 24px rgba(var(--rgb-accent), 0.5); }
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: var(--color-surface); }
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-sm); padding: var(--space-card); transition: var(--transition); border: 1px solid rgba(var(--rgb-primary), 0.12); }
.card:hover { box-shadow: var(--shadow-md), 0 0 32px rgba(var(--rgb-accent), 0.6); transform: translateY(-2px); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-primary); color: white; animation: pulse-glow 3s ease-in-out infinite alternate; }
.btn:hover { background-color: var(--color-primary-dark); box-shadow: 0 0 32px rgba(var(--rgb-accent), 0.6); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }
a:not([class]):hover { color: var(--color-primary-dark); text-shadow: 0 0 8px rgba(var(--rgb-accent), 0.4); }

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

/* news: featured-top */
/* 首篇横跨全宽 */
                .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
                .news-grid > *:first-child { grid-column: span 3; }

/* features: grid-2 */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--space-gap) * 1.5); }

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

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

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

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

/* stats: inline */
/* 水平排列 */
                .stats-grid { display: flex; justify-content: center; gap: 3rem; }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #252e3a, #3b82f6); }
header, .header, .navbar { background-color: #252e3a; color: white; box-shadow: 0 0 16px rgba(var(--rgb-accent), 0.25); }

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