:root {
    --color-primary: #e63946;
    --color-primary-dark: #800e13;
    --color-accent: #ffd60a;
    --color-surface: #f4efe6;
    --color-text: #111111;
    --rgb-primary: 230,57,70;
    --rgb-accent: 255,214,10;
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 2px;
    --shadow-sm: 0 0 0 2px #111111, 2px 2px 0 0 #111111;
    --shadow-md: 0 0 0 2px #111111, 5px 5px 0 0 #e63946;
    --shadow-lg: 0 0 0 2px #111111, 8px 8px 0 0 #800e13;
    --space-section: 3.5rem;
    --space-card: 1.5rem;
    --space-gap: 0.875rem;
    --transition: 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
    --heading-weight: 800;
    --body-line-height: 1.7;
}

body { color: var(--color-text); background: var(--color-surface); line-height: var(--body-line-height); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.card, [class*="card"] { background: #fffaf2; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-card); transition: var(--transition); }
.btn, button[class*="btn"], a[class*="btn"] { background: var(--color-accent); border-radius: var(--radius-md); box-shadow: 0 0 0 2px #111111, 3px 3px 0 0 #111111; color: var(--color-text); 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; }

/* 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: left-aligned */
.hero-content { text-align: left; max-width: 600px; }

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

/* partners: scroll */
/* 自动滚动 */
                .partner-grid { display: flex; gap: 2rem; overflow: hidden; animation: partnerScroll 20s linear infinite; }
                @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: grid-3 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 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; }

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #111111 0%, #800e13 48%, #e63946 100%); box-shadow: inset 0 -6px 0 0 #ffd60a; }
.card { border: 1px solid #111111; }
header, .header, .navbar { box-shadow: 0 4px 0 0 #e63946; }

/* 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: 2.25rem; --space-card: 1.125rem; --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; }
}