/* CSSVariantEngine v3.0 — zh-milanzixun.net.cn */
/* Palette: vibrant mosaic gradient | Radius: soft rounded | Shadow: multi-layer elevation */
/* Spacing: spacious | Transition: long smooth cubic */
/* Section layouts: {"news":"list-view","features":"horizontal","hero":"left-aligned","testimonials":"grid-3","partners":"grid-4","faq":"single-column","stats":"grid-4","cta":"centered"} */

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-accent: #f97316;
    --color-surface: #f8fafc;
    --color-text: #0f172a;
    --rgb-primary: 37, 99, 235;
    --rgb-accent: 249, 115, 22;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 6px 12px rgba(15, 23, 42, 0.09), 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.11), 0 6px 12px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.05), 0 0 20px rgba(var(--rgb-accent), 0.12);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.75rem;
    --transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --heading-weight: 600;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { 
    color: var(--color-text); 
    line-height: var(--body-line-height); 
    background: linear-gradient(180deg, #f0f9ff 0%, #ecfeff 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%, #f0f7ff 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-accent) 100%);
    color: white;
}
a:not([class]) { 
    color: var(--color-primary); 
    transition: var(--transition); 
}

/* ========== 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: left-aligned */
.hero-content { text-align: left; max-width: 600px; }

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

/* 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: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg); 
}
.hero, [class*="hero"], section:first-of-type { 
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 45%, #f97316 100%); 
}
.card { 
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, rgba(var(--rgb-primary), 0.2), rgba(var(--rgb-accent), 0.2)) 1; 
}
header, .header, .navbar { 
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03); 
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
}

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