:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #5b21b6;
    --color-accent: #f59e0b;
    --color-surface: #f8fafc;
    --color-text: #eaeaf4;
    --rgb-primary: 124,58,237;
    --rgb-accent: 245,158,11;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-sm: 0 1px 0 rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.22);
    --shadow-md: 0 10px 26px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.06) inset;
    --shadow-lg: 0 24px 60px rgba(0,0,0,.52), 0 0 0 1px rgba(255,255,255,.08) inset;
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;
    --transition: 260ms cubic-bezier(.2,.9,.2,1);
    --heading-weight: 800;
    --body-line-height: 1.7;

    --glow-accent-1: rgba(245,158,11,.35);
    --glow-accent-2: rgba(245,158,11,.6);
    --glow-primary-1: rgba(124,58,237,.35);
    --glow-primary-2: rgba(124,58,237,.65);
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: radial-gradient(1200px 520px at 50% -10%, rgba(124,58,237,.35), transparent 58%), radial-gradient(900px 420px at 10% 0%, rgba(245,158,11,.22), transparent 55%), #0f0f1a; }
h1, h2, h3, h4 { font-weight: var(--heading-weight); text-shadow: 0 1px 0 rgba(0,0,0,.35), 0 0 22px rgba(124,58,237,.18); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.card, [class*="card"] {
    border-radius: var(--radius-lg);
    box-shadow:
        0 1px 0 rgba(255,255,255,.06) inset,
        0 10px 25px rgba(0,0,0,.42),
        0 0 0 1px rgba(255,255,255,.075) inset,
        0 0 30px rgba(124,58,237,.14);
    padding: var(--space-card);
    transition: transform 280ms cubic-bezier(.2,.9,.2,1), box-shadow 320ms cubic-bezier(.2,.9,.2,1), border-color 320ms cubic-bezier(.2,.9,.2,1), background-color 320ms cubic-bezier(.2,.9,.2,1), filter 320ms cubic-bezier(.2,.9,.2,1);
    background:
        radial-gradient(900px 220px at 30% -10%, rgba(124,58,237,.18), transparent 55%),
        radial-gradient(700px 220px at 90% 0%, rgba(245,158,11,.14), transparent 52%),
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
}
.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: background-color 260ms cubic-bezier(.2,.9,.2,1), color 260ms cubic-bezier(.2,.9,.2,1), box-shadow 320ms cubic-bezier(.2,.9,.2,1), transform 260ms cubic-bezier(.2,.9,.2,1), border-color 260ms cubic-bezier(.2,.9,.2,1);
    outline: 0;
    box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08) inset;
}
a:not([class]) {
    color: var(--color-primary);
    transition: color 260ms cubic-bezier(.2,.9,.2,1), text-shadow 260ms cubic-bezier(.2,.9,.2,1), filter 260ms cubic-bezier(.2,.9,.2,1);
    text-shadow: 0 0 18px rgba(124,58,237,.22);
}
a:not([class]):hover { color: #a78bfa; text-shadow: 0 0 26px rgba(124,58,237,.35); }

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

/* news: list-view */
/* 列表模式 (图左文右) */
                .news-grid { display: flex; flex-direction: column; gap: var(--space-gap); }
                .news-grid .card { display: grid; grid-template-columns: 280px 1fr; }

/* features: grid-4 */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); }

/* hero: minimal */
.hero { padding: 2rem 0; } .hero-content { max-width: 560px; }

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

/* partners: scroll */
/* 自动滚动 */
                .partner-grid { display: flex; gap: 2rem; overflow: hidden; animation: partnerScroll 20s linear infinite; }
                @keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

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

/* cta: split */
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover {
    transform: translateY(-6px);
    box-shadow:
        0 1px 0 rgba(255,255,255,.085) inset,
        0 18px 44px rgba(0,0,0,.52),
        0 0 0 1px rgba(255,255,255,.1) inset,
        0 0 42px var(--glow-primary-1),
        0 0 26px var(--glow-accent-1);
    filter: saturate(1.06) contrast(1.02);
    animation: glowPulse 1.6s ease-in-out both;
    border-color: rgba(245,158,11,.28);
}
@keyframes glowPulse {
    0% { opacity: .98; }
    45% { opacity: 1; }
    100% { opacity: .99; }
}
.hero, [class*="hero"], section:first-of-type {
    background:
        radial-gradient(1200px 520px at 50% 0%, rgba(124,58,237,.35), transparent 60%),
        radial-gradient(900px 420px at 85% 15%, rgba(245,158,11,.18), transparent 55%),
        linear-gradient(135deg, rgba(124,58,237,.55), rgba(15,15,26,1) 62%),
        #0f0f1a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    border-radius: var(--radius-xl);
    padding-left: 1rem;
    padding-right: 1rem;
}
.card { border-left: 3px solid var(--color-primary); }
.card, [class*="card"] { caret-color: var(--color-accent); accent-color: var(--color-accent); }

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