:root {
    --color-primary: #ff3b30;
    --color-primary-dark: #b8001a;
    --color-accent: #ffd166;
    --color-surface: #f7f7fb;
    --color-text: #1f1130;
    --rgb-primary: 255,59,48;
    --rgb-accent: 255,209,102;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 6px;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 320ms cubic-bezier(0.16, 1, 0.3, 1);
    --heading-weight: 700;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: 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: none; padding: var(--space-card); transition: var(--transition); border: 1px solid rgba(31,17,48,.12); background: #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); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ========== 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; }
                .news-grid > * { background: #ffffff; border: 1px solid rgba(31,17,48,.12); }
                .news-grid > *:nth-child(1) { background: #ffe4e6; border-color: rgba(184,0,26,.22); }
                .news-grid > *:nth-child(2) { background: #fff7d6; border-color: rgba(204,143,0,.22); }
                .news-grid > *:nth-child(3) { background: #e9f7ff; border-color: rgba(0,103,170,.18); }

/* features: grid-4 */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); }
                .feature-list > * { border: 1px solid rgba(31,17,48,.12); border-radius: var(--radius-lg); background: #ffffff; transition: var(--transition); }
                .feature-list > *:nth-child(1) { background: #e7fff3; border-color: rgba(0,150,90,.20); }
                .feature-list > *:nth-child(2) { background: #f3ecff; border-color: rgba(104,56,220,.20); }
                .feature-list > *:nth-child(3) { background: #fff0f6; border-color: rgba(213,0,91,.18); }
                .feature-list > *:nth-child(4) { background: #fff7d6; border-color: rgba(204,143,0,.22); }

/* hero: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }

/* testimonials: stacked */
/* 垂直堆叠 */
                .testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }
                .testimonial-list > * { border: 1px solid rgba(31,17,48,.12); border-radius: var(--radius-lg); background: #ffffff; }
                .testimonial-list > *:nth-child(odd) { background: #fef2f2; border-color: rgba(184,0,26,.18); }
                .testimonial-list > *:nth-child(even) { background: #f7fff0; border-color: rgba(0,150,90,.16); }

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .partner-grid > * { border: 1px solid rgba(31,17,48,.12); border-radius: var(--radius-lg); background: #ffffff; }
                .partner-grid > * { transition: var(--transition); }
                .partner-grid > *:nth-child(3n+1) { background: #e9f7ff; border-color: rgba(0,103,170,.18); }
                .partner-grid > *:nth-child(3n+2) { background: #fff7d6; border-color: rgba(204,143,0,.20); }
                .partner-grid > *:nth-child(3n) { background: #f3ecff; border-color: rgba(104,56,220,.18); }

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
                .faq-wrapper > * { border: 1px solid rgba(31,17,48,.12); border-radius: var(--radius-lg); background: #ffffff; }

/* stats: big-number */
/* 大数字居中 */
                .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .stats-grid .stat-value { font-size: 3rem; }
                .stats-grid > * { border: 1px solid rgba(31,17,48,.12); border-radius: var(--radius-lg); background: #ffffff; padding: 1rem; }
                .stats-grid > *:nth-child(3n+1) { background: #fff0f6; border-color: rgba(213,0,91,.18); }
                .stats-grid > *:nth-child(3n+2) { background: #e7fff3; border-color: rgba(0,150,90,.18); }
                .stats-grid > *:nth-child(3n) { background: #e9f7ff; border-color: rgba(0,103,170,.18); }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-inner { border: 1px solid rgba(31,17,48,.12); border-radius: var(--radius-lg); background: #ffffff; padding: 1.25rem; }

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: #ff3b30; }
.hero-content, .cta-inner, .news-grid, .feature-list, .testimonial-list, .partner-grid, .faq-wrapper, .stats-grid { position: relative; }

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