/* CSSVariantEngine v3.0 — kaiyun-hao.com.cn */
/* Palette: navy/amber | Radius: sharp | Shadow: hard-offset */
/* Spacing: tight | Transition: snappy */
/* Section layouts: {"news":"featured-top","features":"centered","hero":"overlay","testimonials":"carousel","partners":"centered","faq":"single-column","stats":"grid-3","cta":"centered"} */

:root {
    --color-primary: #1e3a8a;
    --color-primary-dark: #172554;
    --color-accent: #f59e0b;
    --color-surface: #f1f5f9;
    --color-text: #0f172a;
    --color-sidebar: #252e3a;
    --rgb-primary: 30,58,138;
    --rgb-accent: 245,158,11;
    --radius-sm: 0px;
    --radius-md: 2px;
    --radius-lg: 3px;
    --radius-xl: 4px;
    --shadow-sm: 2px 2px 0 rgba(15,23,42,.18);
    --shadow-md: 4px 4px 0 rgba(15,23,42,.16), 0 0 0 2px rgba(30,58,138,.08);
    --shadow-lg: 6px 6px 0 rgba(15,23,42,.14), 0 0 0 3px rgba(245,158,11,.12);
    --space-section: 2rem;
    --space-card: 1rem;
    --space-gap: 0.75rem;
    --transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 700;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: var(--color-surface); accent-color: var(--color-accent); caret-color: var(--color-primary); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); color: var(--color-primary-dark); }
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), inset 0 0 0 2px rgba(var(--rgb-primary), 0.08); padding: var(--space-card); transition: var(--transition); background-color: #ffffff; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-primary); color: #ffffff; box-shadow: 2px 2px 0 rgba(15, 23, 42, 0.24); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-color: rgba(var(--rgb-accent), 0.55); }

/* ========== 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: centered */
/* 居中大卡片 */
                .feature-list { display: flex; flex-direction: column; align-items: center; gap: calc(var(--space-gap) * 2); max-width: 720px; margin: 0 auto; }

/* hero: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--color-sidebar) 0%, var(--color-primary-dark) 48%, var(--color-primary) 100%); }
                .hero-content { position: relative; z-index: 1; color: #f8fafc; text-shadow: 2px 2px 0 rgba(15, 23, 42, 0.35); }

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

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

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

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

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

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

/* 条件性装饰 */

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