/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: none !important;
}

body {
    background-color: #f9fbff;
    padding: 20px;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.card-container {
    width: 100%;
    max-width: 1100px;
    height: 615px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

/* 地球容器 - 旋转阶段无交互 */
#earth-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff !important;
    /* 地球背景色改为白色 */
    pointer-events: none;
    /* 禁止交互 */
    transition: opacity 1.5s ease-in-out;
}

/* 地图容器 */
#map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1.5s ease-in-out;
    background-color: #ffffff;
}

#map-container.visible {
    opacity: 1;
    visibility: visible;
}

#map {
    width: 100%;
    height: 100%;
    background-color: #fae2e1;
    /* 与地球颜色协调 */
}

#earth-container {
    background-color: #ffffff;
}

/* 地图样式补充 */
.province-name-tag {
    font-size: 10px;
    color: #acaaaa;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    padding: 2px 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    pointer-events: none;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    z-index: 100;
}

.custom-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #de0202;
    border: 2px solid white;
    transition: all 0.2s ease;
    z-index: 9999 !important;
}

.custom-marker::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(222, 2, 2, 0.3);
    animation: pulse 2s infinite;
}

.custom-tooltip {
    background: white;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 4px 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    font-size: 13px;
    color: #333;
}

.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
}

.leaflet-popup-tip,
.leaflet-popup-close-button {
    display: none !important;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(0.8);
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .card-container {
        height: 500px;
    }

    .province-name-tag {
        font-size: 9px;
    }
}