/* CSSVariantEngine v3.0 — zrg-page-kaiyun.com.cn */
/* Palette: aubergine-gold | Radius: jewel | Shadow: spotlight-glow */
/* Spacing: airy | Transition: slow-ease */
/* Section layouts: {"news":"masonry-2","features":"horizontal","hero":"centered","testimonials":"carousel","partners":"grid-4","faq":"two-column","stats":"big-number","cta":"centered"} */

:root {
    --color-primary: #a78bfa;
    --color-primary-dark: #4c1d95;
    --color-accent: #eab308;
    --color-surface: #fff8ed;
    --color-text: #f4edff;
    --rgb-primary: 167, 139, 250;
    --rgb-accent: 234, 179, 8;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 30px;
    --radius-xl: 44px;
    --shadow-sm: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 16px -8px rgba(8,4,16,.55);
    --shadow-md: 0 18px 36px -12px rgba(8,4,16,.55), 0 0 0 1px rgba(167,139,250,.07), 0 8px 24px -14px rgba(234,179,8,.10);
    --shadow-lg: 0 24px 60px -16px rgba(8,4,16,.7), 0 0 42px rgba(139,92,246,.14), 0 4px 18px rgba(234,179,8,.06);
    --space-section: 2.25rem;
    --space-card: 1.1rem;
    --space-gap: 0.85rem;
    --transition: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.6;
    caret-color: var(--color-accent);
    accent-color: var(--color-accent);
}

/* 基础覆盖 */
body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background:
        radial-gradient(1100px 560px at 50% -140px, rgba(167, 139, 250, .20), transparent 60%),
        radial-gradient(820px 400px at 92% 6%, rgba(234, 179, 8, .11), transparent 55%),
        linear-gradient(180deg, #21163a 0%, #171024 45%, #0f0a1a 100%);
    background-color: #0f0a1a;
}
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.card, [class*="card"] {
    color: #2d154a;
    background: linear-gradient(150deg, #fffaf0 0%, #f8f1ff 55%, #fff4d6 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-card);
    transition: var(--transition);
}
.btn, button[class*="btn"], a[class*="btn"] {
    color: #2b1542;
    background: linear-gradient(135deg, #ffe08a 0%, #f0b620 45%, #d97706 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 24px -10px rgba(234,179,8,.5), inset 0 1px 0 rgba(255,255,255,.5);
    transition: var(--transition);
}
a:not([class]) {
    color: #c3b0ff;
    text-decoration-color: rgba(234,179,8,.6);
    text-underline-offset: 3px;
    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); }

/* 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; text-shadow: 0 2px 24px rgba(139, 92, 246, .28); }

/* testimonials: carousel */
/* 单条轮播 */
                .testimonial-list { display: flex; overflow: hidden; } 
                .testimonial-list > * { flex: 0 0 100%; }

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

/* faq: two-column */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-gap); }

/* stats: big-number */
/* 大数字居中 */
                .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .stats-grid .stat-value { font-size: 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: #ffe08a;
    text-shadow: 0 0 18px rgba(234,179,8,.35);
}
.hero, [class*="hero"], section:first-of-type {
    background:
        radial-gradient(980px 520px at 82% -10%, rgba(234,179,8,.16), transparent 60%),
        radial-gradient(1180px 640px at 18% -20%, rgba(139,92,246,.38), transparent 65%),
        linear-gradient(145deg, #241243 0%, #160c2d 55%, #0e0819 100%);
    box-shadow: inset 0 -1px 0 rgba(167,139,250,.10);
}
.card {
    border: 1px solid transparent;
    background:
        linear-gradient(150deg, rgba(255,250,240,.98), rgba(246,241,255,.96)) padding-box,
        linear-gradient(120deg, rgba(234,179,8,.7), rgba(167,139,250,.32) 48%, rgba(76,29,149,.75)) border-box;
}
header, .header, .navbar { background: transparent; }

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