/* 银尔达轨迹记录系统 —— 页面样式，还原截图布局 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: "Microsoft YaHei", -apple-system, sans-serif; color: #1f2d3d; }

.layout { display: flex; height: 100vh; }
.sidebar {
  width: 300px; min-width: 300px;
  background: #1f2937; color: #e5e7eb;
  display: flex; flex-direction: column; padding: 12px; gap: 12px; overflow-y: auto;
}
.title { font-size: 18px; font-weight: 700; padding: 4px 6px; color: #fff; }

.panel { background: #273344; border-radius: 8px; padding: 10px; }
.panel-head { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #9ca3af; }
.panel-head.sub { margin-top: 12px; }

.device-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.device-list li {
  background: #324155; border-radius: 6px; padding: 8px 10px; cursor: pointer;
  transition: background .15s;
}
.device-list li:hover { background: #3c4d63; }
.device-list li.active { outline: 2px solid #3b82f6; }
.device-list li.empty { background: transparent; color: #6b7280; cursor: default; }
.dev-imei { font-size: 12px; color: #93c5fd; word-break: break-all; }
.dev-name { font-size: 14px; font-weight: 600; }
.dev-meta { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.csq-bad { color: #f87171; }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; font-size: 12px; }
.field span { color: #9ca3af; }
.field input {
  padding: 6px 8px; border: 1px solid #4b5563; border-radius: 6px;
  background: #1f2937; color: #e5e7eb; font-size: 13px;
}

.btn-row { display: flex; gap: 8px; margin-top: 6px; }
.btn {
  flex: 1; padding: 8px 10px; border: none; border-radius: 6px;
  background: #4b5563; color: #fff; cursor: pointer; font-size: 13px;
}
.btn:hover { background: #5b6675; }
.btn-primary { background: #2563eb; }
.btn-primary:hover { background: #1d4ed8; }
.btn-sm { flex: none; padding: 6px 12px; font-size: 12px; }

.speed-group { display: flex; flex-wrap: wrap; gap: 6px; }
.speed-btn {
  padding: 6px 10px; border: 1px solid #4b5563; border-radius: 6px;
  background: #1f2937; color: #e5e7eb; cursor: pointer; font-size: 12px;
}
.speed-btn.active { background: #2563eb; border-color: #2563eb; }

.main { flex: 1; position: relative; }
.map { width: 100%; height: 100%; }

/* 行程分析面板 */
.trip-panel {
  position: absolute; top: 16px; right: 16px; width: 240px;
  background: rgba(255,255,255,0.95); border-radius: 10px; padding: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); font-size: 13px;
}
.trip-head { font-weight: 700; margin-bottom: 8px; color: #111827; }
.trip-item { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed #e5e7eb; }
.trip-item:last-child { border-bottom: none; }
.trip-item span { color: #6b7280; }
.trip-item b { color: #111827; }

/* 回放进度条 */
.playbar {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(31,41,55,0.92); border-radius: 8px; padding: 8px 12px;
  display: flex; align-items: center; gap: 12px; color: #fff;
}
.progress { flex: 1; height: 6px; background: #4b5563; border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: #3b82f6; transition: width .1s linear; }
.play-info { font-size: 12px; color: #cbd5e1; min-width: 60px; text-align: right; }
