/* CSSVariantEngine v3.0 — aibangtvty.com */
/* Palette: editorial-ink | Radius: soft-editorial | Shadow: layered-warm */
/* Spacing: comfortable | Transition: smooth */
/* Section layouts: {"news":"featured-top","features":"horizontal","hero":"overlay","testimonials":"grid-3","partners":"grid-4","faq":"two-column","stats":"big-number","cta":"full-bg"} */

:root {
    --color-primary: #c44536;
    --color-primary-dark: #8c2f24;
    --color-accent: #6b705c;
    --color-surface: #f5f1e8;
    --color-text: #1a1a1a;
    --rgb-primary: 196,69,54;
    --rgb-accent: 107,112,92;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 10px;
    --shadow-sm: 0 1px 2px rgba(26,26,26,.06), 0 0 0 1px rgba(196,69,54,.04);
    --shadow-md: 0 6px 18px -6px rgba(26,26,26,.14), 0 2px 6px rgba(196,69,54,.06), inset 0 0 0 1px rgba(245,241,232,.6);
    --shadow-lg: 0 22px 40px -18px rgba(26,26,26,.22), 0 8px 20px -8px rgba(196,69,54,.14), inset 0 0 0 1px rgba(245,241,232,.5);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    --heading-weight: 700;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background:
        radial-gradient(1200px 600px at 12% -8%, rgba(196,69,54,.06), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(107,112,92,.07), transparent 55%),
        linear-gradient(180deg, #faf7f0 0%, #f5f1e8 45%, #efe9dc 100%);
}
h1, h2, h3, h4 {
    font-weight: var(--heading-weight);
    color: #14110d;
    text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
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(160deg, #fffdf8 0%, #f7f2e6 55%, #f1ead9 100%);
    border: 1px solid rgba(196,69,54,.10);
    border-image: linear-gradient(140deg, rgba(196,69,54,.35), rgba(107,112,92,.25), rgba(245,241,232,.05)) 1;
}
.card:hover, [class*="card"]:hover {
    box-shadow: var(--shadow-lg);
    background: linear-gradient(160deg, #fffef9 0%, #f9f4e8 50%, #f2ecdb 100%);
}
.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: linear-gradient(180deg, #d5523f 0%, #c44536 50%, #a83a2c 100%);
    color: #fdf8ef;
    border: 1px solid rgba(140,47,36,.55);
    box-shadow: 0 4px 12px -4px rgba(196,69,54,.45), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover {
    background: linear-gradient(180deg, #e0654f 0%, #c44536 45%, #8c2f24 100%);
    box-shadow: 0 10px 24px -8px rgba(196,69,54,.55), inset 0 1px 0 rgba(255,255,255,.28);
}
a:not([class]) {
    color: var(--color-primary);
    transition: var(--transition);
    text-decoration-color: rgba(196,69,54,.35);
    text-underline-offset: 3px;
}
a:not([class]):hover { color: var(--color-accent); }

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

/* 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: overlay */
/* 全屏背景+文字覆盖 */
                .hero {
                    position: relative;
                    min-height: 70vh;
                    display: flex;
                    align-items: center;
                    background:
                        radial-gradient(900px 500px at 15% 20%, rgba(196,69,54,.35), transparent 60%),
                        linear-gradient(135deg, #2a2620 0%, #1a1a1a 45%, #3a2e26 100%);
                    color: #f5f1e8;
                }
                .hero-content { position: relative; z-index: 1; }

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

/* partners: grid-4 */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 1.5); align-items: center; }

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

/* stats: big-number */
/* 大数字居中 */
                .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .stats-grid .stat-value {
                    font-size: 3rem;
                    background: linear-gradient(180deg, #c44536 0%, #8c2f24 100%);
                    -webkit-background-clip: text;
                    background-clip: text;
                    color: transparent;
                    text-shadow: 0 1px 0 rgba(245,241,232,.4);
                }

/* cta: full-bg */
.cta-section {
    background:
        radial-gradient(700px 360px at 20% 10%, rgba(196,69,54,.35), transparent 60%),
        linear-gradient(135deg, #2a2620 0%, #1a1a1a 55%, #3b2b23 100%);
    color: #f5f1e8;
    padding: 4rem 2rem;
    box-shadow: inset 0 0 0 1px rgba(245,241,232,.06);
}

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

/* 条件性装饰 */
header, .header, .navbar {
    background:
        linear-gradient(180deg, rgba(245,241,232,.92) 0%, rgba(245,241,232,.55) 100%);
    backdrop-filter: blur(6px) saturate(1.05);
    border-bottom: 1px solid rgba(196,69,54,.14);
}

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