/* CSSVariantEngine v3.0 — home-intl-bandaosports.com.cn */
/* Palette: ember-strips | Radius: soft-rounded | Shadow: glow */
/* Spacing: comfortable | Transition: smooth */
/* Section layouts: {"news":"featured-left","features":"horizontal","hero":"centered","testimonials":"grid-3","partners":"grid-6","faq":"with-sidebar","stats":"inline","cta":"card-style"} */

:root {
    --color-primary: #c2410c;
    --color-primary-dark: #7c2d12;
    --color-accent: #f59e0b;
    --color-surface: #fffbeb;
    --color-text: #292524;
    --color-dark: #1c1917;
    --color-light: #fafaf9;
    --rgb-primary: 194,65,12;
    --rgb-accent: 245,158,11;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --radius-xl: 28px;
    --shadow-sm: 0 0 12px rgba(var(--rgb-accent), .15), 0 2px 6px rgba(120,53,15,.08);
    --shadow-md: 0 0 20px rgba(var(--rgb-accent), .22), 0 4px 16px rgba(120,53,15,.1);
    --shadow-lg: 0 0 28px rgba(var(--rgb-accent), .32), 0 8px 28px rgba(120,53,15,.14);
    --shadow-glow: 0 0 24px rgba(var(--rgb-accent), .4), 0 0 64px rgba(var(--rgb-accent), .12);
    --shadow-glow-hover: 0 0 32px rgba(var(--rgb-accent), .6), 0 0 72px rgba(var(--rgb-accent), .22);
    --space-section: 4.5rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 800;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: var(--color-light); caret-color: var(--color-accent); accent-color: var(--color-accent); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); background: var(--color-light); }

/* Horizontal-strip section rhythm */
section:nth-of-type(4n+2), .section:nth-of-type(4n+2) { background: var(--color-surface); }
section:nth-of-type(4n+3), .section:nth-of-type(4n+3) { background: linear-gradient(160deg, var(--color-dark), var(--color-primary-dark)); color: var(--color-light); }
section:nth-of-type(4n+3) h1,
section:nth-of-type(4n+3) h2,
section:nth-of-type(4n+3) h3,
section:nth-of-type(4n+3) h4,
section:nth-of-type(4n+3) a:not([class]) { color: #fbbf24; }

.card, [class*="card"] { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-card); transition: var(--transition); background: var(--color-surface); color: var(--color-text); animation: card-pulse 5s ease-in-out infinite; }
.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: 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: 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: grid-6 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-gap); 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: card-style */
.cta-inner { background: linear-gradient(135deg, var(--color-dark), var(--color-primary-dark)); border-radius: var(--radius-xl); padding: 3rem; text-align: center; color: var(--color-light); box-shadow: var(--shadow-glow); animation: glow-pulse 3.5s ease-in-out infinite; }

/* Page Layout: wide */
/* 超宽 */
.page-main { max-width: 1400px; margin: 0 auto; }

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); }
.card { border: 1px solid rgba(var(--rgb-accent), .2); }
header, .header, .navbar { box-shadow: 0 2px 16px rgba(194,65,12,.12), 0 0 24px rgba(245,158,11,.08); }

/* Glow hover states */
.card:hover, [class*="card"]:hover { box-shadow: var(--shadow-glow-hover); animation: none; }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { box-shadow: var(--shadow-glow-hover); }

/* Glow pulse keyframes */
@keyframes glow-pulse {
    0%, 100% { box-shadow: var(--shadow-glow); }
    50% { box-shadow: 0 0 30px rgba(var(--rgb-accent), .5), 0 0 80px rgba(var(--rgb-accent), .2); }
}
@keyframes card-pulse {
    0%, 100% { box-shadow: var(--shadow-md); }
    50% { box-shadow: 0 0 20px rgba(var(--rgb-accent), .3), 0 5px 18px rgba(120,53,15,.12); }
}

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