:root {
    --color-primary: #6d28d9;
    --color-primary-dark: #4c1d95;
    --color-accent: #f59e0b;
    --color-surface: #faf7f2;
    --color-text: #1e1b4b;
    --rgb-primary: 109,40,217;
    --rgb-accent: 245,158,11;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(30,27,75,.06), 0 12px 28px -12px rgba(109,40,217,.16);
    --shadow-md: 0 6px 16px rgba(30,27,75,.08), 0 20px 40px -16px rgba(109,40,217,.20);
    --shadow-lg: 0 10px 28px rgba(30,27,75,.10), 0 32px 64px -20px rgba(109,40,217,.28);
    --space-section: 2.25rem;
    --space-card: 1.125rem;
    --space-gap: 0.875rem;
    --transition: 0.4s cubic-bezier(.22, 1, .36, 1);
    --heading-weight: 700;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: var(--color-surface); accent-color: var(--color-primary); caret-color: var(--color-accent); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
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: #ffffff; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

/* ========== 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); background-color: #ede9fe; border-radius: var(--radius-xl); }
.news-grid > *:first-child { grid-row: span 2; background: linear-gradient(135deg, #4c1d95, #7c3aed); color: #fffaf7; box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); }

/* features: horizontal */
/* 水平滚动 */
.feature-list { display: flex; gap: var(--space-gap); overflow-x: auto; scroll-snap-type: x mandatory; background-color: #fef3c7; border-radius: var(--radius-xl); }
.feature-list > * { flex: 0 0 300px; scroll-snap-align: start; background-color: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

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

/* testimonials: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); background-color: #fff1f2; border-radius: var(--radius-xl); }
.testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); background-color: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

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

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
.faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2.25rem; background-color: #e9d5ff; border-radius: var(--radius-xl); }

/* stats: big-number */
/* 大数字居中 */
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.25rem; background-color: #bbf7d0; border-radius: var(--radius-xl); }
.stats-grid .stat-value { font-size: 3rem; color: var(--color-primary-dark); }

/* cta: full-bg */
.cta-section { background: var(--color-primary); color: #fffaf7; padding: 4.5rem 2rem; }

/* Page Layout: full-width */
/* 无侧边栏, 全宽 */
.page-main { max-width: 1200px; margin: 0 auto; }

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #1e1b4b, #6d28d9); color: #fffaf7; text-shadow: 0 2px 8px rgba(30,27,75,.35); }

/* 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: 1.125rem; --space-gap: 0.875rem; }
    .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; }
}