body {
    margin: 0;
    background: #fff;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: auto;
}

.map-container {
    width: 90vw;
    height: 85vh;
    max-width: 1800px;
    max-height: 1000px;
    position: relative;
    margin: 20px auto;
    background-color: #fff;
    border: 1px solid #ddd;
}

svg {
    width: 100%;
    height: 100%;
}

.country {
    fill: #f9f9f9;
    stroke: #ddd;
    stroke-width: 1;
    transition: all 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
}

.country:hover {
    fill: #0066FF;
    stroke: #0066FF;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 8px #ededed);
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #fff;
    color: #000;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 2.6;
    z-index: 999;
    max-width: 300px;
    font-family: "微软雅黑", sans-serif;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.map-legend .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #0066ff;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 6px #0066ff;
}

.ping{
    position: absolute;
    left: 20px;
    bottom: 190px;
    width: 200px;
    height: 40px;
    font-size: 14px;
    text-align: center;
    line-height: 40px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 15px;
    background: #0066FF;
    color: #fff;
}
.zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.zoom-slider-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zoom-btn {
    width: 28px;
    height: 28px;
    background: #eee;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: #ddd;
}

.zoom-slider {
    width: 120px;
    -webkit-appearance: none;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0066ff;
    cursor: pointer;
    box-shadow: 0 0 4px #00faff;
}

.reset-btn {
    background: #eee;
    border: 1px solid #ddd;
    color: #000;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: #ddd;
}

/* New styles for dots and info card */
.dot {
    fill: #0066ff;
    stroke: #0066ff;
    stroke-width: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dot:hover{
    fill: #fff;
    stroke-width: 3px;
    box-shadow: 0 0 16px #000;
}

.info-card {
    position: absolute;
    background-color: #fff;
    color: #000;
    padding: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 6px;
    font-size: 14px;
    width: 220px;
    display: none;
    z-index: 1000;
    pointer-events: auto;
}

.region-label {
    position: absolute;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    font-size: 14px;
    display: none;
    z-index: 1000;
}
/* Logo容器样式 */
.logo-container {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo图片样式 */
.logo-img {
    width: 120px;
    height: auto;
    max-width: 100%;
    cursor: pointer;
}

/* Logo文字样式 */
.logo-text {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: bold;
    color: #333;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}
/* 当卡片显示时，禁用地图的鼠标事件 */
body.card-visible .country {
    pointer-events: none;
}

@media (max-width: 798px) {
    .map-container {
        width: 70vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        margin: 0;
        border: none;
    }

    .logo-container {
        top: 15px;
        left: 15px;
    }

    .logo-img {
        width: 80px;
    }

    .map-legend {
        left: 15px;
        bottom: 15px;
        font-size: 12px;
        line-height: 2.5;
        padding: 8px 12px;
    }

    .zoom-controls {
        top: 10px;
        right: 10px;
    }
}