:root {
    --color-primary: #ff2d55;
    --color-primary-dark: #b4002b;
    --color-accent: #7c3aed;
    --color-surface: #f7f4ff;
    --color-text: #1f1635;
    --rgb-primary: 255,45,85;
    --rgb-accent: 124,58,237;
    --radius-sm: 3px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 3px 10px rgba(31,22,53,.08);
    --shadow-md: 0 8px 18px rgba(31,22,53,.10), 0 2px 0 rgba(255,255,255,.55) inset;
    --shadow-lg: 0 16px 38px -12px rgba(31,22,53,.18), 0 10px 26px -16px rgba(31,22,53,.22), 0 2px 0 rgba(255,255,255,.55) inset;
    --space-section: 3rem;
    --space-card: 1.25rem;
    --space-gap: 1.5rem;
    --transition: 0.38s cubic-bezier(0.2, 0.9, 0.2, 1);
    --heading-weight: 700;
    --body-line-height: 1.75;
    --card-border: rgba(255,255,255,.55);
    --card-glow: rgba(255,45,85,.18);
}

/* 基础覆盖 */
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-lg);
    box-shadow:
        0 4px 10px rgba(0,0,0,0.05),
        0 20px 40px -12px rgba(0,0,0,0.14),
        0 0 0 1px rgba(31,22,53,.06);
    padding: var(--space-card);
    transition:
        box-shadow 0.38s cubic-bezier(0.2, 0.9, 0.2, 1),
        transform 0.38s cubic-bezier(0.2, 0.9, 0.2, 1),
        border-color 0.38s cubic-bezier(0.2, 0.9, 0.2, 1),
        background 0.38s cubic-bezier(0.2, 0.9, 0.2, 1),
        color 0.38s cubic-bezier(0.2, 0.9, 0.2, 1),
        filter 0.38s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition:
        background-color 0.38s cubic-bezier(0.2, 0.9, 0.2, 1),
        color 0.38s cubic-bezier(0.2, 0.9, 0.2, 1),
        box-shadow 0.38s cubic-bezier(0.2, 0.9, 0.2, 1),
        transform 0.38s cubic-bezier(0.2, 0.9, 0.2, 1),
        border-color 0.38s cubic-bezier(0.2, 0.9, 0.2, 1);
}
a:not([class]) {
    color: var(--color-primary);
    transition: 0.38s cubic-bezier(0.2, 0.9, 0.2, 1);
    text-shadow: 0 1px 0 rgba(255,255,255,.45);
}

/* ========== 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: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }

/* 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: 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: narrow-centered */
/* 窄版居中 */
            .page-main { max-width: 860px; margin: 0 auto; }

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type {
    background:
        radial-gradient(1200px 500px at 15% 20%, rgba(255,45,85,.35), rgba(255,45,85,0) 60%),
        radial-gradient(900px 520px at 85% 25%, rgba(124,58,237,.30), rgba(124,58,237,0) 62%),
        linear-gradient(135deg, #ff2d55, #b4002b 55%, #6d28d9);
    filter: saturate(1.04);
    backdrop-filter: blur(6px);
    opacity: .98;
}
.card { border-left: 3px solid var(--color-primary); }
header, .header, .navbar {
    box-shadow:
        0 4px 12px rgba(0,0,0,.06),
        0 18px 30px -18px rgba(0,0,0,.20),
        0 0 0 1px rgba(255,255,255,.40) inset;
}

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