/* CSSVariantEngine v3.0 — cn-worldcup-pygame.com */
/* Palette: midnight-gold | Radius: soft-round | Shadow: layered-glow */
/* Spacing: balanced | Transition: smooth */
/* Section layouts: {"news":"featured-left","features":"grid-2","hero":"left-aligned","testimonials":"stacked","partners":"grid-4","faq":"single-column","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #4c1d95;
    --color-accent: #fbbf24;
    --color-surface: #0f0f1a;
    --color-text: #e9e6f7;
    --rgb-primary: 124,58,237;
    --rgb-accent: 251,191,36;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 6px rgba(124,58,237,.18), 0 1px 2px rgba(15,15,26,.4);
    --shadow-md: 0 8px 24px rgba(124,58,237,.22), 0 3px 8px rgba(15,15,26,.45);
    --shadow-lg: 0 20px 48px rgba(124,58,237,.32), 0 8px 18px rgba(251,191,36,.12);
    --space-section: 3rem;
    --space-card: 1.25rem;
    --space-gap: 1rem;
    --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 800;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: radial-gradient(circle at 50% 0%, #1a1230 0%, #0f0f1a 55%, #090912 100%); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); color: #f5f0ff; text-shadow: 0 2px 18px rgba(124,58,237,.35); }
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: linear-gradient(160deg, rgba(124,58,237,.14) 0%, rgba(15,15,26,.9) 60%, rgba(251,191,36,.06) 100%); border: 1px solid rgba(124,58,237,.28); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); box-shadow: 0 4px 14px rgba(251,191,36,.18); }
a:not([class]) { color: var(--color-accent); transition: var(--transition); }

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

/* news: featured-left */
/* 左大右小 (1大+2小) */
                .news-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: var(--space-gap); }
                .news-grid > *:first-child { grid-row: span 2; }

/* features: grid-2 */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--space-gap) * 1.5); }

/* hero: left-aligned */
.hero-content { text-align: left; max-width: 600px; }

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

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(251,191,36,.55); }
a:not([class]):hover { color: #fde68a; text-shadow: 0 0 12px rgba(251,191,36,.6); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 45%, #b45309 100%); box-shadow: inset 0 -1px 0 rgba(251,191,36,.35), 0 22px 60px rgba(76,29,149,.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; }
}