:root {
    --color-primary: #0f4c81;
    --color-primary-dark: #083b67;
    --color-accent: #3a86ff;
    --color-surface: #f6fbff;
    --color-text: #0b1320;
    --rgb-primary: 15,76,129;
    --rgb-accent: 58,134,255;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-sm:
        0 1px 0 rgba(9, 43, 77, 0.08),
        0 10px 24px rgba(8, 59, 103, 0.10);
    --shadow-md:
        0 1px 0 rgba(9, 43, 77, 0.10),
        0 10px 30px rgba(8, 59, 103, 0.14),
        0 0 0 1px rgba(58, 134, 255, 0.10);
    --shadow-lg:
        0 1px 0 rgba(9, 43, 77, 0.12),
        0 18px 44px rgba(8, 59, 103, 0.18),
        0 0 0 1px rgba(58, 134, 255, 0.16),
        0 0 28px rgba(58, 134, 255, 0.28);
    --space-section: 3rem;
    --space-card: 1.25rem;
    --space-gap: 1rem;
    --transition: 420ms cubic-bezier(0.2, 0.9, 0.2, 1), 180ms ease;
    --heading-weight: 800;
    --body-line-height: 1.75;
    --ring: rgba(58, 134, 255, 0.42);
    --glow: rgba(58, 134, 255, 0.35);
}

/* 基础覆盖 */
body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(58, 134, 255, 0.10), transparent 55%),
        radial-gradient(720px 380px at 95% 10%, rgba(15, 76, 129, 0.10), transparent 52%),
        linear-gradient(180deg, #ffffff 0%, #f2f8ff 60%, #eef6ff 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:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246, 251, 255, 0.90));
}
.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: 2px;
    text-underline-offset: 3px;
}
a:not([class]):focus {
    outline-style: solid;
    outline-color: rgba(58, 134, 255, 0.55);
    outline-width: 2px;
    outline-offset: 3px;
    border-radius: 10px;
}

a:not([class])::selection,
.card::selection,
[class*="card"]::selection {
    background: rgba(58, 134, 255, 0.25);
    color: var(--color-text);
}

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

/* news: masonry-2 */
/* 两列瀑布流 */
                .news-grid { column-count: 2; column-gap: var(--space-gap); }
                .news-grid .card { break-inside: avoid; margin-bottom: var(--space-gap); }

/* 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: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); }
                .testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); }

/* partners: grid-4 */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 1.5); align-items: center; }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

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

/* cta: card-style */
.cta-inner {
    background:
        radial-gradient(420px 240px at 20% 10%, rgba(58, 134, 255, 0.18), transparent 55%),
        radial-gradient(520px 260px at 90% 30%, rgba(15, 76, 129, 0.16), transparent 52%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246, 251, 255, 0.92));
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    box-shadow:
        0 18px 60px rgba(8, 59, 103, 0.12),
        0 0 0 1px rgba(58, 134, 255, 0.14),
        0 0 26px rgba(58, 134, 255, 0.14);
    transition: var(--transition);
}

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover {
    transform: translateY(-4px);
    box-shadow:
        0 1px 0 rgba(9, 43, 77, 0.14),
        0 20px 60px rgba(8, 59, 103, 0.20),
        0 0 0 1px rgba(58, 134, 255, 0.20),
        0 0 32px rgba(58, 134, 255, 0.36),
        0 0 70px rgba(58, 134, 255, 0.18);
    filter: saturate(1.04);
}
a:not([class]):hover { color: #1d4ed8; }
.hero, [class*="hero"], section:first-of-type {
    background:
        radial-gradient(900px 420px at 10% 10%, rgba(58, 134, 255, 0.35), transparent 55%),
        linear-gradient(135deg, #0f4c81 0%, #083b67 55%, #1d4ed8 120%);
    box-shadow:
        0 10px 50px rgba(8, 59, 103, 0.18),
        inset 0 0 0 1px rgba(58, 134, 255, 0.16);
}
.card { border: 1px solid rgba(var(--rgb-accent), .18); }

header, .header, .navbar {
    box-shadow:
        0 6px 20px rgba(2, 13, 29, 0.10),
        0 0 0 1px rgba(58, 134, 255, 0.12),
        0 0 20px rgba(58, 134, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255,255,255,0.70);
}

/* subtle glow pulse for hover-capable UIs */
@media (hover: hover) {
    .card:hover, [class*="card"]:hover {
        animation: glowPulse 1.2s ease-in-out both;
    }
}
@keyframes glowPulse {
    0% { box-shadow:
        0 1px 0 rgba(9, 43, 77, 0.14),
        0 20px 60px rgba(8, 59, 103, 0.20),
        0 0 0 1px rgba(58, 134, 255, 0.20),
        0 0 24px rgba(58, 134, 255, 0.30),
        0 0 68px rgba(58, 134, 255, 0.16);
        opacity: 1;
    }
    50% { box-shadow:
        0 1px 0 rgba(9, 43, 77, 0.14),
        0 20px 60px rgba(8, 59, 103, 0.22),
        0 0 0 1px rgba(58, 134, 255, 0.28),
        0 0 32px rgba(58, 134, 255, 0.44),
        0 0 78px rgba(58, 134, 255, 0.22);
        opacity: 1;
    }
    100% { box-shadow:
        0 1px 0 rgba(9, 43, 77, 0.14),
        0 20px 60px rgba(8, 59, 103, 0.20),
        0 0 0 1px rgba(58, 134, 255, 0.20),
        0 0 24px rgba(58, 134, 255, 0.30),
        0 0 68px rgba(58, 134, 255, 0.16);
        opacity: 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; }
}