:root {
    --color-primary: #1d3557;
    --color-primary-dark: #081a2a;
    --color-accent: #6d28d9;
    --color-surface: #fbfbf6;
    --color-text: #0b1220;

    --rgb-primary: 29,53,87;
    --rgb-accent: 109,40,217;

    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-sm: 0 10px 18px rgba(0,0,0,0.06), 0 2px 6px rgba(29,53,87,0.10);
    --shadow-md: 0 14px 28px rgba(0,0,0,0.08), 0 2px 10px rgba(29,53,87,0.10);
    --shadow-lg: 0 26px 55px rgba(0,0,0,0.14), 0 8px 22px rgba(109,40,217,0.14);

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

    --transition: 420ms cubic-bezier(0.2, 0.85, 0.25, 1);
    --heading-weight: 800;
    --body-line-height: 1.75;

    --strip-white: rgba(255,255,255,0.92);
    --strip-cream: #fff7e6;
    --strip-dark: #0b1b2f;
    --strip-line: rgba(15,23,42,0.10);

    --strip-shadow: 0 10px 30px rgba(2,6,23,0.10), 0 2px 10px rgba(2,6,23,0.06);
    --focus-ring: rgba(109,40,217,0.35);
    --card-border: rgba(15,23,42,0.12);

    color-scheme: light;
}

/* 基础覆盖 */
body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(109,40,217,0.10), transparent 55%),
        radial-gradient(900px 500px at 85% 10%, rgba(29,53,87,0.10), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #fbfbf6 50%, #f7f8fb 100%);
}

h1, h2, h3, h4 { font-weight: var(--heading-weight); }

section, .section {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
    background: transparent;
}

.card, [class*="card"] {
    border-radius: var(--radius-lg);
    box-shadow:
        0 4px 10px rgba(2,6,23,0.06),
        0 18px 42px -18px rgba(2,6,23,0.18),
        0 1px 0 rgba(255,255,255,0.65) inset;
    padding: var(--space-card);
    transition:
        transform 420ms cubic-bezier(0.2, 0.85, 0.25, 1),
        box-shadow 420ms cubic-bezier(0.2, 0.85, 0.25, 1),
        border-color 420ms cubic-bezier(0.2, 0.85, 0.25, 1),
        background-color 420ms cubic-bezier(0.2, 0.85, 0.25, 1);
    border: 1px solid rgba(15,23,42,0.10);
    background: rgba(255,255,255,0.86);
    backdrop-filter: saturate(1.05) blur(6px);
    -webkit-backdrop-filter: saturate(1.05) blur(6px);
}

.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition:
        transform 420ms cubic-bezier(0.2, 0.85, 0.25, 1),
        background-color 420ms cubic-bezier(0.2, 0.85, 0.25, 1),
        box-shadow 420ms cubic-bezier(0.2, 0.85, 0.25, 1),
        color 420ms cubic-bezier(0.2, 0.85, 0.25, 1),
        border-color 420ms cubic-bezier(0.2, 0.85, 0.25, 1);
    box-shadow: 0 10px 26px rgba(0,0,0,0.10), 0 1px 0 rgba(255,255,255,0.55) inset;
}

a:not([class]) {
    color: #2a4a7a;
    transition: var(--transition);
    text-shadow: 0 1px 0 rgba(255,255,255,0.55);
}

a:not([class]):hover {
    color: #3b2a7a;
}

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

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

/* hero: left-aligned */
.hero-content { text-align: left; max-width: 600px; }

/* testimonials: carousel */
/* 单条轮播 */
                .testimonial-list { display: flex; overflow: hidden; } 
                .testimonial-list > * { flex: 0 0 100%; }

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

/* faq: two-column */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-gap); }

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

/* cta: card-style */
.cta-inner {
    background:
        radial-gradient(900px 260px at 10% 10%, rgba(109,40,217,0.18), transparent 60%),
        radial-gradient(700px 220px at 85% 25%, rgba(29,53,87,0.14), transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,247,230,0.90) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    box-shadow:
        0 10px 30px rgba(2,6,23,0.10),
        0 2px 10px rgba(109,40,217,0.12),
        0 1px 0 rgba(255,255,255,0.75) inset;
    border: 1px solid rgba(15,23,42,0.10);
}

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover {
    transform: translateY(-6px);
    box-shadow:
        0 6px 16px rgba(2,6,23,0.08),
        0 36px 80px -26px rgba(2,6,23,0.30),
        0 2px 0 rgba(255,255,255,0.65) inset;
    border-color: rgba(109,40,217,0.35);
    background: rgba(255,255,255,0.94);
}

.card {
    border: 1px solid rgba(109,40,217,0.18);
}

header, .header, .navbar {
    background: transparent;
    box-shadow: none;
}

/* Horizontal-strips visual identity */
section, .section {
    background:
        linear-gradient(180deg,
            var(--strip-white) 0%,
            rgba(255,255,255,0.92) 45%,
            rgba(255,247,230,0.92) 100%);
    border-top: 1px solid rgba(15,23,42,0.07);
    border-bottom: 1px solid rgba(15,23,42,0.07);
}

section:nth-of-type(odd), .section:nth-of-type(odd) {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,247,230,0.92) 100%);
}

section:nth-of-type(even), .section:nth-of-type(even) {
    background:
        radial-gradient(1000px 320px at 20% 0%, rgba(109,40,217,0.16), transparent 60%),
        radial-gradient(900px 280px at 90% 10%, rgba(29,53,87,0.16), transparent 55%),
        linear-gradient(180deg, rgba(11,27,47,0.98) 0%, rgba(11,27,47,0.92) 100%);
    color: rgba(255,255,255,0.92);
}

section:nth-of-type(even) a:not([class]),
.section:nth-of-type(even) a:not([class]) {
    color: rgba(255,255,255,0.90);
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

section:nth-of-type(even) .card,
section:nth-of-type(even) [class*="card"],
.section:nth-of-type(even) .card,
.section:nth-of-type(even) [class*="card"] {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.18),
        0 24px 60px -26px rgba(0,0,0,0.35),
        0 1px 0 rgba(255,255,255,0.10) inset;
}

section:nth-of-type(even) .card:hover,
section:nth-of-type(even) [class*="card"]:hover,
.section:nth-of-type(even) .card:hover,
.section:nth-of-type(even) [class*="card"]:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(109,40,217,0.40);
}

section:nth-of-type(even) .cta-inner,
.section:nth-of-type(even) .cta-inner {
    background:
        radial-gradient(900px 260px at 10% 10%, rgba(109,40,217,0.32), transparent 60%),
        radial-gradient(700px 220px at 85% 25%, rgba(29,53,87,0.28), transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,247,230,0.08) 100%);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.92);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.24),
        0 2px 10px rgba(109,40,217,0.16),
        0 1px 0 rgba(255,255,255,0.10) inset;
}

/* Focus ring polish */
:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 10px;
}

/* Caret/accent */
input, textarea, select {
    caret-color: var(--color-accent);
    accent-color: var(--color-accent);
}

/* Subtle global selection tint */
::selection {
    background: rgba(109,40,217,0.22);
    color: #0b1220;
}

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