:root {
    --color-primary: #8b5cf6;
    --color-primary-dark: #6d28d9;
    --color-accent: #fbbf24;
    --color-surface: #201a33;
    --color-text: #f7f3ff;
    --rgb-primary: 139,92,246;
    --rgb-accent: 251,191,36;
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 30px;
    --radius-xl: 38px;
    --shadow-sm: 0 8px 22px -14px rgba(8, 6, 20, 0.55);
    --shadow-md: 0 22px 48px -24px rgba(8, 6, 20, 0.72), 0 10px 28px -18px rgba(139, 92, 246, 0.45);
    --shadow-lg: 0 36px 80px -34px rgba(8, 6, 20, 0.85), 0 20px 44px -22px rgba(251, 191, 36, 0.32);
    --space-section: 5.5rem;
    --space-card: 2.25rem;
    --space-gap: 1.75rem;
    --transition: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 700;
    --body-line-height: 1.75;
}

body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background: radial-gradient(circle at 50% -10%, #2a2144 0%, #171326 38%, #0f0f1a 68%, #09080f 100%);
    background-attachment: fixed;
    accent-color: var(--color-accent);
    caret-color: var(--color-accent);
}
h1, h2, h3, h4 {
    font-weight: var(--heading-weight);
    text-shadow: 0 2px 24px rgba(139, 92, 246, 0.28);
}
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(150deg, #fffdf8 0%, #fbf6ff 55%, #f4edff 100%);
    color: #241b35;
}
.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 55%, #4c1d95 100%);
    color: #fff8e7;
    box-shadow: 0 16px 34px -18px rgba(109, 40, 217, 0.65), 0 6px 16px -10px rgba(251, 191, 36, 0.25);
}
a:not([class]) {
    color: var(--color-primary);
    transition: var(--transition);
    text-decoration-color: rgba(var(--rgb-accent), 0.6);
}

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

/* news: grid-4 */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 0.8); }

/* 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: split */
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }

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

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

/* faq: with-sidebar */
.faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--rgb-accent), 0.55);
}
.card { border: 1px solid rgba(var(--rgb-accent), 0.24); }
header, .header, .navbar {
    background: linear-gradient(180deg, rgba(15, 15, 26, 0.92) 0%, rgba(15, 15, 26, 0.55) 70%, rgba(15, 15, 26, 0) 100%);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    box-shadow: 0 18px 50px -34px rgba(0, 0, 0, 0.9);
}

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