/* ============================================================
   地图分布图样式 - 独立CSS文件
   文件位置: assets/css/map.css
   ============================================================ */

/* ============================================================
   分布图 - 首页展示
   ============================================================ */
.home-map {
    padding: 60px 0;
    background: #F5F8FC;
}

.home-map .map-container {
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8edf4;
    background: #fff;
}

.home-map .map-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   分布点
   ============================================================ */
.map-dot {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.map-dot .dot-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    background: #4A90D9;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    box-shadow: 0 0 32px rgba(74, 144, 217, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.map-dot .data-center-name {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    font-size: 14px;
    font-weight: 600;
    color: rgba(26, 58, 106, 0.75);
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.95), 0 0 40px rgba(255, 255, 255, 0.9);
    padding: 0 4px;
    background: transparent;
    pointer-events: none;
    transition: all 0.3s ease;
}

.map-dot .dot-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid rgba(74, 144, 217, 0.35);
    transform: translate(-50%, -50%);
    animation: pulse-fade 2.5s ease-out infinite;
    z-index: 1;
    pointer-events: none;
}

.map-dot .dot-ring:nth-child(2) {
    animation-delay: 0.8s;
}

.map-dot .dot-ring:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes pulse-fade {
    0% {
        width: 28px;
        height: 28px;
        opacity: 1;
        border-width: 3px;
        border-color: rgba(74, 144, 217, 0.5);
    }
    100% {
        width: 220px;
        height: 220px;
        opacity: 0;
        border-width: 1px;
        border-color: rgba(74, 144, 217, 0);
    }
}

/* ============================================================
   响应式适配
   ============================================================ */

@media (max-width: 1024px) {
    .home-map .map-container {
        border-radius: 12px;
    }
    .map-dot .dot-core {
        width: 22px;
        height: 22px;
    }
    .map-dot .data-center-name {
        font-size: 12px;
    }
    @keyframes pulse-fade {
        0% { width: 22px; height: 22px; }
        100% { width: 160px; height: 160px; }
    }
}

@media (max-width: 768px) {
    .home-map {
        padding: 40px 0;
    }
    .home-map .map-container {
        border-radius: 8px;
    }
    .map-dot .dot-core {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
    .map-dot .data-center-name {
        font-size: 11px;
    }
    @keyframes pulse-fade {
        0% { width: 16px; height: 16px; }
        100% { width: 120px; height: 120px; }
    }
}

@media (max-width: 480px) {
    .map-dot .dot-core {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }
    .map-dot .data-center-name {
        font-size: 9px;
    }
    @keyframes pulse-fade {
        0% { width: 12px; height: 12px; }
        100% { width: 80px; height: 80px; }
    }
}

@media (min-width: 1920px) {
    .home-map .map-container {
        max-width: 1800px;
    }
    .map-dot .dot-core {
        width: 34px;
        height: 34px;
        border-width: 4px;
    }
    .map-dot .data-center-name {
        font-size: 18px;
    }
    .map-dot .dot-ring {
        border-width: 3px;
    }
    @keyframes pulse-fade {
        0% { width: 34px; height: 34px; }
        100% { width: 280px; height: 280px; }
    }
}