/* CSSVariantEngine v3.0 — kaiyuan-tiyu-app9.com.cn */
/* Palette: violet-fuchsia | Radius: medium-glow | Shadow: neon-halo */
/* Spacing: spacious | Transition: smooth */
/* Section layouts: {"news":"grid-4","features":"horizontal","hero":"left-aligned","testimonials":"grid-3","partners":"scroll","faq":"two-column","stats":"grid-4","cta":"centered"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #312e81;
    --color-accent: #c026d3;
    --color-surface: #f5f3ff;
    --color-text: #1e1b4b;
    --rgb-primary: 124, 58, 237;
    --rgb-accent: 192, 38, 211;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 16px;
    --shadow-sm: 0 0 12px rgba(var(--rgb-accent), 0.25), 0 2px 8px rgba(var(--rgb-primary), 0.18);
    --shadow-md: 0 0 24px rgba(var(--rgb-accent), 0.35), 0 8px 24px rgba(var(--rgb-primary), 0.25);
    --shadow-lg: 0 0 40px rgba(var(--rgb-accent), 0.45), 0 16px 48px rgba(var(--rgb-primary), 0.30);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;
    --transition: 0.3s 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: #c7d2fe; }
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
section, .section { padding-top: var(--space-section); padding-bottom: var(--space-section); background: var(--color-surface); }
.card, [class*="card"] { border-radius: var(--radius-lg); box-shadow: 0 0 0 1px rgba(var(--rgb-accent), 0.25), var(--shadow-md); padding: var(--space-card); transition: var(--transition); background: #ffffff; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); box-shadow: 0 0 16px rgba(var(--rgb-accent), 0.30), 0 4px 12px rgba(var(--rgb-primary), 0.25); background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #ffffff; transition: var(--transition); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-color: rgba(var(--rgb-accent), 0.6); }

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

/* news: grid-4 */
/* 四列紧凑网格 */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 0.75); }

/* 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: left-aligned */
.hero-content { text-align: left; max-width: 600px; text-shadow: 0 2px 24px rgba(var(--rgb-accent), 0.35); }

/* testimonials: grid-3 */
.testimonial-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--space-gap) * 0.9); }

/* partners: scroll */
/* 自动滚动 */
.partner-grid { display: flex; gap: 2.25rem; overflow: hidden; animation: partnerScroll 32s linear infinite; }
@keyframes partnerScroll {
    0% { transform: translateX(0); filter: drop-shadow(0 0 8px rgba(var(--rgb-accent), 0.25)); }
    50% { transform: translateX(-25%); filter: drop-shadow(0 0 20px rgba(var(--rgb-accent), 0.55)); }
    100% { transform: translateX(-50%); filter: drop-shadow(0 0 8px rgba(var(--rgb-accent), 0.25)); }
}

/* faq: two-column */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--space-gap) * 0.85); }

/* stats: grid-4 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); text-align: center; }

/* cta: centered */
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }

/* Page Layout: wide */
/* 超宽 */
.page-main { max-width: 1400px; margin: 0 auto; box-shadow: 0 0 80px rgba(var(--rgb-accent), 0.12); }

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 0 32px rgba(var(--rgb-accent), 0.6); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 55%, #2e1065 100%); box-shadow: 0 0 40px rgba(var(--rgb-accent), 0.25), inset 0 0 48px rgba(46, 16, 101, 0.45); color: #f5f3ff; }

/* 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: 1.8rem; --space-card: 0.9rem; --space-gap: 0.7rem; }
    .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; }
}