/* CSSVariantEngine v3.0 — zh-ky-qipai.com.cn */
/* Palette: cool-slate | Radius: compact-rounded | Shadow: layered-blue */
/* Spacing: dense | Transition: smooth-long */
/* Section layouts: {"news":"featured-left","features":"grid-2","hero":"left-aligned","testimonials":"grid-3","partners":"scroll","faq":"with-sidebar","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-accent: #93c5fd;
    --color-surface: #f8fafc;
    --color-text: #1e293b;
    --rgb-primary: 59,130,246;
    --rgb-accent: 147,197,253;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 4px rgba(30, 41, 59, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.05);
    --shadow-md: 0 3px 10px rgba(30, 41, 59, 0.2), 0 1px 3px rgba(59, 130, 246, 0.1);
    --shadow-lg: 0 6px 20px rgba(30, 41, 59, 0.25), 0 2px 8px rgba(59, 130, 246, 0.15), 0 0 40px rgba(59, 130, 246, 0.05);
    --space-section: 2.5rem;
    --space-card: 12px;
    --space-gap: 12px;
    --transition: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    --heading-weight: 800;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #1e293b 0%, #334155 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); background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%); border: 1px solid transparent; border-image: linear-gradient(135deg, #3b82f6 0%, #93c5fd 50%, #3b82f6 100%) 1; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; border: 0; }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

/* ========== 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: grid-2 */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--space-gap) * 1.5); }

/* hero: left-aligned */
.hero-content { text-align: left; max-width: 600px; }

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

/* partners: scroll */
/* 自动滚动 */
                .partner-grid { display: flex; gap: 2rem; overflow: hidden; animation: partnerScroll 16s linear infinite; }
                @keyframes partnerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 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: full-width */
/* 无侧边栏, 全宽 */
            .page-main { max-width: 1200px; margin: 0 auto; padding: 0 8px; }

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #1e293b 0%, #334155 35%, #475569 70%, #3b82f6 100%); }
.card:hover, [class*="card"]:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn:hover, button[class*="btn"]:hover, a[class*="btn"]:hover { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); filter: brightness(1.1); }

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