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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: #333;
    font-size: 28px;
}

.main-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.upload-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

/* 动画控制区域 */
.animation-controls {
    margin-bottom: 20px;
}

.speed-controls {
    margin-bottom: 15px;
}

.speed-controls label {
    margin-right: 10px;
    font-weight: bold;
    color: #333;
}

.speed-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* 时间线样式 */
.timeline {
    margin-bottom: 20px;
}

.timeline-track {
    position: relative;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
}

.timeline-progress {
    position: absolute;
    height: 100%;
    background-color: #007bff;
    border-radius: 3px;
    width: 0;
    left: 0;
    top: 0;
}

.timeline-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border: 2px solid #007bff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-handle:hover {
    transform: translateY(-50%) scale(1.2);
}

.timeline-time {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.upload-section input[type="file"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.upload-section button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.upload-section button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.upload-section button:hover:not(:disabled) {
    background-color: #0056b3;
}

#status {
    margin-left: auto;
    padding: 8px 16px;
    font-weight: 600;
    color: #4b5563;
    background-color: #f1f5f9;
    border-radius: 6px;
    font-size: 14px;
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    height: 90vh; /* 增加高度以显示更大的地图 */
}

.map-container {
    flex: 4; /* 增加地图所占比例 */
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

#mapContainer {
    width: 100%;
    height: 100%;
}

.order-list-container {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.order-list-container h3 {
    padding: 15px;
    background-color: #f8f9fa;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

#orderList {
    flex: 1;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
}

table tbody tr:hover {
    background-color: #f5f5f5;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .map-container,
    .order-list-container {
        height: 50vh;
    }
}