/* CSSVariantEngine v3.0 — zhz-bifenwang.com.cn */
/* Palette: cool slate | Radius: soft rounded | Shadow: multi-layer glow */
/* Spacing: dense | Transition: long smooth */
/* Section layouts: {"news":"list-view","features":"horizontal","hero":"overlay","testimonials":"carousel","partners":"scroll","faq":"single-column","stats":"grid-3","cta":"split"} */

:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #1e293b;
    --color-accent: #60a5fa;
    --color-surface: #f8fafc;
    --color-text: #0f172a;
    --rgb-primary: 59, 130, 246;
    --rgb-accent: 96, 165, 250;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 18px;
    --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.12), 0 1px 3px rgba(59, 130, 246, 0.08);
    --shadow-md: 0 6px 16px rgba(30, 41, 59, 0.15), 0 2px 6px rgba(59, 130, 246, 0.1), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 32px rgba(30, 41, 59, 0.2), 0 4px 12px rgba(59, 130, 246, 0.15), 0 2px 4px rgba(0,0,0,0.08);
    --space-section: 3.5rem;
    --space-card: 1rem;
    --space-gap: 0.8rem;
    --transition: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    --heading-weight: 800;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { 
    color: var(--color-text); 
    line-height: var(--body-line-height); 
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    min-height: 100vh;
}
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%);
}
.btn, button[class*="btn"], a[class*="btn"] { 
    border-radius: var(--radius-md); 
    transition: var(--transition);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: 1px solid transparent;
}
a:not([class]) { color: var(--color-primary); transition: var(--transition); }
a:not([class]):hover { color: #2563eb; text-shadow: 0 0 8px rgba(59, 130, 246, 0.3); }

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

/* news: list-view */
/* 列表模式 (图左文右) */
                .news-grid { display: flex; flex-direction: column; gap: var(--space-gap); }
                .news-grid .card { display: grid; grid-template-columns: 280px 1fr; }

/* 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: overlay */
/* 全屏背景+文字覆盖 */
                .hero { 
                    position: relative; 
                    min-height: 70vh; 
                    display: flex; 
                    align-items: center; 
                    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.25) 0%, transparent 60%), linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
                }
                .hero-content { position: relative; z-index: 1; }

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

/* partners: scroll */
/* 自动滚动 */
                .partner-grid { display: flex; gap: 2rem; overflow: hidden; animation: partnerScroll 16s linear infinite; }
                @keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

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

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card { 
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(96, 165, 250, 0.1) 100%) 1; 
}
header, .header, .navbar { 
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.9) 100%); 
    backdrop-filter: blur(10px);
}

/* 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: 1.8rem; --space-card: 0.7rem; --space-gap: 0.6rem; }
    .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; }
}