/* CSSVariantEngine v3.0 — SinaSports.cn */
/* Palette: violet-cyan gradient | Radius: asymmetric | Shadow: multi-layer gradient */
/* Spacing: mixed tight-loose | Transition: smooth 0.5s cubic */
/* Section layouts: {"news":"featured-top","features":"grid-4","hero":"minimal","testimonials":"masonry","partners":"centered","faq":"with-sidebar","stats":"big-number","cta":"centered"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #4f46e5;
    --color-accent: #22d3ee;
    --color-surface: #0f172a;
    --color-text: #f1f5f9;
    --rgb-primary: 124, 58, 237;
    --rgb-accent: 34, 211, 238;
    --radius-sm: 4px 12px;
    --radius-md: 16px 32px 8px 20px;
    --radius-lg: 24px 6px 36px 12px;
    --radius-xl: 12px 48px 20px 32px;
    --shadow-sm: 0 2px 5px rgba(124, 58, 237, 0.2), 0 1px 3px rgba(34, 211, 238, 0.1);
    --shadow-md: 0 8px 18px rgba(79, 70, 229, 0.3), 0 4px 12px rgba(34, 211, 238, 0.15);
    --shadow-lg: 0 12px 30px rgba(79, 70, 229, 0.35), 0 20px 45px rgba(124, 58, 237, 0.2), 0 8px 18px rgba(16, 185, 129, 0.1);
    --space-section: 5.2rem;
    --space-card: 2.1rem;
    --space-gap: 1.6rem;
    --transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --heading-weight: 600;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { 
    color: var(--color-text); 
    line-height: var(--body-line-height);
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
section, .section { 
    padding-top: var(--space-section); 
    padding-bottom: var(--space-section);
    background: linear-gradient(90deg, rgba(124,58,237,0.05) 0%, rgba(34,211,238,0.05) 100%);
}
.card, [class*="card"] { 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md); 
    padding: var(--space-card); 
    transition: var(--transition);
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #7c3aed, #22d3ee, #10b981, #f59e0b) 1;
    background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(34,211,238,0.1) 100%);
}
.btn, button[class*="btn"], a[class*="btn"] { 
    border-radius: var(--radius-md); 
    transition: var(--transition);
    background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 50%, #22d3ee 100%);
    border: 2px solid transparent;
    border-image: linear-gradient(90deg, #22d3ee, #7c3aed) 1;
    color: #ffffff;
}
a:not([class]) { 
    color: var(--color-accent); 
    transition: var(--transition);
    text-shadow: 0 0 6px rgba(34, 211, 238, 0.4);
}

/* ========== 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; 
    background: linear-gradient(120deg, rgba(124,58,237,0.2) 0%, rgba(16,185,129,0.2) 100%);
}

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

/* hero: minimal */
.hero { padding: 2rem 0; } .hero-content { max-width: 560px; }

/* 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: with-sidebar */
/* FAQ 左 + 联系信息右 */
.faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

/* stats: big-number */
/* 大数字居中 */
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.stats-grid .stat-value { font-size: 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; }

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { 
    background: linear-gradient(75deg, #7c3aed 0%, #4f46e5 25%, #8b5cf6 50%, #22d3ee 75%, #10b981 100%);
}

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