:root {
    --color-primary: #6d28d9;
    --color-primary-dark: #2e1065;
    --color-accent: #f43f5e;
    --color-surface: #efe6fb;
    --color-text: #221a33;
    --rgb-primary: 109,40,217;
    --rgb-accent: 244,63,94;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-sm: 0 2px 6px -1px rgba(76,29,149,.14), 0 1px 2px rgba(76,29,149,.08);
    --shadow-md: 0 12px 26px -8px rgba(76,29,149,.20), 0 4px 10px -4px rgba(244,63,94,.12);
    --shadow-lg: 0 30px 64px -20px rgba(76,29,149,.34), 0 14px 30px -14px rgba(244,63,94,.22), 0 0 0 1px rgba(255,255,255,.6) inset;
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: #f7f3fc; background-image: radial-gradient(circle at 12% 0%, #f0e6ff 0%, rgba(247,243,252,0) 55%), radial-gradient(circle at 88% 100%, #ffe6ee 0%, rgba(247,243,252,0) 50%); }
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); }
.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); }
                .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: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; }
                .hero-content { position: relative; z-index: 1; }

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

/* partners: grid-6 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-gap); align-items: center; }

/* faq: two-column */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-gap); }

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

/* cta: split */
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }

/* 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, #2e1065 0%, #5b21b6 32%, #9d174d 68%, #f43f5e 100%); }
.card { border: 1px solid transparent; background-image: linear-gradient(160deg, #ffffff 0%, #faf6ff 48%, #efe4fd 100%) padding-box, linear-gradient(135deg, rgba(109,40,217,.60) 0%, rgba(217,70,239,.45) 45%, rgba(244,63,94,.55) 75%, rgba(245,158,11,.45) 100%) border-box; }
header, .header, .navbar { box-shadow: 0 4px 14px -4px rgba(76,29,149,.18), 0 1px 0 rgba(255,255,255,.7) inset, 0 -1px 0 rgba(109,40,217,.10); }

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