/* CSSVariantEngine v3.0 — go-yihaoyouxi.com.cn */
/* Palette: cool-slate | Radius: compact-rounded | Shadow: multi-layer gradient-tinted */
/* Spacing: dense | Transition: long-smooth */
/* Section layouts: {"news":"list-view","features":"grid-3","hero":"minimal","testimonials":"stacked","partners":"grid-6","faq":"single-column","stats":"grid-3","cta":"split"} */

:root {
    --color-primary: #334155;
    --color-primary-dark: #1e293b;
    --color-accent: #3b82f6;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --rgb-primary: 51, 65, 85;
    --rgb-accent: 59, 130, 246;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 3px rgba(30,41,59,0.1), 0 1px 2px rgba(59,130,246,0.06);
    --shadow-md: 0 4px 12px rgba(30,41,59,0.12), 0 2px 4px rgba(59,130,246,0.08);
    --shadow-lg: 0 12px 28px rgba(30,41,59,0.18), 0 6px 8px rgba(59,130,246,0.1);
    --space-section: 3rem;
    --space-card: 1rem;
    --space-gap: 0.75rem;
    --transition: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    --heading-weight: 800;
    --body-line-height: 1.7;
    accent-color: #3b82f6;
    caret-color: #3b82f6;
}

/* 基础覆盖 */
body { 
    color: var(--color-text); 
    line-height: var(--body-line-height);
    background: linear-gradient(180deg, #1e293b 0%, #334155 50%, #1e293b 100%);
}
h1, h2, h3, h4 { font-weight: var(--heading-weight); }
section, .section { 
    padding-top: var(--space-section); 
    padding-bottom: var(--space-section); 
    background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(248,250,252,0.97) 100%);
}
.card, [class*="card"] { 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md); 
    padding: var(--space-card); 
    transition: var(--transition);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #3b82f6 0%, #1e293b 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;
    box-shadow: 0 3px 10px rgba(59,130,246,0.3);
}
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

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

/* hero: minimal */
.hero { 
    padding: 2rem 0; 
    background: linear-gradient(135deg, #1e293b 0%, #334155 40%, #475569 70%, #3b82f6 100%) !important;
} 
.hero-content { max-width: 560px; color: #ffffff; text-shadow: 0 1px 3px 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-6 */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-gap); align-items: center; }

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

/* stats: grid-3 */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: var(--space-gap); 
    text-align: center; 
}
.stats-grid .card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

/* cta: split */
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }

/* Page Layout: narrow-centered */
/* 窄版居中 */
            .page-main { max-width: 860px; margin: 0 auto; }

/* 条件性装饰 */
a:not([class]):hover { color: var(--color-accent); text-shadow: 0 0 4px rgba(59,130,246,0.3); }
.hero, [class*="hero"], section:first-of-type { background: linear-gradient(135deg, #1e293b, #334155, #3b82f6); }
.card { border-left: 3px solid transparent; border-image: linear-gradient(180deg, #3b82f6, #1e293b) 1; }
header, .header, .navbar { 
    box-shadow: 0 2px 10px rgba(30,41,59,0.2), 0 1px 3px rgba(59,130,246,0.1);
    background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
}
.card:hover {
    transform: translateY(-3px);
    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: 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; }
}