/* CSSVariantEngine v3.0 — 1999la.com */
/* Palette: sky-mosaic | Radius: large rounded | Shadow: soft multi-layer */
/* Spacing: medium gap | Transition: smooth ease */
/* Section layouts: {"news":"featured-top","features":"grid-2","hero":"overlay","testimonials":"grid-3","partners":"grid-4","faq":"with-sidebar","stats":"grid-4","cta":"card-style"} */

:root {
    --color-primary: #0ea5e9;
    --color-primary-dark: #0284c7;
    --color-accent: #f97316;
    --color-surface: #f8fafc;
    --color-text: #1e293b;
    --rgb-primary: 14, 165, 233;
    --rgb-accent: 249, 115, 22;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 8px rgba(15, 23, 42, 0.05), 0 12px 24px -6px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 8px 16px rgba(15, 23, 42, 0.06), 0 24px 48px -12px rgba(15, 23, 42, 0.15);
    --space-section: 5rem;
    --space-card: 2rem;
    --space-gap: 1.75rem;
    --transition: 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
    --heading-weight: 700;
    --body-line-height: 1.7;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: #f1f5f9; }
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-color: white; border: 1px solid rgba(148, 163, 184, 0.1); }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); background-color: var(--color-primary); color: white; }
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; background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%); color: white; }
                .news-grid > *:nth-child(2) { background: linear-gradient(135deg, #f97316 0%, #fdba74 100%); color: white; }
                .news-grid > *:nth-child(3) { background: linear-gradient(135deg, #10b981 0%, #6ee7b7 100%); color: white; }
                .news-grid > *:nth-child(4) { background: linear-gradient(135deg, #8b5cf6 0%, #c4b5fd 100%); color: white; }

/* features: grid-2 */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--space-gap) * 1.5); }
.feature-list > *:nth-child(odd) { background: linear-gradient(135deg, #ecfeff 0%, #e0f2fe 100%); }
.feature-list > *:nth-child(even) { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); }

/* hero: overlay */
/* 全屏背景+文字覆盖 */
                .hero { position: relative; min-height: 70vh; display: flex; align-items: center; background: linear-gradient(180deg, rgba(14, 165, 233, 0.08) 0%, rgba(249, 115, 22, 0.06) 100%); }
                .hero-content { position: relative; z-index: 1; }

/* testimonials: grid-3 */
.testimonial-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
.testimonial-list > *:nth-child(1) { border-left: 4px solid var(--color-primary); }
.testimonial-list > *:nth-child(2) { border-left: 4px solid var(--color-accent); }
.testimonial-list > *:nth-child(3) { border-left: 4px solid #10b981; }

/* partners: grid-4 */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 1.5); align-items: center; }
.partner-grid > * { filter: grayscale(0.7) opacity(0.7); transition: var(--transition); }
.partner-grid > *:hover { filter: grayscale(0) opacity(1); }

/* faq: with-sidebar */
/* FAQ 左 + 联系信息右 */
                .faq-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
                .faq-wrapper .card:last-child { background: linear-gradient(135deg, #0ea5e9 10%, #0284c7 100%); color: white; }

/* stats: grid-4 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); text-align: center; }
.stats-grid > * { background-color: white; }

/* cta: card-style */
.cta-inner { background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%); border-radius: var(--radius-xl); padding: 3rem; text-align: center; color: white; box-shadow: 0 10px 30px rgba(14, 165, 233, 0.25); }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
a:not([class]):hover { color: var(--color-accent); }
header, .header, .navbar { background: transparent; backdrop-filter: blur(8px); }

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