/* 非洲地图模块样式 */
.africa-map-section {
    padding: 80px 0;
    background: #fff;
    position: relative;
}

.map-container {
    position: relative;
    /* max-width: 1000px; */
    margin: 0 auto;
    padding: 0 20px;
}

.map-container img {
    width: 100%;
}

.africa-map {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* 国家标记点样式 */
.country-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: map-float 3s ease-in-out infinite;
    text-align: center;
}

.country-marker i {
    font-size: 24px;
    color: #ffffff;
    border-radius: 50%;
    padding: 8px;
    transition: all 0.3s ease;
    display: block;
}

/* 内部光晕效果 */
.country-marker::before {
    content: '';
    position: absolute;
    top: 75%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: rgba(152, 188, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 2s infinite;
}

/* 外部光晕效果 */
.country-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: rgba(134, 177, 255, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.country-marker:hover {
    animation: map-float 1s ease-in-out infinite;
}

.country-marker:hover i {
    color: #f0a72d;
}

/* 国家标记位置（需要根据实际地图调整） */
.country-niger {
    top: 45%;
    left: 50%;
}

.country-tanzania {
    top: 64%;
    left: 59%;
}

.country-ghana {
    top: 50%;
    left: 47%;
}

.country-kenya {
    top: 57%;
    left: 60%;
}

/* 国家信息弹窗 */
.country-info {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 300px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.country-info.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-info h4 {
    color: #2857B3;
    margin-bottom: 10px;
    font-size: 1.2rem;
    border-bottom: 2px solid #2857B3;
    padding-bottom: 5px;
}

.country-info p {
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9rem;
}

.country-info .flag {
    width: 30px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    border: 1px solid #ddd;
}

/* 地图说明文字 */
.map-description {
    text-align: left;
    max-width: 800px;
    margin: 30px auto 0;
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .country-info {
        width: 200px;
        padding: 15px;
    }

    .country-marker {
        width: 30px;
        height: 30px;
    }

    .country-marker i {
        font-size: 18px;
        padding: 6px;
    }
}

/* 浮动动画 */
@keyframes map-float {
    0% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, -60%);
    }

    100% {
        transform: translate(-50%, -50%);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
}