:root {
    --color-primary: #0f172a;
    --color-primary-dark: #050816;
    --color-accent: #22c55e;
    --color-surface: #f8fafc;
    --color-text: #0b1220;
    --rgb-primary: 15,23,42;
    --rgb-accent: 34,197,94;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 6px;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --space-section: 2rem;
    --space-card: 1rem;
    --space-gap: 0.75rem;
    --transition: 90ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --heading-weight: 650;
    --body-line-height: 1.65;
    --border-strong: rgba(2, 6, 23, 0.72);
    --border-muted: rgba(2, 6, 23, 0.24);
}

body { color: var(--color-text); line-height: var(--body-line-height); background: #f1f5f9; }
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: transform var(--transition), border-color var(--transition), background-color var(--transition), color var(--transition);
    border: 2px solid var(--border-muted);
}
.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
    border: 2px solid rgba(2, 6, 23, 0.22);
}
a:not([class]) { color: #0b3a7b; transition: color var(--transition); text-decoration-color: rgba(11, 58, 123, 0.35); }

:focus, :focus-visible {
    outline: 2px solid rgba(34, 197, 94, 0.8);
    outline-offset: 2px;
}

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

/* news: featured-top */
/* 首篇横跨全宽 */
                .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
                .news-grid > *:first-child { grid-column: span 3; }

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

/* hero: split */
/* 左文右图 */
                .hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }

/* testimonials: grid-3 */
.testimonial-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

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

/* faq: two-column */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

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

/* cta: card-style */
.cta-inner {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    border: 2px solid rgba(2, 6, 23, 0.22);
}

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover {
    transform: translateY(-2px);
    box-shadow: none;
    border-color: rgba(34, 197, 94, 0.55);
    background-color: #ffffff;
}
a:not([class]):hover { color: var(--color-accent); text-decoration-color: rgba(34, 197, 94, 0.7); }
.hero, [class*="hero"], section:first-of-type { 
    background: #0b1324;
}

/* Asymmetric-blocks: section-dependent solid blocks with strong borders */
section:first-of-type,
section .hero,
[class*="news"],
.news-grid > * {
    background: #0b1324;
    border-color: rgba(2, 6, 23, 0.45);
}
.news-grid > * {
    background: #e2e8f0;
    border-color: rgba(2, 6, 23, 0.25);
}
.news-grid > *:first-child {
    background: #fde68a;
    border-color: rgba(2, 6, 23, 0.55);
}

.feature-list > * { background: #dbeafe; border-color: rgba(2, 6, 23, 0.25); }
.feature-list > *:nth-child(2n) { background: #bbf7d0; }
.feature-list > *:nth-child(3n) { background: #fecaca; }

.hero-inner > * { background: #fef3c7; border: 2px solid rgba(2, 6, 23, 0.25); border-radius: var(--radius-lg); }
.hero-inner > *:last-child { background: #cffafe; }

.testimonial-list > * { background: #e5e7eb; border-color: rgba(2, 6, 23, 0.25); }
.testimonial-list > *:nth-child(2n) { background: #f5d0fe; }
.testimonial-list > *:nth-child(3n) { background: #bfdbfe; }

.partner-grid > * { background: #f8fafc; border: 2px solid rgba(2, 6, 23, 0.18); border-radius: var(--radius-md); }

.faq-list > * { background: #eef2ff; border-color: rgba(2, 6, 23, 0.25); }
.faq-list > *:nth-child(2n) { background: #dcfce7; }

.stats-grid > * { background: #ffffff; border: 2px solid rgba(2, 6, 23, 0.22); border-radius: var(--radius-md); }

.cta-inner { background: #ffffff; }
.cta-inner .card,
.cta-inner [class*="card"] { background: #e0f2fe; border-color: rgba(2, 6, 23, 0.28); }

/* 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; }
    .hero-inner > * { border-radius: var(--radius-lg); }
}
@media (max-width: 640px) {
    :root { --space-section: 2rem; --space-card: 1rem; --space-gap: 0.75rem; --transition: 80ms cubic-bezier(0.2, 0.8, 0.2, 1); }
    .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; }
    .news-grid > *:first-child { grid-column: span 1; }
}