/* ==========================================================================
   多次往返行程小大师 - 动态仿真播放器样式 (sim.css)
   ========================================================================== */
.sim-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin: 12px 0;
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sim-title-group, .sim-counters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sim-mode-badge {
  background: #1e3a8a;
  color: #fff;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.sim-param-chip {
  background: #f1f5f9;
  color: #334155;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

.chip-blue { background: #dbeafe; color: #1d4ed8; }
.chip-red { background: #ffe4e6; color: #be123c; }
.chip-green { background: #dcfce7; color: #15803d; }
.chip-purple { background: #f3e8ff; color: #6d28d9; }
.chip-gold { background: #fef3c7; color: #92400e; }

.cnt-badge {
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.cnt-meet { background: #dcfce7; color: #15803d; }
.cnt-chase { background: #f3e8ff; color: #6d28d9; }
.cnt-overlap { background: #fef3c7; color: #b45309; }
.cnt-total { background: #e0f2fe; color: #0369a1; }

.sim-track-wrap, .sim-st-wrap {
  width: 100%;
  background: #fcfcfb;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.sim-st-caption {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  padding: 2px 6px 4px;
}

.sim-svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
}

.sim-telemetry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tele-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  color: #475569;
}

.tele-item span {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.tele-item b {
  font-size: 15px;
  font-family: var(--font-mono);
  color: #0f172a;
}

.tele-blue b { color: #1d4ed8; }
.tele-red b { color: #e11d48; }
.tele-green b { color: #15803d; }
.tele-purple b { color: #7c3aed; }

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.sim-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-speed-select {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}

.sim-slider {
  width: 100%;
  accent-color: var(--brand-blue);
  cursor: pointer;
}

.sim-event-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 92px;
  overflow-y: auto;
  padding-top: 4px;
}

.ev-pill {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.ev-pill:hover { transform: translateY(-1px); }
.ev-pill-meet { border-color: #86efac; background: #f0fdf4; color: #15803d; }
.ev-pill-chase { border-color: #d8b4fe; background: #faf5ff; color: #6d28d9; }
.ev-pill-overlap { border-color: #fcd34d; background: #fffbeb; color: #b45309; }
.ev-pill.active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

.ev-pill-more {
  font-size: 12px;
  color: #64748b;
  align-self: center;
  padding: 0 4px;
}
