/* CSSVariantEngine v3.0 — dg-28.com */
/* Palette: midnight-violet | Radius: sharp | Shadow: hard-offset */
/* Spacing: comfortable | Transition: snappy */
/* Section layouts: {"news":"featured-left","features":"horizontal","hero":"left-aligned","testimonials":"masonry","partners":"grid-4","faq":"with-sidebar","stats":"big-number","cta":"centered"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #4c1d95;
    --color-accent: #facc15;
    --color-surface: #0f0f1a;
    --color-text: #e8e6f5;
    --rgb-primary: 124,58,237;
    --rgb-accent: 250,204,21;
    --radius-sm: 0px;
    --radius-md: 2px;
    --radius-lg: 3px;
    --radius-xl: 4px;
    --shadow-sm: 2px 2px 0 rgba(124,58,237,.85);
    --shadow-md: 4px 4px 0 rgba(124,58,237,.9), 8px 8px 0 rgba(250,204,21,.25);
    --shadow-lg: 6px 6px 0 rgba(124,58,237,1), 12px 12px 0 rgba(250,204,21,.35), 0 0 0 1px rgba(250,204,21,.15);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.25rem;
    --transition: 0.15s cubic-bezier(.2,.9,.3,1.4);
    --heading-weight: 700;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: #0f0f1a; }
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); border: 2px solid rgba(124,58,237,.45); background: #16132a; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); border: 2px solid var(--color-accent); background: var(--color-primary); color: #ffffff; box-shadow: 3px 3px 0 rgba(250,204,21,.9); }
a:not([class]) { color: var(--color-accent); transition: var(--transition); text-decoration-color: var(--color-primary); }

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

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

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

/* partners: grid-4 */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 1.5); align-items: center; }

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

/* 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-accent); text-shadow: 3px 3px 0 rgba(124,58,237,.9); }

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

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); }
a:not([class]):hover { color: #fde047; }
header, .header, .navbar { box-shadow: 3px 3px 0 rgba(124,58,237,.55), 6px 6px 0 rgba(250,204,21,.15); border-bottom: 2px solid rgba(250,204,21,.3); }

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