/* CSSVariantEngine v3.0 — hongdanzuqiu.sh.cn */
/* Palette: vibrant gradient | Radius: playful rounded | Shadow: multi-layer colored */
/* Spacing: mixed tight/loose | Transition: long smooth cubic */
/* Section layouts: {"news":"featured-top","features":"grid-4","hero":"overlay","testimonials":"stacked","partners":"scroll","faq":"single-column","stats":"grid-3","cta":"centered"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #4c1d95;
    --color-accent: #ec4899;
    --color-surface: #fdf4ff;
    --color-text: #1e1b4b;
    --rgb-primary: 124,58,237;
    --rgb-accent: 236,72,153;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 12px rgba(124,58,237,0.18);
    --shadow-md: 0 8px 26px rgba(124,58,237,0.22), 0 3px 10px rgba(236,72,153,0.12);
    --shadow-lg: 0 18px 52px rgba(124,58,237,0.3), 0 7px 18px rgba(236,72,153,0.18);
    --space-section: 2rem;
    --space-card: 1rem;
    --space-gap: 0.75rem;
    --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #fdf4ff 0%, #fef3c7 50%, #f0f9ff 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: linear-gradient(145deg, #ffffff 0%, #f8f0ff 100%); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(90deg, #7c3aed 0%, #ec4899 100%); color: white; }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* news: featured-top */
/* 首篇横跨全宽 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
.news-grid > *:first-child { grid-column: span 3; background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #ec4899 100%); color: white; }

/* features: grid-4 */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); }
.feature-list > *:nth-child(odd) { background: linear-gradient(180deg, #fef3c7 0%, #fdba74 100%); }
.feature-list > *:nth-child(even) { background: linear-gradient(180deg, #f0f9ff 0%, #7dd3fc 100%); }

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

/* testimonials: stacked */
/* 垂直堆叠 */
.testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }
.testimonial-list > *:nth-child(odd) { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
.testimonial-list > *:nth-child(even) { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

/* partners: scroll */
/* 自动滚动 */
.partner-grid { display: flex; gap: 2rem; overflow: hidden; animation: partnerScroll 24s linear infinite; }
.partner-grid > * { background: linear-gradient(90deg, #f97316 0%, #eab308 100%); padding: 1rem 2rem; border-radius: var(--radius-md); }
@keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list > * { background: linear-gradient(135deg, #d8b4fe 0%, #f9a8d4 100%); margin-bottom: 1rem; }

/* stats: grid-3 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); text-align: center; }
.stats-grid > *:nth-child(1) { background: linear-gradient(180deg, #8b5cf6 0%, #6366f1 100%); color: white; }
.stats-grid > *:nth-child(2) { background: linear-gradient(180deg, #ec4899 0%, #ef4444 100%); color: white; }
.stats-grid > *:nth-child(3) { background: linear-gradient(180deg, #f97316 0%, #eab308 100%); color: white; }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; background: linear-gradient(135deg, #4c1d95 0%, #ec4899 100%); padding: 3rem; border-radius: var(--radius-xl); color: white; }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 30%, #ec4899 60%, #f97316 100%); }
.card { border: 1px solid transparent; border-image: linear-gradient(90deg, #7c3aed, #ec4899, #f97316, #10b981) 1 stretch; }
header, .header, .navbar { box-shadow: 0 4px 20px rgba(124,58,237,0.15), 0 1px 8px rgba(236,72,153,0.1); background: linear-gradient(90deg, #ffffff 0%, #fdf4ff 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; }
}