:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #4c1d95;
    --color-accent: #fbbf24;
    --color-surface: #f5f3ff;
    --color-text: #1e1b4b;
    --rgb-primary: 124,58,237;
    --rgb-accent: 251,191,36;
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --shadow-sm: 0 2px 6px rgba(76,29,149,.10), 0 1px 2px rgba(124,58,237,.08);
    --shadow-md: 0 10px 28px -6px rgba(76,29,149,.18), 0 4px 10px rgba(124,58,237,.10);
    --shadow-lg: 0 28px 60px -12px rgba(76,29,149,.28), 0 12px 24px rgba(251,191,36,.10);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;
    --transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 800;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: #faf9ff; }
h1, h2, h3, h4 { font-weight: var(--heading-weight); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
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); border: 1px solid rgba(124,58,237,.10); background: linear-gradient(160deg, #ffffff 0%, #f5f3ff 100%); }
.card:hover, [class*="card"]:hover { box-shadow: var(--shadow-lg); border-color: rgba(251,191,36,.45); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); box-shadow: 0 6px 18px -4px rgba(124,58,237,.35); }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { box-shadow: 0 12px 30px -6px rgba(124,58,237,.45), 0 0 0 3px rgba(251,191,36,.25); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-color: rgba(251,191,36,.7); }
a:not([class]):hover { color: var(--color-primary-dark); }

/* ========== 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; padding: 0.5rem 0.25rem; }
                .feature-list > * { flex: 0 0 300px; scroll-snap-align: start; }

/* hero: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; background: radial-gradient(ellipse at 50% 40%, rgba(124,58,237,.22) 0%, rgba(76,29,149,.10) 45%, rgba(15,15,26,0) 75%), linear-gradient(180deg, #0f0f1a 0%, #1e1b4b 100%); }
                .hero-content { position: relative; z-index: 1; text-shadow: 0 2px 24px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.4); }

/* testimonials: carousel */
/* 单条轮播 */
                .testimonial-list { display: flex; overflow: hidden; border-radius: var(--radius-lg); } 
                .testimonial-list > * { flex: 0 0 100%; }

/* partners: scroll */
/* 自动滚动 */
                .partner-grid { display: flex; gap: 2rem; overflow: hidden; animation: partnerScroll 20s linear infinite; opacity: .85; }
                @keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

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

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; border-radius: var(--radius-xl); padding: 3rem 2rem; background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 60%, #fef3c7 100%); box-shadow: var(--shadow-lg); }

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

/* 条件性装饰 */

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