/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background-color: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
}

.main-content {
    display: flex;
    flex: 1;
}

.map-section {
    flex: 2;
    position: relative;
}

#map-container {
    height: 100%;
    width: 100%;
}

.map-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar {
    flex: 1;
    padding: 20px;
    background: white;
    overflow-y: auto;
}

.search-section, .route-section {
    margin-bottom: 20px;
}

input, button, select {
    margin: 5px 0;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.chart-section {
    padding: 20px;
    background: white;
}

#chart-container {
    height: 400px;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    .sidebar {
        flex: none;
        height: 200px;
    }
}