
.container-controls {
    background: white;
    padding: 20px;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.container-controls h1 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}


/* 新增：起点终点标记样式 */
.start-marker {
    color: #2ecc71;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.7);
}

.end-marker {
    color: #e74c3c;
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.7);
}

.current-marker {
    color: #3498db;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.8);
}

/* 新增：起点终点标记样式 */
.start-marker {
    color: #2ecc71;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.7);
}

.end-marker {
    color: #e74c3c;
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.7);
}

.current-marker {
    color: #3498db;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.8);
}

@keyframes pulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

/* 新增：起点终点标记样式 */
.start-marker {
    color: #2ecc71;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.7);
}

.end-marker {
    color: #e74c3c;
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.7);
}

.current-marker {
    color: #3498db;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.8);
}

/* 新增：脉冲动画 */
@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.3; }
    100% { transform: scale(1); opacity: 1; }
}

.pulse-dot {
    animation: pulse-dot 1.5s infinite;
}

/* 新增：居中按钮样式 */
.leaflet-control-custom {
    background: white;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    padding: 5px;
}

.leaflet-control-custom a {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}

.leaflet-control-custom a:hover {
    background: #f4f4f4;
}
/* 数据卡片 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.stat-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card h5 i {
    font-size: 18px;
    color: #3498db;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.stat-value.highlight {
    color: #e74c3c;
}

.stat-value.success {
    color: #27ae60;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.start-marker {
    color: #2ecc71;  /* 绿色 */
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.7);
}

.end-marker {
    color: #e74c3c;  /* 红色 */
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.7);
}

.current-marker {
    color: #3498db;  /* 蓝色 */
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.8);
}

/* 速度仪表盘样式 */
.speed-gauge {
    width: 120px;
    height: 120px;
    position: relative;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.speed-value {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.speed-unit {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-left: 2px;
}


.tab-content {
    margin: 0 20px 20px;
}

/* 地图容器 */
#map-container {
    position: relative;
}

#map {
    height: calc(100vh - 300px); /* 动态高度，填满页面 */
    min-height: 600px; /* 最小高度 */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0;
}

/* 速度、距离、等待显示 - 移到地图右下角 */
#stats-display-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 180px;
}

.stats-display {
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stats-display:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#speed-display {
    background: linear-gradient(135deg, rgba(46, 134, 222, 0.85), rgba(67, 97, 238, 0.85));
    color: #fff;
}

#distance-display {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

#waiting-display {
    background: rgba(231, 76, 60, 0.85);
    color: #fff;
    display: none; /* 默认隐藏，只在等待时显示 */
}

.stats-display i {
    font-size: 18px;
    min-width: 24px;
    text-align: center;
}

.stats-value {
    font-weight: 600;
    font-size: 16px;
    margin-left: auto;
}

/* 倍速控制样式 */
.speed-control-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.speed-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.speed-btn:hover {
    background: #5a6268;
}

#speed {
    width: 80px;
    text-align: center;
}

/* 数据卡片区域 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* 图表卡片 */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 500px;
}

.chart-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-card canvas {
    width: 100% !important;
    height: 400px !important;
}
#time-display {
    background: rgba(39, 174, 96, 0.85);
    color: #fff;
}
/* 脉冲动画 */
@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.3; }
    100% { transform: scale(1); opacity: 1; }
}

.pulse-dot {
    animation: pulse-dot 1.5s infinite;
}