/* CSSVariantEngine v3.0 — 365wanmeitiyu.com.cn */
/* Palette: bold pop | Radius: sharp | Shadow: hard offset */
/* Spacing: medium gap | Transition: snappy */
/* Section layouts: {"news":"list-view","features":"horizontal","hero":"centered","testimonials":"stacked","partners":"centered","faq":"single-column","stats":"inline","cta":"full-bg"} */

:root {
    --color-primary: #e63946;
    --color-primary-dark: #d00000;
    --color-accent: #ffb703;
    --color-surface: #f1faee;
    --color-text: #1d3557;
    --rgb-primary: 230, 57, 70;
    --rgb-accent: 255, 183, 3;
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --radius-xl: 4px;
    --shadow-sm: 2px 2px 0px rgba(29, 53, 87, 0.9);
    --shadow-md: 4px 4px 0px rgba(29, 53, 87, 0.9);
    --shadow-lg: 6px 6px 0px rgba(29, 53, 87, 0.9);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.75rem;
    --transition: 0.15s ease-out;
    --heading-weight: 800;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
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); text-shadow: 1px 1px 0px rgba(255, 183, 3, 0.3); }
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; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); border: 3px solid var(--color-primary-dark); background-color: var(--color-primary); color: white; box-shadow: var(--shadow-sm); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-underline-offset: 3px; }

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

/* news: list-view */
/* 列表模式 (图左文右) */
                .news-grid { display: flex; flex-direction: column; gap: var(--space-gap); }
                .news-grid .card { display: grid; grid-template-columns: 280px 1fr; background: linear-gradient(90deg, #fff 0%, #fffdf7 100%); border-left: 6px solid var(--color-accent); }

/* 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; background: #fffbf0; border-top: 5px solid var(--color-accent); }

/* hero: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-content h1 { color: var(--color-primary-dark); text-shadow: 3px 3px 0px var(--color-accent); }

/* testimonials: stacked */
/* 垂直堆叠 */
                .testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }
                .testimonial-list .card { background: #fef7f7; border-right: 5px solid var(--color-primary); }

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.partner-grid > * { padding: 1.25rem; border: 3px solid #e2e8f0; background: white; box-shadow: 3px 3px 0px #e2e8f0; border-radius: var(--radius-sm); }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list .card { background: #f0f7ff; border-bottom: 5px solid #457b9d; }

/* stats: inline */
/* 水平排列 */
                .stats-grid { display: flex; justify-content: center; gap: 3rem; }
                .stats-grid > div { padding: 1.5rem 2rem; background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: white; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }

/* cta: full-bg */
.cta-section { background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%); color: #fff; padding: 4rem 2rem; border-top: 6px solid var(--color-accent); border-bottom: 6px solid var(--color-accent); }

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

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); }
.card { border: 3px solid var(--color-primary-dark); }
.card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px rgba(29, 53, 87, 0.9); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-md); }

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