/* CSSVariantEngine v3.0 — leisu-sports.net.cn */
/* Palette: violet-magenta | Radius: medium rounded | Shadow: glow-accent */
/* Spacing: medium airy | Transition: smooth ease */
/* Section layouts: {"news":"list-view","features":"horizontal","hero":"centered","testimonials":"grid-3","partners":"scroll","faq":"two-column","stats":"grid-3","cta":"centered"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #5b21b6;
    --color-accent: #a855f7;
    --color-surface: #f8fafc;
    --color-text: #1e1b4b;
    --rgb-primary: 124, 58, 237;
    --rgb-accent: 168, 85, 247;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 16px;
    --shadow-sm: 0 0 12px rgba(var(--rgb-accent), 0.2), 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 0 24px rgba(var(--rgb-accent), 0.3), 0 4px 12px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 0 32px rgba(var(--rgb-accent), 0.5), 0 8px 20px rgba(0, 0, 0, 0.1);
    --space-section: 2.25rem;
    --space-card: 1.1rem;
    --space-gap: 1.25rem;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 600;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: var(--color-surface); }
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-sm); padding: var(--space-card); transition: var(--transition); background-color: #ffffff; border-left: 4px solid var(--color-accent); animation: softPulse 4s ease-in-out infinite; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-primary); color: white; box-shadow: 0 0 16px rgba(var(--rgb-primary), 0.3); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: list-view */
/* 列表模式 (图左文右) */
                .news-grid { display: flex; flex-direction: column; gap: var(--space-gap); }
                .news-grid .card { display: grid; grid-template-columns: 280px 1fr; }

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

/* testimonials: grid-3 */
.testimonial-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }

/* partners: scroll */
/* 自动滚动 */
                .partner-grid { display: flex; gap: 2rem; overflow: hidden; animation: partnerScroll 28s linear infinite; }
                @keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
                @keyframes softPulse { 0%, 100% { box-shadow: 0 0 12px rgba(var(--rgb-accent), 0.2), 0 2px 6px rgba(0, 0, 0, 0.05); } 50% { box-shadow: 0 0 20px rgba(var(--rgb-accent), 0.4), 0 3px 9px rgba(0, 0, 0, 0.06); } }

/* faq: two-column */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-gap); }

/* 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: wide */
/* 超宽 */
            .page-main { max-width: 1400px; margin: 0 auto; }

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-left-color: var(--color-primary); animation: none; }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #7c3aed, #c026d3); }

/* 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: 1rem; }
    .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; }
}