/* CSSVariantEngine v3.0 — sc-db.com.cn */
/* Palette: mosaic-vibrant | Radius: ultra-sharp | Shadow: hard-offset */
/* Spacing: medium-gap | Transition: snappy */
/* Section layouts: {"news":"masonry-2","features":"horizontal","hero":"minimal","testimonials":"stacked","partners":"grid-6","faq":"single-column","stats":"grid-3","cta":"full-bg"} */

:root {
    --color-primary: #165DFF;
    --color-primary-dark: #0E42C2;
    --color-accent: #FF7D00;
    --color-surface: #F8FAFC;
    --color-text: #0F172A;
    --rgb-primary: 22,93,255;
    --rgb-accent: 255,125,0;
    --radius-sm: 0px;
    --radius-md: 2px;
    --radius-lg: 3px;
    --radius-xl: 4px;
    --shadow-sm: 2px 2px 0px rgba(15,23,42,0.12);
    --shadow-md: 4px 4px 0px rgba(15,23,42,0.2);
    --shadow-lg: 6px 6px 0px rgba(15,23,42,0.28);
    --space-section: 3.25rem;
    --space-card: 1.35rem;
    --space-gap: 1.75rem;
    --transition: 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
    --heading-weight: 700;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); background-color: var(--color-surface); line-height: var(--body-line-height); }
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: 3px solid var(--color-text); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-card); transition: var(--transition); background-color: #ffffff; }
.btn, button[class*="btn"], a[class*="btn"] { border: 2px solid currentColor; border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-primary); color: #ffffff; }
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); }
                .news-grid .card:nth-child(3n+1) { background-color: #ECFDF5; border-color: #065F46; }
                .news-grid .card:nth-child(3n+2) { background-color: #EFF6FF; border-color: #1E40AF; }
                .news-grid .card:nth-child(3n+3) { background-color: #FFF7ED; border-color: #9A3412; }

/* 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; }
                .feature-list .card:nth-child(2n) { background-color: #FDF4FF; border-color: #7E22CE; }

/* hero: minimal */
.hero { padding: 2rem 0; background: linear-gradient(90deg, rgba(var(--rgb-primary),0.08) 0%, rgba(var(--rgb-accent),0.08) 100%); } .hero-content { max-width: 560px; }

/* testimonials: stacked */
/* 垂直堆叠 */
                .testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }
                .testimonial-list .card { background-color: #F0FDFA; border-color: #0F766E; }

/* partners: grid-6 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-gap); align-items: center; }
.partner-grid .card { background-color: #F8FAFC; border-color: #475569; }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list .card { background-color: #FEF2F2; border-color: #B91C1C; }

/* stats: grid-3 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); text-align: center; }
.stats-grid .card { background-color: #F0F9FF; border-color: #0369A1; }

/* cta: full-bg */
.cta-section { background: linear-gradient(135deg, #165DFF 0%, #722ED1 100%); color: #fff; padding: 4rem 2rem; border-top: 4px solid #0F172A; border-bottom: 4px solid #0F172A; }

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

/* 条件性装饰 */
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0px var(--color-text); }
a:not([class]):hover { color: var(--color-accent); }

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