/* ============================================================
 * 手机端样式（骑手找店）
 * ============================================================ */
:root{
  --ink:#101418; --sub:#6b7580; --line:#e4e8ee; --bg:#f2f4f7; --card:#fff;
  --brand:#ff5a1f; --brand-dark:#e8480f; --brand-soft:#fff2ec;
  --go:#12a150; --r:16px;
  --shadow:0 2px 10px rgba(16,24,32,.07);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;height:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Arial,sans-serif;
  color:var(--ink);background:var(--bg);overflow:hidden;
}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
h1,h2,p{margin:0}
a{text-decoration:none;color:inherit}

.app{display:flex;flex-direction:column;height:100vh;height:100dvh}

/* 顶栏 */
.bar{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 14px;padding-top:calc(10px + env(safe-area-inset-top));
  background:var(--card);border-bottom:1px solid var(--line);flex:0 0 auto;z-index:5}
.barl{display:flex;align-items:center;gap:9px;min-width:0}
.dot{width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#ff7a3d,#ff4d12);
  display:flex;align-items:center;justify-content:center;font-size:17px;flex:0 0 auto}
.bar h1{font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar p{font-size:11px;color:var(--sub);margin-top:1px}
.back-link{width:30px;height:30px;border-radius:9px;background:#f4f6f9;display:flex;
  align-items:center;justify-content:center;font-size:19px;color:#4a5560;padding-bottom:3px}

.body{flex:1;display:flex;flex-direction:column;min-height:0}

/* 地图 */
.mapbox{flex:1 1 auto;position:relative;min-height:150px;overflow:hidden;background:#e9edf2}
.mapstage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  transform-origin:center center;will-change:transform}
.mapstage.tween{transition:transform .3s cubic-bezier(.22,.7,.24,1)}
#svg{width:100%;height:100%;display:block;touch-action:none}

/* 楼层切换 */
.floorstrip{position:absolute;left:0;right:0;top:0;display:flex;gap:6px;padding:8px 10px;
  z-index:4;overflow-x:auto;scrollbar-width:none;pointer-events:none}
.floorstrip::-webkit-scrollbar{display:none}
.fbtn{pointer-events:auto;flex:0 0 auto;padding:6px 13px;border-radius:99px;background:rgba(255,255,255,.94);
  font-size:12.5px;font-weight:700;color:#4a5560;box-shadow:var(--shadow);position:relative;
  backdrop-filter:blur(6px);border:1.5px solid transparent}
.fbtn.on{background:var(--brand);color:#fff;box-shadow:0 3px 10px rgba(255,90,31,.35)}
.fbtn .bd{position:absolute;top:-3px;right:-3px;width:9px;height:9px;border-radius:50%;
  background:var(--go);border:2px solid #fff}

.maptools{position:absolute;right:10px;bottom:10px;display:flex;flex-direction:column;gap:6px;z-index:3}
.maptools button{width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.94);
  box-shadow:var(--shadow);font-size:18px;color:#3b4550;display:flex;align-items:center;
  justify-content:center;font-weight:600}
.maptools button:active{background:#eef1f5}

.hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);
  background:rgba(16,20,24,.8);color:#fff;font-size:12px;padding:7px 14px;border-radius:99px;
  white-space:nowrap;z-index:3;transition:opacity .25s;max-width:92%;overflow:hidden;text-overflow:ellipsis}
.hint b{color:#ffcf6b}

/* 面板 */
.panel{flex:0 0 auto;background:var(--card);border-top-left-radius:20px;border-top-right-radius:20px;
  box-shadow:0 -4px 20px rgba(16,24,32,.09);position:relative;z-index:4;max-height:60vh;display:flex;flex-direction:column}
.panel-inner{padding:12px 14px calc(14px + env(safe-area-inset-bottom));overflow-y:auto;-webkit-overflow-scrolling:touch}

/* 搜索 */
.searchrow{display:flex;gap:8px;align-items:center}
.display{flex:1;min-width:0;height:52px;border-radius:13px;background:#f5f7fa;border:1.5px solid #e8ecf1;
  display:flex;align-items:center;padding:0 16px;font-size:26px;font-weight:800;letter-spacing:2.5px;
  overflow:hidden;white-space:nowrap;font-variant-numeric:tabular-nums}
.display.empty{font-size:15px;font-weight:500;letter-spacing:0;color:#a1aab4}
.display .caret{display:inline-block;width:2px;height:26px;background:var(--brand);margin-left:2px;
  animation:blink 1.05s steps(2,end) infinite;border-radius:2px}
@keyframes blink{50%{opacity:0}}
.bsend{width:82px;height:52px;border-radius:13px;background:var(--brand);color:#fff;font-size:16px;
  font-weight:700;flex:0 0 auto;box-shadow:0 4px 12px rgba(255,90,31,.3)}
.bsend:active{background:var(--brand-dark)}

.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.keypad button{height:46px;border-radius:12px;background:#f6f8fa;font-size:21px;font-weight:600;
  border:1px solid #edf0f4;display:flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}
.keypad button:active{background:#e9edf3}
.keypad button.del{font-size:18px;color:#7b8591}
.keypad button.wide{font-size:15px}

.quick{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.quick .lab{font-size:12px;color:var(--sub)}
.chip{padding:7px 12px;border-radius:99px;background:#f5f7fa;border:1px solid #e9edf2;font-size:13px;
  color:#3c4650;display:inline-flex;align-items:center;gap:5px}
.chip:active{background:#eaeef4}
.chip b{font-weight:800;color:var(--ink);letter-spacing:.5px}

/* 结果头 */
.rhead{display:flex;align-items:center;gap:10px}
.back{width:34px;height:34px;border-radius:10px;background:#f5f7fa;font-size:20px;color:#4b5560;
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;padding-bottom:3px}
.rno{min-width:66px;height:46px;padding:0 10px;border-radius:12px;background:var(--brand-soft);
  color:var(--brand-dark);font-size:21px;font-weight:800;letter-spacing:.5px;display:flex;
  align-items:center;justify-content:center;font-variant-numeric:tabular-nums;flex:0 0 auto}
.rmeta{flex:1;min-width:0}
.rmeta .nm{font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rmeta .lo{font-size:12px;color:var(--sub);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.speak{width:38px;height:38px;border-radius:11px;background:#f0f7f2;color:var(--go);font-size:17px;
  display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.speak.on{background:var(--go);color:#fff}

.sumrow{display:flex;gap:8px;margin:11px 0 0}
.sum{flex:1;background:#f7f9fb;border-radius:11px;padding:8px 10px;min-width:0}
.sum .k{font-size:11px;color:var(--sub)}
.sum .v{font-size:15px;font-weight:800;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sum .v small{font-size:11px;font-weight:600;color:var(--sub);margin-left:1px}

/* 路线介绍 */
.rdesc{margin-top:10px;background:linear-gradient(180deg,#fff8f4,#fff);border:1px solid #ffe0d1;
  border-radius:13px;padding:10px 12px}
.rdesc .h{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;color:var(--brand-dark);
  letter-spacing:.4px;margin-bottom:4px}
.rdesc .h::before{content:"";width:3px;height:12px;border-radius:2px;background:var(--brand)}
.rdesc .c{font-size:13.5px;line-height:1.62;color:#3a4249;white-space:pre-wrap}

.startrow{display:flex;align-items:center;gap:8px;margin:10px 0 4px}
.startrow .k{font-size:12px;color:var(--sub);flex:0 0 auto}
.startrow select{flex:1;height:36px;border-radius:10px;border:1px solid #e6eaf0;background:#fbfcfd;
  font-size:13.5px;color:#2b333b;padding:0 30px 0 10px;font-family:inherit;appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,#8d97a2 50%),linear-gradient(135deg,#8d97a2 50%,transparent 50%);
  background-position:calc(100% - 16px) 15px,calc(100% - 11px) 15px;background-size:5px 5px,5px 5px;background-repeat:no-repeat}

/* 步骤 */
.steps{list-style:none;margin:6px 0 0;padding:0}
.step{display:flex;gap:10px;padding:9px 8px 9px 6px;border-radius:12px;transition:background .18s}
.step + .step{border-top:1px solid #f2f5f8}
.step.active{background:#fff6f2}
.step.active + .step{border-top-color:transparent}
.sicon{width:34px;height:34px;border-radius:11px;background:#f2f5f8;flex:0 0 auto;display:flex;
  align-items:center;justify-content:center;font-size:16px;color:#4a5560}
.step.active .sicon{background:var(--brand);color:#fff}
.sicon .arw{display:block;line-height:1;font-size:18px;font-weight:700}
.sbody{flex:1;min-width:0;padding-top:1px}
.sbody .t{font-size:14.5px;font-weight:600;line-height:1.35}
.sbody .d{font-size:11.5px;color:var(--sub);margin-top:2px}
.step.vertical .sicon{background:#eef0ff;color:#4b5bd6}
.step.arrive .sbody .t{color:var(--go)}
.step.arrive .sicon{background:#e9f7ef;color:var(--go)}
.footnote{margin-top:10px;font-size:11.5px;color:#98a2ad;line-height:1.5}

/* 建议 */
.suggest{position:absolute;left:14px;right:14px;bottom:100%;margin-bottom:8px;background:#fff;
  border-radius:14px;box-shadow:0 8px 28px rgba(16,24,32,.16);overflow:hidden;display:none;z-index:9;
  border:1px solid var(--line);max-height:46vh;overflow-y:auto}
.suggest.show{display:block}
.sg{display:flex;align-items:center;gap:10px;padding:11px 14px;font-size:14px}
.sg + .sg{border-top:1px solid #f3f5f8}
.sg:active{background:#f7f9fb}
.sg .n{font-weight:800;letter-spacing:.5px;min-width:52px;color:var(--brand-dark);font-variant-numeric:tabular-nums}
.sg .m{flex:1;color:#39424b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg .f{font-size:11px;color:#9aa4ae}

/* ------- 商场列表页 ------- */
.malls-page{overflow:auto;background:var(--bg)}
.mall-list{padding:14px;display:flex;flex-direction:column;gap:10px}
.mall-card{display:flex;align-items:center;gap:12px;background:#fff;border-radius:16px;padding:14px;
  box-shadow:var(--shadow);transition:transform .15s}
.mall-card:active{transform:scale(.985)}
.mc-icon{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#fff1ea,#ffe0d2);
  display:flex;align-items:center;justify-content:center;font-size:22px;flex:0 0 auto}
.mc-body{flex:1;min-width:0}
.mc-name{font-size:16px;font-weight:700}
.mc-sub{font-size:12px;color:var(--sub);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-meta{font-size:11px;color:#9aa4ae;text-align:right;line-height:1.5;flex:0 0 auto}
.empty-tip{text-align:center;color:#9aa4ae;font-size:13px;padding:40px 20px;line-height:1.7}

@media (min-width:760px){
  .app,.malls-page{max-width:520px;margin:0 auto;box-shadow:0 0 40px rgba(0,0,0,.08)}
  body{background:#e8ebef}
}
