/* CSSVariantEngine v3.0 — mangguoqipai.org.cn */
/* Palette: editorial cream + ink + deep red | Radius: soft editorial | Shadow: layered warm */
/* Spacing: comfortable | Transition: slow editorial */
/* Section layouts: {"news":"grid-3","features":"horizontal","hero":"overlay","testimonials":"stacked","partners":"centered","faq":"with-sidebar","stats":"inline","cta":"full-bg"} */

:root {
    --color-primary: #c44536;
    --color-primary-dark: #8a2d21;
    --color-accent: #6b705c;
    --color-surface: #f5f1e8;
    --color-text: #1a1a1a;
    --rgb-primary: 196,69,54;
    --rgb-accent: 107,112,92;
    --radius-sm: 3px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 26px;
    --shadow-sm: 0 1px 2px rgba(26,26,26,.06), 0 2px 10px -4px rgba(196,69,54,.10);
    --shadow-md: 0 10px 28px -12px rgba(26,26,26,.20), 0 2px 6px rgba(107,112,92,.10), inset 0 1px 0 rgba(255,253,248,.75);
    --shadow-lg: 0 26px 54px -18px rgba(26,26,26,.28), 0 10px 22px -12px rgba(196,69,54,.18), inset 0 1px 0 rgba(255,253,248,.6);
    --space-section: 4.4rem;
    --space-card: 1.6rem;
    --space-gap: 1.35rem;
    --transition: 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    --heading-weight: 700;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: #f5f1e8; background-image: radial-gradient(circle at 10% -10%, #fffdf7 0%, #f7f3e9 38%, #f0e9da 72%, #e9e0cd 100%); }
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: #fffdf9; background-image: linear-gradient(165deg, #fffdf8 0%, #faf6ec 48%, #f1e9d8 100%); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); color: #fdfaf3; background-color: #c44536; background-image: linear-gradient(118deg, #c44536 0%, #a83428 46%, #6b705c 100%); box-shadow: 0 6px 18px -8px rgba(196,69,54,.55), inset 0 1px 0 rgba(255,255,255,.22); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-color: rgba(196,69,54,.45); }

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

/* news: grid-3 */
/* 三列等宽网格 */
                .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }

/* features: horizontal */
/* 水平滚动 */
                .feature-list { display: flex; gap: var(--space-gap); overflow-x: auto; scroll-snap-type: x mandatory; background-image: linear-gradient(90deg, rgba(107,112,92,.10) 0%, rgba(245,241,232,.35) 35%, rgba(196,69,54,.08) 100%); border-radius: var(--radius-lg); }
                .feature-list > * { flex: 0 0 300px; scroll-snap-align: start; }

/* hero: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; }
                .hero-content { position: relative; z-index: 1; }

/* testimonials: stacked */
/* 垂直堆叠 */
                .testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }

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

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

/* stats: inline */
/* 水平排列 */
                .stats-grid { display: flex; justify-content: center; gap: 3rem; }

/* cta: full-bg */
.cta-section { background-color: #c44536; background-image: linear-gradient(122deg, #c44536 0%, #a83428 40%, #6b705c 78%, #2c2a24 100%); color: #fdfaf3; padding: 4rem 2rem; box-shadow: inset 0 0 140px rgba(26,26,26,.22); }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero, [class*="hero"], section:first-of-type { background-color: #1a1a1a; background-image: radial-gradient(120% 130% at 12% 0%, #3a352c 0%, #1a1a1a 46%, #4a241d 78%, #c44536 125%), linear-gradient(135deg, #1a1a1a 0%, #6b705c 100%); color: #f7f2e6; }
header, .header, .navbar { box-shadow: 0 10px 30px -14px rgba(26,26,26,.30), 0 1px 0 rgba(196,69,54,.14); background-color: #fdfbf4; background-image: linear-gradient(180deg, rgba(255,253,248,.97) 0%, rgba(245,241,232,.90) 100%); }

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