:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #4c1d95;
    --color-accent: #f472b6;
    --color-surface: #faf5ff;
    --color-text: #2e1065;
    --rgb-primary: 124,58,237;
    --rgb-accent: 244,114,182;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 6px -1px rgba(124,58,237,0.14), 0 1px 3px -1px rgba(76,29,149,0.10);
    --shadow-md: 0 8px 24px -6px rgba(124,58,237,0.22), 0 3px 8px -3px rgba(244,114,182,0.16);
    --shadow-lg: 0 20px 48px -12px rgba(124,58,237,0.30), 0 8px 20px -8px rgba(76,29,149,0.20), 0 0 0 1px rgba(124,58,237,0.06);
    --space-section: 3rem;
    --space-card: 1.25rem;
    --space-gap: 1rem;
    --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #faf5ff 0%, #fdf2f8 60%, #f5f3ff 100%); }
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: linear-gradient(145deg, #ffffff 0%, #faf5ff 55%, #fdf2f8 100%); border: 1px solid rgba(124,58,237,0.10); }
.card:hover, [class*="card"]:hover { box-shadow: var(--shadow-lg); border-color: rgba(244,114,182,0.35); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); box-shadow: var(--shadow-sm); }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { box-shadow: var(--shadow-md); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }
a:not([class]):hover { color: var(--color-accent); }

/* ========== 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-3 */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
.feature-list .card:nth-child(3n+1) { background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 60%, #ddd6fe 100%); border-color: rgba(124,58,237,0.22); }
.feature-list .card:nth-child(3n+2) { background: linear-gradient(160deg, #fdf2f8 0%, #fce7f3 60%, #fbcfe8 100%); border-color: rgba(244,114,182,0.28); }
.feature-list .card:nth-child(3n+3) { background: linear-gradient(160deg, #ecfeff 0%, #cffafe 60%, #a5f3fc 100%); border-color: rgba(6,182,212,0.26); }

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

/* testimonials: stacked */
/* 垂直堆叠 */
                .testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }
                .testimonial-list .card { background: linear-gradient(135deg, #ffffff 0%, #faf5ff 50%, #fdf2f8 100%); border-left: 3px solid transparent; border-image: linear-gradient(180deg, #7c3aed, #f472b6) 1; }

/* 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; }
.stats-grid > * { background: linear-gradient(160deg, #ffffff 0%, #f5f3ff 100%); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(124,58,237,0.12); }

/* cta: card-style */
.cta-inner { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 40%, #f472b6 100%); border-radius: var(--radius-xl); padding: 3rem; text-align: center; box-shadow: var(--shadow-lg); color: #ffffff; }

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 35%, #a855f7 65%, #f472b6 100%); }

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