:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #312e81;
    --color-accent: #f59e0b;
    --color-surface: #fff7ed;
    --color-text: #1f1a44;
    --rgb-primary: 124,58,237;
    --rgb-accent: 245,158,11;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 3px 8px rgba(31, 26, 68, 0.06), 0 10px 24px -12px rgba(124, 58, 237, 0.2);
    --shadow-md: 0 6px 14px rgba(31, 26, 68, 0.08), 0 24px 44px -18px rgba(49, 46, 129, 0.22);
    --shadow-lg: 0 10px 24px rgba(31, 26, 68, 0.1), 0 28px 56px -20px rgba(245, 158, 11, 0.28);
    --space-section: 3rem;
    --space-card: 1.25rem;
    --space-gap: 1rem;
    --transition: 0.38s ease;
    --heading-weight: 800;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #fffaf5 0%, #f7f3ff 48%, #fff7ed 100%); caret-color: var(--color-primary); accent-color: var(--color-accent); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); color: #221c4b; text-shadow: 0 1px 0 rgba(255,255,255,0.5); }
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%, #fff7ed 100%); border-color: rgba(124, 58, 237, 0.22); border-style: solid; backdrop-filter: blur(8px); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); color: #fffaf5; border-color: rgba(49, 46, 129, 0.35); border-style: solid; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2), 0 14px 30px -16px rgba(49, 46, 129, 0.34); text-shadow: 0 1px 1px rgba(49,46,129,0.22); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-color: rgba(124, 58, 237, 0.35); }

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

/* features: grid-3 */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }

/* hero: left-aligned */
.hero-content { text-align: left; max-width: 600px; }

/* testimonials: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); }
                .testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); background: linear-gradient(180deg, #ffffff 0%, #f8f4ff 100%); border-radius: var(--radius-lg); box-shadow: 0 4px 10px rgba(31, 26, 68, 0.05), 0 20px 40px -16px rgba(124, 58, 237, 0.18); border-color: rgba(245, 158, 11, 0.2); border-style: solid; }

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

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

/* stats: inline */
/* 水平排列 */
                .stats-grid { display: flex; justify-content: center; gap: 3rem; }

/* cta: card-style */
.cta-inner { background: linear-gradient(135deg, #fff7ed 0%, #f8f4ff 55%, #eef2ff 100%); border-radius: var(--radius-xl); padding: 3rem; text-align: center; box-shadow: 0 8px 20px rgba(31, 26, 68, 0.08), 0 30px 60px -24px rgba(49, 46, 129, 0.24); border-color: rgba(124, 58, 237, 0.24); border-style: solid; }

/* Page Layout: narrow-centered */
/* 窄版居中 */
            .page-main { max-width: 860px; margin: 0 auto; }

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); filter: brightness(1.02); }
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 1px 8px rgba(245, 158, 11, 0.22); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #312e81 0%, #7c3aed 52%, #f59e0b 100%); color: #fffaf5; }
header, .header, .navbar { background: linear-gradient(180deg, rgba(255,250,245,0.72) 0%, rgba(248,244,255,0.42) 100%); backdrop-filter: blur(10px); border-color: rgba(124, 58, 237, 0.14); border-style: solid; }

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