/* CSSVariantEngine v3.0 — zh-kaiyuangames.gd.cn */
/* Palette: sidebar-classic | Radius: medium-rounded | Shadow: glow-effects */
/* Spacing: moderate | Transition: smooth-glow */
/* Section layouts: {"news":"grid-3","features":"horizontal","hero":"minimal","testimonials":"stacked","partners":"scroll","faq":"single-column","stats":"grid-4","cta":"card-style"} */

:root {
    --color-primary: #0ea5e9;
    --color-primary-dark: #0284c7;
    --color-accent: #10b981;
    --color-surface: #f8fafc;
    --color-text: #1e293b;
    --rgb-primary: 14, 165, 233;
    --rgb-accent: 16, 185, 129;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow-sm: 0 2px 6px rgba(30, 41, 59, 0.08), 0 0 8px rgba(var(--rgb-accent), 0.15);
    --shadow-md: 0 4px 12px rgba(30, 41, 59, 0.1), 0 0 24px rgba(var(--rgb-accent), 0.4);
    --shadow-lg: 0 12px 32px rgba(30, 41, 59, 0.12), 0 0 32px rgba(var(--rgb-accent), 0.6);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.5rem;
    --transition: 0.4s ease-out;
    --heading-weight: 700;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: #ffffff; }
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: var(--shadow-md); padding: var(--space-card); transition: var(--transition); background-color: #ffffff; }
.card:hover { box-shadow: 0 8px 20px rgba(30, 41, 59, 0.12), 0 0 32px rgba(var(--rgb-accent), 0.6); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-accent); color: white; box-shadow: 0 0 16px rgba(var(--rgb-accent), 0.3); animation: softPulse 3s ease-in-out infinite; }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { box-shadow: 0 0 32px rgba(var(--rgb-accent), 0.7); transform: translateY(-1px); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 0 8px rgba(var(--rgb-accent), 0.4); }

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

/* hero: minimal */
.hero { padding: 2rem 0; } .hero-content { max-width: 560px; }

/* testimonials: stacked */
/* 垂直堆叠 */
.testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }

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

/* 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: card-style */
.cta-inner { background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%); border-radius: var(--radius-xl); padding: 3rem; text-align: center; box-shadow: 0 0 28px rgba(var(--rgb-accent), 0.3); }

/* Page Layout: wide */
/* 超宽 */
.page-main { max-width: 1400px; margin: 0 auto; }

/* 条件性装饰 */
.card { border: 1px solid rgba(var(--rgb-accent), 0.1); }
header, .header, .navbar { background-color: #252e3a; color: #f1f5f9; box-shadow: 0 2px 12px rgba(37, 46, 58, 0.2); }

@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 16px rgba(var(--rgb-accent), 0.3); }
    50% { box-shadow: 0 0 24px rgba(var(--rgb-accent), 0.5); }
}

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