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

body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0066cc;
}

.logo span {
    font-size: 0.9rem;
    color: #888;
    margin-left: 10px;
}

/* 侧边控制栏 */
.control-panel {
    position: absolute;
    top: 70px;
    left: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 1000;
    transition: all 0.3s ease;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

.panel-collapsed {
    width: 50px;
    overflow: hidden;
}

.panel-collapsed .panel-content {
    display: none;
}

.toggle-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 16px;
    z-index: 1010;
}

.panel-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.panel-section:last-child {
    border-bottom: none;
}

.panel-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #333;
    display: flex;
    align-items: center;
}

.panel-section h3 i {
    margin-right: 8px;
    color: #0066cc;
}

.btn-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

button {
    background: #f0f6ff;
    border: 1px solid #d0e2ff;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #0066cc;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background: #e1efff;
}

button.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

button i {
    margin-right: 5px;
}

.saved-items {
    max-height: 200px;
    overflow-y: auto;
}

.saved-item {
    padding: 8px 10px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saved-item:hover {
    background: #f0f0f0;
}

.saved-item .actions {
    display: flex;
    gap: 5px;
}

.saved-item .actions button {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* 底部信息栏 */
.info-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
}

.info-bar i {
    margin-right: 5px;
    color: #0066cc;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .control-panel {
        width: 90%;
        left: 5%;
        top: 70px;
    }

    .panel-collapsed {
        width: 50px;
        left: calc(100% - 70px);
    }

    .btn-group {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 用户位置标记样式 */
.user-location-marker {
    background: transparent;
}