:root {
    --color-primary: #0ea5e9;
    --color-primary-dark: #0284c7;
    --color-accent: #22c55e;
    --color-surface: #f7fbff;
    --color-text: #0b1220;
    --rgb-primary: 14,165,233;
    --rgb-accent: 34,197,94;
    --radius-sm: 1px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --radius-xl: 6px;
    --shadow-sm: 0 1px 0 rgba(2,132,199,.18), 0 3px 10px rgba(14,165,233,.14);
    --shadow-md: 0 1px 0 rgba(2,132,199,.12), 0 6px 18px rgba(14,165,233,.12), 0 10px 30px rgba(14,165,233,.08);
    --shadow-lg: 0 1px 0 rgba(2,132,199,.10), 0 10px 26px rgba(14,165,233,.14), 0 18px 44px rgba(2,132,199,.08);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 360ms cubic-bezier(0.2, 0.9, 0.2, 1);
    --heading-weight: 700;
    --body-line-height: 1.7;
}

body { color: var(--color-text); line-height: var(--body-line-height); }

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-md);
    box-shadow:
        0 1px 0 rgba(2,132,199,.14),
        0 6px 14px rgba(14,165,233,.10),
        0 16px 38px rgba(2,132,199,.08);
    padding: var(--space-card);
    transition:
        box-shadow 320ms cubic-bezier(0.2, 0.9, 0.2, 1),
        transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1),
        border-color 320ms cubic-bezier(0.2, 0.9, 0.2, 1),
        background-color 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-sm); transition: 320ms cubic-bezier(0.2, 0.9, 0.2, 1); }

a:not([class]) {
    color: var(--color-primary);
    transition: 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
    text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

/* ========== 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: horizontal */
/* 水平滚动 */
                .feature-list {
                    display: flex;
                    gap: var(--space-gap);
                    overflow-x: auto;
                    scroll-snap-type: x mandatory;
                    scrollbar-color: rgba(2,132,199,.6) rgba(2,132,199,.10);
                }
                .feature-list > * {
                    flex: 0 0 300px;
                    scroll-snap-align: start;
                }

/* hero: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }

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

/* partners: scroll */
/* 自动滚动 */
                .partner-grid {
                    display: flex;
                    gap: 2rem;
                    overflow: hidden;
                    animation: partnerScroll 18s linear infinite;
                }
                @keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

/* stats: big-number */
/* 大数字居中 */
                .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .stats-grid .stat-value { font-size: 3rem; }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover {
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 rgba(2,132,199,.16),
        0 10px 22px rgba(14,165,233,.14),
        0 22px 56px rgba(2,132,199,.10);
    border-color: rgba(14,165,233,.75);
}

.hero, [class*="hero"], section:first-of-type {
    background:
        linear-gradient(135deg, #0ea5e9 0%, #0284c7 34%, #0b2b4a 70%, #22c55e 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        inset 0 -1px 0 rgba(0,0,0,.12);
}

.card { border-left: 3px solid rgba(14,165,233,.95); }

header, .header, .navbar {
    box-shadow:
        0 1px 0 rgba(255,255,255,.35),
        0 10px 26px rgba(2,132,199,.12),
        0 2px 10px rgba(0,0,0,.06);
}

@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; }
}