:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #1e40af;
    --color-accent: #60a5fa;
    --color-surface: #f8fafc;
    --color-text: #cbd5e1;
    --rgb-primary: 59,130,246;
    --rgb-accent: 96,165,250;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 0 8px rgba(59,130,246,0.15);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.25), 0 0 16px rgba(59,130,246,0.25);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.3), 0 0 24px rgba(59,130,246,0.35);
    --space-section: 4rem;
    --space-card: 1.6rem;
    --space-gap: 1.2rem;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 800;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: #1e293b; }
h1, h2, h3, h4 { font-weight: var(--heading-weight); color: #f1f5f9; }
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: #ffffff; color: #0f172a; animation: card-pulse 4s ease-in-out infinite; }
.card:hover, [class*="card"]:hover { box-shadow: var(--shadow-lg), 0 0 32px rgba(59,130,246,0.5); animation: none; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: var(--color-primary); color: #ffffff; }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: grid-3 */
/* 三列等宽网格 */
                .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 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; background: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-card); color: #0f172a; }

/* 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); background: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-card); color: #0f172a; }

/* 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; }
.faq-list > * { background: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-card); color: #0f172a; margin-bottom: var(--space-gap); }

/* stats: inline */
/* 水平排列 */
                .stats-grid { display: flex; justify-content: center; gap: 3rem; }
.stats-grid > * { background: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-card); color: #0f172a; min-width: 120px; }

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

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); }
header, .header, .navbar { background: transparent; }

/* Add subtle glow on headings */
h1, h2, h3, h4 { text-shadow: 0 0 12px rgba(59,130,246,0.15); }

/* Pulse animation for cards */
@keyframes card-pulse {
    0%, 100% { box-shadow: var(--shadow-md); }
    50% { box-shadow: var(--shadow-lg), 0 0 32px rgba(59,130,246,0.4); }
}

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