/* CSSVariantEngine v3.0 — chcn-intl-3377.com.cn */
/* Palette: slate-blue | Radius: rounded | Shadow: layered */
/* Spacing: tight | Transition: smooth */
/* Section layouts: {"news":"featured-top","features":"horizontal","hero":"centered","testimonials":"grid-3","partners":"centered","faq":"with-sidebar","stats":"big-number","cta":"card-style"} */

:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #1e40af;
    --color-accent: #60a5fa;
    --color-surface: #ffffff;
    --color-bg: #0f172a;
    --color-text: #e2e8f0;
    --color-text-inverse: #0f172a;
    --rgb-primary: 59,130,246;
    --rgb-accent: 96,165,250;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
    --shadow-md: 0 6px 18px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.2);
    --shadow-lg: 0 16px 40px rgba(0,0,0,.45), 0 4px 12px rgba(0,0,0,.25);
    --space-section: 2rem;
    --space-card: 1rem;
    --space-gap: 0.75rem;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 800;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #0f172a 0%, #1e293b 60%, #334155 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%, #f8fafc 100%); color: var(--color-text-inverse); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%); color: #ffffff; box-shadow: 0 4px 16px rgba(59,130,246,.4), 0 2px 4px rgba(0,0,0,.2); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-shadow: 0 1px 2px rgba(15,23,42,.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: 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; }

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

/* testimonials: grid-3 */
.testimonial-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }

/* 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; background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 50%, #1d4ed8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* cta: card-style */
.cta-inner { background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%); border-radius: var(--radius-xl); padding: 3rem; text-align: center; box-shadow: var(--shadow-lg); }

/* Page Layout: narrow-centered */
/* 窄版居中 */
.page-main { max-width: 860px; margin: 0 auto; }

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e40af 100%); }
.card { border-left: 3px solid transparent; background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 50%, #1e40af 100%) left top / 3px 100% no-repeat border-box, linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) padding-box; }
header, .header, .navbar { box-shadow: 0 4px 20px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.2); background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(30,41,59,.88)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

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