/* ============================================================
   跑腿帮 H5 · 代取快递统一配送（单模块）
   移动优先，设计宽度 390，容器上限 480
   ============================================================ */
:root{
  --bg:          #F5F2EC;
  --surface:     #FFFFFF;
  --surface-2:   #FBF9F5;
  --ink:         #14161B;
  --ink-2:       #565C6B;
  --ink-3:       #8F95A3;
  --line:        #EAE5DC;
  --line-2:      #D9D3C8;

  --brand:       #FF5A1F;
  --brand-1:     #F04A10;
  --brand-soft:  #FFF0E8;
  --brand-ink:   #B23C0B;

  --rider:       #0E7C6B;
  --rider-deep:  #0B6A5C;
  --rider-soft:  #E6F5F1;

  --ok:          #157F3E;
  --ok-soft:     #E8F5EC;
  --warn:        #A96207;
  --warn-soft:   #FDF3E3;
  --danger:      #B3261E;
  --danger-soft: #FDECEA;

  --r: 18px;
  --r-lg: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --sh-1: 0 1px 2px rgba(20,22,27,.04);
  --sh-2: 0 10px 28px -18px rgba(20,22,27,.4);
  --ease: cubic-bezier(.22,.68,0,1);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  font-family:var(--font);
  font-size:15px;
  line-height:1.55;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
  overscroll-behavior-y:none;
}

h1,h2,h3{ margin:0; line-height:1.25; letter-spacing:-.02em; font-weight:700; }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; border:0; background:none; cursor:pointer; }
ul,ol,dl,dd{ margin:0; padding:0; list-style:none; }
::selection{ background:rgba(255,90,31,.2); }

:focus-visible{ outline:2.5px solid #0B7BD6; outline-offset:2px; border-radius:6px; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip-link{
  position:fixed; top:-80px; left:12px; z-index:200; padding:10px 16px;
  background:var(--ink); color:#fff; border-radius:0 0 12px 12px; font-size:13px;
  transition:top .2s;
}
.skip-link:focus{ top:0; }
.sprite{ position:absolute; width:0; height:0; overflow:hidden; }

.icon{
  width:20px; height:20px; flex:none;
  fill:none; stroke:currentColor; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round;
}
.icon-xs{ width:14px; height:14px; stroke-width:2; color:var(--ink-3); }

/* ── 应用容器 ─────────────────────────────────────────── */
.app{
  position:relative;
  max-width:480px;
  margin:0 auto;
  min-height:100dvh;
  background:var(--bg);
  background-image:
    radial-gradient(520px 260px at 100% -6%, rgba(14,124,107,.14), transparent 68%),
    radial-gradient(420px 220px at -10% 6%, rgba(255,90,31,.07), transparent 64%);
  background-repeat:no-repeat;
  overflow-x:hidden;
}

/* ── 顶部栏 ───────────────────────────────────────────── */
.app-bar{
  position:sticky; top:0; z-index:30;
  display:flex; align-items:center; gap:8px;
  padding:calc(8px + var(--safe-t)) 14px 8px;
  background:rgba(245,242,236,.86);
  backdrop-filter:saturate(1.4) blur(14px);
  -webkit-backdrop-filter:saturate(1.4) blur(14px);
  transition:box-shadow .25s, background-color .25s;
}
.app-bar.is-scrolled{
  box-shadow:0 1px 0 var(--line);
  background:rgba(245,242,236,.95);
}
.loc{
  display:inline-flex; align-items:center; gap:5px;
  font-size:14px; font-weight:700; letter-spacing:-.01em;
  padding:6px 4px; border-radius:8px;
}
.loc .icon{ width:17px; height:17px; color:var(--rider); }
.bar-right{ margin-left:auto; display:flex; align-items:center; gap:4px; }
.icon-btn{
  width:38px; height:38px; display:grid; place-items:center;
  border-radius:12px; color:var(--ink-2);
  transition:background-color .18s;
}
.icon-btn:active{ background:rgba(20,22,27,.06); }
.icon-btn .icon{ width:21px; height:21px; }

/* ── 屏幕切换 ─────────────────────────────────────────── */
main{ display:block; }
.screen{
  display:none;
  padding:0 16px calc(92px + var(--safe-b));
}
.screen.is-active{ display:block; animation:screen-in .26s var(--ease) both; }
@keyframes screen-in{
  from{ opacity:0; }
  to{ opacity:1; }
}
body[data-view="parcel"] .app-bar,
body[data-view="riders"] .app-bar{ display:none; }
body[data-view="parcel"] .tabbar,
body[data-view="riders"] .tabbar{ display:none; }
body[data-view="parcel"] .parcel-bar{ display:flex; }
body[data-view="parcel"] .screen{ padding-bottom:calc(116px + var(--safe-b)); }
body[data-view="riders"] .screen{ padding-bottom:calc(24px + var(--safe-b)); }

/* ── 按钮 ─────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  min-height:44px; padding:11px 20px; border-radius:999px;
  font-size:14.5px; font-weight:700; white-space:nowrap;
  transition:transform .16s var(--ease), background-color .18s, opacity .18s;
}
.btn:active{ transform:scale(.975); }
.btn-primary{
  background:var(--brand); color:#fff;
  box-shadow:0 8px 20px -10px rgba(255,90,31,.9);
}
.btn-primary:active{ background:var(--brand-1); }
.btn-white{ background:#fff; color:#14161B; }
.btn-ghost{ background:var(--surface); color:var(--ink); border:1px solid var(--line-2); }
.btn-lg{ padding:13px 24px; font-size:15px; }
.btn-sm{ min-height:36px; padding:8px 14px; font-size:12.5px; }
.btn-block{ width:100%; }

/* ── 通用区块 ─────────────────────────────────────────── */
.block{ margin-bottom:20px; }
.block-head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:10px; margin-bottom:10px;
}
.block-head h2{ font-size:16.5px; }
.block-hint{ font-size:11px; color:var(--ink-3); }
.block-link{
  display:inline-flex; align-items:center; gap:2px;
  font-size:11.5px; font-weight:700; color:var(--rider-deep);
}
.block-link .icon{ color:var(--rider-deep); }

/* 进行中批次卡 */
.live-card{
  display:grid; gap:10px;
  padding:14px; margin:0 0 18px;
  background:var(--surface); border:1px solid rgba(14,124,107,.28);
  border-radius:var(--r); box-shadow:0 10px 26px -20px rgba(14,124,107,.85);
}
.live-head{ display:flex; align-items:center; gap:8px; }
.live-no{ font-family:var(--mono); font-size:10.5px; color:var(--ink-3); }
.live-time{ margin-left:auto; font-size:10.5px; color:var(--ink-3); }
.live-desc{
  font-size:14px; font-weight:600; line-height:1.45;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.live-rider{ display:flex; align-items:center; gap:8px; }
.live-rider .avatar{ width:30px; height:30px; font-size:12px; }
.live-rider b{ font-size:12px; display:block; }
.live-rider small{ font-size:10.5px; color:var(--ink-3); }
.live-eta{ margin-left:auto; font-size:11.5px; font-weight:700; color:var(--rider-deep); }
.live-foot{ display:flex; align-items:center; gap:8px; }
.live-foot .btn{ margin-left:auto; }
.live-slot{
  display:inline-flex; align-items:center; gap:4px;
  width:fit-content;
  margin-top:7px; padding:3px 8px; border-radius:999px;
  font-size:10px; font-weight:700;
  color:var(--rider-deep); background:var(--rider-soft);
}

/* 进度条 */
.bar{ display:flex; gap:4px; }
.bar i{
  flex:1; height:4px; border-radius:3px; background:#EDE8DF;
  transition:background-color .3s;
}
.bar i.on{ background:var(--rider); }
.bar i.cur{ background:var(--rider); opacity:.5; }
.bar-steps{
  display:flex; justify-content:space-between;
  font-size:9.5px; color:var(--ink-3); margin-top:5px;
}
.bar-steps .on{ color:var(--ink); font-weight:600; }

/* 今日批次小卡 */
.slot-strip{
  display:flex; gap:8px; overflow-x:auto;
  margin:0 -16px; padding:2px 16px 4px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.slot-strip::-webkit-scrollbar{ display:none; }
.slot-mini{
  flex:none; width:126px; padding:11px 12px 12px;
  display:grid; gap:2px; text-align:left;
  background:var(--surface); border:1px solid var(--line);
  border-radius:15px; scroll-snap-align:start;
  transition:transform .16s var(--ease), border-color .16s;
}
.slot-mini:active{ transform:scale(.97); }
.slot-mini-day{
  font-size:9px; font-weight:700; color:var(--ink-3);
  display:inline-flex; align-items:center; gap:4px;
}
.slot-mini-day i{
  width:4px; height:4px; border-radius:50%; background:var(--ok);
}
.slot-mini-time{
  font-size:14.5px; font-weight:800; letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;
}
.slot-mini-meta{ font-size:9.5px; color:var(--ink-3); font-variant-numeric:tabular-nums; }
.slot-mini--soon{ border-color:rgba(255,90,31,.4); background:var(--brand-soft); }
.slot-mini--soon .slot-mini-time{ color:var(--brand-ink); }
.slot-mini--soon .slot-mini-meta{ color:var(--brand-ink); }
.slot-mini--soon .slot-mini-day{ color:var(--brand-ink); }
.slot-mini--soon .slot-mini-day i{ background:var(--brand); animation:blink 1.8s infinite; }
.slot-strip-empty{
  flex:none; width:100%; padding:16px 14px; text-align:center;
  font-size:12px; color:var(--ink-3);
  border:1px dashed var(--line-2); border-radius:14px;
}

/* 三步 */
.steps3{ display:grid; gap:8px; }
.steps3 li{
  display:grid; grid-template-columns:auto 1fr; align-items:center;
  column-gap:10px; row-gap:1px;
  padding:11px 13px;
  background:var(--surface); border:1px solid var(--line); border-radius:14px;
}
.s3-num{
  grid-row:span 2;
  width:26px; height:26px; border-radius:9px;
  display:grid; place-items:center;
  font-size:12px; font-weight:800; color:#fff; background:var(--rider);
  font-variant-numeric:tabular-nums;
}
.steps3 b{ font-size:13px; }
.steps3 small{ font-size:11px; color:var(--ink-3); }

/* 价格表 */
.price-list{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); padding:2px 14px;
}
.price-list li{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 0; font-size:13px; color:var(--ink-2);
  border-bottom:1px dashed var(--line);
}
.price-list li:last-child{ border-bottom:0; }
.price-list b{ font-size:13.5px; color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap; }
.price-note{ font-size:11px; color:var(--ink-3); line-height:1.65; margin-top:9px; }

/* 保障 */
.guard{ display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.guard > div{
  background:var(--surface); border:1px solid var(--line);
  border-radius:15px; padding:12px 13px; display:grid; gap:2px;
}
.guard .icon{ width:19px; height:19px; color:var(--rider); margin-bottom:4px; }
.guard b{ font-size:12.5px; }
.guard small{ font-size:10.5px; color:var(--ink-3); }

/* FAQ */
.faq details{
  background:var(--surface); border:1px solid var(--line);
  border-radius:15px; margin-bottom:8px; padding:0 14px;
}
.faq summary{
  list-style:none; cursor:pointer; padding:13px 0;
  font-size:13px; font-weight:600;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:"+"; font-size:17px; color:var(--ink-3); font-weight:400;
  transition:transform .2s var(--ease);
}
.faq details[open] summary::after{ transform:rotate(45deg); color:var(--rider); }
.faq details p{ padding:0 0 13px; font-size:12.5px; color:var(--ink-2); line-height:1.7; }

.page-foot{ text-align:center; padding:6px 0 4px; }
.page-foot p{ font-size:11px; color:var(--ink-3); }
.page-foot-dim{ font-size:10.5px; opacity:.8; margin-top:3px; }

/* ── 子页头部 ─────────────────────────────────────────── */
.sheet-head{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; gap:10px;
  height:52px; margin:0 -16px 10px; padding:0 12px;
  background:rgba(245,242,236,.92);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
}
.sheet-head h1{ font-size:17px; }
.back{
  width:36px; height:36px; display:grid; place-items:center;
  border-radius:11px; color:var(--ink); margin-left:-4px;
}
.back:active{ background:rgba(20,22,27,.06); }
.back .icon{ width:20px; height:20px; stroke-width:2; }
.head-note{ margin-left:auto; font-size:11px; color:var(--ink-3); }
.head-link{
  margin-left:auto; font-size:13px; font-weight:700; color:var(--brand-ink);
  padding:6px 4px;
}

/* ── 表单 ─────────────────────────────────────────────── */
.card{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); padding:15px; margin-bottom:11px;
}
.card-title{
  font-size:13px; font-weight:700; color:var(--ink);
  margin-bottom:13px; display:flex; align-items:center; gap:7px;
}
.card-title::before{
  content:""; width:3px; height:12px; border-radius:2px; background:var(--brand);
}
.card-tip{ font-size:11px; color:var(--ink-3); margin-top:11px; line-height:1.6; }

.field{ margin-bottom:13px; }
.field:last-child{ margin-bottom:0; }
.label{
  display:block; font-size:12px; font-weight:600;
  color:var(--ink-2); margin-bottom:6px;
}
.req{ color:var(--brand); }

.input{
  width:100%; font:inherit; font-size:16px; color:var(--ink);
  min-height:46px; padding:11px 13px;
  background:var(--surface-2); border:1px solid var(--line);
  border-radius:12px;
  transition:border-color .18s, box-shadow .18s, background-color .18s;
}
.input::placeholder{ color:var(--ink-3); font-size:14px; }
.input:focus{
  outline:none; background:#fff; border-color:rgba(255,90,31,.6);
  box-shadow:0 0 0 3.5px rgba(255,90,31,.1);
}
.input.is-invalid{
  border-color:var(--danger); background:var(--danger-soft);
  box-shadow:0 0 0 3.5px rgba(179,38,30,.07);
}
.err-msg{ display:block; font-size:11.5px; color:var(--danger); margin-top:5px; font-weight:500; }

.field-row2{ display:grid; grid-template-columns:1fr 1fr; gap:9px; }

.chips{ display:flex; flex-wrap:wrap; gap:7px; }
.chip{
  min-height:36px; padding:8px 14px; border-radius:999px;
  border:1px solid var(--line); background:var(--surface-2);
  font-size:12.5px; font-weight:500; color:var(--ink-2);
  transition:all .16s var(--ease);
}
.chip.is-active{
  border-color:var(--brand); background:var(--brand-soft);
  color:var(--brand-ink); box-shadow:inset 0 0 0 1px var(--brand);
}
.agree{ font-size:10.5px; color:var(--ink-3); text-align:center; padding:2px 0 6px; }

/* ── 订单列表 ─────────────────────────────────────────── */
.tabs{
  display:flex; gap:6px; margin-bottom:12px;
  overflow-x:auto; scrollbar-width:none; padding-bottom:2px;
}
.tabs::-webkit-scrollbar{ display:none; }
.tab{
  flex:none; padding:8px 15px; border-radius:999px;
  font-size:12.5px; font-weight:600; color:var(--ink-2);
  background:var(--surface); border:1px solid var(--line);
  transition:all .16s;
}
.tab.is-active{ background:var(--ink); border-color:var(--ink); color:#fff; }

.orders{ display:grid; gap:11px; }
.order-card{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); overflow:hidden;
}
.o-head{
  display:flex; align-items:center; gap:7px; flex-wrap:wrap;
  padding:12px 14px 0;
}
.o-no{ font-family:var(--mono); font-size:10px; color:var(--ink-3); }
.o-time{ margin-left:auto; font-size:10px; color:var(--ink-3); }
.o-body{ padding:9px 14px 10px; }
.o-svc{
  display:inline-flex; align-items:center; gap:4px;
  font-size:10px; font-weight:700; color:var(--rider-deep);
  background:var(--rider-soft); padding:2px 7px; border-radius:5px;
  margin-bottom:6px;
}
.o-desc{ font-size:14px; font-weight:600; line-height:1.45; word-break:break-word; }
.o-route{ display:grid; gap:4px; margin-top:8px; }
.o-route li{ display:flex; gap:7px; font-size:12px; color:var(--ink-2); line-height:1.5; }
.o-route b{ color:var(--ink); font-weight:600; }
.rt{ width:7px; height:7px; border-radius:50%; margin-top:6px; flex:none; border:2px solid var(--brand); background:#fff; }
.rt--end{ border-color:var(--rider); background:var(--rider); }
.o-prog{ margin-top:11px; }
.o-rider{
  display:flex; align-items:center; gap:8px; margin-top:10px;
  padding-top:9px; border-top:1px dashed var(--line);
}
.avatar{
  width:34px; height:34px; border-radius:50%; flex:none;
  display:grid; place-items:center;
  background:var(--rider); color:#fff; font-size:13px; font-weight:700;
}
.o-rider b{ font-size:12px; display:block; }
.o-rider small{ font-size:10.5px; color:var(--ink-3); display:flex; align-items:center; gap:3px; }
.icon-star{ width:10px; height:10px; color:#E0A32E; fill:#E0A32E; stroke-width:1; }
.o-rider .eta-mini{
  margin-left:auto; font-size:11px; font-weight:700; color:var(--rider-deep);
  background:var(--rider-soft); padding:3px 8px; border-radius:999px;
  white-space:nowrap;
}

.o-more{ margin:0 14px; border-top:1px solid var(--line); }
.o-more summary{
  list-style:none; cursor:pointer; padding:10px 0;
  display:flex; align-items:center; justify-content:space-between;
  font-size:12px; font-weight:600; color:var(--rider-deep);
}
.o-more summary::-webkit-details-marker{ display:none; }
.o-more summary::after{ content:"展开"; font-size:10.5px; color:var(--ink-3); font-weight:500; }
.o-more[open] summary::after{ content:"收起"; }
.o-more > div{ padding-bottom:11px; }
.map{ width:100%; }
.map svg{ width:100%; height:auto; display:block; border-radius:10px; }
.map .route-base,.map .route-progress{ fill:none; }
.map .route-base{ stroke:#DED8CD; stroke-width:3; stroke-dasharray:2 7; stroke-linecap:round; }
.map .route-progress{ stroke:var(--rider); stroke-width:3.4; stroke-linecap:round; }
.map-meta{
  display:flex; justify-content:space-between; align-items:center;
  font-size:10.5px; color:var(--ink-3); padding:5px 2px 0;
}
.map-meta b{ font-size:11.5px; color:var(--ink); }
.tl{ display:flex; margin-top:10px; padding-bottom:18px; }
.tl-step{ flex:1; position:relative; padding-top:14px; }
.tl-step::before{
  content:""; position:absolute; top:4px; left:0; right:0; height:2px; background:var(--line);
}
.tl-step:first-child::before{ left:50%; }
.tl-step:last-child::before{ right:50%; }
.tl-step::after{
  content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:10px; height:10px; border-radius:50%;
  background:#fff; border:2px solid var(--line-2);
}
.tl-step.done::after{ background:var(--rider); border-color:var(--rider); }
.tl-step.done::before{ background:var(--rider); }
.tl-step.cur::after{
  background:#fff; border-color:var(--rider);
  box-shadow:0 0 0 4px rgba(14,124,107,.14);
}
.tl-name{
  position:absolute; top:18px; left:50%; transform:translateX(-50%);
  font-size:9.5px; color:var(--ink-3); white-space:nowrap;
}
.tl-step.done .tl-name,.tl-step.cur .tl-name{ color:var(--ink); font-weight:600; }

.o-foot{
  display:flex; align-items:center; gap:6px;
  padding:9px 12px 9px 14px;
  background:var(--surface-2); border-top:1px solid var(--line);
}
.o-fee{ font-size:16px; font-weight:800; font-variant-numeric:tabular-nums; }
.o-fee small{ font-size:10px; font-weight:500; color:var(--ink-3); margin-left:4px; }
.o-actions{ margin-left:auto; display:flex; gap:2px; }
.link-btn{
  padding:7px 9px; border-radius:8px; font-size:12px; font-weight:600;
  color:var(--ink-2); min-height:34px;
}
.link-btn:active{ background:rgba(20,22,27,.06); }
.link-btn--primary{ color:var(--brand-ink); background:var(--brand-soft); }
.link-btn--danger{ color:var(--danger); }

.pill{
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 9px; border-radius:999px;
  font-size:10.5px; font-weight:700;
}
.pill--pending{ background:var(--warn-soft); color:var(--warn); }
.pill--accepted{ background:#EDF1FC; color:#3B4C9B; }
.pill--picking{ background:var(--rider-soft); color:var(--rider); }
.pill--delivering{ background:var(--brand-soft); color:var(--brand-ink); }
.pill--done{ background:var(--ok-soft); color:var(--ok); }
.pill--cancelled{ background:#F1EEE9; color:var(--ink-3); }
.pill i{ width:4px; height:4px; border-radius:50%; background:currentColor; animation:blink 1.6s infinite; }

.empty{
  text-align:center; padding:44px 20px;
  background:var(--surface); border:1px dashed var(--line-2); border-radius:var(--r);
}
.empty-ico{
  width:52px; height:52px; border-radius:16px; margin:0 auto 12px;
  display:grid; place-items:center; background:var(--rider-soft); color:var(--rider);
}
.empty-ico .icon{ width:24px; height:24px; }
.empty b{ display:block; font-size:15px; margin-bottom:5px; }
.empty p{ font-size:12px; color:var(--ink-2); line-height:1.6; margin-bottom:16px; }

/* ── 我的 ─────────────────────────────────────────────── */
.profile{
  display:flex; align-items:center; gap:12px;
  margin:8px 0 0; padding:18px 16px 30px;
  background:linear-gradient(140deg, #1A1C23, #232A31 60%, #123a34);
  border-radius:var(--r-lg); color:#fff;
  position:relative; overflow:hidden;
}
.profile::after{
  content:""; position:absolute; inset:-50% -20% auto 45%; height:170px;
  background:radial-gradient(circle, rgba(14,124,107,.5), transparent 68%);
}
.profile .avatar{ width:50px; height:50px; font-size:18px; }
.profile-info{ display:grid; gap:2px; }
.profile-info b{ font-size:17px; letter-spacing:-.01em; }
.profile-info small{ font-size:11.5px; color:rgba(255,255,255,.6); font-variant-numeric:tabular-nums; }
.profile-tag{
  margin-left:auto; font-size:9.5px; padding:4px 8px; border-radius:999px;
  background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.2);
  color:rgba(255,255,255,.9); white-space:nowrap;
}
.me-stats{
  display:grid; grid-template-columns:repeat(3,1fr);
  margin:-20px 12px 14px; padding:14px 6px;
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); box-shadow:var(--sh-2);
  position:relative; z-index:1; text-align:center;
}
.me-stats div + div{ border-left:1px solid var(--line); }
.me-stats b{ display:block; font-size:19px; font-weight:800; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.me-stats small{ font-size:10px; color:var(--ink-3); }

.cell-card{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); overflow:hidden; margin-bottom:11px;
}
.cell{
  display:flex; align-items:center; gap:10px; width:100%;
  padding:13px 14px; min-height:50px; text-align:left;
  border-bottom:1px solid var(--line); background:none;
}
.cell:last-child{ border-bottom:0; }
.cell:active{ background:var(--surface-2); }
.cell .icon{ width:18px; height:18px; color:var(--ink-2); }
.cell > span{ flex:1; font-size:13.5px; }
.cell-extra{ font-size:11.5px; color:var(--ink-3); font-style:normal; }
.cell-extra--hl{ color:var(--brand-ink); font-weight:700; }
.cell--danger{ color:var(--danger); }
.cell--danger .icon{ color:var(--danger); }
.me-note{ text-align:center; font-size:10.5px; color:var(--ink-3); padding:8px 0 4px; }

/* ── 骑手 ─────────────────────────────────────────────── */
.rider-sum{
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:12px;
}
.rider-sum div{
  background:var(--surface); border:1px solid var(--line);
  border-radius:15px; padding:12px; text-align:center;
}
.rider-sum dt{ font-size:10px; color:var(--ink-3); }
.rider-sum dd{ font-size:18px; font-weight:800; letter-spacing:-.03em; font-variant-numeric:tabular-nums; margin-top:1px; }
.rider-tip{ font-size:11px; color:var(--ink-3); margin-bottom:12px; line-height:1.6; }

.lobby{ display:grid; gap:10px; }
.lobby-card{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); padding:13px 14px; display:grid; gap:8px;
}
.lobby-card.is-mine{ background:var(--surface-2); border-color:rgba(14,124,107,.3); }
.lobby-top{ display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.lobby-svc{
  font-size:10px; font-weight:700; padding:2px 7px; border-radius:5px;
  background:var(--rider-soft); color:var(--rider);
}
.lobby-dist{ font-size:10.5px; color:var(--ink-3); margin-left:auto; font-variant-numeric:tabular-nums; }
.lobby-desc{ font-size:13.5px; font-weight:600; line-height:1.45; }
.lobby-route{ font-size:11.5px; color:var(--ink-2); display:flex; gap:5px; align-items:flex-start; }
.lobby-route .icon{ width:12px; height:12px; margin-top:2px; color:var(--ink-3); }
.lobby-tags{ display:flex; gap:5px; flex-wrap:wrap; }
.tag{
  font-size:9.5px; padding:2px 7px; border-radius:4px;
  background:#F0ECE5; color:var(--ink-2);
}
.tag--rush{ background:var(--brand-soft); color:var(--brand-ink); font-weight:700; }
.lobby-foot{ display:flex; align-items:center; gap:8px; padding-top:8px; border-top:1px dashed var(--line); }
.lobby-fee{ font-size:19px; font-weight:800; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.lobby-fee small{ font-size:10px; font-weight:500; color:var(--ink-3); margin-left:4px; }
.lobby-foot .btn{ margin-left:auto; }

/* ── Tabbar ───────────────────────────────────────────── */
.tabbar{
  position:fixed; left:0; right:0; bottom:0; z-index:50;
  max-width:480px; margin:0 auto;
  display:grid; grid-template-columns:repeat(4,1fr);
  padding:6px 6px calc(6px + var(--safe-b));
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-top:1px solid var(--line);
}
.tabbar a{
  display:grid; justify-items:center; gap:2px;
  padding:5px 0; border-radius:12px;
  font-size:10px; font-weight:600; color:var(--ink-3);
  transition:color .16s;
}
.tabbar a .icon{ width:22px; height:22px; stroke-width:1.65; }
.tabbar a.is-active{ color:var(--rider); }
.tabbar a.is-active .icon{ stroke-width:1.95; }
.tabbar a:active{ background:var(--surface-2); }

/* ── Toast ────────────────────────────────────────────── */
.toast-wrap{
  position:fixed; z-index:300; left:50%; transform:translateX(-50%);
  bottom:calc(78px + var(--safe-b));
  width:calc(100% - 32px); max-width:400px;
  display:grid; gap:8px; pointer-events:none;
}
body[data-view="parcel"] .toast-wrap{ bottom:calc(92px + var(--safe-b)); }
.toast{
  display:flex; align-items:flex-start; gap:8px;
  padding:11px 14px; border-radius:13px;
  background:rgba(24,26,32,.95); color:#fff;
  font-size:12.5px; line-height:1.5;
  box-shadow:0 14px 34px -14px rgba(0,0,0,.6);
  animation:toast-in .28s var(--ease) both;
}
.toast .icon{ width:16px; height:16px; margin-top:1px; color:#5BD6A8; }
.toast--warn .icon{ color:#F5B33C; }
.toast--err .icon{ color:#FF8B7E; }
.toast.out{ animation:toast-out .24s ease forwards; }
@keyframes toast-in{ from{ opacity:0; transform:translateY(12px) scale(.97); } to{ opacity:1; transform:none; } }
@keyframes toast-out{ to{ opacity:0; transform:translateY(-6px); } }

.noscript{
  position:fixed; inset:auto 0 0 0; z-index:400;
  background:var(--danger); color:#fff; text-align:center;
  padding:12px; font-size:13px;
}

/* ══ 代取快递 · 统一配送 ══════════════════════════════════ */
/* 批次 Hero */
.p-hero{
  position:relative; overflow:hidden;
  margin:6px 0 12px; padding:17px 17px 14px;
  border-radius:var(--r-lg); color:#fff;
  background:linear-gradient(150deg, #17907E 0%, #0E7C6B 44%, #0A5B4F 100%);
  box-shadow:0 16px 34px -22px rgba(9,74,64,.95);
}
.p-hero::after{
  content:""; position:absolute; inset:-46% -30% auto 42%; height:210px;
  background:radial-gradient(circle, rgba(255,255,255,.17), transparent 66%);
  pointer-events:none;
}
.p-hero-line{
  position:absolute; right:-26px; bottom:-4px; width:255px; height:auto;
  opacity:.3; pointer-events:none;
}
.p-hero-tag{
  position:relative; display:inline-flex; align-items:center; gap:5px;
  font-size:10px; padding:4px 9px; border-radius:999px;
  background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.24);
}
.p-hero-tag i{ width:5px; height:5px; border-radius:50%; background:#8CF0C8; animation:blink 1.8s infinite; }
.p-hero h1,.p-hero h2{ position:relative; font-size:22px; margin:10px 0 6px; letter-spacing:-.025em; }
.p-hero-sub{ position:relative; font-size:11.5px; line-height:1.65; color:rgba(255,255,255,.8); max-width:304px; }
.p-hero-stats{
  position:relative; display:grid; grid-template-columns:repeat(3,1fr);
  gap:6px; margin-top:13px;
}
.p-hero-stats div{
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.15);
  border-radius:12px; padding:7px 9px;
}
.p-hero-stats dt{ font-size:9.5px; color:rgba(255,255,255,.7); }
.p-hero-stats dd{
  margin:1px 0 0; font-size:15.5px; font-weight:800; letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;
}
.p-hero-stats dd em{
  font-style:normal; font-size:10px; font-weight:600;
  opacity:.72; margin-right:2px; letter-spacing:0;
}
.h-hero{ margin-bottom:16px; }
.h-hero-foot{
  position:relative; display:flex; align-items:center; gap:12px; margin-top:14px;
}
.h-hero-note{ font-size:11px; color:rgba(255,255,255,.78); }

/* 取件清单 */
.card-headline{ display:flex; align-items:center; justify-content:space-between; margin-bottom:11px; }
.card-headline .card-title{ margin-bottom:0; }
.p-counter{
  font-size:10.5px; font-weight:700; padding:3px 9px; border-radius:999px;
  background:var(--brand-soft); color:var(--brand-ink);
  font-variant-numeric:tabular-nums;
}
.p-list{ display:grid; gap:9px; }
.p-item{
  display:grid; gap:8px;
  padding:10px 11px 11px;
  border:1px solid var(--line); border-radius:14px;
  background:var(--surface-2);
  transition:border-color .18s;
}
.p-item:focus-within{ border-color:rgba(255,90,31,.35); }
.p-item-head{ display:flex; align-items:center; gap:8px; }
.p-num{
  width:20px; height:20px; flex:none; border-radius:7px;
  display:grid; place-items:center;
  font-size:10.5px; font-weight:800; color:#fff; background:var(--ink);
  font-variant-numeric:tabular-nums;
}
.p-station{
  flex:1; min-width:0;
  font:inherit; font-size:12.5px; font-weight:700; color:var(--ink);
  border:0; background:transparent; padding:2px 0;
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238F95A3' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 2px center;
  padding-right:18px;
}
.p-del{
  width:28px; height:28px; flex:none; border-radius:8px;
  display:grid; place-items:center; color:var(--ink-3);
}
.p-del:active{ background:rgba(20,22,27,.06); }
.p-del .icon{ width:13px; height:13px; stroke-width:2.4; }
.p-del[disabled]{ opacity:.3; }
.p-couriers{ display:flex; flex-wrap:wrap; gap:5px; }
.p-couriers .chip{ flex:none; min-height:30px; padding:5px 11px; font-size:11.5px; }
.p-item-row{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:start; }
.p-code-field{ margin:0; }
.p-code-field .input{ min-height:42px; font-size:15px; background:#fff; letter-spacing:.02em; }
.p-code-field .err-msg{ margin-top:4px; }
.p-big{
  display:inline-flex; align-items:center; gap:5px;
  min-height:42px; padding:0 11px; border-radius:12px;
  border:1px solid var(--line); background:#fff;
  font-size:11.5px; font-weight:600; color:var(--ink-2);
  white-space:nowrap; cursor:pointer;
  transition:all .16s var(--ease);
}
.p-big input{ width:15px; height:15px; margin:0; accent-color:var(--brand); cursor:pointer; }
.p-big:has(input:checked){ border-color:var(--brand); background:var(--brand-soft); color:var(--brand-ink); }
.p-add{
  display:flex; align-items:center; justify-content:center; gap:5px;
  width:100%; min-height:44px; margin-top:9px;
  border:1px dashed var(--line-2); border-radius:12px;
  background:#fff; color:var(--brand-ink);
  font-size:12.5px; font-weight:700;
}
.p-add:active{ background:var(--brand-soft); }
.p-add[disabled]{ opacity:.42; }
.p-add .icon{ width:15px; height:15px; stroke-width:2.3; }

/* 统一配送时段 */
.p-slots{ display:grid; gap:8px; }
.p-slot{
  display:flex; align-items:center; gap:10px; width:100%;
  padding:10px 12px; text-align:left;
  border:1px solid var(--line); border-radius:14px;
  background:var(--surface-2);
  transition:all .18s var(--ease);
}
.p-slot:active{ transform:scale(.99); }
.p-slot.is-active{
  border-color:var(--brand); background:var(--brand-soft);
  box-shadow:inset 0 0 0 1px var(--brand);
}
.p-slot-radio{
  width:17px; height:17px; flex:none; border-radius:50%;
  border:1.8px solid var(--line-2); background:#fff;
  display:grid; place-items:center;
}
.p-slot.is-active .p-slot-radio{ border-color:var(--brand); }
.p-slot.is-active .p-slot-radio::after{
  content:""; width:8px; height:8px; border-radius:50%; background:var(--brand);
}
.p-slot-main{ flex:1; min-width:0; display:grid; gap:1px; }
.p-slot-top{ display:flex; align-items:center; gap:6px; }
.p-slot-day{
  font-size:9px; font-weight:700; padding:1px 6px; border-radius:5px;
  background:#fff; border:1px solid var(--line); color:var(--ink-3);
}
.p-slot.is-active .p-slot-day{ color:var(--brand-ink); border-color:rgba(255,90,31,.3); }
.p-slot-time{
  font-size:15px; font-weight:800; letter-spacing:-.025em;
  font-variant-numeric:tabular-nums;
}
.p-slot.is-active .p-slot-time{ color:var(--brand-ink); }
.p-slot-sub{
  font-size:9.5px; color:var(--ink-3);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.p-slot-empty{
  font-size:12px; color:var(--ink-3); line-height:1.6;
  padding:16px 14px; text-align:center;
  border:1px dashed var(--line-2); border-radius:12px;
}
.p-slot-side{ display:grid; gap:3px; justify-items:end; text-align:right; flex:none; }
.p-slot-flag{
  font-size:9px; font-style:normal; font-weight:700; padding:2px 7px; border-radius:999px;
  background:#fff; border:1px solid var(--line); color:var(--ink-2);
  white-space:nowrap;
}
.p-slot-flag--soon{ background:var(--warn-soft); border-color:rgba(169,98,7,.26); color:var(--warn); }
.p-slot-flag--hot{ background:var(--brand); border-color:var(--brand); color:#fff; }
.p-slot-count{ font-size:9px; color:var(--ink-3); font-variant-numeric:tabular-nums; }
.p-slot.is-active .p-slot-count{ color:var(--brand-ink); }

.p-addr-chips{ margin-top:7px; }
.p-addr-chips .chip{ min-height:32px; padding:6px 11px; font-size:11.5px; }

/* 底部预约栏 */
.parcel-bar{
  display:none;
  position:fixed; left:0; right:0; bottom:0; z-index:40;
  max-width:480px; margin:0 auto;
  align-items:center; gap:12px;
  padding:10px 16px calc(10px + var(--safe-b));
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
  box-shadow:0 -8px 24px -18px rgba(20,22,27,.5);
}
.parcel-bar .btn{ flex:1; }
.submit-price{
  display:grid; grid-template-columns:auto auto; column-gap:5px;
  align-items:baseline; line-height:1.15;
}
.sp-label{ font-size:11px; color:var(--ink-3); }
.submit-price b{
  font-size:22px; font-weight:800; letter-spacing:-.03em;
  font-variant-numeric:tabular-nums; color:var(--ink);
}
.submit-price small{ grid-column:1 / -1; font-size:10px; color:var(--ink-3); margin-top:2px; }

/* 订单里的批次信息 */
.o-batch{
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  margin-top:9px; padding:7px 10px; border-radius:10px;
  background:var(--rider-soft); color:var(--rider-deep);
  font-size:11px; font-weight:700;
}
.o-batch .icon{ width:13px; height:13px; }
.o-batch span{ font-variant-numeric:tabular-nums; }
.o-batch em{
  margin-left:auto; font-style:normal; font-size:9.5px; font-weight:700;
  background:#fff; padding:2px 7px; border-radius:999px;
}

@keyframes blink{
  0%,100%{ opacity:1; } 50%{ opacity:.35; }
}

/* ── 窄屏微调 ─────────────────────────────────────────── */
@media (max-width:360px){
  .p-hero h1,.p-hero h2{ font-size:20px; }
  .p-hero-stats dd{ font-size:14px; }
  .p-slot-time{ font-size:14px; }
  .p-item{ padding:9px 10px 10px; }
  .screen{ padding-left:14px; padding-right:14px; }
  .slot-strip{ margin:0 -14px; padding-left:14px; padding-right:14px; }
}

/* ── 桌面浏览时给个手机画布 ───────────────────────────── */
@media (min-width:520px){
  body{ background:#E7E2D9; }
  .app{
    box-shadow:0 0 0 1px rgba(20,22,27,.06), 0 40px 90px -50px rgba(20,22,27,.55);
  }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}
