/* CSSVariantEngine v3.0 — star-sports-zhcn9.com.cn */
/* Palette: terracotta-sage | Radius: soft-sharp | Shadow: layered-glow */
/* Spacing: comfortable | Transition: smooth-long */
/* Section layouts: {"news":"featured-left","features":"horizontal","hero":"left-aligned","testimonials":"carousel","partners":"centered","faq":"with-sidebar","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #c47b5a;
    --color-primary-dark: #9c5a3d;
    --color-accent: #87a878;
    --color-surface: #faf8f3;
    --color-text: #2d2d2d;
    --rgb-primary: 196,123,90;
    --rgb-accent: 135,168,120;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 10px;
    --radius-xl: 14px;
    --shadow-sm: 0 1px 2px rgba(45,45,45,.06), 0 0 0 1px rgba(196,123,90,.05);
    --shadow-md: 0 6px 16px -8px rgba(196,123,90,.22), 0 2px 6px -3px rgba(45,45,45,.09);
    --shadow-lg: 0 22px 40px -20px rgba(196,123,90,.32), 0 10px 22px -12px rgba(45,45,45,.14), 0 0 0 1px rgba(135,168,120,.10);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    --heading-weight: 700;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background: linear-gradient(180deg, #faf8f3 0%, #f6f0e7 42%, #f3ece1 68%, #faf8f3 100%);
    caret-color: #c47b5a;
    accent-color: #87a878;
}
h1, h2, h3, h4 { font-weight: var(--heading-weight); color: #2d2d2d; }
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(140deg, #ffffff 0%, #faf8f3 45%, #f4ede3 78%, #f8f3ec 100%); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(135deg, #c47b5a 0%, #b47051 50%, #9c5a3d 100%); color: #faf8f3; border-color: transparent; }
a:not([class]) { color: var(--color-primary); 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: 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: 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: 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);
    background: linear-gradient(140deg, #ffffff 0%, #fbf6ef 38%, #f0e6d8 72%, #ecdfd0 100%);
}
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #c47b5a 0%, #b26a4c 34%, #9c5a3d 68%, #7d452e 100%); }
.card { border-left: 3px solid var(--color-primary); }
header, .header, .navbar { box-shadow: 0 4px 18px -10px rgba(196,123,90,.30), 0 1px 3px rgba(45,45,45,.07), 0 0 0 1px rgba(135,168,120,.08); }

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