/* CSSVariantEngine v3.0 — sc-aiyouxi.com.cn */
/* Palette: violet-orange bold | Radius: tight micro | Shadow: subtle dual-tone */
/* Spacing: compact dense | Transition: snappy fast */
/* Section layouts: {"news":"featured-top","features":"horizontal","hero":"centered","testimonials":"carousel","partners":"grid-4","faq":"with-sidebar","stats":"grid-4","cta":"card-style"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #4c1d95;
    --color-accent: #f97316;
    --color-surface: #fff7ed;
    --color-text: #1e1b4b;
    --rgb-primary: 124,58,237;
    --rgb-accent: 249,115,22;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 5px;
    --radius-xl: 6px;
    --shadow-sm: 0 1px 3px rgba(var(--rgb-primary),.18);
    --shadow-md: 0 2px 7px rgba(var(--rgb-accent),.15);
    --shadow-lg: 0 3px 10px rgba(30,27,75,.1);
    --space-section: 3.2rem;
    --space-card: 1rem;
    --space-gap: 0.8rem;
    --transition: 0.18s ease-out;
    --heading-weight: 800;
    --body-line-height: 1.65;
    accent-color: var(--color-accent);
    caret-color: var(--color-primary);
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: #fffaf5; }
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(var(--rgb-primary), 0.2); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); border: 1px solid var(--color-primary-dark); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-thickness: 1px; }

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

/* news: featured-top */
/* 首篇横跨全宽 */
                .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
                .news-grid > *:first-child { grid-column: span 3; background-color: #ede9fe; border: 2px solid var(--color-primary); }

/* 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-color: #fef3c7; border: 1px solid var(--color-accent); }

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

/* testimonials: carousel */
/* 单条轮播 */
                .testimonial-list { display: flex; overflow: hidden; } 
                .testimonial-list > * { flex: 0 0 100%; background-color: #f0f9ff; border: 1px solid #0ea5e9; }

/* 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; }
                .faq-wrapper > *:last-child { background-color: #dcfce7; border: 2px solid #16a34a; padding: 12px; }

/* stats: grid-4 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); text-align: center; }
.stats-grid > * { background-color: #fef2f2; border: 1px solid #ef4444; padding: 10px; }

/* cta: card-style */
.cta-inner { background: var(--color-surface); border-radius: var(--radius-xl); padding: 3rem; text-align: center; border: 2px solid var(--color-accent); }

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #7c3aed, #f97316); }
header, .header, .navbar { box-shadow: 0 1px 4px rgba(var(--rgb-primary), 0.22); background-color: white; border-bottom: 1px solid var(--color-primary-dark); }

/* 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.8rem; --space-card: 0.75rem; --space-gap: 0.5rem; }
    .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; }
}