/* 首页样式 */

/* ===== Hero ===== */
.hero {
    position: relative; min-height: calc(100vh - var(--header-height));
    display: flex; align-items: center;
    background: linear-gradient(135deg, #0a0e17 0%, #0d1a2d 40%, #0a1a1a 100%);
    overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 70% 40%, rgba(0,212,170,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content {
    position: relative; z-index: 2; max-width: 640px;
    padding-top: 40px; padding-bottom: 40px;
}
.hero-tag {
    display: inline-block; padding: 6px 18px; border-radius: 20px;
    background: var(--accent-glow); border: 1px solid rgba(0,212,170,0.3);
    color: var(--accent); font-size: 13px; font-weight: 600;
    margin-bottom: 24px; animation: fadeInUp 0.6s ease;
}
.hero-title {
    font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-title .highlight { color: var(--accent); }
.hero-desc {
    font-size: 17px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 36px;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-actions { display: flex; gap: 16px; animation: fadeInUp 0.6s ease 0.3s both; }

/* 脉冲装饰 */
.hero-pulse {
    position: absolute; border-radius: 50%; pointer-events: none;
    animation: heroPulse 8s ease-in-out infinite;
}
.hero-pulse-1 {
    top: -20%; right: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,212,170,0.08) 0%, transparent 70%);
}
.hero-pulse-2 {
    bottom: -15%; left: -5%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(240,192,64,0.05) 0%, transparent 70%);
    animation-delay: -4s;
}
@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* ===== 数据统计 ===== */
.stats-bar {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .stat-num { font-size: 40px; font-weight: 700; color: var(--accent); }
.stat-item .stat-unit { font-size: 18px; color: var(--accent); }
.stat-item .stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }

/* ===== 优势 ===== */
.advantages { background: var(--bg-primary); }
.adv-icon { font-size: 32px; }

/* ===== 地图 ===== */
.map-section { background: var(--bg-secondary); }
.map-wrapper {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 24px;
    overflow: hidden;
}

/* ===== 产品预览 ===== */
.product-card { padding: 0; overflow: hidden; }
.product-img {
    height: 200px; background: var(--bg-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; border-bottom: 1px solid var(--border);
}
.product-body { padding: 24px; }
.product-body h3 { font-size: 18px; margin-bottom: 8px; }
.product-body p { font-size: 14px; color: var(--text-secondary); }
.product-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent);
}
.product-link:hover { gap: 10px; }

/* ===== CTA ===== */
.cta-section {
    padding: 80px 0; text-align: center;
    background: linear-gradient(135deg, #0d1a2d, #0a1a1a);
}
.cta-title { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.cta-desc { color: var(--text-secondary); margin-bottom: 32px; font-size: 16px; }

/* ===== Tablet 1024px ===== */
@media (max-width: 1024px) {
    .hero-content { max-width: 560px; }
    .hero-title { font-size: 40px; }
    .hero-desc { font-size: 16px; }
    .stats-grid { gap: 20px; }
    .stat-item .stat-num { font-size: 36px; }
    .core-metrics { flex-wrap: wrap; }
    .core-metric { min-width: 80px; }
}

/* ===== Mobile 768px ===== */
@media (max-width: 768px) {
    .hero { min-height: auto; padding: 60px 0 48px; }
    .hero-bg { background: radial-gradient(circle at 50% 30%, rgba(0,212,170,0.15) 0%, transparent 60%); }
    .hero-content { max-width: none; padding-top: 24px; padding-bottom: 0; text-align: center; }
    .hero-tag { font-size: 12px; padding: 5px 16px; margin-bottom: 20px; }
    .hero-title { font-size: 30px; margin-bottom: 16px; line-height: 1.3; }
    .hero-desc { font-size: 14px; line-height: 1.8; margin-bottom: 28px; }
    .hero-actions { flex-direction: row; gap: 10px; justify-content: center; }
    .hero-actions .btn { flex: 1; max-width: 180px; justify-content: center; text-align: center; }
    .hero-pulse { display: none; }

    .stats-bar { padding: 36px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item .stat-num { font-size: 30px; }
    .stat-item .stat-unit { font-size: 14px; }
    .stat-item .stat-label { font-size: 13px; margin-top: 6px; }

    .map-wrapper { padding: 12px; }
    #chinaMap { height: 400px !important; }

    .product-img { height: 140px; font-size: 40px; }
    .product-body { padding: 16px; }
    .cta-section { padding: 48px 0; }
    .cta-title { font-size: 22px; }
    .cta-desc { font-size: 14px; margin-bottom: 24px; }
}

/* ===== Narrow Mobile 540px — 渐进收缩，覆盖390-430px区间 ===== */
@media (max-width: 540px) {
    .hero-title { font-size: 26px; }
    .hero-desc { font-size: 13px; margin-bottom: 24px; }
    .hero-actions .btn { max-width: 160px; padding: 10px 14px; font-size: 13px; }

    .stats-grid { gap: 14px; }
    .stat-item .stat-num { font-size: 26px; }
    .stat-item .stat-unit { font-size: 13px; }
    .stat-item .stat-label { font-size: 12px; margin-top: 4px; }

    #chinaMap { height: 360px !important; }
    .product-img { height: 120px; font-size: 36px; }
    .cta-title { font-size: 20px; }
}

/* ===== Small Mobile 480px ===== */
@media (max-width: 480px) {
    .hero { padding: 40px 0 32px; }
    .hero-tag { font-size: 11px; padding: 4px 12px; margin-bottom: 14px; }
    .hero-title { font-size: 24px; margin-bottom: 12px; line-height: 1.35; }
    .hero-desc { font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
    .hero-actions { flex-direction: column; gap: 10px; align-items: stretch; }
    .hero-actions .btn { max-width: none; padding: 11px 16px; font-size: 13px; justify-content: center; text-align: center; }

    .stats-bar { padding: 24px 0; }
    .stats-grid { gap: 12px; }
    .stat-item .stat-num { font-size: 24px; }
    .stat-item .stat-unit { font-size: 12px; }
    .stat-item .stat-label { font-size: 11px; margin-top: 4px; }

    #chinaMap { height: 300px !important; }
    .map-wrapper { padding: 10px; }
    .product-img { height: 120px; font-size: 36px; }
    .product-body { padding: 14px; }
    .product-body h3 { font-size: 15px; }
    .product-body p { font-size: 12px; }
    .cta-section { padding: 40px 0; }
    .cta-title { font-size: 18px; }
    .cta-desc { font-size: 13px; margin-bottom: 20px; }
}

/* ===== Extra Small 360px ===== */
@media (max-width: 360px) {
    .hero { padding: 36px 0 28px; }
    .hero-tag { font-size: 10px; padding: 3px 10px; margin-bottom: 12px; }
    .hero-title { font-size: 20px; margin-bottom: 10px; line-height: 1.3; }
    .hero-desc { font-size: 12px; line-height: 1.6; margin-bottom: 20px; }
    .hero-actions .btn { padding: 10px 14px; font-size: 12px; }

    .stats-bar { padding: 20px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-item .stat-num { font-size: 20px; }
    .stat-item .stat-unit { font-size: 11px; }
    .stat-item .stat-label { font-size: 10px; margin-top: 2px; }

    #chinaMap { height: 260px !important; }
    .map-wrapper { padding: 8px; }
    .product-img { height: 100px; font-size: 28px; }
    .product-body { padding: 12px; }
    .product-body h3 { font-size: 14px; margin-bottom: 4px; }
    .product-body p { font-size: 11px; }
    .cta-section { padding: 32px 0; }
    .cta-title { font-size: 16px; }
    .cta-desc { font-size: 12px; margin-bottom: 16px; }
}
