/* CSSVariantEngine v3.0 — go-waliqipai.com.cn */
/* Palette: bold retro | Radius: soft-rounded | Shadow: multi-layer soft */
/* Spacing: asymmetric | Transition: smooth ease */
/* Section layouts: {"news":"list-view","features":"grid-3","hero":"left-aligned","testimonials":"stacked","partners":"scroll","faq":"two-column","stats":"grid-4","cta":"centered"} */

:root {
    --color-primary: #ef233c;
    --color-primary-dark: #d00000;
    --color-accent: #ffbe0b;
    --color-surface: #fefae0;
    --color-text: #1d3557;
    --rgb-primary: 239, 35, 60;
    --rgb-accent: 255, 190, 11;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 22px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 6px rgba(29, 53, 87, 0.06);
    --shadow-md: 0 4px 8px rgba(29, 53, 87, 0.05), 0 20px 40px -10px rgba(29, 53, 87, 0.12);
    --shadow-lg: 0 6px 12px rgba(239, 35, 60, 0.07), 0 26px 50px -12px rgba(239, 35, 60, 0.15);
    --space-section: 4.2rem;
    --space-card: 1.6rem;
    --space-gap: 1.4rem;
    --transition: 0.4s ease-in-out;
    --heading-weight: 600;
    --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); }
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; border: 2px solid rgba(255, 190, 11, 0.2); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-primary); color: white; border: 2px solid var(--color-primary-dark); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* features: grid-3 */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }

/* hero: left-aligned */
.hero-content { text-align: left; max-width: 600px; }
.hero-inner { background: linear-gradient(135deg, #fff3b0 0%, #ffddd2 100%); padding: 3rem; border-radius: var(--radius-xl); }

/* testimonials: stacked */
/* 垂直堆叠 */
                .testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }
                .testimonial-list .card { background-color: #e9f5db; border-color: rgba(239, 35, 60, 0.2); }

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

/* faq: two-column */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-gap); }
.faq-list .card { background-color: #f0efeb; border-color: rgba(29, 53, 87, 0.2); }

/* stats: grid-4 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); text-align: center; }
.stats-grid .card { background-color: #f8edeb; border-color: rgba(255, 190, 11, 0.3); }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: white; padding: 3rem; border-radius: var(--radius-xl); }

/* Page Layout: full-width */
/* 无侧边栏, 全宽 */
            .page-main { max-width: 1200px; margin: 0 auto; }

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); }
header, .header, .navbar { box-shadow: 0 3px 10px rgba(239, 35, 60, 0.08), 0 10px 30px -10px rgba(239, 35, 60, 0.1); background-color: white; border-bottom: 2px solid rgba(255, 190, 11, 0.3); }

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