* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* 音乐控制面板 */
.music-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.music-info {
    font-size: 14px;
    min-width: 120px;
}

.music-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.volume-slider {
    width: 80px;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #e94560;
    border-radius: 50%;
    cursor: pointer;
}

/* 标题 */
.title-container {
    text-align: center;
    padding: 30px 20px 20px;
}

.title-container h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, #fff, #e94560, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
}

/* 地图容器 */
.map-container {
    width: 90%;
    max-width: 1000px;
    height: 65vh;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Leaflet 自定义样式 */
.leaflet-container {
    background: #1a1a2e;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-control-zoom a {
    background: rgba(30, 30, 50, 0.9) !important;
    color: #fff !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(233, 69, 96, 0.8) !important;
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.5) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 10px !important;
}

.leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* 自定义标记样式 */
.custom-marker {
    background: none;
    border: none;
}

.marker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.marker-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e94560;
    border: 3px solid #fff;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.6);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.marker-dot.other {
    background: #4a90d9;
    width: 18px;
    height: 18px;
    animation: none;
    box-shadow: 0 0 10px rgba(74, 144, 217, 0.5);
}

.marker-container:hover .marker-dot {
    transform: scale(1.3);
    box-shadow: 0 0 25px rgba(233, 69, 96, 0.9);
}

.marker-label {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
    margin-top: 5px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(233, 69, 96, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(233, 69, 96, 0.9);
    }
}

/* 弹出窗口样式 */
.leaflet-popup-content-wrapper {
    background: rgba(30, 30, 50, 0.95) !important;
    color: #fff !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
    background: rgba(30, 30, 50, 0.95) !important;
}

.leaflet-popup-content {
    margin: 15px 20px !important;
}

.popup-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #e94560;
}

.popup-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* 图例 */
.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.legend-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.legend-dot.visited {
    background: #e94560;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.legend-dot.other {
    background: #4a90d9;
}

/* 照片弹窗 */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.photo-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(30, 30, 50, 0.95);
    border-radius: 20px;
    padding: 30px;
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #e94560;
    transform: rotate(90deg);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #e94560;
}

.photo-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.photo-gallery img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.photo-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.photo-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-nav-btn:hover {
    background: rgba(233, 69, 96, 0.5);
}

.photo-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#photoCounter {
    color: rgba(255, 255, 255, 0.7);
}

/* 无照片提示 */
.no-photos {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 50px;
}

.no-photos p {
    margin-top: 10px;
    font-size: 14px;
}

/* 提示信息 */
.info-tip {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title-container h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .map-container {
        height: 55vh;
    }
    
    .music-panel {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .photo-gallery {
        min-height: 300px;
    }
}
