/* CSSVariantEngine v3.0 — news-hth-live.com.cn */
/* Palette: slate-dashboard | Radius: rounded-lg | Shadow: layered */
/* Spacing: tight | Transition: smooth */
/* Section layouts: {"news":"masonry-2","features":"grid-2","hero":"overlay","testimonials":"carousel","partners":"grid-4","faq":"single-column","stats":"grid-4","cta":"card-style"} */

: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: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06), 0 12px 24px -10px rgba(59, 130, 246, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.12), 0 4px 6px -4px rgba(15, 23, 42, 0.08), 0 24px 48px -12px rgba(59, 130, 246, 0.3);
    --space-section: 2rem;
    --space-card: 1rem;
    --space-gap: 0.75rem;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 700;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 45%, #cbd5e1 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(180deg, #ffffff 0%, #f8fafc 100%); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: #ffffff; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: masonry-2 */
/* 两列瀑布流 */
.news-grid { column-count: 2; column-gap: var(--space-gap); }
.news-grid .card { break-inside: avoid; margin-bottom: var(--space-gap); }

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

/* hero: overlay */
/* 全屏背景+文字覆盖 */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; background: radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.3) 0%, rgba(30, 41, 59, 0.6) 50%, rgba(15, 23, 42, 0.9) 100%), linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%); }
.hero-content { position: relative; z-index: 1; color: #f8fafc; text-shadow: 0 2px 12px rgba(15, 23, 42, 0.45); }

/* testimonials: carousel */
/* 单条轮播 */
.testimonial-list { display: flex; overflow: hidden; } 
.testimonial-list > * { flex: 0 0 100%; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* 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: grid-4 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); text-align: center; }

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

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

/* 条件性装饰 */
.card { border: 1px solid transparent; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) padding-box, linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(148, 163, 184, 0.15) 50%, rgba(59, 130, 246, 0.35) 100%) border-box; }

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