/* CSSVariantEngine v3.0 — go-newballsports.cn */
/* Palette: dense-dashboard | Radius: compact | Shadow: multi-layer gradient */
/* Spacing: tight | Transition: smooth 0.5s cubic-bezier */
/* Section layouts: {"news":"masonry-2","features":"horizontal","hero":"overlay","testimonials":"stacked","partners":"centered","faq":"single-column","stats":"inline","cta":"card-style"} */

:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-accent: #60a5fa;
    --color-surface: linear-gradient(145deg, #f8fafc, #f1f5f9);
    --color-text: #f1f5f9;
    --rgb-primary: 59,130,246;
    --rgb-accent: 96,165,250;
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 14px;
    --shadow-sm: 0 2px 4px rgba(30,41,59,.08), 0 1px 2px rgba(59,130,246,.05);
    --shadow-md: 0 3px 8px rgba(30,41,59,.12), 0 1px 3px rgba(59,130,246,.08), 0 -1px 2px rgba(255,255,255,.7) inset;
    --shadow-lg: 0 6px 16px rgba(30,41,59,.15), 0 3px 6px rgba(59,130,246,.1), 0 0 0 1px rgba(59,130,246,.06) inset;
    --space-section: 2.5rem;
    --space-card: 1rem;
    --space-gap: 0.875rem;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 800;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { 
    color: var(--color-text); 
    line-height: var(--body-line-height); 
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
}
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: var(--color-surface);
    color: #1e293b;
}
.btn, button[class*="btn"], a[class*="btn"] { 
    border-radius: var(--radius-md); 
    transition: var(--transition); 
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
    background-size: 200% 100%;
    color: white;
    border: none;
}
a:not([class]) { color: var(--color-accent); transition: var(--transition); }

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

/* news: masonry-2 */
/* 两列瀑布流 */
.news-grid { column-count: 2; column-gap: var(--space-gap); }
.news-grid .card { break-inside: avoid; margin-bottom: 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: overlay */
/* 全屏背景+文字覆盖 */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 1; }

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

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

/* stats: inline */
/* 水平排列 */
.stats-grid { display: flex; justify-content: center; gap: 3rem; }

/* cta: card-style */
.cta-inner { 
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%); 
    border-radius: var(--radius-xl); 
    padding: 3rem; 
    text-align: center;
    border: 2px solid transparent;
    border-image: linear-gradient(90deg, #3b82f6, #60a5fa, #8b5cf6, #3b82f6) 1;
}

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { 
    background: linear-gradient(135deg, #1e293b 0%, #334155 25%, #3b82f6 55%, #60a5fa 80%, #1e293b 100%); 
}
.card { 
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, #3b82f6, #60a5fa, #8b5cf6) 1; 
}
header, .header, .navbar { background: transparent; backdrop-filter: blur(8px); }

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