:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #5b21b6;
    --color-accent: #22c55e;
    --color-surface: #070a12;
    --color-text: #eaf2ff;
    --rgb-primary: 124,58,237;
    --rgb-accent: 34,197,94;

    --radius-sm: 3px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;

    --shadow-sm: 0 0 0 rgba(0,0,0,0);
    --shadow-md: 0 10px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(var(--rgb-primary), .18);
    --shadow-lg: 0 22px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(var(--rgb-primary), .22), 0 0 24px rgba(var(--rgb-accent), .18);

    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;

    --transition: 520ms cubic-bezier(0.16, 1, 0.3, 1);
    --heading-weight: 800;
    --body-line-height: 1.75;
}

body {
    color: rgba(234,242,255,.92);
    line-height: var(--body-line-height);
    background:
        radial-gradient(1100px 700px at 15% 10%, rgba(var(--rgb-primary), .18) 0%, rgba(var(--rgb-primary), .06) 30%, rgba(7,10,18,0) 60%),
        radial-gradient(900px 600px at 85% 20%, rgba(var(--rgb-accent), .14) 0%, rgba(var(--rgb-accent), .05) 28%, rgba(7,10,18,0) 58%),
        linear-gradient(180deg, #060814 0%, #070a12 60%, #050611 100%);
}

h1, h2, h3, h4 {
    font-weight: var(--heading-weight);
    text-shadow:
        0 2px 0 rgba(0,0,0,.25),
        0 0 22px rgba(var(--rgb-primary), .12);
}

section, .section {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

.card, [class*="card"] {
    border-radius: var(--radius-lg);
    box-shadow:
        0 16px 34px rgba(0,0,0,.42),
        0 0 0 1px rgba(var(--rgb-primary), .22),
        0 0 0 6px rgba(var(--rgb-accent), .06);
    padding: var(--space-card);
    transition:
        var(--transition),
        box-shadow 520ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
        background 520ms cubic-bezier(0.16, 1, 0.3, 1);
    background:
        linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.03) 100%);
    backdrop-filter: saturate(130%) blur(10px);
    -webkit-backdrop-filter: saturate(130%) blur(10px);
}

.card:hover, [class*="card"]:hover {
    box-shadow:
        0 18px 44px rgba(0,0,0,.52),
        0 0 0 1px rgba(var(--rgb-primary), .28),
        0 0 32px rgba(var(--rgb-accent), .42),
        0 0 60px rgba(var(--rgb-accent), .18);
    animation: glowPulse 1.9s ease-in-out infinite;
}

@keyframes glowPulse {
    0% { filter: brightness(1) saturate(1); }
    50% { filter: brightness(1.08) saturate(1.15); }
    100% { filter: brightness(1) saturate(1); }
}

.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition:
        420ms cubic-bezier(0.2, 0.9, 0.2, 1),
        box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
        transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
        background-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
        color 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    text-shadow: 0 2px 0 rgba(0,0,0,.25);
    outline-color: rgba(var(--rgb-accent), .65);
    caret-color: rgba(var(--rgb-accent), .9);
    accent-color: rgba(var(--rgb-accent), .9);
}

a:not([class]) {
    color: rgba(124,58,237,.98);
    transition: var(--transition);
    text-shadow: 0 0 18px rgba(var(--rgb-primary), .18);
}

a:not([class]):hover {
    color: rgba(124,58,237,1);
    text-shadow:
        0 0 22px rgba(var(--rgb-primary), .35),
        0 0 34px rgba(var(--rgb-accent), .18);
}

.card { border: 1px solid rgba(var(--rgb-primary), .18); }

header, .header, .navbar {
    background: transparent;
    border-bottom: 1px solid rgba(var(--rgb-primary), .10);
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

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

/* news: grid-3 */
/* 三列等宽网格 */
                .news-grid {
                    display: grid;
                    grid-template-columns: repeat(3, 1fr);
                    gap: var(--space-gap);
                }

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

/* hero: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }

/* 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 18s linear infinite;
                    filter: drop-shadow(0 0 20px rgba(var(--rgb-accent), .14));
                }
                @keyframes partnerScroll {
                    0% { transform: translateX(0); }
                    100% { transform: translateX(-50%); }
                }

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

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

@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;
        --radius-lg: 12px;
        --radius-md: 9px;
        --transition: 480ms cubic-bezier(0.16, 1, 0.3, 1);
    }
    .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; }
}