/* CSSVariantEngine v3.0 — dlwmjc.com */
/* Palette: vibrant gradient | Radius: bold rounded | Shadow: multi-layer gradient */
/* Spacing: comfortable | Transition: smooth long */
/* Section layouts: {"news":"featured-left","features":"horizontal","hero":"overlay","testimonials":"carousel","partners":"grid-6","faq":"single-column","stats":"inline","cta":"card-style"} */

:root {
    --color-primary: #7928ca;
    --color-primary-dark: #4c1d95;
    --color-accent: #ec4899;
    --color-surface: #fdf4ff;
    --color-text: #1e1b4b;
    --rgb-primary: 121,40,202;
    --rgb-accent: 236,72,153;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --shadow-sm: 0 2px 8px rgba(121,40,202,0.15);
    --shadow-md: 0 8px 24px rgba(76,29,149,0.2), 0 2px 8px rgba(236,72,153,0.1);
    --shadow-lg: 0 16px 48px rgba(76,29,149,0.25), 0 4px 16px rgba(236,72,153,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 0.55s cubic-bezier(0.22, 0.05, 0.25, 1);
    --heading-weight: 800;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #faf5ff 0%, #fdf2f8 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-lg); padding: var(--space-card); transition: var(--transition); background: linear-gradient(145deg, #ffffff, #f8fafc); border: 2px solid transparent; border-image: linear-gradient(135deg, #7928ca, #ec4899) 1; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); box-shadow: var(--shadow-sm); background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: white; border: none; }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-thickness: 2px; text-underline-offset: 3px; }

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

/* news: featured-left */
/* 左大右小 (1大+2小) */
                .news-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: var(--space-gap); }
                .news-grid > *:first-child { grid-row: span 2; background: linear-gradient(135deg, #4c1d95, #7928ca); color: white; border-radius: var(--radius-xl); }

/* features: horizontal */
/* 水平滚动 */
                .feature-list { display: flex; gap: var(--space-gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem 0; }
                .feature-list > * { flex: 0 0 300px; scroll-snap-align: start; background: radial-gradient(circle at top right, #06b6d4 0%, #0891b2 100%); color: white; border-radius: var(--radius-lg); }

/* hero: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; }
                .hero-content { position: relative; z-index: 1; color: white; text-shadow: 0 2px 12px rgba(0,0,0,0.15); }

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

/* partners: grid-6 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-gap); align-items: center; padding: 2rem; background: linear-gradient(180deg, #f8fafc, #f1f5f9); border-radius: var(--radius-xl); }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list > * { background: linear-gradient(135deg, #fdf4ff, #f5f3ff); border-radius: var(--radius-md); margin-bottom: 1rem; border-left: 3px solid var(--color-accent); }

/* stats: inline */
/* 水平排列 */
                .stats-grid { display: flex; justify-content: center; gap: 3rem; }
                .stats-grid > * { background: linear-gradient(135deg, #ec4899, #f472b6); color: white; padding: 1.5rem 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* cta: card-style */
.cta-inner { background: radial-gradient(circle at 30% 20%, #fdf4ff 0%, #fbcfe8 50%, #c4b5fd 100%); border-radius: var(--radius-xl); padding: 3rem; text-align: center; box-shadow: var(--shadow-lg); border: 3px solid; border-image: linear-gradient(135deg, #7928ca, #ec4899, #06b6d4) 1; }

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

/* 条件性装饰 */
a:not([class]):hover { color: #06b6d4; text-underline-offset: 6px; }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #7928ca 0%, #ec4899 50%, #06b6d4 100%); }
.card { border-left: 4px solid; border-image: linear-gradient(to bottom, #7928ca, #ec4899, #06b6d4) 1 stretch; }
header, .header, .navbar { background: rgba(255,255,255,0.7); backdrop-filter: blur(14px); border-bottom: 2px solid; border-image: linear-gradient(90deg, #7928ca, #ec4899, #06b6d4) 1; }

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