/* CSSVariantEngine v3.0 — link5-huatihuitiyu.com.cn */
/* Palette: slate-sidebar | Radius: classic | Shadow: layered */
/* Spacing: balanced | Transition: smooth */
/* Section layouts: {"news":"grid-3","features":"horizontal","hero":"split","testimonials":"carousel","partners":"centered","faq":"two-column","stats":"grid-4","cta":"card-style"} */

:root {
    --color-primary: #1e40af;
    --color-primary-dark: #172554;
    --color-accent: #d97706;
    --color-surface: #f1f5f9;
    --color-text: #0f172a;
    --rgb-primary: 30,64,175;
    --rgb-accent: 217,119,6;
    --radius-sm: 3px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-xl: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.10);
    --shadow-md: 0 4px 6px -2px rgba(15, 23, 42, 0.05), 0 8px 24px -4px rgba(15, 23, 42, 0.10), 0 1px 3px rgba(var(--rgb-accent), 0.08);
    --shadow-lg: 0 12px 16px -4px rgba(15, 23, 42, 0.10), 0 24px 48px -8px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(var(--rgb-accent), 0.10);
    --space-section: 3rem;
    --space-card: 1.25rem;
    --space-gap: 1rem;
    --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 700;
    --body-line-height: 1.7;
    accent-color: var(--color-accent);
    caret-color: var(--color-primary);
}

/* 基础覆盖 */
body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
    background-attachment: fixed;
}
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, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.88) 100%);
}
.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}
a:not([class]) {
    color: var(--color-primary);
    transition: var(--transition);
    text-decoration-color: rgba(30, 64, 175, 0.35);
}

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

/* news: grid-3 */
/* 三列等宽网格 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }

/* 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: split */
/* 左文右图 */
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }

/* 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: two-column */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-gap); }

/* 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, #252e3a 0%, #1d2430 55%, #2a3446 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    color: #f1f5f9;
    box-shadow: var(--shadow-lg);
}

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(217, 119, 6, 0.15);
    filter: saturate(1.08) brightness(1.02);
}
a:not([class]):hover {
    color: var(--color-accent);
    text-shadow: 0 1px 12px rgba(217, 119, 6, 0.35);
}
.card {
    border-left: 3px solid var(--color-primary);
    border-image: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%) 1;
    background:
        linear-gradient(90deg, rgba(217, 119, 6, 0.08) 0%, rgba(217, 119, 6, 0) 14px),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.88) 100%);
}
header, .header, .navbar {
    background: linear-gradient(180deg, rgba(37, 45, 58, 0.92) 0%, rgba(29, 36, 48, 0.88) 100%);
    color: #f1f5f9;
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(14px);
}

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