/* CSSVariantEngine v3.0 — cn-williamhillservice.com.cn */
/* Palette: neon-glow | Radius: medium 8-16px | Shadow: radiant glow */
/* Spacing: asymmetric mixed | Transition: snappy glow-friendly */
/* Section layouts: {"news":"featured-left","features":"horizontal","hero":"split","testimonials":"stacked","partners":"grid-6","faq":"single-column","stats":"grid-4","cta":"full-bg"} */

:root {
    --color-primary: #4f46e5;
    --color-primary-dark: #1e1b4b;
    --color-accent: #22d3ee;
    --color-surface: #0c0a1d;
    --color-text: #f0f9ff;
    --rgb-primary: 79, 70, 229;
    --rgb-accent: 34, 211, 238;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 16px;
    --shadow-sm: 0 0 12px rgba(var(--rgb-accent), 0.3);
    --shadow-md: 0 0 24px rgba(var(--rgb-accent), 0.4);
    --shadow-lg: 0 0 36px rgba(var(--rgb-accent), 0.5);
    --space-section: 3.2rem;
    --space-card: 1.4rem;
    --space-gap: 0.5rem;
    --transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --heading-weight: 700;
    --body-line-height: 1.6;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 16px rgba(var(--rgb-accent), 0.25); }
    100% { box-shadow: 0 0 28px rgba(var(--rgb-accent), 0.45); }
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: var(--color-surface); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); text-shadow: 0 0 12px rgba(var(--rgb-accent), 0.3); }
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); border: 2px solid var(--color-accent); background-color: #1e1b4b; animation: pulse-glow 3s ease-in-out infinite alternate; }
.card:hover, [class*="card"]:hover { box-shadow: 0 0 32px rgba(var(--rgb-accent), 0.6); transform: translateY(-2px); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); color: white; border: 2px solid var(--color-accent); box-shadow: var(--shadow-sm); }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { box-shadow: 0 0 32px rgba(var(--rgb-accent), 0.7); }
a:not([class]) { color: var(--color-accent); transition: var(--transition); text-shadow: 0 0 6px rgba(var(--rgb-accent), 0.4); }

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

/* news: featured-left */
/* 左大右小 (1大+2小) */
.news-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 2.5rem; }
.news-grid > *:first-child { grid-row: span 2; background-color: #312e81; border: 3px solid #a855f7; border-radius: var(--radius-xl); }
.news-grid > *:nth-child(2) { background-color: #7c3aed; border: 3px solid #ec4899; border-radius: var(--radius-lg); }
.news-grid > *:nth-child(3) { background-color: #db2777; border: 3px solid #f97316; border-radius: var(--radius-lg); }

/* features: horizontal */
/* 水平滚动 */
.feature-list { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.feature-list > * { flex: 0 0 300px; scroll-snap-align: start; background-color: #0f172a; border: 2px solid #22d3ee; border-radius: var(--radius-md); }

/* hero: split */
/* 左文右图 */
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }

/* testimonials: stacked */
/* 垂直堆叠 */
.testimonial-list { display: flex; flex-direction: column; gap: 1.2rem; max-width: 720px; margin: 0 auto; }
.testimonial-list > * { background-color: #1e293b; border: 2px solid #f59e0b; border-radius: var(--radius-lg); }

/* partners: grid-6 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; align-items: center; }
.partner-grid > * { background-color: #0f172a; border-radius: var(--radius-sm); padding: 0.75rem; border: 1px solid var(--color-accent); }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list > * { background-color: #1e1b4b; border: 2px solid #a855f7; border-radius: var(--radius-md); margin-bottom: 0.8rem; }

/* stats: grid-4 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stats-grid > * { background: linear-gradient(180deg, #4f46e5, #7c3aed); border-radius: var(--radius-lg); padding: 1.5rem; border: 2px solid var(--color-accent); }

/* cta: full-bg */
.cta-section { background: linear-gradient(45deg, #db2777, #f59e0b, #22d3ee); color: #ffffff; padding: 4rem 2rem; box-shadow: 0 0 48px rgba(var(--rgb-accent), 0.5); }

/* Page Layout: narrow-centered */
/* 窄版居中 */
.page-main { max-width: 860px; margin: 0 auto; }

/* 条件性装饰 */
a:not([class]):hover { color: #f59e0b; text-shadow: 0 0 12px rgba(245, 158, 11, 0.7); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #4f46e5, #7c3aed, #db2777); box-shadow: inset 0 0 60px rgba(var(--rgb-accent), 0.2); }
.card { border-left: 4px solid var(--color-accent); }

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