/* CSSVariantEngine v3.0 — zh-wending.cn */
/* Palette: vivid magenta | Radius: minimal | Shadow: none */
/* Spacing: mixed tight-loose | Transition: snappy */
/* Section layouts: {"news":"masonry-2","features":"horizontal","hero":"minimal","testimonials":"stacked","partners":"scroll","faq":"single-column","stats":"grid-3","cta":"centered"} */

:root {
    --color-primary: #7209b7;
    --color-primary-dark: #3a0ca3;
    --color-accent: #f72585;
    --color-surface: #fefae0;
    --color-text: #121619;
    --rgb-primary: 114, 9, 183;
    --rgb-accent: 247, 37, 133;
    --radius-sm: 0;
    --radius-md: 2px;
    --radius-lg: 3px;
    --radius-xl: 5px;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --space-section: 4.7rem;
    --space-card: 1.9rem;
    --space-gap: 1.4rem;
    --transition: 0.15s ease-out;
    --heading-weight: 800;
    --body-line-height: 1.7;
}

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

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

/* news: masonry-2 */
/* 两列瀑布流 */
.news-grid { column-count: 2; column-gap: var(--space-gap); }
.news-grid .card { break-inside: avoid; margin-bottom: var(--space-gap); }

/* 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: #f0e6ff; border: 2px solid var(--color-primary); }

/* hero: minimal */
.hero { padding: 2rem 0; background: var(--color-primary-dark); color: #ffffff; } .hero-content { max-width: 560px; }

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

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

/* 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; }
.stats-grid > div { background: #fff0f6; border: 2px solid var(--color-accent); padding: 1.2rem; }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; background: var(--color-accent); color: #ffffff; padding: 2.5rem; border: 3px solid var(--color-primary-dark); border-radius: var(--radius-xl); }

/* Page Layout: narrow-centered */
/* 窄版居中 */
.page-main { max-width: 860px; margin: 0 auto; }

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); background: #fff8fc; }
.card { border: 2px solid 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: 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; }
}