/* ==========================================================================
   领导行程管理工作台 · v1 MVP
   Mobile First · 响应式 · 无构建
   ========================================================================== */

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --border: #e5e7eb;
  --ink: #1a1a1a;
  --ink-2: #4b5563;
  --ink-3: #9ca3af;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --success: #10b981;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --danger: #ef4444;
  --info: #3b82f6;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;

  --header-h: 56px;
  --tabbar-h: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

a { color: var(--primary); text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ===== 通用布局 ===== */
.app { max-width: 480px; margin: 0 auto; background: var(--surface); min-height: 100vh; }
@media (min-width: 768px) {
  .app { max-width: none; padding-bottom: 0; }
}

.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 16px;
  gap: 12px;
}
.header h1 { font-size: 17px; font-weight: 600; }
.header .actions { margin-left: auto; display: flex; gap: 4px; }
.header .back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-left: -8px;
  font-size: 26px; line-height: 1; color: var(--ink-2);
  border-radius: 50%; text-decoration: none;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background .15s;
}
.header .back:active { background: var(--bg-2); }

/* ===== 智能识别录入 ===== */
.smart-input {
  background: linear-gradient(135deg, #faf5ff 0%, #f0f4ff 100%);
  border: 1px solid #e9d5ff;
}
.smart-input .smart-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: 600; color: #6d28d9; font-size: 14px; }
.smart-input .smart-head .dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #6366f1); }
.smart-input textarea {
  width: 100%; min-height: 64px; max-height: 200px; padding: 10px 12px;
  border: 1px solid #e5e7eb; border-radius: 8px; background: #fff;
  font: 14px/1.55 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); resize: vertical;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.smart-input textarea:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px #ede9fe; }
.smart-input textarea.recording { border-color: #ef4444; box-shadow: 0 0 0 3px #fecaca; }
.smart-input .smart-actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.smart-input .smart-actions .grow { flex: 1; }
.smart-input .mic-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid #e5e7eb; background: #fff; color: var(--ink);
  font: 13px/1 -apple-system, "PingFang SC", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background .15s, color .15s, border-color .15s;
}
.smart-input .mic-btn:active { background: #f3f4f6; }
.smart-input .mic-btn.recording {
  background: #fef2f2; color: #dc2626; border-color: #fecaca;
  animation: micPulse 1.2s ease-in-out infinite;
}
@keyframes micPulse {
  0%,100% { box-shadow: 0 0 0 0 #fecaca; }
  50%     { box-shadow: 0 0 0 6px rgba(254, 202, 202, 0); }
}
.smart-input .mic-btn .mic-icon { font-size: 14px; }
.smart-input .smart-hint {
  margin-top: 8px; font-size: 12px; color: #6b7280; line-height: 1.5;
  display: flex; flex-wrap: wrap; gap: 4px 8px;
}
.smart-input .smart-hint b { color: var(--ink); margin-right: 4px; }
.smart-input .smart-hint .chip {
  display: inline-block; padding: 2px 8px; background: rgba(255,255,255,0.7);
  border-radius: 4px; font-size: 12px; color: #6d28d9;
}

/* ===== 识别结果 Modal ===== */
.parsed-result { padding: 4px 0; text-align: left; }
.parsed-result .parsed-banner {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: linear-gradient(135deg, #faf5ff, #ede9fe); border-radius: 8px;
  font-size: 13px; color: #6d28d9; margin-bottom: 12px;
}
.parsed-result .parsed-banner .banner-icon { font-size: 18px; }
.parsed-result .parsed-row {
  display: flex; padding: 10px 12px; gap: 12px;
  border-bottom: 1px solid #f3f4f6; align-items: flex-start;
}
.parsed-result .parsed-row:last-child { border-bottom: none; }
.parsed-result .parsed-row .row-label {
  flex-shrink: 0; width: 56px; font-size: 13px; color: #6b7280; padding-top: 1px;
}
.parsed-result .parsed-row .row-value { flex: 1; font-size: 14px; color: var(--ink); line-height: 1.5; word-break: break-word; }
.parsed-result .parsed-row .row-value.empty { color: #9ca3af; font-style: italic; }
.parsed-result .parsed-original {
  margin-top: 12px; padding: 10px 12px;
  background: #f9fafb; border-radius: 6px;
  font-size: 12px; color: #6b7280; line-height: 1.6;
}
.parsed-result .parsed-actions {
  display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap;
}
.parsed-result .parsed-actions .btn { flex: 1; min-width: 0; }

/* 🚗 派车开关 */
.parsed-result .parsed-row .row-hint {
  display: block; font-size: 11px; color: #9ca3af; margin-top: 2px;
  font-weight: normal;
}
.parsed-result .car-toggle {
  display: flex; gap: 6px; flex: 1;
}
.parsed-result .car-opts {
  flex: 1; padding: 8px 10px; font-size: 13px; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; color: var(--ink-2); cursor: pointer;
  font-family: inherit; transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.parsed-result .car-opts:hover { background: #f9fafb; }
.parsed-result .car-opts.on {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.parsed-result .pickup-row { padding: 12px; background: #fafafa; margin: 0 -4px 8px; border-radius: 6px; }
.parsed-result .pickup-input {
  flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; font-family: inherit; background: #fff;
}
.parsed-result .pickup-input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.tabbar {
  position: sticky; bottom: 0; z-index: 100;
  height: var(--tabbar-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; color: var(--ink-3); font-size: 11px;
}
.tabbar a.active { color: var(--primary); }
.tabbar a span.icon { font-size: 22px; }

.main { padding: 16px; padding-bottom: calc(var(--tabbar-h) + 88px); /* 给 FAB 让位，避免压住最后一张卡片 */ }

.empty { text-align: center; padding: 60px 16px; color: var(--ink-3); }
.empty .icon { font-size: 56px; margin-bottom: 12px; opacity: 0.4; }

.fab {
  position: fixed; bottom: calc(var(--tabbar-h) + 16px); right: 16px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 28px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  z-index: 50;
}
/* 桌面端隐藏 FAB：用顶部按钮/侧边栏代替，避免压在卡片上 */
@media (min-width: 1024px) { .fab { display: none; } }
@media (min-width: 1024px) { .main { padding-bottom: 24px; } }

/* ===== 卡片 ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.card-title { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.card-meta { font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 12px; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }

.trip-card {
  display: block; /* 关键：a 链接默认 inline 会让 padding/shadow 失效 */
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  text-decoration: none; /* a 的下划线干扰视觉 */
  color: inherit;
}
.trip-card.priority-high { border-left-color: var(--warning); }
.trip-card.priority-urgent { border-left-color: var(--danger); }

.trip-time { font-weight: 600; font-size: 14px; color: var(--ink); }
.trip-title { font-size: 17px; font-weight: 600; margin: 4px 0; }
.trip-address { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.trip-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== 标签/徽标 ===== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 500;
}
.tag-primary { background: var(--primary-soft); color: var(--primary); }
.tag-success { background: #d1fae5; color: #065f46; }
.tag-warning { background: var(--warning-soft); color: #92400e; }
.tag-danger { background: #fee2e2; color: #991b1b; }
.tag-info { background: #dbeafe; color: #1e40af; }
.tag-gray { background: var(--surface-2); color: var(--ink-2); }
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ===== 表单 ===== */
.form-section { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.form-section h3 { font-size: 14px; color: var(--ink-3); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field label .required { color: var(--danger); margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--surface);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.field textarea { resize: vertical; min-height: 80px; }
.field .help { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch-track { width: 44px; height: 26px; border-radius: 13px; background: var(--border); position: relative; transition: 0.2s; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: 0.2s; }
.switch.on .switch-track { background: var(--primary); }
.switch.on .switch-track::after { left: 21px; }

/* ===== 按钮 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 500; font-size: 15px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); min-height: 44px;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-danger  { background: var(--danger);  color: #fff; border-color: var(--danger); }
.btn-ghost   { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; min-height: 32px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Toast & Modal ===== */
.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  padding: 12px 20px; border-radius: var(--radius-sm); background: var(--ink); color: #fff;
  z-index: 1000; font-size: 14px; opacity: 0; transition: opacity 0.2s;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }

.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 480px; padding: 20px; max-height: 90vh; overflow: auto; }
.modal h3 { margin-bottom: 12px; }
.modal .modal-actions { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; }

/* ===== 登录页 ===== */
.login-page { display: flex; flex-direction: column; min-height: 100vh; padding: 24px; }
.login-page .brand { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.login-page .tagline { color: var(--ink-3); margin-bottom: 32px; }
.login-form { background: var(--surface); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== 看板（响应式） ===== */
.week-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.week-header .week-title { font-size: 18px; font-weight: 600; flex: 1; }
.week-header .week-nav { display: flex; gap: 4px; }

.board-days {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .board-days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
  }
  .day-col {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 10px;
    min-height: 400px;
  }
  .day-col-title {
    text-align: center;
    font-size: 12px;
    color: var(--ink-3);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }
  .day-col-title strong { display: block; font-size: 18px; color: var(--ink); }
}

.day-block { margin-bottom: 16px; }
.day-block-title {
  font-size: 13px; color: var(--ink-3); padding-bottom: 4px;
  border-bottom: 1px solid var(--border); margin-bottom: 8px;
  display: flex; justify-content: space-between;
}
.day-block-title .day-date { font-size: 16px; font-weight: 600; color: var(--ink); }
.day-block-title .day-count { font-size: 12px; }

/* ===== 推送预览（导出长图用） ===== */
.preview-wrap {
  background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
  min-height: 100vh;
  padding: 20px 12px;
}
.preview-card {
  max-width: 540px; margin: 0 auto;
  background: #fff; border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.preview-header {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; padding: 28px 24px;
}
.preview-header h2 { font-size: 22px; }
.preview-header .preview-meta { font-size: 13px; opacity: 0.9; margin-top: 6px; }

.preview-body { padding: 20px 24px; }
.preview-body p.preview-line { margin: 8px 0; }
.preview-day-group { margin: 16px 0 18px; }
.preview-day-title { font-weight: 600; color: var(--primary); margin-bottom: 8px; font-size: 15px; }
.preview-trip {
  background: #f9fafb; border-radius: 10px;
  padding: 12px 14px; margin: 6px 0;
  border-left: 3px solid var(--primary);
}
.preview-trip.urgent { border-left-color: var(--danger); }
.preview-trip.high { border-left-color: var(--warning); }
.preview-trip-title { font-weight: 600; font-size: 15px; }
.preview-trip-meta { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.7; }
.preview-trip-meta a { color: var(--primary); }

.preview-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 16px;
}
.preview-stat {
  background: #f3f4f6; border-radius: 10px; padding: 10px 8px; text-align: center;
}
.preview-stat .n { font-size: 20px; font-weight: 700; color: var(--primary); }
.preview-stat .l { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.preview-footer {
  padding: 14px 24px 24px;
  font-size: 12px; color: var(--ink-3); text-align: center;
  border-top: 1px dashed var(--border);
}

.export-actions {
  position: sticky; bottom: 0;
  background: var(--surface);
  padding: 12px;
  display: flex; gap: 8px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

/* ===== 通知铃铛 ===== */
.bell { position: relative; }
.bell .badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.bell .badge:empty { display: none; }

/* ===== 工具类 ===== */
.text-muted { color: var(--ink-3); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }

/* 桌面端：去掉手机壳，让设计铺满 */
@media (min-width: 768px) {
  body { background: var(--surface-2); }
  .header { max-width: 1200px; margin: 0 auto; left: 0; right: 0; }
  .tabbar { display: none; }
  .main { max-width: 1200px; margin: 24px auto; background: var(--surface); border-radius: var(--radius); padding: 24px; }
  .fab { bottom: 32px; }
}

/* ===== 工作台首页 ===== */
.greeting {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: #fff; border-radius: var(--radius); padding: 22px 20px; margin-bottom: 16px;
  box-shadow: 0 8px 24px -10px rgba(79, 70, 229, 0.6);
}
.greet-top { display: flex; align-items: flex-start; justify-content: space-between; }
.greet-hi { font-size: 22px; font-weight: 700; }
.greet-date { font-size: 13px; opacity: 0.85; margin-top: 4px; }
.greet-role {
  background: rgba(255,255,255,0.18); padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
}
.greet-summary {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 14px; opacity: 0.95;
}

.stat-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px;
}
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--surface); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow-sm); color: var(--ink); text-align: center;
  border: 1px solid var(--border);
}
.stat-card.warn { border-color: #fde68a; background: #fffdf5; }
.stat-n { font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.stat-card.warn .stat-n { color: var(--warning); }
.stat-l { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

.section-title {
  font-size: 15px; font-weight: 600; color: var(--ink); margin: 20px 4px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-title .more { font-size: 13px; color: var(--primary); font-weight: 500; }

/* 待办 */
.todo-card { padding: 6px 16px; }
.todo-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.todo-row:last-child { border-bottom: none; }
.todo-label { font-size: 14px; font-weight: 500; min-width: 96px; color: var(--ink); }
.todo-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.todo-chip {
  background: var(--primary-soft); color: var(--primary); font-size: 12px;
  padding: 4px 10px; border-radius: 999px;
}
.todo-ok { color: var(--success); font-size: 13px; }
.todo-link { color: var(--primary); font-size: 13px; font-weight: 500; }

/* 快捷入口 */
.quick-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (min-width: 768px) { .quick-grid { grid-template-columns: repeat(6, 1fr); } }
.quick-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink); box-shadow: var(--shadow-sm);
}
.quick-item:active { background: var(--surface-2); }
.quick-icon { font-size: 24px; }
.quick-label { font-size: 12px; color: var(--ink-2); }

/* 最近动态 */
.activity-feed { position: relative; padding-left: 18px; }
.activity-feed::before {
  content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--border);
}
.activity-item { position: relative; padding: 8px 0; }
.activity-dot {
  position: absolute; left: -18px; top: 14px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.activity-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.activity-text { font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.activity-time { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ===== 派车推进器 ===== */
.car-stepper { display: flex; align-items: center; gap: 0; padding: 12px 0; overflow-x: auto; }
.car-stepper .step {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-3); white-space: nowrap;
}
.car-stepper .step .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--border); border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  flex-shrink: 0;
}
.car-stepper .step .line {
  width: 22px; height: 2px; background: var(--border); margin: 0 4px;
}
.car-stepper .step.done { color: var(--ink-2); }
.car-stepper .step.done .dot { background: var(--success, #10b981); box-shadow: 0 0 0 1px var(--success, #10b981); }
.car-stepper .step.done .line { background: var(--success, #10b981); }
.car-stepper .step.active { color: var(--primary); font-weight: 600; }
.car-stepper .step.active .dot {
  background: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px var(--primary-soft);
  animation: carPulse 1.5s ease-in-out infinite;
}
@keyframes carPulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px var(--primary-soft); }
  50% { box-shadow: 0 0 0 1px var(--primary), 0 0 0 8px transparent; }
}

.car-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.car-actions .btn-block { flex: 1 1 100%; }

/* ===== 派车历史 ===== */
.car-history { border-top: 1px dashed var(--border); padding-top: 8px; }

/* ===== Modal ===== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 20px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow);
  max-height: 85vh; overflow-y: auto;
}
.modal-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.modal-card .field label { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; display: block; }
.modal-card .field input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px;
  background: var(--surface);
}
.modal-card .field input:focus { outline: none; border-color: var(--primary); }

