/* CSSVariantEngine v3.0 — entry-9you-portal.com.cn */
/* Palette: editorial-cream | Radius: rounded | Shadow: glow */
/* Spacing: airy | Transition: smooth */
/* Section layouts: {"news":"featured-top","features":"horizontal","hero":"centered","testimonials":"masonry","partners":"centered","faq":"single-column","stats":"grid-3","cta":"full-bg"} */

:root {
    --color-primary: #c44536;
    --color-primary-dark: #7a2d24;
    --color-accent: #d4695c;
    --color-surface: #f5f1e8;
    --color-text: #1a1a1a;
    --rgb-primary: 196,69,54;
    --rgb-accent: 212,105,92;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 4px rgba(26, 26, 26, 0.06), 0 0 14px rgba(212, 105, 92, 0.15);
    --shadow-md: 0 6px 22px rgba(26, 26, 26, 0.08), 0 0 24px rgba(212, 105, 92, 0.25);
    --shadow-lg: 0 14px 36px rgba(26, 26, 26, 0.14), 0 0 32px rgba(212, 105, 92, 0.42);
    --space-section: 5.5rem;
    --space-card: 2.25rem;
    --space-gap: 1.75rem;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: 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: #fdfaf3; }
.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-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: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); }
.testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); }

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.25rem; }

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

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

/* cta: full-bg */
.cta-section { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fdfcf8; padding: 4.25rem 2.25rem; box-shadow: 0 0 32px rgba(212, 105, 92, 0.3); }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
a:not([class]):hover { color: var(--color-accent); }
.hero, [class*="hero"], section:first-of-type { background: radial-gradient(circle at 18% 25%, rgba(212, 105, 92, 0.4), transparent 42%), linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 58%, #a63c2e 100%); animation: heroGlow 5s ease-in-out infinite; }
.card { border: 1px solid rgba(var(--rgb-accent), 0.14); }
header, .header, .navbar { background: transparent; }

@keyframes heroGlow {
    0%, 100% { box-shadow: 0 0 24px rgba(212, 105, 92, 0.35), 0 0 60px rgba(196, 69, 54, 0.15); }
    50% { box-shadow: 0 0 44px rgba(212, 105, 92, 0.55), 0 0 80px rgba(196, 69, 54, 0.25); }
}

/* 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: 1.85rem; --space-card: 0.9rem; --space-gap: 0.7rem; }
    .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; }
}