/* CSSVariantEngine v3.0 — ch5-leyu-game.com.cn */
/* Palette: violet-plum | Radius: soft-round | Shadow: layered-glow */
/* Spacing: balanced | Transition: smooth-long */
/* Section layouts: {"news":"featured-left","features":"horizontal","hero":"overlay","testimonials":"masonry","partners":"grid-4","faq":"single-column","stats":"big-number","cta":"card-style"} */

:root {
    --color-primary: #5b3fd4;
    --color-primary-dark: #2a1b6b;
    --color-accent: #ef5f96;
    --color-surface: #f7f4ff;
    --color-text: #1b1830;
    --rgb-primary: 91,63,212;
    --rgb-accent: 239,95,150;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(42,27,107,.06), 0 3px 10px -6px rgba(91,63,212,.14);
    --shadow-md: 0 1px 2px rgba(42,27,107,.05), 0 10px 24px -12px rgba(91,63,212,.24), 0 20px 46px -30px rgba(239,95,150,.32);
    --shadow-lg: 0 2px 5px rgba(42,27,107,.07), 0 18px 36px -16px rgba(91,63,212,.34), 0 30px 64px -34px rgba(239,95,150,.40);
    --grad-card: linear-gradient(165deg, #ffffff 0%, #fdfcff 38%, #f8f4ff 70%, #fdf1f8 100%);
    --grad-hero: radial-gradient(circle at 16% 14%, rgba(239,95,150,.42), rgba(239,95,150,0) 56%), radial-gradient(circle at 84% 88%, rgba(56,189,248,.34), rgba(56,189,248,0) 52%), linear-gradient(135deg, #2a1b6b 0%, #5b3fd4 42%, #a855f7 72%, #ef5f96 100%);
    --grad-accent: linear-gradient(90deg, #ef5f96 0%, #a855f7 50%, #7dd3fc 100%);
    --grad-cta: linear-gradient(135deg, #f6f1ff 0%, #fdf2f8 48%, #eef2ff 100%);
    --grad-btn: linear-gradient(135deg, #6d5bf0 0%, #a855f7 52%, #ef5f96 100%);
    --space-section: 3rem;
    --space-card: 1.25rem;
    --space-gap: 1rem;
    --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-image: linear-gradient(180deg, #f4f5fb 0%, #eef0f9 44%, #f8f3fc 100%); background-attachment: fixed; }
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-image: var(--grad-card); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-image: var(--grad-btn); color: #ffffff; border-color: rgba(255,255,255,.24); box-shadow: 0 6px 18px -10px rgba(91,63,212,.55); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* 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: grid-4 */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 1.5); align-items: center; }

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

/* stats: big-number */
/* 大数字居中 */
                .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .stats-grid .stat-value { font-size: 3rem; background-image: linear-gradient(135deg, #5b3fd4 0%, #a855f7 55%, #ef5f96 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* cta: card-style */
.cta-inner { background: var(--grad-cta); border-radius: var(--radius-xl); padding: 3rem; text-align: center; box-shadow: var(--shadow-md); }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
a:not([class]):hover { color: var(--color-accent); }
.hero, [class*="hero"], section:first-of-type { background: var(--grad-hero); }
.card { border-left: 3px solid var(--color-accent); }
header, .header, .navbar { box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 8px 28px -14px rgba(91,63,212,.32), 0 2px 8px -4px rgba(42,27,107,.14); background-image: linear-gradient(90deg, #ffffff 0%, #f8f5ff 52%, #fdf1f8 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; }
}