/* CSSVariantEngine v3.0 — baoweitiyu.net.cn */
/* Palette: bold contrast gradient | Radius: dynamic asymmetric | Shadow: multi-layer vivid */
/* Spacing: mixed tight/loose | Transition: smooth long curve */
/* Section layouts: {"news":"masonry-2","features":"horizontal","hero":"centered","testimonials":"grid-3","partners":"grid-6","faq":"single-column","stats":"big-number","cta":"card-style"} */

:root {
    --color-primary: #7b2cbf;
    --color-primary-dark: #3a0ca3;
    --color-accent: #f72585;
    --color-surface: #ffd60a;
    --color-text: #1d1e2c;
    --rgb-primary: 123,44,191;
    --rgb-accent: 247,37,133;
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 4px rgba(58,12,163,.15), 0 1px 2px rgba(247,37,133,.1);
    --shadow-md: 0 6px 12px rgba(58,12,163,.2), 0 3px 6px rgba(247,37,133,.12);
    --shadow-lg: 0 16px 28px rgba(58,12,163,.25), 0 8px 16px rgba(247,37,133,.15);
    --space-section: 2.4rem;
    --space-card: 1.1rem;
    --space-gap: 1.4rem;
    --transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --heading-weight: 600;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #fffcf9 0%, #f8f0ff 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, #fef7ff); border: 2px solid transparent; border-image: linear-gradient(135deg, #7b2cbf, #f72585, #ffd60a) 1; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(90deg, #7b2cbf, #f72585); color: white; border: none; box-shadow: var(--shadow-sm); }
a:not([class]) { color: var(--color-accent); transition: var(--transition); }

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

/* hero: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }

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

/* partners: grid-6 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-gap); align-items: center; }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

/* stats: big-number */
/* 大数字居中 */
                .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .stats-grid .stat-value { font-size: 3rem; background: linear-gradient(90deg, #7b2cbf, #f72585); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* cta: card-style */
.cta-inner { background: radial-gradient(circle at top left, #ffd60a, #f72585 60%, #7b2cbf); border-radius: var(--radius-xl); padding: 3rem; text-align: center; box-shadow: var(--shadow-lg); color: white; }

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #3a0ca3 0%, #7b2cbf 35%, #f72585 70%, #ff9e00 100%); color: white; }
.card { border-left: 3px solid; border-image: linear-gradient(to bottom, #f72585, #7b2cbf, #ffd60a) 1; }
header, .header, .navbar { box-shadow: 0 4px 12px rgba(58,12,163,.2), 0 2px 6px rgba(247,37,133,.1); background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); }

/* 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.9rem; --space-card: 0.95rem; --space-gap: 1.2rem; }
    .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; }
}