/* CSSVariantEngine v3.0 — ba-cd-kaiyun.com */
/* Palette: gold-on-dark | Radius: medium-glow | Shadow: glow */
/* Spacing: spacious | Transition: smooth */
/* Section layouts: {"news":"featured-left","features":"centered","hero":"overlay","testimonials":"grid-3","partners":"grid-4","faq":"with-sidebar","stats":"grid-3","cta":"centered"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #4c1d95;
    --color-accent: #fbbf24;
    --color-surface: #0f0f1a;
    --color-text: #ede9fe;
    --rgb-primary: 124,58,237;
    --rgb-accent: 251,191,36;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow-sm: 0 0 12px rgba(251,191,36,.25), 0 2px 6px rgba(0,0,0,.5);
    --shadow-md: 0 0 24px rgba(124,58,237,.4), 0 8px 20px rgba(0,0,0,.55);
    --shadow-lg: 0 0 42px rgba(251,191,36,.45), 0 20px 48px rgba(0,0,0,.6);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;
    --transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 700;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
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); border: 1px solid rgba(124,58,237,.25); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); box-shadow: 0 0 16px rgba(251,191,36,.35); }
a:not([class]) { color: var(--color-accent); transition: var(--transition); }

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

/* features: centered */
/* 居中大卡片 */
                .feature-list { display: flex; flex-direction: column; align-items: center; gap: calc(var(--space-gap) * 2); max-width: 720px; margin: 0 auto; }

/* hero: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; background: radial-gradient(circle at 50% 40%, rgba(124,58,237,.35), rgba(15,15,26,.95) 70%); }
                .hero-content { position: relative; z-index: 1; text-shadow: 0 0 28px rgba(251,191,36,.5); }

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

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

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

/* stats: grid-3 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); text-align: center; }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: 0 0 32px rgba(251,191,36,.6), 0 24px 52px rgba(0,0,0,.65); border-color: rgba(251,191,36,.55); }
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; }
}