:root {
  --bg: #06080f;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eaf2ff;
  --muted: #8a9bb5;
  --dim: #64748b;
  --brand: #12d8b8;
  --brand2: #0ea5e9;
  --danger: #f4526a;
  --warn: #f5a524;
  --nav: 62px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60% 36% at 15% 0%, rgba(18, 216, 184, 0.16), transparent 70%),
    radial-gradient(50% 34% at 95% 4%, rgba(14, 165, 233, 0.16), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  padding-bottom: calc(var(--nav) + env(safe-area-inset-bottom));
}

.app { max-width: 520px; margin: 0 auto; padding: 16px 16px 120px; }

.tiny { font-size: 12px; }
.small { font-size: 13px; }
.dim { color: var(--dim); }
.muted { color: var(--muted); }
.bold { font-weight: 700; }

/* 顶栏 */
.head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display: grid; place-items: center; color: #03201a; font-weight: 800; font-size: 20px;
}
.brand-name { font-size: 17px; font-weight: 750; letter-spacing: .4px; }

/* 卡片 */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 16px; margin-bottom: 14px;
}
.card-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }

/* 余额条 */
.balance-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-radius: 18px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(18,216,184,.18), rgba(14,165,233,.08));
  border: 1px solid rgba(18,216,184,.3);
}
.balance-num { font-size: 26px; font-weight: 800; letter-spacing: .5px; }

/* 车型 */
.plan {
  border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  margin-bottom: 10px; background: rgba(255,255,255,.03); transition: .16s;
  cursor: pointer;
}
.plan.on {
  border-color: rgba(18,216,184,.6); background: rgba(18,216,184,.1);
  box-shadow: 0 12px 34px -22px rgba(18,216,184,.9);
}
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan-name { font-size: 15px; font-weight: 700; }
.plan-price { font-size: 17px; font-weight: 800; color: var(--brand); }
.plan-desc { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.65; }

/* 加购 */
.addon {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.addon:last-child { border-bottom: none; }
.addon-main { flex: 1; min-width: 0; }
.addon-name { font-size: 14px; font-weight: 650; }
.addon-price { font-size: 14px; font-weight: 700; color: var(--brand); }
.check {
  width: 22px; height: 22px; flex: none; border-radius: 7px;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 13px; color: #04241c;
}
.check.on { background: linear-gradient(135deg, var(--brand), var(--brand2)); border-color: transparent; }

/* 日期与时段 */
.date-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.date-chip {
  flex: none; padding: 8px 14px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  text-align: center; min-width: 66px;
}
.date-chip.on { background: rgba(18,216,184,.16); border-color: rgba(18,216,184,.55); }
.date-label { font-size: 13px; font-weight: 650; }
.date-sub { font-size: 11px; color: var(--dim); }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  padding: 9px 0; text-align: center; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.slot.on { background: linear-gradient(135deg, rgba(18,216,184,.95), rgba(14,165,233,.95)); border-color: transparent; }
.slot.on .slot-time, .slot.on .slot-left { color: #04241c; }
.slot.off { opacity: .32; cursor: not-allowed; }
.slot-time { font-size: 13px; font-weight: 700; }
.slot-left { font-size: 11px; color: var(--dim); }

/* 订单 */
.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-name { font-weight: 700; font-size: 15px; }
.order-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.order-price { font-size: 18px; font-weight: 800; color: var(--brand); }

/* 标签 */
.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px;
  background: rgba(255,255,255,.08); color: var(--muted);
}
.tag.vip { background: rgba(245,165,36,.18); color: var(--warn); }
.tag.pending { background: rgba(245,165,36,.18); color: var(--warn); }
.tag.done { background: rgba(18,216,184,.16); color: var(--brand); }
.tag.cancelled { background: rgba(244,82,106,.16); color: var(--danger); }
.tag.recharge { background: rgba(18,216,184,.16); color: var(--brand); }
.tag.consume { background: rgba(14,165,233,.18); color: #6cc7f7; }
.tag.refund { background: rgba(244,82,106,.16); color: var(--danger); }
.tag.adjust { background: rgba(255,255,255,.1); color: var(--muted); }

/* 按钮 */
.btn {
  padding: 10px 16px; border-radius: 12px; cursor: pointer; font-size: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text);
}
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #04241c; font-weight: 700; border: none; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--danger); }
.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 15px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--text); outline: none;
}
.input:focus { border-color: rgba(18,216,184,.55); }

/* 分段 */
.seg { padding: 8px 16px; border-radius: 999px; font-size: 13px; cursor: pointer; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.seg.on { color: #04241c; font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--brand2)); border-color: transparent; }

/* 列表 */
.item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: none; }

/* 底部 tabbar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: rgba(8,12,20,.97);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1; padding: 14px 0; border: none; background: transparent;
  color: var(--muted); font-size: 14px; cursor: pointer;
}
.tab.active { color: var(--brand); font-weight: 700; }

/* 结算条 */
.checkout {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav) + env(safe-area-inset-bottom));
  z-index: 25; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: rgba(8,12,20,.98);
  border-top: 1px solid var(--line);
  max-width: 520px; margin: 0 auto;
}
.checkout-info { flex: 1; min-width: 0; }
.checkout .num { font-size: 22px; font-weight: 800; color: var(--brand); }
.checkout .btn { padding: 12px 22px; border-radius: 999px; }

/* 弹窗/提示 */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(2,4,8,.74); padding: 20px; }
.modal-card { width: 100%; max-width: 360px; background: #0c131d; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.modal-card h3 { margin: 0 0 6px; font-size: 17px; }
.modal-card .row { margin-top: 12px; }
.modal-card .row .btn { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: 130px; transform: translate(-50%, 16px);
  background: rgba(12,19,29,.96); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 99;
  opacity: 0; pointer-events: none; transition: .22s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(244,82,106,.5); color: #ffb3bf; }

.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 14px; }
