/* CSSVariantEngine v3.0 — web9-ai-sports.com.cn */
/* Palette: spotlight-gold | Radius: glow | Shadow: glow */
/* Spacing: tight | Transition: smooth */
/* Section layouts: {"news":"featured-top","features":"horizontal","hero":"overlay","testimonials":"masonry","partners":"centered","faq":"single-column","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #d4af37;
    --color-primary-dark: #a16207;
    --color-accent: #a78bfa;
    --color-surface: #1e1b2e;
    --color-text: #f0edfa;
    --color-bg: #0f0f1a;
    --rgb-primary: 212,175,55;
    --rgb-accent: 167,139,250;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 0 16px rgba(167,139,250,0.2);
    --shadow-md: 0 0 24px rgba(167,139,250,0.35);
    --shadow-lg: 0 0 32px rgba(167,139,250,0.55);
    --space-section: 2.25rem;
    --space-card: 1.125rem;
    --space-gap: 0.875rem;
    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: var(--color-bg); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); text-shadow: 0 0 24px rgba(212,175,55,0.25); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.card, [class*="card"] { border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px rgba(212,175,55,0.12), var(--shadow-md); padding: var(--space-card); transition: var(--transition); background-color: var(--color-surface); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-image: linear-gradient(135deg, #d4af37, #a16207); color: #1a1625; border-color: transparent; box-shadow: 0 0 24px rgba(212,175,55,0.35); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

/* ========== 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; }
.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: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); }
.testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); }

/* 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: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }

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

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 0 12px rgba(167,139,250,0.6); }
.hero, [class*="hero"], section:first-of-type { background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.18), transparent 65%), linear-gradient(135deg, #1e1b2e, #0f0f1a); box-shadow: 0 0 40px rgba(167,139,250,0.12); animation: heroGlow 6s ease-in-out infinite; }
header, .header, .navbar { box-shadow: 0 1px 0 rgba(212,175,55,0.2), 0 8px 24px rgba(0,0,0,0.4); background-color: rgba(15,15,26,0.85); }

/* glow hover states */
.card:hover, [class*="card"]:hover { box-shadow: inset 0 0 0 1px rgba(212,175,55,0.25), 0 0 32px rgba(167,139,250,0.6); }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { box-shadow: 0 0 32px rgba(212,175,55,0.6); background-image: linear-gradient(135deg, #eab308, #b45309); }

@keyframes heroGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(167,139,250,0.12); }
    50% { box-shadow: 0 0 64px rgba(212,175,55,0.18); }
}

/* 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: 1.75rem; --space-card: 1.125rem; --space-gap: 0.875rem; }
    .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; }
}