/* CSSVariantEngine v3.0 — chcn4-huatihuitiyu.com.cn */
/* Palette: spotlight violet + gold | Radius: soft | Shadow: layered glow */
/* Spacing: comfortable | Transition: smooth */
/* Section layouts: {"news":"featured-top","features":"horizontal","hero":"minimal","testimonials":"stacked","partners":"centered","faq":"with-sidebar","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #c4b5fd;
    --color-primary-dark: #4c1d95;
    --color-accent: #fbbf24;
    --color-surface: #1c1730;
    --color-text: #ece5fa;
    --rgb-primary: 196,181,253;
    --rgb-accent: 251,191,36;
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 34px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,.45), 0 0 0 1px rgba(196,181,253,.06);
    --shadow-md: 0 14px 36px rgba(0,0,0,.5), 0 4px 10px rgba(0,0,0,.35), 0 0 0 1px rgba(76,29,149,.28);
    --shadow-lg: 0 28px 72px rgba(0,0,0,.6), 0 10px 24px rgba(0,0,0,.42), 0 0 0 1px rgba(251,191,36,.22);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 800;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background: radial-gradient(ellipse at 50% -10%, #241c3d 0%, #0f0f1a 68%);
    background-attachment: fixed;
}
h1, h2, h3, h4 {
    font-weight: var(--heading-weight);
    text-shadow: 0 0 30px rgba(196,181,253,.25), 0 2px 20px rgba(0,0,0,.4);
}
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, rgba(196,181,253,.07) 0%, rgba(251,191,36,.03) 100%), linear-gradient(145deg, #241d3d 0%, #151123 100%);
}
.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: var(--transition);
}
a:not([class]) {
    color: var(--color-primary);
    transition: var(--transition);
    text-decoration-color: rgba(251,191,36,.55);
}

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

/* news: featured-top */
/* 首篇横跨全宽 */
                .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
                .news-grid > *:first-child { grid-column: span 3; }

/* 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: minimal */
.hero { padding: 2rem 0; } .hero-content { max-width: 560px; }

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

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

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

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

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }

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

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 0 18px rgba(251,191,36,.45); }
.hero, [class*="hero"], section:first-of-type {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(251,191,36,.16) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(76,29,149,.65) 0%, transparent 55%),
        linear-gradient(135deg, #2e1065 0%, #4c1d95 45%, #0f0f1a 100%);
}
.card {
    border: 1px solid rgba(var(--rgb-accent), .35);
}

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