:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #4c1d95;
    --color-accent: #f3c969;
    --color-surface: #f7f3ff;
    --color-text: #1b1430;
    --rgb-primary: 124,58,237;
    --rgb-accent: 243,201,105;
    --radius-sm: 7px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(27,20,48,0.07), 0 0 0 1px rgba(124,58,237,0.05);
    --shadow-md: 0 2px 6px rgba(27,20,48,0.06), 0 12px 28px -14px rgba(76,29,149,0.38), 0 0 0 1px rgba(124,58,237,0.06);
    --shadow-lg: 0 4px 10px rgba(27,20,48,0.08), 0 26px 60px -22px rgba(76,29,149,0.48), 0 0 0 1px rgba(124,58,237,0.08);
    --space-section: 2rem;
    --space-card: 1rem;
    --space-gap: 0.75rem;
    --transition: 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background:
        radial-gradient(circle at 50% -12%, rgba(243,201,105,0.30) 0%, rgba(243,201,105,0) 55%),
        radial-gradient(ellipse at 12% 8%, rgba(124,58,237,0.14) 0%, rgba(124,58,237,0) 60%),
        linear-gradient(180deg, #faf7ff 0%, #f3edfd 48%, #e9e1fb 100%);
    background-attachment: fixed;
}
h1, h2, h3, h4 { font-weight: var(--heading-weight); color: #221740; text-shadow: 0 1px 0 rgba(255,255,255,0.65); }
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(158deg, #ffffff 0%, #fbf7ff 52%, #f1e8ff 100%);
}
.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 46%, #b57bf5 100%);
    color: #fdf9ff;
    box-shadow: 0 1px 2px rgba(27,20,48,0.14), 0 12px 26px -14px rgba(124,58,237,0.62);
}
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-color: var(--color-accent); }

/* ========== Section Layout Variants ========== */

/* news: grid-3 */
/* 三列等宽网格 */
                .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }

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

/* hero: minimal */
.hero {
    padding: 2rem 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.16) 0%, rgba(243,201,105,0.10) 45%, rgba(124,58,237,0) 76%);
}
.hero-content { max-width: 560px; }

/* testimonials: stacked */
/* 垂直堆叠 */
                .testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }

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

/* stats: big-number */
/* 大数字居中 */
                .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .stats-grid .stat-value {
                    font-size: 3rem;
                    background: linear-gradient(165deg, #4c1d95 0%, #7c3aed 42%, #b57bf5 70%, #f3c969 100%);
                    -webkit-background-clip: text;
                    background-clip: text;
                    color: transparent;
                    -webkit-text-fill-color: transparent;
                }

/* cta: card-style */
.cta-inner {
    background:
        radial-gradient(120% 140% at 50% -22%, rgba(243,201,105,0.30) 0%, rgba(243,201,105,0) 62%),
        linear-gradient(142deg, #0f0f1a 0%, #1a1430 46%, #2b1f52 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    color: #f6f1ff;
    box-shadow: var(--shadow-lg);
}

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

/* 条件性装饰 */
.card {
    border-left: 3px solid var(--color-primary);
    border-image: linear-gradient(180deg, #4c1d95 0%, #7c3aed 48%, #f3c969 100%) 1;
}

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