/* CSSVariantEngine v3.0 — aisports-esports.com.cn */
/* Palette: sage+terracotta | Radius: rounded | Shadow: glow */
/* Spacing: tight | Transition: smooth */
/* Section layouts: {"news":"featured-top","features":"horizontal","hero":"overlay","testimonials":"masonry","partners":"grid-4","faq":"with-sidebar","stats":"grid-3","cta":"centered"} */

:root {
    --color-primary: #c47b5a;
    --color-primary-dark: #9e5c40;
    --color-accent: #87a878;
    --color-surface: #faf8f3;
    --color-text: #2d2d2d;
    --rgb-primary: 196,123,90;
    --rgb-accent: 135,168,120;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 16px;
    --shadow-sm: 0 2px 8px rgba(var(--rgb-accent), 0.12), 0 0 16px rgba(var(--rgb-accent), 0.15);
    --shadow-md: 0 4px 16px rgba(var(--rgb-accent), 0.16), 0 0 24px rgba(var(--rgb-accent), 0.25);
    --shadow-lg: 0 8px 24px rgba(var(--rgb-accent), 0.2), 0 0 32px rgba(var(--rgb-accent), 0.35);
    --space-section: 2.25rem;
    --space-card: 1.1rem;
    --space-gap: 0.8rem;
    --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 800;
    --body-line-height: 1.75;
    accent-color: var(--color-accent);
    caret-color: var(--color-primary);
}

/* 基础覆盖 */
body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background-color: var(--color-surface);
    background-image: radial-gradient(circle at 50% 0%, rgba(var(--rgb-accent), 0.05), transparent 65%);
}
h1, h2, h3, h4 {
    font-weight: var(--heading-weight);
    text-shadow: 0 2px 16px rgba(var(--rgb-accent), 0.15);
}
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);
    animation: glowPulse 5s ease-in-out infinite;
}
.card:hover, [class*="card"]:hover {
    animation: glowHover 2s ease-in-out infinite;
}
.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: var(--transition);
    animation: glowPulse 3.5s ease-in-out infinite;
}
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover {
    animation: glowHover 1.5s ease-in-out infinite;
}
a:not([class]) {
    color: var(--color-primary);
    transition: var(--transition);
}
a:not([class]):hover {
    color: var(--color-primary-dark);
    text-shadow: 0 0 12px rgba(var(--rgb-accent), 0.45);
}

/* ========== 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: grid-4 */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--space-gap) * 1.5);
    align-items: center;
}

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
.faq-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.25rem;
}

/* stats: grid-3 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-gap);
    text-align: center;
}

/* 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 {
    border: 1px solid rgba(var(--rgb-accent), 0.18);
}
header, .header, .navbar {
    background: transparent;
}

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

/* Glow keyframes */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(var(--rgb-accent), 0.16), 0 0 24px rgba(var(--rgb-accent), 0.25); }
    50% { box-shadow: 0 8px 24px rgba(var(--rgb-accent), 0.2), 0 0 32px rgba(var(--rgb-accent), 0.35); }
}
@keyframes glowHover {
    0%, 100% { box-shadow: 0 0 32px rgba(var(--rgb-accent), 0.45), 0 0 48px rgba(var(--rgb-accent), 0.2); }
    50% { box-shadow: 0 0 40px rgba(var(--rgb-accent), 0.55), 0 0 56px rgba(var(--rgb-accent), 0.25); }
}