/* CSSVariantEngine v3.0 — go-jiangnantiyu-qq.com.cn */
/* Palette: editorial-magazine | Radius: medium rounded | Shadow: glow-accent */
/* Spacing: generous | Transition: smooth-glow */
/* Section layouts: {"news":"featured-top","features":"centered","hero":"left-aligned","testimonials":"carousel","partners":"grid-6","faq":"single-column","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #1a1a1a;
    --color-primary-dark: #000000;
    --color-accent: #c44536;
    --color-surface: #f5f1e8;
    --color-text: #1a1a1a;
    --rgb-primary: 26, 26, 26;
    --rgb-accent: 196, 69, 54;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow-sm: 0 0 12px rgba(var(--rgb-accent), 0.2);
    --shadow-md: 0 0 24px rgba(var(--rgb-accent), 0.4);
    --shadow-lg: 0 0 32px rgba(var(--rgb-accent), 0.5);
    --space-section: 4.5rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 0.7s ease-in-out;
    --heading-weight: 700;
    --body-line-height: 1.75;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 20px rgba(var(--rgb-accent), 0.35); }
    50% { box-shadow: 0 0 28px rgba(var(--rgb-accent), 0.5); }
    100% { box-shadow: 0 0 20px rgba(var(--rgb-accent), 0.35); }
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: var(--color-surface); }
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-md); padding: var(--space-card); transition: var(--transition); border: 1px solid rgba(var(--rgb-accent), 0.12); background-color: #fffdf9; }
.card:hover { box-shadow: 0 0 32px rgba(var(--rgb-accent), 0.6); animation: pulse-glow 2s infinite ease-in-out; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-accent); color: #ffffff; border: none; }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { box-shadow: 0 0 32px rgba(var(--rgb-accent), 0.65); }
a:not([class]) { color: var(--color-accent); transition: var(--transition); }
a:not([class]):hover { text-shadow: 0 0 8px rgba(var(--rgb-accent), 0.5); }

/* ========== 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: centered */
/* 居中大卡片 */
.feature-list { display: flex; flex-direction: column; align-items: center; gap: calc(var(--space-gap) * 2); max-width: 720px; margin: 0 auto; }

/* 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: grid-6 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-gap); align-items: center; }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

/* 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: full-width */
/* 无侧边栏, 全宽 */
.page-main { max-width: 1320px; margin: 0 auto; }

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #1a1a1a, #2b2b2b); color: #f5f1e8; box-shadow: inset 0 0 80px rgba(var(--rgb-accent), 0.15); }
header, .header, .navbar { box-shadow: 0 0 16px rgba(var(--rgb-accent), 0.15); background-color: rgba(245, 241, 232, 0.95); 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: 2.5rem; --space-card: 1.1rem; --space-gap: 0.9rem; }
    .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; }
}