/* CSSVariantEngine v3.0 — xinlangcaipiao.cn */
/* Palette: vivid gradient | Radius: soft-bold | Shadow: multi-layer colored */
/* Spacing: asymmetric mixed | Transition: smooth long */
/* Section layouts: {"news":"featured-top","features":"grid-2","hero":"overlay","testimonials":"carousel","partners":"grid-4","faq":"with-sidebar","stats":"inline","cta":"split"} */

:root {
    --color-primary: #8b5cf6;
    --color-primary-dark: #6d28d9;
    --color-accent: #10b981;
    --color-surface: #f8fafc;
    --color-text: #1e293b;
    --rgb-primary: 139, 92, 246;
    --rgb-accent: 16, 185, 129;
    --radius-sm: 4px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --shadow-sm: 0 2px 10px rgba(var(--rgb-primary), 0.18), 0 1px 3px rgba(6, 182, 212, 0.1);
    --shadow-md: 0 7px 22px rgba(var(--rgb-primary), 0.22), 0 3px 9px rgba(var(--rgb-accent), 0.12);
    --shadow-lg: 0 14px 45px rgba(var(--rgb-primary), 0.28), 0 5px 18px rgba(var(--rgb-accent), 0.15);
    --space-section: 5.2rem;
    --space-card: 2.1rem;
    --space-gap: 0.6rem;
    --transition: 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
    --heading-weight: 700;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { 
    color: var(--color-text); 
    line-height: var(--body-line-height); 
    background: linear-gradient(180deg, #f0fdf4 0%, #fef3c7 100%);
}
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
section, .section { 
    padding-top: var(--space-section); 
    padding-bottom: var(--space-section); 
    background: linear-gradient(to right, rgba(var(--rgb-primary), 0.05), rgba(var(--rgb-accent), 0.05));
}
.card, [class*="card"] { 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md); 
    padding: var(--space-card); 
    transition: var(--transition);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-left: 3px solid;
    border-image: linear-gradient(to bottom, #8b5cf6, #10b981, #06b6d4) 1;
}
.btn, button[class*="btn"], a[class*="btn"] { 
    border-radius: var(--radius-md); 
    transition: var(--transition);
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    border: 2px solid transparent;
    border-image: linear-gradient(90deg, #8b5cf6, #06b6d4) 1;
}
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: featured-top */
/* 首篇横跨全宽 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.news-grid > *:first-child { grid-column: span 3; background: linear-gradient(120deg, #6d28d9 0%, #06b6d4 100%); color: white; }

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

/* hero: overlay */
/* 全屏背景+文字覆盖 */
.hero { 
    position: relative; 
    min-height: 70vh; 
    display: flex; 
    align-items: center; 
    background: radial-gradient(circle at top right, rgba(139,92,246,0.2), transparent 65%),
                radial-gradient(circle at bottom left, rgba(16,185,129,0.2), transparent 65%);
}
.hero-content { position: relative; z-index: 1; }

/* testimonials: carousel */
/* 单条轮播 */
.testimonial-list { display: flex; overflow: hidden; } 
.testimonial-list > * { flex: 0 0 100%; background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }

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

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

/* stats: inline */
/* 水平排列 */
.stats-grid { display: flex; justify-content: center; gap: 3.2rem; }

/* cta: split */
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; background: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 100%); padding: 3rem; border-radius: var(--radius-xl); }

/* Page Layout: wide */
/* 超宽 */
.page-main { max-width: 1400px; margin: 0 auto; }

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
a:not([class]):hover { color: #06b6d4; }

/* 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: 2.1rem; --space-card: 1.1rem; --space-gap: 0.7rem; }
    .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; }
}