/* CSSVariantEngine v3.1 — asymmetric-blocks / flat-solid */
/* Palette: blueprint-amber | Radius: compact | Shadow: none */
/* Spacing: relaxed | Transition: crisp */
/* Section layouts: {"news":"grid-4","features":"grid-4","hero":"centered","testimonials":"grid-3","partners":"scroll","faq":"single-column","stats":"inline","cta":"card-style"} */

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-accent: #f59e0b;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --rgb-primary: 37,99,235;
    --rgb-accent: 245,158,11;
    --radius-sm: 0;
    --radius-md: 3px;
    --radius-lg: 5px;
    --radius-xl: 6px;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --space-section: 2.25rem;
    --space-card: 1.125rem;
    --space-gap: 0.875rem;
    --transition: 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
    --heading-weight: 800;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { background-color: #e2e8f0; color: var(--color-text); line-height: var(--body-line-height); }
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: none; background: var(--color-surface); outline: 2px solid #cbd5e1; padding: var(--space-card); transition: var(--transition); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); box-shadow: none; background: var(--color-primary); color: #ffffff; outline: 2px solid var(--color-primary-dark); transition: var(--transition); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: grid-4 — blue block */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 0.8); background: #dbeafe; outline: 3px solid #2563eb; box-shadow: none; }

/* features: grid-4 — amber block */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); background: #fef3c7; outline: 3px solid #d97706; box-shadow: none; }

/* hero: centered — white block */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; background: #ffffff; outline: 3px solid #0f172a; box-shadow: none; }

/* testimonials: grid-3 — red block */
.testimonial-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); background: #fee2e2; outline: 3px solid #dc2626; box-shadow: none; }

/* partners: scroll — violet block */
/* 自动滚动 */
.partner-grid { display: flex; gap: 2rem; overflow: hidden; background: #ede9fe; outline: 3px solid #7c3aed; box-shadow: none; animation: partnerScroll 24s linear infinite; }
@keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* faq: single-column — orange block */
.faq-list { max-width: 800px; margin: 0 auto; background: #fff7ed; outline: 3px solid #ea580c; box-shadow: none; }

/* stats: inline — pink block */
/* 水平排列 */
.stats-grid { display: flex; justify-content: center; gap: 3rem; background: #fce7f3; outline: 3px solid #db2777; box-shadow: none; }

/* cta: card-style — dark navy block */
.cta-inner { background: #0f172a; color: #ffffff; border-radius: var(--radius-xl); padding: 3rem; text-align: center; outline: 3px solid #f59e0b; box-shadow: none; }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: none; outline-color: var(--color-primary); }

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