/* CSSVariantEngine v3.0 — gloab-haixingzhibo.com.cn */
/* Palette: pastel-gradient | Radius: soft-rounded | Shadow: multi-layer soft */
/* Spacing: medium | Transition: smooth long */
/* Section layouts: {"news":"grid-4","features":"horizontal","hero":"minimal","testimonials":"carousel","partners":"scroll","faq":"single-column","stats":"inline","cta":"centered"} */

:root {
    --color-primary: #10b981;
    --color-primary-dark: #059669;
    --color-accent: #8b5cf6;
    --color-surface: #f7fafc;
    --color-text: #1e293b;
    --rgb-primary: 16, 185, 129;
    --rgb-accent: 139, 92, 246;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.07), 0 3px 6px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1), 0 6px 12px rgba(15, 23, 42, 0.07);
    --space-section: 2rem;
    --space-card: 1rem;
    --space-gap: 1.25rem;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --heading-weight: 600;
    --body-line-height: 1.75;
}

/* 基础覆盖 */
body { 
    color: var(--color-text); 
    line-height: var(--body-line-height);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 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(180deg, #ffffff 0%, #fefefe 100%);
}
.btn, button[class*="btn"], a[class*="btn"] { 
    border-radius: var(--radius-md); 
    transition: var(--transition); 
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
}
a:not([class]) { color: var(--color-primary); transition: var(--transition); }

/* ========== Section Layout Variants ========== */

/* news: grid-4 */
/* 四列紧凑网格 */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--space-gap) * 0.8); }

/* 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: minimal */
.hero { padding: 2rem 0; } .hero-content { max-width: 560px; }

/* testimonials: carousel */
/* 单条轮播 */
.testimonial-list { display: flex; overflow: hidden; } 
.testimonial-list > * { flex: 0 0 100%; }

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

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

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

/* 条件性装饰 */
.card:hover, [class*="card"]:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
a:not([class]):hover { color: var(--color-accent); }
.card { border-left: 3px solid transparent; border-image: linear-gradient(180deg, var(--color-primary), var(--color-accent)) 1; }
header, .header, .navbar { 
    background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04); 
}

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