/* CSSVariantEngine v3.0 — boyetiyu.net.cn */
/* Palette: deep purple + premium gold | Radius: soft rounded | Shadow: multi-layer gradient | Spacing: airy centered | Transition: smooth long */
/* Section layouts: {"news":"featured-top","features":"horizontal","hero":"overlay","testimonials":"masonry","partners":"centered","faq":"with-sidebar","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #6d28d9;
    --color-accent: #f59e0b;
    --color-surface: #faf7ff;
    --color-text: #1e1b4b;
    --rgb-primary: 124, 58, 237;
    --rgb-accent: 245, 158, 11;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 4px 12px rgba(124, 58, 237, 0.12);
    --shadow-md: 0 10px 28px rgba(245, 158, 11, 0.1), 0 3px 8px rgba(15, 15, 26, 0.07);
    --shadow-lg: 0 22px 55px rgba(124, 58, 237, 0.18), 0 10px 24px rgba(15, 15, 26, 0.12);
    --space-section: 5rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --heading-weight: 800;
    --body-line-height: 1.65;
}

/* 基础覆盖 */
body { 
    color: var(--color-text); 
    line-height: var(--body-line-height); 
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a30 100%);
    min-height: 100vh;
}
h1, h2, h3, h4 { 
    font-weight: var(--heading-weight); 
    text-align: center;
    color: #f8fafc;
    text-shadow: 0 2px 12px rgba(245, 158, 11, 0.25);
}
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%, #f8f4ff 100%);
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(245, 158, 11, 0.3) 100%) 1;
}
.btn, button[class*="btn"], a[class*="btn"] { 
    border-radius: var(--radius-md); 
    transition: var(--transition); 
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    border: none;
}
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
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; }

/* features: horizontal */
/* 水平滚动 */
                .feature-list { display: flex; gap: var(--space-gap); overflow-x: auto; scroll-snap-type: x mandatory; justify-content: center; }
                .feature-list > * { flex: 0 0 300px; scroll-snap-align: start; }

/* hero: overlay */
/* 全屏背景+文字覆盖 */
                .hero { 
                    position: relative; 
                    min-height: 70vh; 
                    display: flex; 
                    align-items: center; 
                    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.12) 0%, transparent 65%), linear-gradient(180deg, #0f0f1a 0%, #1a1a30 100%);
                }
                .hero-content { position: relative; z-index: 1; text-align: center; }

/* testimonials: masonry */
.testimonial-list { column-count: 2; column-gap: var(--space-gap); }
                .testimonial-list > * { break-inside: avoid; margin-bottom: var(--space-gap); }

/* partners: centered */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

/* stats: inline */
/* 水平排列 */
                .stats-grid { display: flex; justify-content: center; gap: 3rem; }

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

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

/* 条件性装饰 */
a:not([class]):hover { 
    color: var(--color-accent); 
    text-shadow: 0 0 8px rgba(var(--rgb-accent), 0.4);
}

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