/* CSSVariantEngine v3.0 — zh-jisufeiting.com.cn */
/* Palette: indigo-lavender | Radius: soft rounded | Shadow: multi-layer gradient tinted */
/* Spacing: comfortable | Transition: smooth long curve */
/* Section layouts: {"news":"grid-4","features":"grid-2","hero":"overlay","testimonials":"carousel","partners":"centered","faq":"single-column","stats":"grid-4","cta":"centered"} */

:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-accent: #c084fc;
    --color-surface: #f8fafc;
    --color-text: #1e293b;
    --rgb-primary: 99, 102, 241;
    --rgb-accent: 192, 132, 252;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 6px rgba(99, 102, 241, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 6px 16px rgba(99, 102, 241, 0.1), 0 3px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 32px rgba(99, 102, 241, 0.15), 0 6px 12px rgba(0, 0, 0, 0.07);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    --heading-weight: 800;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { 
    color: var(--color-text); 
    line-height: var(--body-line-height); 
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 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(180deg, #ffffff 0%, #fefefe 100%);
}
.btn, button[class*="btn"], a[class*="btn"] { 
    border-radius: var(--radius-md); 
    transition: var(--transition); 
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    border: 2px solid transparent;
}
a:not([class]) { 
    color: var(--color-primary); 
    transition: var(--transition); 
    background: linear-gradient(180deg, transparent 60%, #e0e7ff 60%);
}

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

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

/* features: grid-2 */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--space-gap) * 1.5); }

/* hero: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%); }
                .hero-content { position: relative; z-index: 1; }

/* testimonials: carousel */
/* 单条轮播 */
                .testimonial-list { display: flex; overflow: hidden; } 
                .testimonial-list > * { flex: 0 0 100%; }

/* 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-4 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 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 { 
    border-left: 4px solid; 
    border-image: linear-gradient(180deg, #8b5cf6 0%, #6366f1 40%, #ec4899 100%) 1; 
}
header, .header, .navbar { 
    box-shadow: var(--shadow-sm); 
    background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%); 
}

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