/* ===== 打手端主题：深海蓝 + 金（对齐参考稿） ===== */
:root {
  --navy-0: #0a1730;
  --navy-1: #14284d;
  --navy-2: #1d3a6b;
  --gold-0: #b8862f;
  --gold-1: #e3bd6f;
  --gold-2: #f6e3b0;
  --teal: #0f9b8e;
}

body[data-role="worker"] {
  background: #eef2f8;
}
body[data-role="worker"] .wrap { max-width: 720px; padding: 14px 14px 96px; }
body[data-role="worker"] .topbar h1 { letter-spacing: 1px; }

/* ---------- 大厅头部 ---------- */
.hall-head {
  position: relative;
  border-radius: 18px;
  padding: 18px 16px 14px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(227,189,111,.20), transparent 60%),
    linear-gradient(150deg, var(--navy-0) 0%, var(--navy-1) 55%, var(--navy-2) 100%);
  box-shadow: 0 14px 30px rgba(10,23,48,.28), inset 0 0 0 1px rgba(227,189,111,.22);
  overflow: hidden;
}
.hall-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 40%);
}
.hall-top { display: flex; align-items: stretch; gap: 14px; }
.hall-cell { flex: 1; min-width: 0; }
.hall-divider { width: 1px; background: linear-gradient(180deg, transparent, rgba(227,189,111,.5), transparent); }
.hall-label { font-size: 12px; color: #9fb3d9; display: flex; align-items: center; gap: 6px; }
.hall-label .ico {
  font-style: normal; width: 16px; height: 16px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--gold-2); background: rgba(227,189,111,.16);
}
.hall-value {
  font-size: 28px; font-weight: 800; letter-spacing: .5px; margin-top: 4px;
  font-variant-numeric: tabular-nums; color: #fff;
}
.hall-value.gold { color: var(--gold-1); text-shadow: 0 2px 12px rgba(227,189,111,.25); }

.hall-search { display: flex; gap: 8px; margin-top: 16px; }
.hall-select {
  width: 112px; border-radius: 12px; border: 1px solid rgba(227,189,111,.35);
  padding: 8px 10px; background: rgba(227,189,111,.14); color: var(--gold-2);
  font-weight: 700; font-size: 13px;
}
.hall-select option { color: #0f172a; }
.hall-search input {
  flex: 1; min-width: 0; border: none; border-radius: 12px; padding: 9px 14px;
  background: #fff; color: #0f172a; font-size: 13px;
}
.hall-btn {
  border: 1px solid rgba(227,189,111,.5); border-radius: 12px; padding: 9px 18px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-0)); color: #2a1c05;
  font-weight: 800;
}
.hall-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; font-size: 12px; color: #9fb3d9;
}
.hall-foot b { color: var(--gold-1); }
.refresh { cursor: pointer; font-size: 17px; color: var(--gold-1); }

/* ---------- 保证金条 ---------- */
.deposit-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid #e6edf7; font-size: 13px; color: #64748b;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.deposit-bar b { color: #0f172a; font-variant-numeric: tabular-nums; }
.deposit-bar .copy { color: var(--navy-2); }

/* ---------- 订单卡 ---------- */
.hall-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.order-card {
  display: flex; gap: 12px; padding: 16px;
  background: #fff; border-radius: 16px; border: 1px solid #e6edf7;
  box-shadow: 0 4px 14px rgba(15,23,42,.05);
}
.oc-main { flex: 1; min-width: 0; }
.oc-title { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.oc-unit { font-size: 12px; color: #94a3b8; font-weight: 500; margin-left: 4px; }
.oc-line { font-size: 12.5px; color: #64748b; line-height: 1.9; }
.oc-line .dot { margin: 0 6px; color: #cbd5e1; }
.oc-badge {
  display: inline-block; padding: 1px 8px; border-radius: 6px;
  background: #eef2f8; color: #475569; font-size: 12px; font-weight: 600;
}
.oc-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
.oc-price {
  font-size: 21px; font-weight: 800; color: var(--gold-0);
  font-variant-numeric: tabular-nums;
}
.oc-btn {
  min-width: 76px; padding: 8px 16px; border-radius: 10px; border: none;
  background: linear-gradient(180deg, var(--navy-2), var(--navy-0));
  color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 6px 14px rgba(10,23,48,.25);
}
.oc-btn:hover { filter: brightness(1.1); }
.empty {
  padding: 40px 12px; text-align: center; color: #94a3b8; font-size: 13px;
  background: #fff; border-radius: 16px; border: 1px dashed #dbe4f0;
}

/* ---------- 个人中心 ---------- */
.credit-card {
  border-radius: 18px; padding: 18px;
  background: linear-gradient(135deg, #4f8ef7 0%, #7cb6ff 100%);
  color: #fff; box-shadow: 0 12px 26px rgba(79,142,247,.28);
}
.credit-head { display: flex; justify-content: space-between; font-size: 13px; color: #e8f1ff; }
.credit-head b { color: #fff; font-size: 16px; }
.credit-bar {
  height: 9px; border-radius: 99px; background: rgba(255,255,255,.32);
  margin: 12px 0 8px; overflow: hidden;
}
.credit-bar i { display: block; height: 100%; border-radius: 99px; background: #fff; transition: width .5s; }
.credit-steps { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.85); }
.credit-hint { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.9); }

.money-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 0;
  background: #fff; border-radius: 16px; border: 1px solid #e6edf7;
  margin-top: 12px; padding: 8px 0;
}
.mg-cell { text-align: center; padding: 12px 6px; }
.mg-val { font-size: 20px; font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; }
.mg-label { font-size: 12px; color: #64748b; margin-top: 2px; }

.menu-card {
  margin-top: 12px; background: #fff; border-radius: 16px;
  border: 1px solid #e6edf7; overflow: hidden;
}
.menu-item {
  width: 100%; border: none; border-bottom: 1px solid #eef2f8; background: #fff;
  display: flex; align-items: center; gap: 12px; padding: 15px 16px;
  font-size: 14.5px; color: #0f172a; font-weight: 600; text-align: left; border-radius: 0;
}
.menu-item:last-child { border-bottom: none; }
.mi-icon {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 15px;
}
.mi-green { background: #e8f7ef; }
.mi-orange { background: #fdf0e6; }
.mi-blue { background: #e9f0fb; }
.mi-gray { background: #f1f4f9; }
.menu-item .arrow { margin-left: auto; color: #cbd5e1; font-size: 18px; }
.menu-item.danger { color: #dc2626; }

.honor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.honor-grid .mg-cell { background: #f8fafc; border-radius: 12px; }

.stock-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid #eef2f8; font-size: 13px;
}
.stock-row:last-child { border-bottom: none; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: flex-end;
  background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
  border-top: 1px solid #e6edf7;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar button {
  flex: 1; border: none; background: none; padding: 3px 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #94a3b8; font-size: 11px; font-weight: 600;
}
.tabbar button .ti { font-size: 17px; line-height: 1; filter: grayscale(1); opacity: .6; }
.tabbar button.active { color: var(--navy-2); }
.tabbar button.active .ti { filter: none; opacity: 1; }
.tabbar button.main .ti {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #2b4f8f, var(--navy-0));
  color: var(--gold-1); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(10,23,48,.35), inset 0 0 0 1px rgba(227,189,111,.4);
  margin-top: -18px; font-size: 21px; filter: none; opacity: 1;
}
.tabbar button.main { color: var(--navy-2); }

@media (min-width: 721px) {
  .tabbar { border-radius: 16px 16px 0 0; box-shadow: 0 -6px 20px rgba(15,23,42,.08); }
}
