:root {
    --color-primary: #0f172a;
    --color-primary-dark: #07101f;
    --color-accent: #3b82f6;
    --color-surface: #ffffff;
    --color-text: #0b1220;
    --rgb-primary: 15,23,42;
    --rgb-accent: 59,130,246;

    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --radius-xl: 2px;

    --shadow-sm:
        2px 2px 0 rgba(3, 7, 18, .55);
    --shadow-md:
        4px 4px 0 rgba(2, 6, 23, .42),
        0 10px 22px rgba(2, 6, 23, .14),
        0 2px 0 rgba(59, 130, 246, .12);
    --shadow-lg:
        4px 4px 0 rgba(2, 6, 23, .50),
        0 14px 30px rgba(2, 6, 23, .16),
        0 2px 0 rgba(59, 130, 246, .10);

    --space-section: 3rem;
    --space-card: 1.25rem;
    --space-gap: 1rem;

    --transition: 0.15s cubic-bezier(.2,.8,.2,1);
    --heading-weight: 700;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #0b1220 0%, #0f172a 45%, #0b1220 100%); }
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: #ffffff; border: 3px solid rgba(51, 65, 85, .35); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); }
a:not([class]) { color: #cbd5e1; transition: var(--transition); text-shadow: 0 1px 0 rgba(0,0,0,.15); }

.card, [class*="card"], .btn, button[class*="btn"], a[class*="btn"] { caret-color: var(--color-accent); accent-color: var(--color-accent); }

/* ========== 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; }
                .news-grid .card { background: #ffffff; }
                .news-grid .card:first-child { border-color: rgba(59,130,246,.35); }

/* features: grid-4 */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); }
.feature-list .card { background: #ffffff; border-color: rgba(51, 65, 85, .40); }
.feature-list .card { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }

/* hero: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-content { text-shadow: 0 1px 0 rgba(0,0,0,.25); }

/* testimonials: carousel */
/* 单条轮播 */
                .testimonial-list { display: flex; overflow: hidden; } 
                .testimonial-list > * { flex: 0 0 100%; }
                .testimonial-list .card { background: #ffffff; border-color: rgba(51, 65, 85, .35); }

/* 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%); } }
                .partner-grid .card { background: rgba(255,255,255,.98); border-color: rgba(59,130,246,.28); box-shadow: var(--shadow-sm); }

/* faq: two-column */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-gap); }
.faq-list .card { background: #ffffff; border-color: rgba(51, 65, 85, .40); }

/* stats: grid-3 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); text-align: center; }
.stats-grid .card { background: #ffffff; border-color: rgba(59,130,246,.26); box-shadow: 4px 4px 0 rgba(2, 6, 23, .34), 0 10px 20px rgba(2, 6, 23, .10); }

/* cta: full-bg */
.cta-section { background: var(--color-primary); color: #fff; padding: 4rem 2rem; }
.cta-section { background: linear-gradient(135deg, #0b1220 0%, #1e293b 45%, #0f172a 100%); border-top: 3px solid rgba(59,130,246,.55); border-bottom: 3px solid rgba(59,130,246,.28); }
.cta-section .card { background: rgba(255,255,255,.96); }

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

/* 条件性装饰 */
a:not([class]):hover { color: #ffffff; text-shadow: 0 0 0 rgba(0,0,0,0), 0 0 18px rgba(59,130,246,.35); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #1e293b 0%, #0b1220 55%, #111827 100%); border-bottom: 3px solid rgba(59,130,246,.35); }
.card { border-left: 3px solid var(--color-accent); border-radius: 2px; }
header, .header, .navbar { box-shadow: 4px 4px 0 rgba(2, 6, 23, .28), 0 12px 30px rgba(2, 6, 23, .14); border-bottom: 3px solid rgba(59,130,246,.30); backdrop-filter: blur(6px) saturate(120%); background: rgba(15, 23, 42, .65); }
header, .header, .navbar { transition: box-shadow var(--transition), border-color var(--transition), background var(--transition); }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* 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; }
    .cta-section { border-top-color: rgba(59,130,246,.45); }
}
@media (max-width: 640px) {
    :root { --space-section: 2rem; --space-card: 1rem; --space-gap: 0.75rem; --transition: 0.12s cubic-bezier(.2,.85,.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; }
    .card, [class*="card"] { border-radius: 2px; box-shadow: 4px 4px 0 rgba(2, 6, 23, .40), 0 10px 20px rgba(2, 6, 23, .12); }
}