/* 蒙易GO · H5 打车（配色对齐地图 H5：#1e3c72 深蓝 + #ffb400 金色） */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body { width:100%; height:100%; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; background:#eef1f5; }
.page { position:fixed; inset:0; display:flex; flex-direction:column; }

/* 顶部栏 */
.top-bar { position:relative; z-index:1000; display:flex; align-items:center; justify-content:space-between; padding:10px 12px calc(10px + env(safe-area-inset-top)); background:#1e3c72; }
.brand { color:#fff; font-size:17px; font-weight:800; }
.lang-switch { display:flex; background:rgba(255,255,255,.16); border-radius:15px; overflow:hidden; }
.lang-item { padding:5px 10px; color:#fff; font-size:12px; }
.lang-item.on { background:#ffb400; color:#1e3c72; font-weight:700; }

/* 对接状态条 */
.status-bar { z-index:999; padding:7px 12px; background:#fff6e5; color:#a06a00; font-size:12px; line-height:1.4; }

/* 地图区 */
.map-wrap { flex:1; position:relative; min-height:180px; overflow:hidden; }
#map { position:absolute; inset:0; width:100%; height:100%; }
.map-tip { position:absolute; left:50%; transform:translateX(-50%); top:12px; z-index:900; background:rgba(30,60,114,.85); color:#fff; font-size:12px; padding:6px 14px; border-radius:16px; max-width:88%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.leaflet-container { font:inherit; }

/* 底部面板 */
.panel { position:relative; z-index:950; background:#fff; border-radius:16px 16px 0 0; margin-top:-14px; padding:12px 12px calc(24px + env(safe-area-inset-bottom)); box-shadow:0 -2px 16px rgba(0,0,0,.08); overflow-y:auto; max-height:58%; }

/* 起终点 */
.loc-card { background:#f5f8fc; border-radius:12px; padding:4px 10px; }
.loc-row { display:flex; align-items:center; gap:8px; padding:9px 0; }
.loc-dot { width:12px; height:12px; border-radius:50%; flex:none; }
.loc-dot.from { background:#2a5298; border:3px solid #c7d8f2; }
.loc-dot.dest { background:#e5484d; border:3px solid #f4cdcd; }
.loc-input { flex:1; min-width:0; height:24px; border:none; background:transparent; font-size:15px; outline:none; }
.loc-divider { height:1px; background:#e4eaf3; margin:0 4px; }
.loc-icon { flex:none; width:30px; height:24px; line-height:24px; text-align:center; font-size:14px; color:#2a5298; background:#fff; border-radius:12px; box-shadow:0 1px 3px rgba(0,0,0,.08); }

/* 收藏 */
.fav-head { display:flex; align-items:center; justify-content:space-between; margin-top:12px; padding:6px 4px; font-size:14px; font-weight:700; color:#1f2d44; }
.fav-toggle { color:#8a94a6; font-size:14px; }
.fav-label { font-size:12px; color:#8a94a6; margin:4px 0; }
.fav-label-row { display:flex; align-items:center; justify-content:space-between; margin-top:8px; }
.fav-add { color:#2a5298; font-size:13px; font-weight:600; }
.sys-grid { display:flex; flex-wrap:wrap; gap:8px; }
.sys-item { display:flex; align-items:center; gap:4px; padding:6px 10px; border-radius:16px; background:#eef3fb; color:#2a5298; font-size:13px; }
.my-list { margin-top:4px; }
.my-item { display:flex; align-items:center; gap:8px; padding:9px 6px; border-bottom:1px solid #f0f3f8; }
.my-icon { font-size:14px; }
.my-info { flex:1; min-width:0; }
.my-name { font-size:14px; color:#1f2d44; }
.my-sub { font-size:12px; color:#8a94a6; }
.my-del { color:#b0b8c8; padding:2px 6px; font-size:13px; }
.fav-empty { font-size:12px; color:#b0b8c8; padding:8px 0; }

/* 车型 */
.section-title { font-size:14px; font-weight:700; color:#1f2d44; margin:14px 4px 8px; }
.car-list { display:flex; flex-direction:column; gap:8px; }
.car-item { display:flex; align-items:center; gap:10px; padding:11px 12px; border:1.5px solid #e4eaf3; border-radius:12px; background:#fff; }
.car-item.active { border-color:#2a5298; background:#f5f8fc; }
.car-icon { font-size:22px; }
.car-info { flex:1; min-width:0; }
.car-name { font-size:15px; font-weight:700; color:#1f2d44; }
.car-desc { font-size:12px; color:#8a94a6; margin-top:1px; }
.car-price { font-size:15px; font-weight:800; color:#2a5298; }
.car-unit { font-size:11px; font-weight:400; color:#8a94a6; }

/* 预估 */
.est-row { display:flex; align-items:center; justify-content:space-between; margin-top:12px; padding:11px 12px; background:#fff6e5; border-radius:12px; }
.est-label { font-size:14px; font-weight:700; color:#a06a00; }
.est-hint { font-size:11px; color:#c99a3a; margin-top:2px; }
.est-price { font-size:22px; font-weight:800; color:#ff7a00; }

/* 一键叫车 */
.ride-btn { margin-top:12px; text-align:center; padding:14px 0; border-radius:14px; background:#ffb400; color:#1e3c72; font-size:17px; font-weight:800; box-shadow:0 3px 10px rgba(255,180,0,.35); }
.ride-btn:active { transform:scale(.98); }
.ride-btn.disabled { background:#c4cad6; color:#fff; box-shadow:none; }

/* 历史订单与服务说明 */
.section-card { margin-top:6px; }
.h-item { display:flex; justify-content:space-between; align-items:center; padding:10px 4px; border-bottom:1px solid #f0f3f8; }
.h-route { font-size:14px; color:#1f2d44; }
.h-meta { font-size:12px; color:#8a94a6; }
.service-note { margin-top:14px; padding:12px; background:#f5f8fc; border-radius:12px; font-size:12px; color:#5a6a85; line-height:1.8; }
.eazygo-link { margin-top:14px; padding:12px; background:#1e3c72; border-radius:12px; display:flex; flex-direction:column; align-items:center; gap:6px; }
.eg-back { color:#ffb400; font-size:14px; font-weight:700; text-decoration:none; }
.eg-tip { color:rgba(255,255,255,.75); font-size:11px; }

/* ===== 订单视图 ===== */
#view-order { flex:1; overflow-y:auto; padding:0 12px calc(24px + env(safe-area-inset-bottom)); }
.order-head { display:flex; align-items:center; justify-content:space-between; padding:12px 2px; }
.order-back { color:#2a5298; font-size:14px; font-weight:600; }
.order-no { color:#8a94a6; font-size:12px; }
.order-card { background:#fff; border-radius:16px; padding:20px 16px; text-align:center; box-shadow:0 1px 6px rgba(0,0,0,.06); }
.order-status-icon { font-size:44px; }
.order-status { font-size:19px; font-weight:800; color:#1f2d44; margin-top:8px; }
.order-status-sub { font-size:13px; color:#8a94a6; margin-top:4px; }
.status-steps { display:flex; align-items:center; justify-content:center; gap:6px; margin-top:18px; }
.step { display:flex; flex-direction:column; align-items:center; flex:1; }
.step-dot { width:14px; height:14px; border-radius:50%; background:#d7deeb; border:3px solid #eef1f5; }
.step-dot.on { background:#2a5298; border-color:#c7d8f2; }
.step-dot.done { background:#34a853; border-color:#c9ecd2; }
.step-name { font-size:10px; color:#8a94a6; margin-top:4px; }
.step-name.on { color:#2a5298; font-weight:700; }
.step-line { flex:1; height:2px; background:#d7deeb; margin-bottom:18px; }
.step-line.on { background:#2a5298; }
.order-route { margin-top:16px; padding:12px; background:#f5f8fc; border-radius:12px; font-size:14px; color:#1f2d44; text-align:left; line-height:1.7; }
.order-meta { margin-top:8px; font-size:13px; color:#5a6a85; text-align:left; }
.driver-card { margin-top:14px; padding:12px; background:#fff6e5; border-radius:12px; text-align:left; }
.driver-title { font-size:12px; color:#a06a00; font-weight:700; }
.driver-name { font-size:16px; font-weight:800; color:#1f2d44; margin-top:4px; }
.driver-plate { font-size:13px; color:#5a6a85; margin-top:2px; }
.order-actions { display:flex; gap:10px; margin-top:16px; }
.btn-cancel { flex:1; text-align:center; padding:12px 0; border-radius:12px; background:#fdeaea; color:#e5484d; font-size:14px; font-weight:700; }
.btn-advance { flex:1; text-align:center; padding:12px 0; border-radius:12px; background:#eef3fb; color:#2a5298; font-size:14px; font-weight:700; }
.mock-tip { text-align:center; font-size:12px; color:#b0b8c8; margin-top:14px; }

/* ===== 弹层 ===== */
.mask { position:absolute; inset:0; z-index:2000; background:rgba(0,0,0,.4); display:flex; align-items:flex-end; justify-content:center; }
.addr-modal { width:100%; max-width:520px; background:#fff; border-radius:16px 16px 0 0; padding:16px 16px calc(20px + env(safe-area-inset-bottom)); }
.modal-title { font-size:16px; font-weight:800; color:#1f2d44; margin-bottom:12px; }
.addr-list { max-height:46vh; overflow-y:auto; }
.favpick-label { font-size:12px; color:#8a94a6; margin:8px 0 4px; }
.addr-item { display:flex; justify-content:space-between; align-items:center; padding:12px 4px; border-bottom:1px solid #f0f3f8; }
.addr-zh { font-size:14px; color:#1f2d44; }
.addr-mn { font-size:12px; color:#8a94a6; }
.modal-btns { display:flex; gap:10px; margin-top:14px; }
.modal-cancel { flex:1; text-align:center; padding:11px 0; border-radius:12px; background:#eef1f5; color:#5a6a85; font-size:14px; font-weight:600; }
.modal-ok { flex:1; text-align:center; padding:11px 0; border-radius:12px; background:#2a5298; color:#fff; font-size:14px; font-weight:700; }
.modal-input { width:100%; height:42px; padding:0 12px; border:1px solid #e4eaf3; border-radius:10px; font-size:15px; outline:none; margin-bottom:10px; background:#f5f8fc; }
.trans-row { display:flex; gap:8px; align-items:center; }
.trans-row .modal-input { margin-bottom:0; }
.trans-btn { flex:none; padding:0 16px; line-height:42px; }
.trans-result { margin-top:10px; padding:10px 12px; background:#fff6e5; border-radius:10px; color:#a06a00; font-size:14px; }

/* 加载遮罩 */
.loading-mask { position:absolute; inset:0; z-index:3000; background:#fff; display:none; align-items:center; justify-content:center; color:#8a94a6; font-size:14px; }
.loading-mask.on { display:flex; }

/* 自定义地图标记 */
.pin { width:24px; height:32px; background:#2a5298; border:2px solid #fff; border-radius:50% 50% 50% 0; transform:rotate(-45deg); box-shadow:0 2px 6px rgba(0,0,0,.3); }
.pin::after { content:''; position:absolute; left:6px; top:6px; width:8px; height:8px; border-radius:50%; background:#ffb400; }
.pin.dest { background:#e5484d; }
.pin.dest::after { background:#fff; }
