/* 衡岳租车 · 手机后台 */
:root {
  --brand: #0aa8ff; --brand-2: #12e0c4; --ink: #0b1723; --ink-2: #4a5b6b; --muted: #8a9aab;
  --line: #e8eef4; --bg: #f2f6fa; --price: #ff5a2d; --ok: #12b886; --warn: #f08c00; --danger: #e03131;
  --r: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #dfe7ee; color: var(--ink); font-size: 14px;
  display: flex; justify-content: center; min-height: 100vh;
}
.phone {
  width: 100%; max-width: 460px; min-height: 100vh; background: var(--bg); position: relative;
  display: flex; flex-direction: column; box-shadow: 0 0 50px rgba(10, 30, 50, .14);
}
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* 登录 */
#login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 26px 40px;
  background: radial-gradient(900px 460px at 20% -10%, #1a6f9e 0%, transparent 58%), linear-gradient(160deg, #071522, #0b2b45 52%, #0a5f77); color: #fff; }
.lg-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; margin-bottom: 34px; }
.lg-brand i { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #04202b;
  display: grid; place-items: center; font-style: normal; font-size: 17px; }
#login h1 { font-size: 27px; line-height: 1.35; margin: 0 0 10px; letter-spacing: -.6px; }
#login h1 em { font-style: normal; color: #7ff0dc; }
#login p.sub { margin: 0 0 28px; font-size: 12.5px; color: #9fc0d4; line-height: 1.7; }
.lg-field { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; height: 48px;
  display: flex; align-items: center; padding: 0 14px; margin-bottom: 12px; }
.lg-field span { font-size: 12.5px; color: #9fc0d4; width: 52px; flex: none; }
.lg-field input { flex: 1; background: transparent; border: 0; outline: none; color: #fff; font-size: 14px; }
.lg-field input::placeholder { color: #7e9ab0; }
.lg-btn { width: 100%; height: 48px; border-radius: 12px; font-size: 15px; font-weight: 700; color: #04202b;
  background: linear-gradient(135deg, #9fe9ff, #7ff0dc); margin-top: 8px; }
.lg-hint { text-align: center; font-size: 11.5px; color: #7e9ab0; margin-top: 18px; line-height: 1.7; }
.lg-hint b { color: #bfe9ff; }

/* 头部 */
.hd { padding: 16px 18px 18px; color: #fff; background: linear-gradient(140deg, #0b2b45, #0a5f77 62%, #0a8f8a); position: relative; overflow: hidden; }
.hd::after { content: ''; position: absolute; right: -50px; top: -70px; width: 190px; height: 190px; border-radius: 50%; background: rgba(18, 224, 196, .2); filter: blur(2px); }
.hd-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.hd-top .who { display: flex; align-items: center; gap: 10px; }
.hd-top .av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #9fe9ff, #7ff0dc); color: #04303a;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.hd-top b { display: block; font-size: 14px; }
.hd-top small { font-size: 11px; color: #a9c8da; }
.hd-top .bell { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; position: relative; }
.hd-top .bell i { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: #ff8a65; }
.hd-title { font-size: 20px; font-weight: 800; margin: 16px 0 4px; letter-spacing: -.4px; position: relative; z-index: 1; }
.hd-sub { font-size: 11.5px; color: #a9c8da; position: relative; z-index: 1; }

/* 内容 */
.view { flex: 1; padding: 14px 14px 84px; }
.card { background: #fff; border-radius: var(--r); box-shadow: 0 2px 10px rgba(11, 35, 55, .05); overflow: hidden; margin-bottom: 12px; }
.card-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px 0; }
.card-h h3 { margin: 0; font-size: 14px; }
.card-h a { font-size: 11.5px; color: var(--brand); }
.card-b { padding: 12px 15px 15px; }

.kpi2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.kpi { background: #fff; border-radius: 14px; padding: 13px 14px; box-shadow: 0 2px 10px rgba(11, 35, 55, .05); }
.kpi span { font-size: 11.5px; color: var(--muted); }
.kpi b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.8px; margin-top: 5px; }
.kpi small { font-size: 10.5px; color: var(--muted); }
.kpi .up { color: var(--ok); font-weight: 700; }
.kpi .down { color: var(--danger); font-weight: 700; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.q { background: #fff; border-radius: 13px; padding: 12px 6px; text-align: center; box-shadow: 0 2px 10px rgba(11, 35, 55, .05); position: relative; }
.q i { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 9px; }
.q span { font-size: 11px; color: var(--ink-2); }
.q .n { position: absolute; top: 7px; right: 12px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--price); color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

/* 订单卡 */
.oc { background: #fff; border-radius: 15px; box-shadow: 0 2px 10px rgba(11, 35, 55, .05); margin-bottom: 11px; overflow: hidden; }
.oc-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 9px; border-bottom: 1px dashed #eef3f8; }
.oc-top .no { font-size: 11px; color: var(--muted); font-family: Consolas, monospace; }
.bd { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 5px; font-size: 10.5px; font-weight: 700; }
.oc-body { display: flex; gap: 11px; padding: 12px 14px; align-items: center; }
.oc-body .ph { width: 84px; height: 54px; border-radius: 9px; background: #f3f8fc; flex: none; display: grid; place-items: center; color: #0e3a52; overflow: hidden; }
.oc-body .ph svg { width: 78px; height: 52px; }
.oc-body .tx { min-width: 0; flex: 1; }
.oc-body .tx b { font-size: 13.5px; font-weight: 600; display: block; }
.oc-body .tx small { font-size: 11px; color: var(--muted); display: block; margin-top: 3px; line-height: 1.5; }
.oc-foot { display: flex; align-items: center; gap: 8px; padding: 0 14px 12px; }
.oc-foot .amt { font-size: 11.5px; color: var(--muted); }
.oc-foot .amt b { font-size: 16px; color: var(--price); letter-spacing: -.3px; }
.oc-foot .sp { margin-left: auto; display: flex; gap: 7px; }
.btn { height: 32px; padding: 0 12px; border-radius: 9px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink-2); display: inline-flex; align-items: center; }
.btn-pri { background: linear-gradient(135deg, var(--brand), #14c8c0); border: 0; color: #fff; box-shadow: 0 5px 14px rgba(10, 168, 255, .26); }
.btn-danger { color: var(--danger); border-color: #f6d5d5; }
.wide { width: 100%; justify-content: center; height: 40px; font-size: 13px; }

/* 筛选 */
.chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; background: #fff; border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.chip.on { background: linear-gradient(135deg, rgba(10,168,255,.14), rgba(18,224,196,.14)); border-color: transparent; color: #0672c9; font-weight: 700; }
.chip b { font-size: 10.5px; background: #eef4f9; padding: 0 5px; border-radius: 7px; color: var(--muted); }
.chip.on b { background: #fff; color: #0672c9; }

/* 车辆 */
.car-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f2f6fa; }
.car-row:last-child { border-bottom: 0; }
.car-row .ph { width: 74px; height: 46px; border-radius: 8px; background: #f3f8fc; flex: none; display: grid; place-items: center; color: #0e3a52; }
.car-row .ph svg { width: 70px; height: 44px; }
.car-row .tx { flex: 1; min-width: 0; }
.car-row .tx b { font-size: 12.5px; font-weight: 600; display: block; }
.car-row .tx small { font-size: 10.5px; color: var(--muted); display: block; margin-top: 2px; }
.car-row .rt { text-align: right; flex: none; }
.car-row .rt b { display: block; font-size: 13px; color: var(--price); }
.car-row .rt button { margin-top: 5px; }

/* 待办 */
.todo { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed #eef3f8; }
.todo:last-child { border-bottom: 0; }
.todo i { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.todo b { font-size: 12.5px; font-weight: 600; display: block; line-height: 1.45; }
.todo small { font-size: 10.5px; color: var(--muted); }
.todo .n { margin-left: auto; font-size: 11px; color: var(--brand); white-space: nowrap; }

/* 我的 */
.me-hd { text-align: center; padding: 22px 0 18px; }
.me-hd .av { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 10px; background: linear-gradient(135deg, #9fe9ff, #7ff0dc);
  color: #04303a; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.me-hd b { font-size: 16px; }
.me-hd small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.cells { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(11, 35, 55, .05); margin-bottom: 12px; }
.cell { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-bottom: 1px solid #f2f6fa; font-size: 13px; }
.cell:last-child { border-bottom: 0; }
.cell .ci { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #eef7fd; color: #0b7ec4; }
.cell .cr { margin-left: auto; font-size: 12px; color: var(--muted); }
.me-stats { display: flex; background: #fff; border-radius: 14px; padding: 14px 0; box-shadow: 0 2px 10px rgba(11, 35, 55, .05); margin-bottom: 12px; }
.me-stats div { flex: 1; text-align: center; border-right: 1px solid #f2f6fa; }
.me-stats div:last-child { border-right: 0; }
.me-stats b { display: block; font-size: 18px; }
.me-stats span { font-size: 10.5px; color: var(--muted); }

/* tabbar */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 460px; background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; padding: 7px 0 10px; z-index: 40; }
.tabbar a { flex: 1; text-align: center; font-size: 10.5px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.on { color: var(--brand); font-weight: 700; }

/* 抽屉/弹层 */
.mask { position: fixed; inset: 0; background: rgba(9, 20, 32, .45); opacity: 0; pointer-events: none; transition: .2s; z-index: 50; }
.mask.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%); width: 100%; max-width: 460px; background: #fff;
  border-radius: 18px 18px 0 0; z-index: 51; transition: transform .26s cubic-bezier(.3,.7,.3,1); max-height: 84vh; display: flex; flex-direction: column; }
.sheet.on { transform: translate(-50%, 0); }
.sh-h { display: flex; align-items: center; padding: 16px 18px 8px; }
.sh-h h3 { margin: 0; font-size: 15px; }
.sh-h button { margin-left: auto; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px; }
.sh-b { padding: 4px 18px 22px; overflow-y: auto; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 12.5px; border-bottom: 1px dashed #eef3f8; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); flex: none; }
.kv b { font-weight: 600; text-align: right; }
.kv .tot { color: var(--price); font-size: 16px; }
.sh-f { padding: 10px 18px 20px; display: flex; gap: 8px; border-top: 1px solid var(--line); }
.sh-f .btn { flex: 1; justify-content: center; height: 42px; }

.toast { position: fixed; left: 50%; bottom: 86px; transform: translate(-50%, 12px); background: rgba(12, 27, 42, .94); color: #fff;
  font-size: 12.5px; padding: 10px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .22s; z-index: 99; max-width: 82%; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.empty { text-align: center; color: var(--muted); font-size: 12.5px; padding: 40px 0; }

[hidden] { display: none !important; }

/* overflow guard */
.phone { overflow-x: hidden; }
.view { min-width: 0; overflow-x: hidden; }
.hd { min-width: 0; }
.chips { max-width: 100%; }

body { overflow-x: hidden; }
.phone { min-width: 0; }
.kpi b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
