:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #4c1d95;
    --color-accent: #f5c542;
    --color-surface: #f8f5ff;
    --color-text: #1b1630;
    --rgb-primary: 124,58,237;
    --rgb-accent: 245,197,66;
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --shadow-sm: 0 2px 6px rgba(15,15,26,.18), 0 0 0 1px rgba(245,197,66,.12);
    --shadow-md: 0 14px 28px rgba(28,18,66,.18), 0 6px 14px rgba(124,58,237,.14), 0 0 0 1px rgba(255,255,255,.55);
    --shadow-lg: 0 24px 48px rgba(12,10,28,.26), 0 10px 24px rgba(76,29,149,.2), 0 0 0 1px rgba(245,197,66,.16);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;
    --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 top, #2a1a52 0%, #171426 32%, #0f0f1a 72%, #090910 100%); caret-color: var(--color-accent); accent-color: var(--color-primary); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); color: #fff7e3; text-shadow: 0 2px 12px rgba(245,197,66,.18); }
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(155deg, rgba(255,255,255,.96) 0%, rgba(246,240,255,.92) 50%, rgba(255,249,232,.9) 100%); border: 1px solid transparent; border-image: linear-gradient(135deg, rgba(124,58,237,.65), rgba(245,197,66,.75), rgba(124,58,237,.25)) 1; backdrop-filter: blur(10px) saturate(140%); filter: saturate(108%); opacity: .98; }
.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: #fffaf0; box-shadow: 0 10px 24px rgba(76,29,149,.32), 0 0 0 1px rgba(245,197,66,.22); border-color: rgba(245,197,66,.55); border-style: solid; text-shadow: 0 1px 8px rgba(0,0,0,.28); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-color: rgba(245,197,66,.6); text-shadow: 0 1px 10px rgba(124,58,237,.12); }

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

/* news: featured-left */
/* 左大右小 (1大+2小) */
                .news-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: var(--space-gap); }
                .news-grid > *:first-child { grid-row: span 2; }

/* 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: minimal */
.hero { padding: 2rem 0; } .hero-content { max-width: 560px; }

/* testimonials: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); }
                .testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); }

/* 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 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

/* stats: grid-4 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); text-align: center; }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }

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

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #0f0f1a 0%, #24163f 26%, #4c1d95 58%, #f5c542 100%); }
.card { border-left: 3px solid transparent; border-image: linear-gradient(180deg, #f5c542 0%, #8b5cf6 55%, #4c1d95 100%) 1; box-shadow: 0 20px 40px rgba(10,10,22,.24), 0 8px 18px rgba(124,58,237,.18), 0 0 0 1px rgba(255,255,255,.48); }

@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; }
}