/* 基础样式 */
.delta-map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.map-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.map-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff8a00, #e52e71, #1a2a6c);
}

.map-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.map-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 地图列表样式 */
.map-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.map-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #1a2a6c;
    position: relative;
    overflow: hidden;
}

.map-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.map-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a2a6c, #3a7bd5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-item:hover::after {
    opacity: 1;
}

.map-info h2 {
    font-size: 1.9rem;
    color: #1a2a6c;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.map-info h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #e52e71;
    border-radius: 3px;
}

.map-details {
    display: flex;
    gap: 40px;
    font-size: 1.15rem;
    color: #555;
    flex-wrap: wrap;
}

.update-time {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.update-time::before {
    content: "🕒";
    margin-right: 10px;
    font-size: 1.2em;
}

/* 密码样式优化 */
.password-container {
    display: flex;
    align-items: center;
    background: #fff9f9;
    border: 1px solid #ffecec;
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.password-label {
    margin-right: 10px;
    font-weight: 600;
    color: #555;
}

.password-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e74c3c;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(231, 76, 60, 0.15);
}

/* 按钮样式 */
.view-location-btn {
    background: linear-gradient(135deg, #1a2a6c, #3a7bd5);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(26, 42, 108, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-location-btn::before {
    content: "📍";
    font-size: 1.2em;
}

.view-location-btn:hover {
    background: linear-gradient(135deg, #3a7bd5, #1a2a6c);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 42, 108, 0.35);
}

/* 模态框样式优化 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* 深色背景 */
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent; /* 透明背景 */
    border: none; /* 无边框 */
    box-shadow: none; /* 无阴影 */
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#locationImage {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -45px;
    right: -5px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-modal:hover {
    color: #ff5252;
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .map-header {
        padding: 25px 20px;
    }
    
    .map-header h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .map-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    
    .map-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .view-location-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .map-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .map-header {
        padding: 20px 15px;
    }
    
    .map-header h1 {
        font-size: 1.8rem;
    }
    
    .map-header p {
        font-size: 1rem;
    }
    
    .map-info h2 {
        font-size: 1.6rem;
    }
    
    .password-value {
        font-size: 1.2rem;
    }
    
    .map-item {
        padding: 25px 20px;
    }
    
    .close-modal {
        top: -40px;
        right: 0;
        font-size: 40px;
    }
}

.no-maps {
    text-align: center;
    font-size: 1.3rem;
    color: #777;
    padding: 50px 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}