:root {
    --color-primary: #2457ff;
    --color-primary-dark: #1338a8;
    --color-accent: #ff3ea5;
    --color-surface: #f6f7fb;
    --color-text: #1d1f2a;

    --rgb-primary: 36,87,255;
    --rgb-accent: 255,62,165;

    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 16px;

    --shadow-sm: 0 1px 0 rgba(18, 22, 34, 0.04);
    --shadow-md: 0 10px 24px rgba(18, 22, 34, 0.10), 0 1px 0 rgba(18, 22, 34, 0.04);
    --shadow-lg: 0 14px 38px rgba(18, 22, 34, 0.14), 0 1px 0 rgba(18, 22, 34, 0.05);

    --space-section: 2rem;
    --space-card: 1rem;
    --space-gap: 1.125rem;

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

body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background: var(--color-surface);
    caret-color: var(--color-accent);
    accent-color: var(--color-accent);
}

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-xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-card);
    transition: transform 520ms cubic-bezier(0.2, 0.85, 0.25, 1), box-shadow 520ms cubic-bezier(0.2, 0.85, 0.25, 1), border-color 520ms cubic-bezier(0.2, 0.85, 0.25, 1), filter 520ms cubic-bezier(0.2, 0.85, 0.25, 1);
    background: #ffffff;
    border: 1px solid rgba(29, 31, 42, 0.07);
    outline: 0 solid transparent;
}

.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: background-color 520ms cubic-bezier(0.2, 0.85, 0.25, 1), color 520ms cubic-bezier(0.2, 0.85, 0.25, 1), box-shadow 520ms cubic-bezier(0.2, 0.85, 0.25, 1), transform 520ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

a:not([class]) {
    color: var(--color-primary);
    transition: color 520ms cubic-bezier(0.2, 0.85, 0.25, 1), text-shadow 520ms cubic-bezier(0.2, 0.85, 0.25, 1);
    text-shadow: 0 0 0 rgba(0,0,0,0);
}

.card:hover, [class*="card"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 52px rgba(18, 22, 34, 0.18), 0 0 0 1px rgba(255, 62, 165, 0.18), 0 0 24px rgba(255, 62, 165, 0.40);
    filter: saturate(1.04);
}

.hero, [class*="hero"], section:first-of-type {
    background: radial-gradient(1200px 520px at 20% 20%, rgba(36, 87, 255, 0.95) 0%, rgba(36, 87, 255, 0.45) 38%, rgba(19, 56, 168, 0.15) 70%, rgba(255, 62, 165, 0.08) 100%),
                linear-gradient(135deg, #2457ff, #1338a8 55%, rgba(255, 62, 165, 0.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.card { border-left: 4px solid var(--color-accent); }

header, .header, .navbar {
    box-shadow:
        0 10px 30px rgba(18, 22, 34, 0.10),
        0 1px 0 rgba(255,255,255,0.55),
        0 0 0 1px rgba(29, 31, 42, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(29, 31, 42, 0.06);
}

@keyframes cardGlowPulse {
    0% { box-shadow: var(--shadow-md), 0 0 0 rgba(255, 62, 165, 0.00); }
    50% { box-shadow: var(--shadow-md), 0 0 28px rgba(255, 62, 165, 0.22); }
    100% { box-shadow: var(--shadow-md), 0 0 0 rgba(255, 62, 165, 0.00); }
}

.card {
    animation: cardGlowPulse 7.2s ease-in-out infinite;
}

/* ========== 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: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; }
                .hero-content { position: relative; z-index: 1; }

/* 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: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

/* stats: grid-4 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); text-align: center; }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }

/* Page Layout: full-width */
/* 无侧边栏, 全宽 */
            .page-main { max-width: 1200px; margin: 0 auto; }

/* 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: 1.125rem; }
    .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; }
}