/* CSSVariantEngine v3.0 — 88kanqiu-cloud.com.cn */
/* Palette: aurora-vivid | Radius: mosaic-soft | Shadow: layered-gradient */
/* Spacing: spacious | Transition: gradient-smooth */
/* Section layouts: {"news":"featured-left","features":"horizontal","hero":"split","testimonials":"stacked","partners":"grid-6","faq":"single-column","stats":"grid-3","cta":"card-style"} */

:root {
    --color-primary: #6d28d9;
    --color-primary-dark: #4c1d95;
    --color-accent: #f43f5e;
    --color-surface: #fdf2f8;
    --color-text: #1e1b3a;
    --rgb-primary: 109,40,217;
    --rgb-accent: 244,63,94;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-sm: 0 1px 2px rgba(76,29,149,0.08), 0 1px 1px rgba(244,63,94,0.06);
    --shadow-md: 0 6px 16px -4px rgba(76,29,149,0.18), 0 3px 8px -2px rgba(244,63,94,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
    --shadow-lg: 0 18px 40px -12px rgba(76,29,149,0.28), 0 8px 20px -8px rgba(244,63,94,0.18), inset 0 1px 0 rgba(255,255,255,0.7);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;
    --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #faf5ff 0%, #fff1f5 60%, #fdf2f8 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: linear-gradient(145deg, #ffffff 0%, #faf5ff 55%, #fdf2f8 100%); border: 1px solid rgba(109,40,217,0.10); }
.card:hover, [class*="card"]:hover { box-shadow: var(--shadow-lg); border-color: rgba(244,63,94,0.22); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(135deg, #6d28d9 0%, #9333ea 50%, #f43f5e 100%); color: #ffffff; box-shadow: 0 4px 12px -3px rgba(109,40,217,0.45), inset 0 1px 0 rgba(255,255,255,0.25); border: 1px solid rgba(76,29,149,0.2); }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #fb7185 100%); box-shadow: 0 8px 22px -6px rgba(244,63,94,0.5), inset 0 1px 0 rgba(255,255,255,0.3); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }
a:not([class]):hover { color: var(--color-accent); }

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

/* news: featured-left */
/* 左大右小 (1大+2小) */
                .news-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: var(--space-gap); }
                .news-grid > *:first-child { grid-row: span 2; }
                .news-grid > * { background: linear-gradient(160deg, #ffffff 0%, #f5f3ff 60%, #fdf2f8 100%); border-radius: var(--radius-lg); border: 1px solid rgba(109,40,217,0.08); box-shadow: var(--shadow-sm); }
                .news-grid > *:first-child { background: linear-gradient(150deg, #ede9fe 0%, #fae8ff 50%, #ffe4e6 100%); box-shadow: var(--shadow-md); }

/* 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: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #faf5ff 100%); border-radius: var(--radius-lg); border: 1px solid rgba(147,51,234,0.10); box-shadow: var(--shadow-sm); }
                .feature-list > *:nth-child(3n+1) { background: linear-gradient(135deg, #fdf2f8 0%, #ffe4e6 100%); }
                .feature-list > *:nth-child(3n+2) { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); }
                .feature-list > *:nth-child(3n+3) { background: linear-gradient(135deg, #ecfeff 0%, #e0f2fe 100%); }

/* hero: split */
/* 左文右图 */
                .hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
                .hero-inner > *:last-child { border-radius: var(--radius-xl); background: linear-gradient(135deg, #6d28d9 0%, #a855f7 45%, #f43f5e 100%); box-shadow: var(--shadow-lg); }

/* testimonials: stacked */
/* 垂直堆叠 */
                .testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }
                .testimonial-list > * { background: linear-gradient(135deg, #ffffff 0%, #faf5ff 70%, #fdf2f8 100%); border-radius: var(--radius-lg); border-left: 3px solid #a855f7; box-shadow: var(--shadow-sm); }

/* partners: grid-6 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-gap); align-items: center; }
.partner-grid > * { border-radius: var(--radius-md); background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%); box-shadow: var(--shadow-sm); border: 1px solid rgba(109,40,217,0.08); }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list > * { background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%); border-radius: var(--radius-md); border: 1px solid rgba(147,51,234,0.10); box-shadow: var(--shadow-sm); }

/* stats: grid-3 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); text-align: center; }
.stats-grid > * { border-radius: var(--radius-lg); padding: 1.5rem; background: linear-gradient(145deg, #6d28d9 0%, #9333ea 50%, #f43f5e 100%); color: #ffffff; box-shadow: var(--shadow-md); }
.stats-grid > *:nth-child(2) { background: linear-gradient(145deg, #db2777 0%, #f43f5e 50%, #fb923c 100%); }
.stats-grid > *:nth-child(3) { background: linear-gradient(145deg, #0891b2 0%, #06b6d4 50%, #a855f7 100%); }

/* cta: card-style */
.cta-inner { background: linear-gradient(135deg, #ede9fe 0%, #fae8ff 40%, #ffe4e6 100%); border-radius: var(--radius-xl); padding: 3rem; text-align: center; box-shadow: var(--shadow-lg); border: 1px solid rgba(244,63,94,0.15); }

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

/* 条件性装饰 */
header, .header, .navbar { background: transparent; }

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