/* CSSVariantEngine v3.0 — baijingjiasuqi.com.cn */
/* Palette: vibrant gradient | Radius: soft rounded | Shadow: multi-layer elevation */
/* Spacing: airy medium | Transition: smooth long cubic */
/* Section layouts: {"news":"featured-left","features":"grid-4","hero":"minimal","testimonials":"stacked","partners":"grid-4","faq":"with-sidebar","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #5b21b6;
    --color-accent: #ec4899;
    --color-surface: #f8fafc;
    --color-text: #0f172a;
    --rgb-primary: 124, 58, 237;
    --rgb-accent: 236, 72, 153;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 3px 12px rgba(124, 58, 237, 0.12), 0 1px 4px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 28px rgba(124, 58, 237, 0.2), 0 4px 12px rgba(236, 72, 153, 0.12);
    --shadow-lg: 0 20px 56px rgba(124, 58, 237, 0.25), 0 8px 24px rgba(236, 72, 153, 0.16);
    --space-section: 2.25rem;
    --space-card: 1.25rem;
    --space-gap: 1.5rem;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 700;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 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, #f8f9ff); border: 2px solid transparent; border-image: linear-gradient(45deg, #7c3aed, #ec4899, #f59e0b, #10b981) 1 stretch; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: white; border: none; }
.btn:hover { filter: brightness(1.1); transform: scale(1.03); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 0 8px rgba(236,72,153,0.3); }

/* ========== 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; background: linear-gradient(160deg, #7c3aed 0%, #6366f1 100%); color: white; border-image: linear-gradient(45deg, #f59e0b, #ec4899, #ffffff) 1 stretch; }
.news-grid > *:nth-child(2) { background: linear-gradient(160deg, #ec4899 0%, #f472b6 100%); color: white; }
.news-grid > *:nth-child(3) { background: linear-gradient(160deg, #f59e0b 0%, #fbbf24 100%); color: white; }

/* features: grid-4 */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); }
.feature-list > *:nth-child(1) { background: linear-gradient(150deg, #10b981 0%, #34d399 100%); color: white; }
.feature-list > *:nth-child(2) { background: linear-gradient(150deg, #3b82f6 0%, #60a5fa 100%); color: white; }
.feature-list > *:nth-child(3) { background: linear-gradient(150deg, #8b5cf6 0%, #a78bfa 100%); color: white; }
.feature-list > *:nth-child(4) { background: linear-gradient(150deg, #ef4444 0%, #f87171 100%); color: white; }

/* hero: minimal */
.hero { padding: 2rem 0; } .hero-content { max-width: 560px; }
.hero h1 { color: white; text-shadow: 0 4px 16px rgba(0,0,0,0.2); }

/* testimonials: stacked */
/* 垂直堆叠 */
.testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }
.testimonial-list > *:nth-child(odd) { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.testimonial-list > *:nth-child(even) { background: linear-gradient(135deg, #fdf4ff, #fae8ff); }

/* partners: grid-4 */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 1.5); align-items: center; }
.partner-grid > * { background: linear-gradient(145deg, #ffffff, #f1f5f9); border-radius: var(--radius-md); padding: 1rem; box-shadow: var(--shadow-sm); transition: var(--transition); }
.partner-grid > *:hover { box-shadow: var(--shadow-md); transform: scale(1.05); }

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
.faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.faq-wrapper > *:last-child { background: linear-gradient(145deg, #7c3aed, #ec4899); color: white; border-radius: var(--radius-lg); padding: 1.5rem; }

/* stats: inline */
/* 水平排列 */
.stats-grid { display: flex; justify-content: center; gap: 3rem; }
.stats-grid > * { background: linear-gradient(145deg, #ffffff, #fef7ff); padding: 1.5rem 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: var(--transition); }
.stats-grid > *:hover { box-shadow: var(--shadow-md); }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-inner { background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%); padding: 3rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); color: white; }

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #7c3aed 0%, #9333ea 25%, #ec4899 55%, #f59e0b 85%, #f97316 100%); }
.card { border: 2px solid rgba(var(--rgb-primary), .12); }
header, .header, .navbar { box-shadow: 0 4px 20px rgba(124,58,237,0.15), 0 2px 8px rgba(236,72,153,0.08); background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); }

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