/* CSSVariantEngine v3.0 — go-lanjingtv.com.cn */
/* Palette: editorial-cream | Radius: medium-glow | Shadow: accent-glow */
/* Spacing: spacious | Transition: smooth-glow */
/* Section layouts: {"news":"featured-top","features":"horizontal","hero":"centered","testimonials":"carousel","partners":"grid-4","faq":"single-column","stats":"grid-4","cta":"split"} */

@keyframes subtleGlowPulse {
    0%, 100% { box-shadow: 0 0 24px rgba(var(--rgb-primary), 0.35); }
    50% { box-shadow: 0 0 32px rgba(var(--rgb-primary), 0.55); }
}

:root {
    --color-primary: #c44536;
    --color-primary-dark: #8b2a20;
    --color-accent: #6b705c;
    --color-surface: #f5f1e8;
    --color-text: #1a1a1a;
    --rgb-primary: 196, 69, 54;
    --rgb-accent: 107, 112, 92;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 16px;
    --shadow-sm: 0 2px 12px rgba(var(--rgb-accent), 0.12);
    --shadow-md: 0 0 24px rgba(var(--rgb-primary), 0.35);
    --shadow-lg: 0 0 32px rgba(var(--rgb-primary), 0.5), 0 8px 24px rgba(var(--color-text), 0.08);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;
    --transition: 0.5s cubic-bezier(0.25, 0.4, 0.25, 1);
    --heading-weight: 600;
    --body-line-height: 1.6;
    accent-color: var(--color-primary);
    caret-color: var(--color-primary);
}

/* 基础覆盖 */
body { 
    color: var(--color-text); 
    background-color: var(--color-surface);
    line-height: var(--body-line-height); 
}
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.card, [class*="card"] { 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-sm); 
    padding: var(--space-card); 
    transition: var(--transition); 
    background-color: #ffffff;
}
.btn, button[class*="btn"], a[class*="btn"] { 
    border-radius: var(--radius-md); 
    transition: var(--transition); 
    background-color: var(--color-primary);
    color: #ffffff;
}
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

/* ========== 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: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }

/* 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: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

/* stats: grid-4 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); text-align: center; }

/* cta: split */
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-lg); 
    animation: subtleGlowPulse 2s ease-in-out infinite;
}
.card { border: 1px solid rgba(var(--rgb-primary), .15); }
header, .header, .navbar { 
    box-shadow: 0 0 16px rgba(var(--rgb-accent), 0.2); 
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

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