:root {
    --color-primary: #6d28d9;
    --color-primary-dark: #2e1065;
    --color-accent: #f59e0b;
    --color-surface: #fefce8;
    --color-text: #1c1917;
    --rgb-primary: 109,40,217;
    --rgb-accent: 245,158,11;
    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
    --shadow-sm: 0 1px 1px rgba(109,40,217,.06), 0 0 0 1px rgba(109,40,217,.04);
    --shadow-md: 0 2px 4px rgba(109,40,217,.10), 0 1px 2px rgba(28,25,23,.06), 0 0 0 1px rgba(109,40,217,.05);
    --shadow-lg: 0 4px 10px rgba(109,40,217,.14), 0 2px 4px rgba(28,25,23,.08), 0 0 0 1px rgba(245,158,11,.10);
    --space-section: 2rem;
    --space-card: 1rem;
    --space-gap: 0.75rem;
    --transition: 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --heading-weight: 700;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: #fefce8; }
h1, h2, h3, h4 { font-weight: var(--heading-weight); color: #2e1065; }
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-color: #fffbeb; border-color: rgba(109,40,217,.08); border-style: solid; }
.card:hover, [class*="card"]:hover { box-shadow: var(--shadow-lg); border-color: rgba(245,158,11,.25); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: #6d28d9; color: #fefce8; border-color: #7c3aed; }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { background-color: #5b21b6; box-shadow: 0 3px 8px rgba(109,40,217,.30); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: featured-top */
/* 首篇横跨全宽 */
                .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
                .news-grid > *:first-child { grid-column: span 3; background: linear-gradient(135deg, #ede9fe 0%, #fef3c7 100%); box-shadow: var(--shadow-lg); border-color: rgba(109,40,217,.15); }

/* features: centered */
/* 居中大卡片 */
                .feature-list { display: flex; flex-direction: column; align-items: center; gap: calc(var(--space-gap) * 2); max-width: 720px; margin: 0 auto; }
                .feature-list > *:nth-child(1) { border-top: 3px solid #6d28d9; }
                .feature-list > *:nth-child(2) { border-top: 3px solid #f59e0b; }
                .feature-list > *:nth-child(3) { border-top: 3px solid #ec4899; }
                .feature-list > *:nth-child(4) { border-top: 3px solid #06b6d4; }

/* hero: left-aligned */
.hero-content { text-align: left; max-width: 600px; }
.hero-content h1 { color: #2e1065; text-shadow: 0 1px 0 rgba(245,158,11,.15); }

/* testimonials: grid-3 */
.testimonial-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
.testimonial-list > *:nth-child(odd) { background-color: #fdf4ff; border-left: 3px solid #a855f7; }
.testimonial-list > *:nth-child(even) { background-color: #ecfeff; border-left: 3px solid #06b6d4; }

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.partner-grid > * { filter: grayscale(0.4) opacity(0.75); transition: var(--transition); }
.partner-grid > *:hover { filter: grayscale(0) opacity(1); }

/* faq: two-column */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-gap); }
.faq-list > * { border-bottom: 2px solid rgba(109,40,217,.10); }
.faq-list > *:hover { border-bottom-color: rgba(245,158,11,.40); }

/* stats: inline */
/* 水平排列 */
                .stats-grid { display: flex; justify-content: center; gap: 3rem; }
                .stats-grid > * { color: #6d28d9; }
                .stats-grid > *:nth-child(2) { color: #f59e0b; }
                .stats-grid > *:nth-child(3) { color: #ec4899; }
                .stats-grid > *:nth-child(4) { color: #06b6d4; }

/* cta: split */
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; background: linear-gradient(135deg, #2e1065 0%, #6d28d9 60%, #7c3aed 100%); border-radius: var(--radius-lg); box-shadow: 0 6px 20px rgba(109,40,217,.35), 0 2px 6px rgba(46,16,101,.25); }
.cta-inner h2, .cta-inner p { color: #fefce8; }

/* Page Layout: wide */
/* 超宽 */
            .page-main { max-width: 1400px; margin: 0 auto; }

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); }
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; }
}