/* CSSVariantEngine v3.0 — 365wmwanmeitiyu.com.cn */
/* Palette: vibrant mosaic | Radius: medium rounded | Shadow: glow accent */
/* Spacing: medium | Transition: smooth ease */
/* Section layouts: {"news":"featured-left","features":"grid-3","hero":"overlay","testimonials":"grid-3","partners":"centered","faq":"single-column","stats":"big-number","cta":"card-style"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #5b21b6;
    --color-accent: #ec4899;
    --color-surface: #fdf4ff;
    --color-text: #1e293b;
    --rgb-primary: 124,58,237;
    --rgb-accent: 236,72,153;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-sm: 0 0 12px rgba(var(--rgb-accent), 0.25);
    --shadow-md: 0 0 24px rgba(var(--rgb-accent), 0.4);
    --shadow-lg: 0 0 32px rgba(var(--rgb-accent), 0.6);
    --space-section: 2.5rem;
    --space-card: 1.25rem;
    --space-gap: 1.75rem;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --heading-weight: 700;
    --body-line-height: 1.65;
}

@keyframes subtleGlowPulse {
    0% { box-shadow: var(--shadow-md); }
    50% { box-shadow: 0 0 28px rgba(var(--rgb-accent), 0.5); }
    100% { box-shadow: var(--shadow-md); }
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: #f8fafc; }
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); animation: subtleGlowPulse 5s ease-in-out infinite; border: 1px solid rgba(var(--rgb-accent), 0.12); }
.card:hover, [class*="card"]:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-primary); color: white; border: none; }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { background-color: var(--color-accent); box-shadow: 0 0 30px rgba(var(--rgb-accent), 0.7); }
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; background-color: #f0f9ff; }
                .news-grid > *:nth-child(2) { background-color: #fef3c7; }
                .news-grid > *:nth-child(3) { background-color: #fce7f3; }

/* features: grid-3 */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
.feature-list > *:nth-child(3n+1) { background-color: #eff6ff; }
.feature-list > *:nth-child(3n+2) { background-color: #f0fdf4; }
.feature-list > *:nth-child(3n+3) { background-color: #fff7ed; }

/* hero: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; }
                .hero-content { position: relative; z-index: 1; }

/* testimonials: grid-3 */
.testimonial-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
.testimonial-list > *:nth-child(odd) { background-color: #faf5ff; }
.testimonial-list > *:nth-child(even) { background-color: #ecfeff; }

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.partner-grid > * { filter: grayscale(0%) drop-shadow(0 0 8px rgba(var(--rgb-primary), 0.3)); }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list > * { background-color: #f8fafc; }

/* stats: big-number */
/* 大数字居中 */
                .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
                .stats-grid .stat-value { font-size: 3rem; color: var(--color-primary); text-shadow: 0 0 12px rgba(var(--rgb-accent), 0.4); }

/* cta: card-style */
.cta-inner { background: linear-gradient(135deg, #fdf4ff, #fce7f3); border-radius: var(--radius-xl); padding: 3rem; text-align: center; box-shadow: var(--shadow-lg); }

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

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 0 8px rgba(var(--rgb-accent), 0.4); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b); }
header, .header, .navbar { box-shadow: 0 0 18px rgba(var(--rgb-primary), 0.25); background-color: white; }

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