/* 客户寄件端 · 工业浅色 + 安全橙（与运营后台同一套设计语言） */
:root {
  --paper: #f5f3ee; --surface: #ffffff; --border: #e3ded2; --border-strong: #d2cbbb;
  --ink: #22242a; --ink-2: #4a4d56; --muted: #8a8579;
  --accent: #e05f00; --accent-2: #ff7a1a; --accent-dim: #fdf0e5;
  --ok: #2f7d5b; --warn: #b8860b; --danger: #be3c32; --blue: #1f6fb2;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --sh1: 0 1px 2px rgba(34,36,42,.06), 0 1px 8px rgba(34,36,42,.04);
  --sh2: 0 4px 16px rgba(34,36,42,.10);
  --font: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
  --disp: "Bebas Neue", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: #e9e5db; color: var(--ink); font-size: 14px; line-height: 1.55; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }

/* ---------- 外壳 ---------- */
.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--paper);
  display: flex; flex-direction: column; position: relative; box-shadow: 0 0 40px rgba(0,0,0,.08); }
.hd { position: sticky; top: 0; z-index: 30; background: linear-gradient(135deg, #d95700 0%, #f2761a 100%);
  color: #fff; padding: 13px 16px 12px; display: flex; align-items: center; gap: 10px;
  overflow: hidden; }
.hd::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.13) 0 6px, transparent 6px 14px); transform: rotate(20deg); }
.hd-back { background: none; border: none; color: #fff; padding: 0 6px; display: flex; align-items: center;
  min-width: 38px; min-height: 44px; margin: -11px -8px -11px -10px; }
.hd-t { flex: 1; min-width: 0; }
.hd-t h1 { font-size: 16px; margin: 0; font-weight: 700; letter-spacing: .04em; }
.hd-t p { margin: 1px 0 0; font-size: 9.5px; font-family: var(--mono); letter-spacing: .18em; opacity: .78; }
.hd-badge { font-family: var(--mono); font-size: 10px; background: rgba(255,255,255,.18);
  padding: 3px 8px; border-radius: 20px; border: 1px solid rgba(255,255,255,.25); }

.main { flex: 1; padding: 14px 14px 158px; }

/* ---------- 底部 tab ---------- */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr); z-index: 40; padding: 6px 0 7px; }
.tab { background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--muted); font-size: 10.5px; padding: 3px 0; transition: color .15s; }
.tab svg { width: 21px; height: 21px; stroke-width: 1.8; }
.tab.on { color: var(--accent); }
.tab.on svg { stroke-width: 2.2; }
.tab i { position: absolute; }

/* ---------- 卡片 / 通用 ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh1); overflow: hidden; margin-bottom: 12px; }
.card-hd { display: flex; align-items: baseline; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.card-hd h2 { font-size: 14px; margin: 0; font-weight: 700; letter-spacing: .03em; }
.card-hd .code { font-family: var(--mono); font-size: 9.5px; color: var(--muted); letter-spacing: .14em; }
.card-hd .more { margin-left: auto; font-size: 11.5px; color: var(--accent); background: none; border: none; }
.card-bd { padding: 14px; }

.btn { border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  border-radius: var(--r-sm); padding: 9px 14px; font-size: 13.5px; font-weight: 500;
  transition: all .15s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:active { transform: scale(.98); }
.btn--pri { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(224,95,0,.28); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn--block { width: 100%; padding: 12px; font-size: 15px; }
.btn:disabled { opacity: .45; }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; padding: 2px 7px;
  border-radius: 3px; font-family: var(--mono); letter-spacing: .03em; }
.tag--run { background: rgba(224,95,0,.1); color: var(--accent); }
.tag--ok { background: rgba(47,125,91,.1); color: var(--ok); }
.tag--wait { background: rgba(34,36,42,.07); color: var(--ink-2); }
.tag--bad { background: rgba(190,60,50,.1); color: var(--danger); }
/* 筛选栏里的 .tag 是按钮，需要独立放大触控区；行内状态标签保持紧凑 */
button.tag { min-height: 32px; padding: 6px 12px; font-size: 11.5px; }

.amt { font-family: var(--disp); letter-spacing: .02em; }
.mono { font-family: var(--mono); }

/* ---------- 首页 ---------- */
.hero { background: linear-gradient(150deg, #fff 0%, #fdf3ea 100%); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 16px; margin-bottom: 12px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 150px; height: 150px;
  border-radius: 50%; background: radial-gradient(circle, rgba(224,95,0,.10), transparent 68%); }
.hero h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: .02em; }
.hero p { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.hero-btns { display: grid; grid-template-columns: 1.5fr 1fr; gap: 9px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.quick button { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 13px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-2); box-shadow: var(--sh1); }
.quick button svg { width: 22px; height: 22px; stroke: var(--accent); }
.last { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.last .st { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent); flex: none; }
.last .info { flex: 1; min-width: 0; }
.last .info b { font-family: var(--mono); font-size: 12.5px; display: block; }
.last .info span { font-size: 11.5px; color: var(--muted); }
.promise { display: flex; gap: 8px; padding: 12px 14px; }
.promise div { flex: 1; text-align: center; }
.promise b { display: block; font-family: var(--disp); font-size: 21px; color: var(--accent); line-height: 1.1; }
.promise span { font-size: 10.5px; color: var(--muted); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .06em; margin-bottom: 5px; }
.field label i { color: var(--danger); font-style: normal; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 10px 11px; background: #fdfcfa; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,95,0,.1); background: #fff; }
.field input::placeholder { color: #b8b2a6; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

.switch-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.switch { width: 42px; height: 24px; border-radius: 20px; background: #d8d2c6; position: relative;
  transition: background .2s; flex: none; border: none; padding: 0; }
.switch::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(18px); }

/* ---------- 步骤条 ---------- */
.steps { display: flex; align-items: center; gap: 0; padding: 12px 14px; background: var(--surface);
  border-bottom: 1px solid var(--border); }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 12px; left: 58%; right: -42%;
  height: 1px; background: var(--border-strong); }
.step.done:not(:last-child)::after { background: var(--accent); }
.step b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; background: #ece7dd; color: var(--muted); z-index: 1; }
.step span { font-size: 10.5px; color: var(--muted); }
.step.on b { background: var(--accent); color: #fff; }
.step.on span { color: var(--accent); font-weight: 600; }
.step.done b { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); }

/* ---------- 报价 ---------- */
.quote { background: linear-gradient(160deg, #fff8f2, #fff); border: 1px solid rgba(224,95,0,.25);
  border-radius: var(--r-md); padding: 15px; }
.quote .total { display: flex; align-items: baseline; gap: 8px; }
.quote .total b { font-family: var(--disp); font-size: 40px; color: var(--accent); line-height: 1; letter-spacing: .02em; }
.quote .total span { font-size: 11.5px; color: var(--muted); }
.q-line { display: flex; justify-content: space-between; font-size: 12.5px; padding: 5px 0; color: var(--ink-2); }
.q-line.total-line { border-top: 1px dashed var(--border-strong); margin-top: 6px; padding-top: 8px; font-weight: 600; color: var(--ink); }
.q-line .mono { color: var(--muted); }

/* ---------- 订单列表 ---------- */
.ord { border-bottom: 1px solid var(--border); padding: 12px 14px; transition: background .15s; }
.ord:last-child { border-bottom: none; }
.ord:active { background: var(--accent-dim); }
.ord-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ord-top .no { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); letter-spacing: .02em; }
.ord-top .tag { margin-left: auto; }
.ord-route { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.ord-route em { font-style: normal; color: var(--muted); font-size: 11px; }
.ord-foot { display: flex; align-items: center; margin-top: 7px; font-size: 11px; color: var(--muted); }
.ord-foot .price { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--ink); font-weight: 600; }

/* ---------- 时间轴 ---------- */
.tl { padding: 4px 0; }
.tl-item { display: flex; gap: 11px; padding: 9px 0; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 24px; bottom: -9px; width: 1px; background: var(--border-strong); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: #ddd6c8; flex: none; margin-top: 4px; }
.tl-item.on .tl-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(224,95,0,.16); }
.tl-body { flex: 1; min-width: 0; }
.tl-body b { font-size: 13px; display: block; }
.tl-body span { font-size: 11px; color: var(--muted); }
.tl-body p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }

/* ---------- 空态 ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 12.5px; }
.empty svg { display: block; margin: 0 auto 10px; opacity: .3; }

/* ---------- 登录 / 注册 ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 22px; box-shadow: var(--sh2); width: 100%; max-width: 420px; margin: 0 auto; }
.login-card h2 { margin: 0 0 3px; font-size: 19px; letter-spacing: .02em; }
.login-card .sub { font-family: var(--mono); font-size: 9.5px; color: var(--muted); letter-spacing: .16em; }

.brand { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.brand-logo { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--accent);
  color: #fff; font-size: 20px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(224,95,0,.28); }

.auth-tabs { display: flex; gap: 4px; padding: 3px; border-radius: var(--r-md);
  background: #f2efe7; border: 1px solid var(--border); margin-bottom: 16px; }
.auth-tabs button { flex: 1; padding: 8px 0; border: none; border-radius: 7px; background: transparent;
  font-size: 12.5px; color: var(--muted); transition: all .16s; }
.auth-tabs button.on { background: var(--surface); color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 3px rgba(34,36,42,.1); }

.auth-title { font-size: 14.5px; font-weight: 600; margin-bottom: 16px; }
.auth-title span { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.input-row { display: flex; gap: 8px; align-items: stretch; }
.input-row input { flex: 1; min-width: 0; }
.code-btn { flex: none; padding: 0 13px; border: 1px solid var(--accent); border-radius: var(--r-sm);
  background: var(--accent-dim); color: var(--accent); font-size: 12px; font-weight: 600;
  white-space: nowrap; transition: all .16s; }
.code-btn:active:not(:disabled) { background: var(--accent); color: #fff; }
.code-btn:disabled { border-color: var(--border-strong); background: #f2efe7; color: var(--muted);
  font-family: var(--mono); font-weight: 400; }

.code-tip { margin-top: 12px; padding: 9px 11px; border-radius: var(--r-sm);
  background: var(--accent-dim); border: 1px dashed rgba(224,95,0,.35);
  font-size: 11.5px; color: var(--ink-2); line-height: 1.5; text-align: center; }
.code-tip b { font-family: var(--mono); font-size: 15px; color: var(--accent); letter-spacing: .18em;
  margin: 0 5px; }
.code-tip em { font-style: normal; color: var(--muted); font-size: 10.5px; }

.auth-switch { text-align: center; font-size: 12px; color: var(--muted); margin-top: 16px; }
.auth-switch a { color: var(--accent); font-weight: 600; margin-left: 4px; cursor: pointer; }
.auth-switch a:active { opacity: .65; }

.err { background: rgba(190,60,50,.07); border: 1px solid rgba(190,60,50,.2); color: var(--danger);
  font-size: 12px; padding: 9px 11px; border-radius: var(--r-sm); margin-top: 10px; }
.hint { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 14px; }
.hint b { font-family: var(--mono); color: var(--ink-2); }
.hint--mini { margin-top: 8px; font-size: 10.5px; opacity: .8; }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 162px; left: 50%; transform: translateX(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 7px; pointer-events: none; width: max-content; max-width: 88vw; }
.toasts--auth { bottom: auto; top: 18px; }   /* 登录页没有底部操作条，提示改到顶部避免压住表单 */
.toast { background: rgba(34,36,42,.92); color: #fff; font-size: 12.5px; padding: 9px 15px;
  border-radius: 20px; box-shadow: var(--sh2); animation: toastIn .24s ease-out; }
.toast.err { background: rgba(190,60,50,.95); }
.toast.ok { background: rgba(47,125,91,.95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px) scale(.96); } }

.send-actions { position: sticky; bottom: 75px; z-index: 25; display: flex; gap: 9px;
  margin: 8px -14px 0; padding: 10px 14px 10px;
  background: var(--paper); border-top: 1px solid var(--border-strong);
  box-shadow: 0 -8px 16px rgba(34,36,42,.06); }

.fade-enter-active, .fade-leave-active { transition: opacity .18s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ============ 常用地址簿 ============ */
.hd-note { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.addr-strip { display: flex; gap: 9px; padding: 11px 14px; overflow-x: auto; scrollbar-width: none; }
.addr-strip::-webkit-scrollbar { display: none; }
.addr-card { flex: 0 0 218px; background: #fdfbf7; border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 9px 10px; position: relative; transition: all .15s; }
.addr-card:active { border-color: var(--accent); background: var(--accent-dim); }
.addr-top { display: flex; align-items: center; gap: 6px; }
.addr-tag { font-size: 9.5px; font-family: var(--mono); letter-spacing: .06em; color: var(--accent);
  background: var(--accent-dim); border-radius: 3px; padding: 1px 5px; flex: none; }
.addr-top b { font-size: 13px; font-weight: 700; }
.addr-top em { font-size: 10.5px; color: var(--muted); font-style: normal; margin-left: auto;
  max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-loc { font-size: 11px; color: var(--ink-2); margin-top: 5px; line-height: 1.45;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.addr-del { position: absolute; top: 6px; right: 6px; opacity: 0; background: none; border: none;
  font-size: 10px; color: var(--danger); transition: opacity .15s; }
.addr-card:hover .addr-del, .addr-card:active .addr-del { opacity: 1; }

/* ============ 表单增强 ============ */
.field textarea { resize: none; line-height: 1.5; padding: 9px 11px; }
.field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,95,0,.1); background: #fff; }
.picker-field { width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 10px 11px; background: #fdfcfa; font-size: 15px; color: var(--ink); text-align: left; }
.picker-field.empty { color: #b8b2a6; }
.picker-field svg { color: var(--muted); flex: none; }
.picker-field:active { border-color: var(--accent); background: #fff; }

.loc-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex: none;
  font-size: 11.5px; padding: 6px 10px; border-radius: 20px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink-2); transition: all .15s; position: relative;
  min-height: 32px; }
/* 扩大命中区但不改变视觉尺寸 */
.loc-btn::after { content: ""; position: absolute; inset: -5px; }
.loc-btn.on { color: var(--accent); border-color: rgba(224,95,0,.45); background: var(--accent-dim); }
.loc-btn:disabled { opacity: .6; }
.loc-hint { display: flex; flex-direction: column; gap: 2px; margin-top: 10px;
  background: rgba(47,125,91,.07); border: 1px solid rgba(47,125,91,.2);
  border-radius: var(--r-sm); padding: 8px 10px; font-size: 11px; color: var(--ok); }
.loc-hint em { font-style: normal; color: var(--muted); font-size: 10px; }

.chip-row { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; display: flex; align-items: center; gap: 5px; padding: 7px 12px;
  border-radius: 20px; border: 1px solid var(--border-strong); background: #fdfcfa; font-size: 11.5px;
  min-height: 32px; }
.chip b { font-weight: 600; }
.chip span { color: var(--muted); font-size: 10.5px; }
.chip:active { border-color: var(--accent); color: var(--accent); }

.save-bar { border-top: 1px dashed var(--border); padding: 10px 14px; }
.save-bar .switch-row { font-size: 12px; color: var(--ink-2); }

/* ============ 城市选择器（底部弹层） ============ */
.picker-mask { position: fixed; inset: 0; background: rgba(28,26,22,.42); z-index: 70;
  opacity: 0; pointer-events: none; transition: opacity .22s; }
.picker-mask.on { opacity: 1; pointer-events: auto; }
.picker { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto;
  max-height: 84vh; background: var(--surface); border-radius: 16px 16px 0 0; z-index: 75;
  display: flex; flex-direction: column; transform: translateY(102%);
  transition: transform .28s cubic-bezier(.32,.72,0,1); box-shadow: 0 -6px 30px rgba(34,36,42,.22); }
.picker.on { transform: translateY(0); }
.picker-grip { width: 38px; height: 4px; border-radius: 3px; background: #d9d3c6; margin: 8px auto 2px; flex: none; }
.picker-hd { display: flex; align-items: center; padding: 6px 16px 10px; flex: none; }
.picker-hd b { font-size: 15px; letter-spacing: .02em; }
.picker-hd span { margin-left: 7px; font-size: 10.5px; font-family: var(--mono); color: var(--muted);
  letter-spacing: .1em; }
.picker-x { margin: -3px -4px -3px auto; width: 34px; height: 34px; border-radius: 50%; border: none;
  background: #f1ede5; color: var(--ink-2); display: grid; place-items: center; }
.picker-search { display: flex; align-items: center; gap: 8px; margin: 0 16px 8px; flex: none;
  border: 1px solid var(--border-strong); border-radius: 22px; padding: 8px 12px; background: #f8f5f0; }
.picker-search svg { color: var(--muted); flex: none; }
.picker-search input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-size: 14px; padding: 0; }
.picker-search .clr { border: none; background: none; font-size: 11px; color: var(--muted); flex: none;
  padding: 8px 6px; margin-right: -6px; }
.picker-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 0 18px;
  -webkit-overflow-scrolling: touch; }

.loc-now { display: flex; align-items: center; gap: 9px; margin: 4px 16px 12px;
  padding: 9px 12px; border-radius: var(--r-sm); background: var(--accent-dim);
  border: 1px solid rgba(224,95,0,.22); }
.loc-now .loc-pin { font-size: 15px; flex: none; }
.loc-now div { min-width: 0; flex: 1; }
.loc-now b { display: block; font-size: 12.5px; color: var(--accent); }
.loc-now span { display: block; font-size: 11px; color: var(--ink-2); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-now em { font-style: normal; font-size: 11.5px; color: var(--accent); font-weight: 600; flex: none; }
.loc-now--idle { background: #f4f7fb; border-color: rgba(31,111,178,.2); }
.loc-now--idle b, .loc-now--idle em { color: var(--blue); }

.sec-t { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px 7px;
  font-size: 11px; color: var(--muted); letter-spacing: .1em; font-family: var(--mono); }
.sec-t em { font-style: normal; letter-spacing: 0; font-size: 10.5px; }

.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 16px; }
.city-grid--tight { padding-top: 2px; }
.city { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 9px 4px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: #fdfcfa; font-size: 13px; color: var(--ink); transition: all .13s; }
.city em { font-style: normal; font-size: 9.5px; color: var(--muted); font-family: var(--mono); }
.city:active { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }

.prov-list { padding: 0 8px; }
.prov-hd { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 8px;
  background: none; border: none; border-bottom: 1px solid var(--border); font-size: 13px;
  color: var(--ink); text-align: left; }
.prov-hd span { flex: 1; }
.prov-hd em { font-style: normal; font-size: 10.5px; color: var(--muted); font-family: var(--mono); }
.prov-hd svg { color: var(--muted); transition: transform .18s; flex: none; }
.prov-hd.on { color: var(--accent); }
.prov-hd.on svg { transform: rotate(90deg); color: var(--accent); }
.prov .city-grid { padding: 8px 8px 10px; }

.loc-from { font-style: normal; font-size: 9.5px; font-family: var(--mono); font-weight: 400;
  color: var(--muted); margin-left: 5px; letter-spacing: .04em; }

/* 最近一单快捷操作 / 详情页再来一单 */
.last-acts { display: flex; gap: 8px; padding: 0 14px 12px; }
.last-acts .btn { flex: 1; padding: 8px; font-size: 12.5px; }
.btn--sm { padding: 7px 11px; font-size: 12.5px; }
.detail-acts { margin-top: 4px; }

/* 选择器给个最小高度，结果少时也像抽屉而不是小气泡 */
.picker { min-height: 46vh; }

/* 详情页寄收货物明细 */
.d-line { display: flex; gap: 10px; padding: 5px 0; }
.d-line > b { flex: none; width: 16px; font-size: 12px; color: var(--accent); font-weight: 700; }
.d-line > div { min-width: 0; flex: 1; }
.d-line span { display: block; font-size: 12.5px; color: var(--ink); }
.d-line em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ============ 货物品类 / 特殊属性 ============ */
.fl-note { font-style: normal; font-size: 10px; color: var(--muted); font-weight: 400; margin-left: 5px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 2px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: #fdfcfa;
  transition: all .13s; }
.cat-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--ink-2); background: #f1ede5; }
.cat-name { font-size: 10.5px; color: var(--ink-2); line-height: 1.2; }
.cat.on { border-color: var(--accent); background: var(--accent-dim); }
.cat.on .cat-ico { background: var(--accent); color: #fff; }
.cat.on .cat-name { color: var(--accent); font-weight: 600; }
.cat:active { transform: scale(.97); }

.flag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.flag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px;
  border: 1px solid var(--border-strong); border-radius: 20px; background: #fdfcfa;
  font-size: 11.5px; color: var(--ink-2); transition: all .13s; }
.flag em { font-style: normal; font-size: 9.5px; color: var(--muted); font-family: var(--mono); }
.flag.on { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.flag.on em { color: var(--accent); opacity: .8; }
.flag-hint { margin-top: 8px; padding: 7px 9px; border-radius: var(--r-sm);
  background: rgba(224,95,0,.06); border: 1px dashed rgba(224,95,0,.32);
  font-size: 11px; color: var(--ink-2); line-height: 1.55; }
.flag-hint div + div { margin-top: 3px; }
.flag-group { margin-top: 8px; font-size: 10.5px; color: var(--muted); }

/* 订单行 / 确认页的货类标签 */
.cargo-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.cargo-tag { font-size: 10px; padding: 1px 6px; border-radius: 3px;
  background: #eef2f7; color: #3a5a7d; font-weight: 600; }
.flag-mini { font-size: 10px; padding: 1px 6px; border-radius: 3px;
  background: rgba(224,95,0,.1); color: var(--accent); }
.cargo-temp { font-size: 10px; color: var(--muted); font-family: var(--mono); }
.cargo-note { margin-top: 5px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.cargo-rule { color: var(--accent) !important; opacity: .78; }

/* ---------- 运单详情小地图 ---------- */
.detail-map { height: 200px; background: #e8e6df; border-top: 1px solid var(--border); }
.detail-map .leaflet-container { font-family: var(--font); }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 14px; font-size: 10.5px; color: var(--muted);
  border-top: 1px solid var(--border); background: #faf8f3; }
.map-open { border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2);
  font-size: 10.5px; padding: 6px 11px; border-radius: 20px; flex: none; position: relative;
  min-height: 32px; display: inline-flex; align-items: center; }
.map-open::after { content: ""; position: absolute; inset: -5px; }
.map-open:active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.cmap-truck { display: flex; flex-direction: column; align-items: center; }
.cmap-truck span { font-size: 17px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.cmap-truck b { font-family: var(--mono); font-size: 9px; background: var(--accent); color: #fff;
  padding: 1px 5px; border-radius: 3px; margin-top: 1px; white-space: nowrap; }
