/* CSSVariantEngine v3.0 — zh-ch-rayspeed.com */
/* Palette: teal-slate | Radius: medium | Shadow: glow */
/* Spacing: symmetric | Transition: smooth-glow */
/* Section layouts: {"news":"featured-left","features":"horizontal","hero":"centered","testimonials":"grid-3","partners":"grid-6","faq":"with-sidebar","stats":"grid-4","cta":"split"} */

:root {
    --color-primary: #0f766e;
    --color-primary-dark: #042f2e;
    --color-accent: #2dd4bf;
    --color-surface: #f0fdfa;
    --color-text: #0f172a;
    --rgb-primary: 15,118,110;
    --rgb-accent: 45,212,191;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 0 12px rgba(45,212,191,.18), 0 1px 3px rgba(4,47,46,.1);
    --shadow-md: 0 0 24px rgba(45,212,191,.25), 0 4px 12px rgba(4,47,46,.12);
    --shadow-lg: 0 0 40px rgba(45,212,191,.35), 0 8px 24px rgba(4,47,46,.18);
    --space-section: 4rem;
    --space-card: 1.5rem;
    --space-gap: 1.5rem;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --heading-weight: 700;
    --body-line-height: 1.6;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background-color: #f8fafc; }
h1, h2, h3, h4 { font-weight: var(--heading-weight); color: var(--color-primary-dark); }
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: #ffffff; }
.btn, button[class*="btn"], a[class*="btn"] { border-radius: var(--radius-md); transition: var(--transition); }
a:not([class]) { color: var(--color-primary); transition: var(--transition); }
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 0 12px rgba(45,212,191,.5); }

/* ========== 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: centered */
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }

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

/* 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: split */
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: 0 0 32px rgba(45,212,191,.6), 0 12px 28px rgba(4,47,46,.2); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #0f766e 0%, #042f2e 60%, #0c1929 100%); }
.card { border-left: 3px solid var(--color-accent); }
header, .header, .navbar { box-shadow: 0 0 16px rgba(45,212,191,.15), 0 2px 8px rgba(4,47,46,.08); background-color: #ffffff; }

/* Glow pulse animation */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 16px rgba(45,212,191,.2), 0 2px 8px rgba(4,47,46,.1); }
    50% { box-shadow: 0 0 28px rgba(45,212,191,.45), 0 4px 12px rgba(4,47,46,.15); }
}
.stats-grid > * { animation: glow-pulse 3s ease-in-out infinite; }

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