:root {
    --color-primary: #4f46e5;
    --color-primary-dark: #3730a3;
    --color-accent: #14b8a6;
    --color-surface: #f6f5fb;
    --color-text: #1b1a2e;
    --color-card-indigo: #6366f1;
    --color-card-teal: #0d9488;
    --color-card-amber: #f59e0b;
    --rgb-primary: 79,70,229;
    --rgb-accent: 20,184,166;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --shadow-sm: 0 2px 6px rgba(27,26,46,.05), 0 1px 2px rgba(var(--rgb-primary), .08);
    --shadow-md: 0 10px 24px -10px rgba(55,48,163,.22), 0 4px 12px -6px rgba(var(--rgb-accent), .16);
    --shadow-lg: 0 26px 48px -18px rgba(55,48,163,.30), 0 14px 26px -14px rgba(var(--rgb-accent), .22);
    --space-section: 3.3rem;
    --space-card: 1.4rem;
    --space-gap: 1.15rem;
    --transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 700;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: var(--color-surface); }
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: list-view */
/* 列表模式 (图左文右) */
                .news-grid { display: flex; flex-direction: column; gap: var(--space-gap); }
                .news-grid .card { display: grid; grid-template-columns: 280px 1fr; background-color: #f2fbf9; border-color: rgba(var(--rgb-accent), .22); }

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

/* hero: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; color: #f4f6ff; text-shadow: 0 2px 16px rgba(23, 18, 62, .38); }

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

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

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

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

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(var(--rgb-accent), .38); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #312e81 0%, #4f46e5 42%, #0e7490 100%); }
.card { border: 1px solid rgba(var(--rgb-primary), .14); }
header, .header, .navbar { background: transparent; }

/* 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; --radius-lg: 16px; --radius-xl: 20px; }
    .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; }
}