/* CSSVariantEngine v3.0 — fxquan.com */
/* Palette: midnight-violet + amber | Radius: soft-large | Shadow: layered */
/* Spacing: balanced | Transition: smooth-long */
/* Section layouts: {"news":"grid-3","features":"horizontal","hero":"minimal","testimonials":"grid-3","partners":"grid-4","faq":"with-sidebar","stats":"big-number","cta":"card-style"} */

:root {
    --color-primary: #6c5ce7;
    --color-primary-dark: #2f2560;
    --color-accent: #ffb347;
    --color-accent-2: #2dd4bf;
    --color-surface: #ece9fb;
    --color-surface-warm: #fff1d6;
    --color-text: #1e2330;
    --color-sidebar: #252e3a;
    --rgb-primary: 108, 92, 231;
    --rgb-accent: 255, 179, 71;
    --grad-hero: linear-gradient(135deg, #252e3a 0%, #3b2f8f 46%, #6c5ce7 78%, #a78bfa 100%);
    --grad-surface: linear-gradient(140deg, #f6f4ff 0%, #e7e2fb 42%, #ffe9c9 100%);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --shadow-sm: 0 1px 2px rgba(37, 46, 58, .08), 0 0 0 1px rgba(108, 92, 231, .05);
    --shadow-md: 0 12px 26px -16px rgba(59, 47, 143, .38), 0 3px 8px -4px rgba(37, 46, 58, .10), 0 0 0 1px rgba(108, 92, 231, .07);
    --shadow-lg: 0 30px 60px -26px rgba(59, 47, 143, .45), 0 10px 20px -12px rgba(37, 46, 58, .18), 0 0 0 1px rgba(255, 179, 71, .16);
    --space-section: 3rem;
    --space-card: 1.35rem;
    --space-gap: 1.15rem;
    --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); accent-color: var(--color-accent); caret-color: var(--color-primary); }
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); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 22px -16px rgba(59, 47, 143, .55); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: grid-3 */
/* 三列等宽网格 */
                .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 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: minimal */
.hero { padding: 2rem 0; } .hero-content { max-width: 560px; }

/* 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: big-number */
/* 大数字居中 */
                .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .stats-grid .stat-value { font-size: 3rem; background: linear-gradient(135deg, #6c5ce7 0%, #3b2f8f 55%, #ffb347 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: 0 12px 28px rgba(59, 47, 143, .18); }

/* cta: card-style */
.cta-inner { background: var(--grad-surface); border-radius: var(--radius-xl); padding: 3rem; text-align: center; box-shadow: var(--shadow-lg); }

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: radial-gradient(circle at 82% 12%, rgba(255, 179, 71, .26) 0%, rgba(255, 179, 71, 0) 58%), radial-gradient(circle at 12% 88%, rgba(45, 212, 191, .18) 0%, rgba(45, 212, 191, 0) 55%), var(--grad-hero); }
.card { border-left: 3px solid var(--color-accent); }

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