/* CSSVariantEngine v3.0 — zhizhu-im.com.cn */
/* Palette: centered-stage | Radius: soft | Shadow: layered-gradient */
/* Spacing: tight | Transition: gradient-smooth */
/* Section layouts: {"news":"featured-top","features":"horizontal","hero":"centered","testimonials":"stacked","partners":"centered","faq":"single-column","stats":"grid-3","cta":"split"} */

:root {
    --color-primary: #b892ff;
    --color-primary-dark: #7a4fd6;
    --color-accent: #f5c76a;
    --color-surface: #0f0f1a;
    --color-text: #e8e6f5;
    --rgb-primary: 184,146,255;
    --rgb-accent: 245,199,106;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-sm: 0 1px 4px rgba(15,15,26,.5), 0 0 0 1px rgba(184,146,255,.08);
    --shadow-md: 0 6px 18px rgba(15,15,26,.55), 0 2px 6px rgba(122,79,214,.18), 0 0 0 1px rgba(184,146,255,.10);
    --shadow-lg: 0 18px 42px rgba(15,15,26,.65), 0 8px 20px rgba(122,79,214,.28), 0 0 0 1px rgba(245,199,106,.14);
    --space-section: 2rem;
    --space-card: 1rem;
    --space-gap: 0.75rem;
    --transition: 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: radial-gradient(ellipse at 50% 0%, #1a1630 0%, #0f0f1a 55%, #0a0a14 100%); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); background: linear-gradient(120deg, #f5c76a 0%, #b892ff 45%, #7a4fd6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); background: linear-gradient(180deg, rgba(26,22,48,0) 0%, rgba(122,79,214,.04) 50%, rgba(26,22,48,0) 100%); }
.card, [class*="card"] { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-card); transition: var(--transition); background: linear-gradient(160deg, rgba(30,26,54,.95) 0%, rgba(20,18,36,.95) 100%); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(135deg, #b892ff 0%, #7a4fd6 100%); color: #0f0f1a; border-color: transparent; }
a:not([class]) { color: var(--color-accent); transition: var(--transition); }

/* ========== 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: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; background: radial-gradient(ellipse at 50% 30%, rgba(184,146,255,.14) 0%, rgba(122,79,214,.06) 40%, transparent 75%); border-radius: var(--radius-xl); }

/* 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: 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: split */
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; background: linear-gradient(120deg, rgba(122,79,214,.18) 0%, rgba(184,146,255,.10) 50%, rgba(245,199,106,.12) 100%); border-radius: var(--radius-xl); }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(245,199,106,.35); }
.card { border-left: 3px solid transparent; border-image: linear-gradient(180deg, #b892ff 0%, #7a4fd6 50%, #f5c76a 100%) 1; }
header, .header, .navbar { box-shadow: 0 4px 24px rgba(15,15,26,.6), 0 0 0 1px rgba(184,146,255,.12); background: linear-gradient(180deg, rgba(26,22,48,.98) 0%, rgba(15,15,26,.95) 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; }
}