/* CSSVariantEngine v3.0 — sc-yihaoyule.com.cn */
/* Palette: vibrant gradient | Radius: soft rounded | Shadow: multi-layer glow */
/* Spacing: generous | Transition: smooth long curve */
/* Section layouts: {"news":"masonry-2","features":"grid-4","hero":"minimal","testimonials":"carousel","partners":"grid-4","faq":"with-sidebar","stats":"inline","cta":"card-style"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #5b21b6;
    --color-accent: #ec4899;
    --color-surface: #f8fafc;
    --color-text: #1e293b;
    --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 8px rgba(124, 58, 237, 0.12), 0 1px 2px rgba(236, 72, 153, 0.06);
    --shadow-md: 0 8px 24px rgba(124, 58, 237, 0.18), 0 3px 6px rgba(236, 72, 153, 0.1);
    --shadow-lg: 0 16px 48px rgba(236, 72, 153, 0.22), 0 6px 12px rgba(124, 58, 237, 0.15);
    --space-section: 2.5rem;
    --space-card: 1.5rem;
    --space-gap: 1.75rem;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 700;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #f0f4ff 0%, #fdf2f8 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); border: 2px solid transparent; border-image: linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b) 1; background: linear-gradient(#ffffff, #ffffff) padding-box; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: white; border: none; }
a:not([class]) { color: var(--color-primary); transition: var(--transition); text-decoration-thickness: 2px; text-underline-offset: 3px; }

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

/* news: masonry-2 */
/* 两列瀑布流 */
                .news-grid { column-count: 2; column-gap: var(--space-gap); }
                .news-grid .card { break-inside: avoid; margin-bottom: var(--space-gap); }

/* features: grid-4 */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); }

/* hero: minimal */
.hero { padding: 2rem 0; } .hero-content { max-width: 560px; }

/* testimonials: carousel */
/* 单条轮播 */
                .testimonial-list { display: flex; overflow: hidden; } 
                .testimonial-list > * { flex: 0 0 100%; }

/* 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: inline */
/* 水平排列 */
                .stats-grid { display: flex; justify-content: center; gap: 3rem; }

/* cta: card-style */
.cta-inner { background: radial-gradient(circle at top left, #fef3c7, #fbcfe8, #e0e7ff); border-radius: var(--radius-xl); padding: 3rem; text-align: center; }

/* Page Layout: full-width */
/* 无侧边栏, 全宽 */
            .page-main { max-width: 1200px; margin: 0 auto; }

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-image: linear-gradient(135deg, #f59e0b, #ec4899, #7c3aed) 1; }
a:not([class]):hover { color: var(--color-accent); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%); color: white; }
header, .header, .navbar { box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15), 0 1px 3px rgba(236, 72, 153, 0.08); background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); }

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