/* CSSVariantEngine v3.0 — 500.sc.cn */
/* Palette: violet-amber | Radius: balanced | Shadow: layered */
/* Spacing: spacious | Transition: cinematic */
/* Section layouts: {"news":"featured-left","features":"horizontal","hero":"left-aligned","testimonials":"masonry","partners":"grid-6","faq":"single-column","stats":"grid-3","cta":"full-bg"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #4c1d95;
    --color-accent: #f59e0b;
    --color-surface: #faf5ff;
    --color-text: #2e1065;
    --rgb-primary: 124,58,237;
    --rgb-accent: 245,158,11;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(76,29,149,.10), 0 2px 6px rgba(124,58,237,.08);
    --shadow-md: 0 6px 16px -6px rgba(76,29,149,.22), 0 2px 8px rgba(124,58,237,.12), 0 0 0 1px rgba(124,58,237,.06);
    --shadow-lg: 0 20px 38px -14px rgba(76,29,149,.34), 0 8px 18px -8px rgba(124,58,237,.22), 0 0 0 1px rgba(245,158,11,.12);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;
    --transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 700;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background-color: #faf5ff;
    background-image:
        radial-gradient(ellipse 60% 45% at 10% 0%, rgba(124,58,237,.16), transparent 62%),
        radial-gradient(ellipse 55% 42% at 94% 6%, rgba(245,158,11,.15), transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 108%, rgba(244,114,182,.12), transparent 65%),
        linear-gradient(168deg, #faf5ff 0%, #f4efff 36%, #fdf2f8 70%, #f6f3ff 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-image: linear-gradient(158deg, #ffffff 0%, #fdfbff 44%, #f5eeff 100%);
}
.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: var(--transition);
    background-image: linear-gradient(135deg, #4c1d95 0%, #7c3aed 42%, #a855f7 74%, #f59e0b 132%);
    color: #fdf4ff;
    border-color: rgba(124,58,237,.38);
    box-shadow: 0 8px 18px -8px rgba(76,29,149,.60), inset 0 1px 0 rgba(255,255,255,.28);
}
a:not([class]) {
    color: var(--color-primary);
    transition: var(--transition);
    text-decoration-color: rgba(var(--rgb-accent), .55);
}

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

/* news: featured-left */
/* 左大右小 (1大+2小) */
                .news-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: var(--space-gap); }
                .news-grid > *:first-child { grid-row: span 2; }

/* 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: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); }
                .testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); }

/* partners: grid-6 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-gap); align-items: center; }

/* 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: full-bg */
.cta-section {
    background-color: var(--color-primary-dark);
    background-image:
        radial-gradient(circle at 16% 18%, rgba(245,158,11,.40), transparent 52%),
        radial-gradient(circle at 88% 82%, rgba(244,114,182,.34), transparent 55%),
        linear-gradient(122deg, #3b0764 0%, #4c1d95 22%, #6d28d9 48%, #7c3aed 70%, #a855f7 88%, #c084fc 100%);
    color: #fdf4ff;
    padding: 4rem 2rem;
    box-shadow: 0 26px 52px -22px rgba(76,29,149,.60), inset 0 1px 0 rgba(255,255,255,.20);
}

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

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 1px 10px rgba(245,158,11,.45); }
.card {
    border: 1px solid transparent;
    background: linear-gradient(158deg, #ffffff 0%, #fdfbff 44%, #f5eeff 100%) padding-box,
                linear-gradient(135deg, rgba(124,58,237,.58) 0%, rgba(245,158,11,.46) 52%, rgba(244,114,182,.44) 100%) border-box;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(124,58,237,.05);
}
header, .header, .navbar {
    background: linear-gradient(180deg, rgba(124,58,237,.08) 0%, rgba(245,158,11,.04) 52%, rgba(124,58,237,0) 100%);
}

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