/* CSSVariantEngine v3.0 — mobile4-app-mksports.com.cn */
/* Palette: violet-cyan | Radius: medium-glow | Shadow: luminous */
/* Spacing: cozy | Transition: smooth */
/* Section layouts: {"news":"grid-4","features":"horizontal","hero":"left-aligned","testimonials":"carousel","partners":"grid-4","faq":"with-sidebar","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #5b21b6;
    --color-primary-dark: #2e1065;
    --color-accent: #22d3ee;
    --color-surface: #ecfeff;
    --color-text: #1e0a3c;
    --rgb-primary: 91,33,182;
    --rgb-accent: 34,211,238;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 16px;
    --shadow-sm: 0 0 12px rgba(var(--rgb-accent), 0.15);
    --shadow-md: 0 0 24px rgba(var(--rgb-accent), 0.4);
    --shadow-lg: 0 0 32px rgba(var(--rgb-accent), 0.6), 0 0 60px rgba(var(--rgb-accent), 0.25);
    --space-section: 2.25rem;
    --space-card: 1.125rem;
    --space-gap: 0.875rem;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: var(--color-surface); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); text-shadow: 0 0 24px rgba(var(--rgb-accent), 0.12); }
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); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); box-shadow: var(--shadow-sm); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: grid-4 */
/* 四列紧凑网格 */
                .news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 0.8); }

/* 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: left-aligned */
.hero-content { text-align: left; max-width: 600px; }

/* testimonials: carousel */
/* 单条轮播 */
                .testimonial-list { display: flex; overflow: hidden; } 
                .testimonial-list > * { flex: 0 0 100%; }

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

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, var(--color-primary) 0%, rgba(var(--rgb-accent), 0.28) 50%, var(--color-primary-dark) 100%); animation: glow-pulse 6s ease-in-out infinite; }
.card { border: 1px solid rgba(var(--rgb-accent), 0.18); }
header, .header, .navbar { background: transparent; }

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(var(--rgb-accent), 0.2); }
    50% { box-shadow: 0 0 44px rgba(var(--rgb-accent), 0.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: 1.75rem; --space-card: 0.875rem; --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; }
}