/* CSSVariantEngine v3.0 — dingshengtiyu.net.cn */
/* Palette: teal-citrus | Radius: soft rounded | Shadow: multi-layer gradient | Spacing: generous strip | Transition: smooth 0.5s */
/* Section layouts: {"news":"list-view","features":"horizontal","hero":"left-aligned","testimonials":"stacked","partners":"grid-4","faq":"single-column","stats":"inline","cta":"split"} */

:root {
    --color-primary: #0d9488;
    --color-primary-dark: #0f766e;
    --color-accent: #f97316;
    --color-surface: #fff7ed;
    --color-text: #1e293b;
    --rgb-primary: 13, 148, 136;
    --rgb-accent: 249, 115, 22;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(13, 148, 136, 0.12);
    --shadow-md: 0 4px 16px rgba(13, 148, 136, 0.15), 0 2px 6px rgba(249, 115, 22, 0.08);
    --shadow-lg: 0 8px 32px rgba(13, 148, 136, 0.2), 0 4px 12px rgba(249, 115, 22, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    --space-section: 5rem;
    --space-card: 1.35rem;
    --space-gap: 1.1rem;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 700;
    --body-line-height: 1.7;
    --caret-color: #0d9488;
    --accent-color: #f97316;
}

/* 基础覆盖 */
body { color: var(--color-text); line-height: var(--body-line-height); background: linear-gradient(180deg, #ffffff 0%, #f8fafc 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, #f8fafc); }
.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: list-view */
/* 列表模式 (图左文右) */
                .news-grid { display: flex; flex-direction: column; gap: var(--space-gap); }
                .news-grid .card { display: grid; grid-template-columns: 280px 1fr; }

/* 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: left-aligned */
.hero-content { text-align: left; max-width: 600px; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }

/* testimonials: stacked */
/* 垂直堆叠 */
                .testimonial-list { display: flex; flex-direction: column; gap: var(--space-gap); max-width: 720px; margin: 0 auto; }

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

/* faq: single-column */
.faq-list { max-width: 800px; margin: 0 auto; }

/* stats: inline */
/* 水平排列 */
                .stats-grid { display: flex; justify-content: center; gap: 3rem; }

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

/* 条件性装饰 */
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(180deg, #0d9488 0%, #0f766e 45%, #115e59 100%); }
section:nth-of-type(2) { background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%); }
section:nth-of-type(3) { background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%); }
section:nth-of-type(4) { background: linear-gradient(180deg, #0f766e 0%, #134e4a 100%); color: white; }
.card { border: 2px solid; border-image: linear-gradient(135deg, rgba(13,148,136,0.3), rgba(249,115,22,0.3)) 1 stretch; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* 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: 3.5rem; --space-card: 1.1rem; --space-gap: 0.9rem; }
    .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; }
}