/* CSSVariantEngine v3.0 — aLqueca.com */
/* Palette: indigo-lavender gradient | Radius: soft rounded | Shadow: multi-layer Pinterest */
/* Spacing: comfortable | Transition: smooth long */
/* Section layouts: {"news":"grid-4","features":"horizontal","hero":"overlay","testimonials":"masonry","partners":"centered","faq":"single-column","stats":"grid-3","cta":"full-bg"} */

:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4338ca;
    --color-accent: #a5b4fc;
    --color-surface: #f8fafc;
    --color-text: #1e293b;
    --rgb-primary: 99, 102, 241;
    --rgb-accent: 165, 180, 252;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(var(--rgb-primary), 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 16px rgba(var(--rgb-primary), 0.09), 0 3px 6px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 16px 32px rgba(var(--rgb-primary), 0.11), 0 8px 16px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 800;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 100%); color: var(--color-text); 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"] { background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%); 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); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: grid-4 */
/* 四列紧凑网格 */
                .news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 0.8); }

/* 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: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; }
                .hero-content { position: relative; z-index: 1; }

/* testimonials: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); }
                .testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); }

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }

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

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

/* cta: full-bg */
.cta-section { background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%); color: #fff; padding: 4rem 2rem; }

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 35%, #ec4899 75%, #f472b6 100%); }
.card { border-left: 3px solid transparent; border-image: linear-gradient(to bottom, #6366f1, #8b5cf6, #ec4899) 1; }
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; }
}