/* CSSVariantEngine v3.0 — zh-hulilive-qq.com.cn */
/* Palette: warm-terracotta | Radius: soft-medium | Shadow: glow-accent */
/* Spacing: airy-vertical | Transition: smooth-glow */
/* Section layouts: {"news":"masonry-2","features":"centered","hero":"overlay","testimonials":"masonry","partners":"scroll","faq":"single-column","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #c47b5a;
    --color-primary-dark: #9c5a3c;
    --color-accent: #d99472;
    --color-surface: #faf8f3;
    --color-text: #2d2d2d;
    --rgb-primary: 196, 123, 90;
    --rgb-accent: 217, 148, 114;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 0 8px rgba(var(--rgb-primary), 0.15), 0 1px 2px rgba(45,45,45,.05);
    --shadow-md: 0 0 24px rgba(var(--rgb-primary), 0.35), 0 2px 6px rgba(45,45,45,.07);
    --shadow-lg: 0 0 32px rgba(var(--rgb-primary), 0.5), 0 4px 12px rgba(45,45,45,.1);
    --space-section: 4.5rem;
    --space-card: 1.6rem;
    --space-gap: 2rem;
    --transition: 0.4s ease-out;
    --heading-weight: 700;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
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); background-color: #ffffff; }
.card:hover { box-shadow: 0 0 32px rgba(var(--rgb-primary), 0.6), 0 6px 16px rgba(45,45,45,.12); transform: translateY(-2px); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-primary); color: white; border: none; }
.btn:hover { box-shadow: 0 0 28px rgba(var(--rgb-primary), 0.5); background-color: var(--color-primary-dark); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

/* ========== Section Layout Variants ========== */

/* news: masonry-2 */
/* 两列瀑布流 */
.news-grid { column-count: 2; column-gap: var(--space-gap); }
.news-grid .card { break-inside: avoid; margin-bottom: var(--space-gap); }

/* 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: overlay */
/* 全屏背景+文字覆盖 */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250,248,243,0.7) 0%, rgba(250,248,243,0.9) 100%); z-index: 0; }
.hero-content { position: relative; z-index: 1; }

/* testimonials: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); }
.testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); }

/* partners: scroll */
/* 自动滚动 */
.partner-grid { display: flex; gap: 2rem; overflow: hidden; animation: partnerScroll 28s linear infinite; }
@keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 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; padding: 3rem 2rem; border-radius: var(--radius-xl); background-color: #fff; box-shadow: var(--shadow-lg); }

/* Page Layout: narrow-centered */
/* 窄版居中 */
.page-main { max-width: 760px; margin: 0 auto; }

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 0 8px rgba(var(--rgb-primary), 0.3); }
.card { border: 1px solid rgba(var(--rgb-primary), .12); }
header, .header, .navbar { background: rgba(250, 248, 243, 0.85); backdrop-filter: blur(8px); }

/* Subtle pulsing glow animation */
@keyframes softGlowPulse {
    0%, 100% { box-shadow: var(--shadow-md); }
    50% { box-shadow: 0 0 28px rgba(var(--rgb-primary), 0.45), 0 2px 6px rgba(45,45,45,.07); }
}
.card { animation: softGlowPulse 6s ease-in-out infinite; }

/* 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: 1rem; }
    .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; }
}