/* CSSVariantEngine v3.0 — sc-aoke.cn */
/* Palette: slate-blue | Radius: compact | Shadow: layered gradient */
/* Spacing: dense | Transition: smooth long */
/* Section layouts: {"news":"grid-3","features":"grid-4","hero":"minimal","testimonials":"masonry","partners":"centered","faq":"single-column","stats":"inline","cta":"card-style"} */

:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-accent: #60a5fa;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --rgb-primary: 59, 130, 246;
    --rgb-accent: 96, 165, 250;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 3px rgba(30, 41, 59, 0.12), 0 1px 2px rgba(59, 130, 246, 0.05);
    --shadow-md: 0 2px 8px rgba(30, 41, 59, 0.15), 0 1px 3px rgba(59, 130, 246, 0.08), 0 0 0 1px rgba(59, 130, 246, 0.06);
    --shadow-lg: 0 4px 16px rgba(30, 41, 59, 0.18), 0 2px 6px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.1);
    --space-section: 3.2rem;
    --space-card: 1.25rem;
    --space-gap: 0.875rem;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 700;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { 
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
    color: #f1f5f9; 
    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"] { 
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md); 
    padding: var(--space-card); 
    transition: var(--transition); 
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(30, 41, 59, 0.15)) 1 stretch;
}
.btn, button[class*="btn"], a[class*="btn"] { 
    border-radius: var(--radius-md); 
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    transition: var(--transition); 
}
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

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

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

/* hero: minimal */
.hero { padding: 2rem 0; } .hero-content { max-width: 560px; }

/* testimonials: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); }
.testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); }

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

/* stats: inline */
/* 水平排列 */
.stats-grid { display: flex; justify-content: center; gap: 3rem; }

/* cta: card-style */
.cta-inner { 
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); 
    color: var(--color-text);
    border-radius: var(--radius-xl); 
    padding: 3rem; 
    text-align: center; 
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #3b82f6, #60a5fa, #2563eb) 1 stretch;
}

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-lg); 
}
a:not([class]):hover { color: var(--color-accent); }
.hero, [class*="hero"], section:first-of-type { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 40%, #1d4ed8 70%, #0f172a 100%); 
}
.card { border: 1px solid rgba(var(--rgb-primary), .12); }
header, .header, .navbar { 
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(30, 41, 59, 0.25), 0 1px 4px rgba(59, 130, 246, 0.1); 
}

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