/* CSSVariantEngine v3.0 — home8-kaiyuanapp.com.cn */
/* Palette: violet-rose | Radius: pillowy | Shadow: layered-soft */
/* Spacing: spacious | Transition: smooth-springy */
/* Section layouts: {"news":"grid-4","features":"centered","hero":"centered","testimonials":"carousel","partners":"grid-6","faq":"with-sidebar","stats":"grid-4","cta":"centered"} */

:root {
    --color-primary: #7c3aed;
    --color-primary-dark: #4c1d95;
    --color-accent: #f43f5e;
    --color-surface: #f8f7f4;
    --color-text: #1c1917;
    --rgb-primary: 124,58,237;
    --rgb-accent: 244,63,94;
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --shadow-sm: 0 1px 3px rgba(124, 58, 237, 0.10), 0 1px 2px rgba(28, 25, 23, 0.06);
    --shadow-md: 0 8px 20px -6px rgba(124, 58, 237, 0.18), 0 4px 12px -4px rgba(244, 63, 94, 0.10);
    --shadow-lg: 0 24px 48px -16px rgba(124, 58, 237, 0.28), 0 12px 24px -12px rgba(244, 63, 94, 0.18);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.5rem;
    --transition: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 600;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: var(--color-surface); background-image: linear-gradient(180deg, #fdfcfa 0%, #f5f2fa 40%, #fff6f7 100%); }
h1, h2, h3, h4 { font-weight: var(--heading-weight); text-shadow: 0 1px 2px rgba(124, 58, 237, 0.08); }
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), inset 0 0 0 1px rgba(124, 58, 237, 0.06); padding: var(--space-card); transition: var(--transition); background-color: #ffffff; background-image: linear-gradient(90deg, #7c3aed 0%, #a78bfa 35%, #f43f5e 100%), linear-gradient(160deg, #ffffff 0%, #fdfbff 55%, #fff5f7 100%); background-size: 100% 4px, 100% 100%; background-position: top left, center; background-repeat: no-repeat, no-repeat; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-image: linear-gradient(135deg, #7c3aed 0%, #a78bfa 45%, #f43f5e 100%); color: #ffffff; box-shadow: 0 4px 14px -4px rgba(124, 58, 237, 0.45), 0 2px 6px -2px rgba(244, 63, 94, 0.30); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

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

/* features: centered */
/* 居中大卡片 */
                .feature-list { display: flex; flex-direction: column; align-items: center; gap: calc(var(--space-gap) * 2); max-width: 720px; margin: 0 auto; }

/* hero: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; background-image: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.07), rgba(244, 63, 94, 0.03) 45%, transparent 70%); }

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

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

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

/* 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; background-image: radial-gradient(ellipse at 50% 100%, rgba(124, 58, 237, 0.08), rgba(244, 63, 94, 0.04) 50%, transparent 75%); }

/* 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), inset 0 0 0 1px rgba(244, 63, 94, 0.14); background-image: linear-gradient(90deg, #6d28d9 0%, #c084fc 35%, #fb7185 100%), linear-gradient(160deg, #ffffff 0%, #fff7fa 55%, #fff0f4 100%); }
a:not([class]):hover { color: var(--color-accent); }
header, .header, .navbar { background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, rgba(124, 58, 237, 0) 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; }
}