/* CSSVariantEngine v3.0 — 500caiofficial.com.cn */
/* Palette: gradient-rich violet-pink | Radius: rounded | Shadow: soft layered */
/* Spacing: medium | Transition: smooth long */
/* Section layouts: {"news":"list-view","features":"grid-4","hero":"minimal","testimonials":"carousel","partners":"centered","faq":"single-column","stats":"grid-3","cta":"card-style"} */

:root {
    --color-primary: #8b5cf6;
    --color-primary-dark: #7c3aed;
    --color-accent: #ec4899;
    --color-surface: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --color-text: #1e293b;
    --rgb-primary: 139,92,246;
    --rgb-accent: 236,72,153;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(148, 163, 184, 0.12), 0 1px 3px rgba(148, 163, 184, 0.08);
    --shadow-md: 0 4px 16px rgba(148, 163, 184, 0.15), 0 2px 6px rgba(148, 163, 184, 0.1);
    --shadow-lg: 0 12px 32px rgba(148, 163, 184, 0.2), 0 6px 12px rgba(148, 163, 184, 0.12);
    --space-section: 2.25rem;
    --space-card: 1.1rem;
    --space-gap: 1.25rem;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 700;
    --body-line-height: 1.6;
    --accent-color: #8b5cf6;
    --caret-color: #8b5cf6;
}

/* 基础覆盖 */
body { 
    color: var(--color-text); 
    line-height: var(--body-line-height);
    background: linear-gradient(135deg, #f0f4f8 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: var(--color-surface);
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, rgba(139,92,246,0.1) 0%, rgba(236,72,153,0.1) 50%, rgba(6,182,212,0.1) 100%) 1 stretch;
}
.btn, button[class*="btn"], a[class*="btn"] { 
    border-radius: var(--radius-md); 
    transition: var(--transition);
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border: none;
}
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: list-view */
/* 列表模式 (图左文右) */
                .news-grid { display: flex; flex-direction: column; gap: var(--space-gap); }
                .news-grid .card { display: grid; grid-template-columns: 280px 1fr; }

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

/* hero: minimal */
.hero { 
    padding: 2rem 0; 
    background: radial-gradient(circle at top left, rgba(139,92,246,0.08) 0%, transparent 50%),
                radial-gradient(circle at bottom right, rgba(236,72,153,0.08) 0%, transparent 50%);
} 
.hero-content { max-width: 560px; }

/* 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-3 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); text-align: center; }
.stats-grid .card {
    background: radial-gradient(circle at top, rgba(139,92,246,0.05) 0%, white 70%);
}

/* cta: card-style */
.cta-inner { 
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 30%, #ec4899 70%, #f472b6 100%); 
    border-radius: var(--radius-xl); 
    padding: 3rem; 
    text-align: center; 
    color: white;
    box-shadow: 0 16px 48px rgba(139,92,246,0.25);
}

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-lg); 
    border-image: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #06b6d4 100%) 1 stretch;
}
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 0 8px rgba(236,72,153,0.2); }
.card { border: 1px solid rgba(var(--rgb-primary), .08); }
header, .header, .navbar { 
    box-shadow: 0 4px 12px rgba(139,92,246,0.08), 0 1px 4px rgba(0,0,0,0.04); 
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
}

/* 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: 1rem; }
    .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; }
}