/* =========================================================
   拼好电聚合充电 · UI
   移动端优先，主色 #00d3cc
   ========================================================= */
:root {
  --primary: #00d3cc;
  --primary-dark: #00b3ad;
  --primary-soft: #e6faf9;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-2: #555;
  --muted: #9aa0a6;
  --line: #eef0f2;
  --orange: #ff7f2a;
  --red: #f03e3e;
  --green: #0a9e5c;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(20, 40, 60, 0.06);
  --tabbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- 应用容器 ---------- */
.app {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}
.page {
  padding: 12px 14px calc(var(--tabbar-h) + var(--safe-b) + 20px);
  min-height: 100vh;
}
.page-auth { padding-bottom: 24px; display: flex; flex-direction: column; justify-content: center; }
.page-bottom-space { height: 8px; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center;
  height: 48px; padding: 0 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar-back, .navbar-back-placeholder { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.navbar-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.navbar-right { width: 34px; text-align: right; }
.navbar-link { color: var(--primary-dark); font-size: 13px; }

/* ---------- 底部 tabbar ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; z-index: 60;
  width: 100%; max-width: 540px;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
}
.tabbar-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; color: var(--muted); font-size: 10px;
}
.tabbar-item.is-active { color: var(--primary); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.card-title-extra { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--text);
  font-size: 14px; cursor: pointer;
  transition: opacity .15s, transform .05s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.btn-primary:disabled { opacity: .5; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary-dark); }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: 12px; }
.field-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field-input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fafbfc; font-size: 14px; color: var(--text);
  outline: none;
}
.field-input:focus { border-color: var(--primary); background: #fff; }
.field-input-sm { height: 30px; font-size: 12px; padding: 0 8px; width: 110px; }

/* ---------- 提示 ---------- */
.alert { padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }
.alert-error { background: #fdecec; color: #b3261e; }
.alert-ok { background: #e8f8ee; color: #0a7a35; }
.tip-text { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.text-danger { color: var(--red); }
.text-ok { color: var(--green); }
.text-muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
code { background: #f4f4f6; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
pre.code-block { background: #f7f8fa; padding: 12px; border-radius: 10px; font-size: 12px; overflow-x: auto; }

/* ---------- 加载 ---------- */
.loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 30px 0; color: var(--muted); font-size: 13px; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #dfe3e8; border-top-color: var(--primary);
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.table-empty { text-align: center; color: var(--muted); padding: 24px 0; font-size: 13px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .btn { margin-top: 16px; }

/* ---------- 首页 ---------- */
.locator {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 999px;
  padding: 8px 12px; margin-bottom: 10px;
  box-shadow: var(--shadow); font-size: 12px; color: var(--text-2);
}
.locator-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locator-btn { border: 0; background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.loc-tip { margin: -4px 2px 10px; font-size: 11px; color: var(--text-3, #9aa0a6); line-height: 1.5; }

.chips { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 2px; }
.chip {
  flex: 0 0 auto; height: 30px; padding: 0 14px;
  border-radius: 999px; border: 1px solid transparent;
  background: #fff; color: var(--text-2); font-size: 13px;
  box-shadow: var(--shadow); cursor: pointer;
}
.chip.is-active { background: var(--primary); color: #fff; font-weight: 600; }

.recommend {
  background: linear-gradient(135deg, #e9fdfb, #f3fffe);
  border: 1px solid #c8f4f0;
  border-radius: var(--radius); padding: 12px; margin-bottom: 12px;
}
.recommend-badge { font-size: 11px; color: var(--primary-dark); font-weight: 600; margin-bottom: 4px; }
.recommend-name { font-size: 15px; font-weight: 600; }
.recommend-desc { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.recommend-desc b { color: var(--orange); }

.station-card {
  background: #fff; border-radius: var(--radius); padding: 13px 14px;
  margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer;
}
.station-card:active { background: #fbfcfd; }
.station-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.station-name { font-size: 15px; font-weight: 600; line-height: 1.35; }
.station-distance { font-size: 12px; color: var(--muted); white-space: nowrap; }
.station-card-body { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 9px; }
.price-box { display: flex; align-items: baseline; gap: 5px; }
.price-num { font-size: 20px; font-weight: 700; color: var(--orange); font-family: -apple-system, "DIN Alternate", sans-serif; }
.price-origin { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.price-unit { font-size: 11px; color: var(--muted); }
.gun-tags { display: flex; gap: 6px; }
.gun-tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.gun-tag.fast { background: #fff1e6; color: #e06f1c; }
.gun-tag.slow { background: #eef6ff; color: #2b7fd4; }
.station-addr { font-size: 12px; color: var(--muted); margin-top: 7px; }

/* ---------- 站点详情 ---------- */
.station-title { font-size: 18px; font-weight: 700; }
.station-addr { font-size: 12px; color: var(--muted); margin-top: 5px; }
.station-meta { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.station-meta b { color: var(--orange); }

.price-now { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.price-now-num { font-size: 26px; font-weight: 700; color: var(--orange); }
.price-now-unit { font-size: 12px; color: var(--muted); }

.price-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.price-table th { color: var(--muted); font-weight: 400; padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.price-table th:first-child { text-align: left; }
.price-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.price-table td:first-child { text-align: left; }
.price-table tr.is-current td { background: #f0fffe; font-weight: 600; }
.price-table tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.price-table td.price-cell { color: var(--orange); font-weight: 600; }

.gun-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}
.gun-item:last-child { border-bottom: 0; }
.gun-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.gun-dot.free { background: var(--green); }
.gun-dot.charging { background: var(--primary); }
.gun-dot.occupy, .gun-dot.offline { background: #c9ced6; }
.gun-dot.error { background: var(--red); }
.gun-name { flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.gun-status { font-size: 12px; color: var(--muted); }
.gun-status.free { color: var(--green); }
.gun-status.charging { color: var(--primary-dark); }

/* ---------- 悬浮按钮 ---------- */
.fab {
  position: fixed; z-index: 55;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 211, 204, .38);
}
.app { max-width: 540px; }
.fab { max-width: calc(540px - 40px); }

/* ---------- 充电页 ---------- */
.wallet-strip { display: flex; align-items: center; justify-content: space-between; }
.wallet-strip-label { font-size: 12px; color: var(--muted); }
.wallet-strip-value { font-size: 20px; font-weight: 700; color: var(--text); }

.charging-card { border: 1px solid #c8f4f0; background: linear-gradient(180deg, #f4fffe, #fff); }
.charging-head { display: flex; align-items: center; gap: 7px; }
.charging-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(0,211,204,.18); }
.charging-title { font-size: 14px; font-weight: 600; }
.charging-status { margin-left: auto; font-size: 12px; color: var(--primary-dark); }
.charging-station { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.charging-stats { display: flex; margin: 16px 0 14px; }
.stat { flex: 1; text-align: center; }
.stat-num { font-size: 19px; font-weight: 700; font-family: -apple-system, "DIN Alternate", sans-serif; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; }
.charging-actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- 分段控件 ---------- */
.segmented {
  display: flex; background: #fff; border-radius: 10px; padding: 3px;
  margin-bottom: 12px; box-shadow: var(--shadow);
}
.segmented-item {
  flex: 1; height: 32px; border: 0; background: transparent;
  border-radius: 8px; font-size: 13px; color: var(--text-2); cursor: pointer;
}
.segmented-item.is-active { background: var(--primary); color: #fff; font-weight: 600; }

/* ---------- 订单 ---------- */
.order-card {
  background: #fff; border-radius: var(--radius); padding: 14px;
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.order-card-head { display: flex; justify-content: space-between; align-items: center; }
.order-card-station { font-size: 15px; font-weight: 600; }
.order-card-status { font-size: 12px; color: var(--primary-dark); }
.order-card-status.is-done { color: var(--muted); }
.order-card-status.is-pending { color: var(--orange); }
.order-card-body { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); }
.order-card-amount { font-size: 17px; font-weight: 700; color: var(--orange); }
.order-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.order-card-no { font-size: 11px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }

/* ---------- 订单详情 ---------- */
.order-hero { text-align: center; padding: 24px 14px; }
.order-hero-status { font-size: 13px; color: var(--muted); }
.order-hero-amount { font-size: 34px; font-weight: 700; margin: 8px 0 4px; color: var(--orange); font-family: -apple-system, "DIN Alternate", sans-serif; }
.order-hero-amount-pending { font-size: 20px; color: var(--muted); }
.order-hero-station { font-size: 13px; color: var(--text-2); }
.order-hero.is-running .order-hero-amount { color: var(--primary-dark); }
.order-hero.is-done .order-hero-amount { color: var(--orange); }

.kv-list { display: flex; flex-direction: column; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); flex: 0 0 auto; }
.kv b { font-weight: 500; text-align: right; word-break: break-all; }

/* ---------- 钱包 ---------- */
.wallet-hero {
  background: linear-gradient(135deg, var(--primary), #35e0d6);
  border-radius: var(--radius); padding: 24px 20px; color: #fff;
  margin-bottom: 12px; box-shadow: 0 6px 20px rgba(0, 211, 204, .28);
}
.wallet-hero-label { font-size: 12px; opacity: .9; }
.wallet-hero-value { font-size: 36px; font-weight: 700; margin: 6px 0; font-family: -apple-system, "DIN Alternate", sans-serif; }
.wallet-hero-tip { font-size: 11px; opacity: .85; }

.wallet-log { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wallet-log:last-child { border-bottom: 0; }
.wallet-log-title { font-size: 13px; }
.wallet-log-time { font-size: 11px; color: var(--muted); margin-top: 2px; }
.wallet-log-amount { font-size: 15px; font-weight: 600; }
.wallet-log-amount.in { color: var(--green); }
.wallet-log-amount.out { color: var(--red); }

/* ---------- 我的 ---------- */
.me-hero { display: flex; align-items: center; gap: 14px; padding: 12px 4px 18px; }
.me-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #4be3da);
  color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.me-name { font-size: 17px; font-weight: 600; }
.me-mobile { font-size: 12px; color: var(--muted); margin-top: 3px; }
.me-balance { display: flex; align-items: center; justify-content: space-between; }
.me-logout { margin-top: 18px; color: var(--red); border-color: #f7d4d4; }

.menu-list { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.menu-item { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.menu-item:last-child { border-bottom: 0; }
.menu-arrow { color: #cfd4da; font-size: 18px; }

/* ---------- 登录 ---------- */
.auth-logo { text-align: center; padding: 20px 0 26px; }
.auth-logo-mark {
  width: 64px; height: 64px; margin: 0 auto 12px;
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), #3ee0d7);
  color: #fff; font-size: 30px; box-shadow: 0 8px 24px rgba(0, 211, 204, .3);
}
.auth-app-name { font-size: 21px; font-weight: 700; }
.auth-slogan { font-size: 12px; color: var(--muted); margin-top: 5px; }
.auth-form { background: #fff; border-radius: var(--radius); padding: 18px 16px 8px; box-shadow: var(--shadow); }
.auth-form .btn-block { margin: 6px 0 14px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; color: var(--primary-dark); padding: 0 4px; }
.auth-links-admin { color: var(--muted); }

/* =========================================================
   后台
   ========================================================= */
.admin-body { background: #f0f2f5; }
.admin-layout { display: flex; min-height: 100vh; max-width: none; }
.admin-side {
  width: 200px; flex: 0 0 200px; background: #0f1c2e; color: #cfd8e3;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-brand { padding: 18px 16px; font-size: 15px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-brand-mark { color: var(--primary); }
.admin-nav { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 3px; }
.admin-nav-item { padding: 9px 12px; border-radius: 8px; font-size: 13px; color: #aeb9c7; }
.admin-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav-item.is-active { background: var(--primary); color: #06231f; font-weight: 600; }
.admin-side-foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.admin-side-foot a { color: #8d9aab; }

.admin-main { flex: 1; min-width: 0; }
.admin-top { height: 54px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #e6e9ee; }
.admin-title { font-size: 16px; font-weight: 600; }
.admin-top-right { font-size: 13px; color: var(--muted); }
.admin-content { padding: 18px 20px 40px; }
.admin-h2 { font-size: 14px; font-weight: 600; margin: 20px 0 10px; color: var(--text-2); }
.admin-h2:first-child { margin-top: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.stat-card { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.stat-card-label { font-size: 12px; color: var(--muted); }
.stat-card-value { font-size: 22px; font-weight: 700; margin-top: 5px; }

.panel { background: #fff; border-radius: 12px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form .field-input { width: auto; min-width: 160px; flex: 0 1 auto; }
.inline-form-tight { display: inline-flex; gap: 4px; align-items: center; margin-right: 6px; }
form.inline { display: inline-block; margin-right: 4px; }

.table-wrap { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 12px;
  padding: 11px 12px; background: #fafbfc; border-bottom: 1px solid #eef0f2; white-space: nowrap;
}
.data-table td { padding: 11px 12px; border-bottom: 1px solid #f4f6f8; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #fbfcfd; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; }
.badge-ok { background: #e8f8ee; color: #0a7a35; }
.badge-off { background: #f2f3f5; color: #8b939c; }
.badge-busy { background: #fff1e6; color: #d96a12; }
.badge-idle { background: #e6faf9; color: var(--primary-dark); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; }

@media (max-width: 720px) {
  .admin-layout { flex-direction: column; }
  .admin-side { width: 100%; flex: none; height: auto; position: static; flex-direction: row; align-items: center; overflow-x: auto; }
  .admin-brand { border-bottom: 0; white-space: nowrap; }
  .admin-nav { flex-direction: row; overflow-x: auto; padding: 8px; }
  .admin-nav-item { white-space: nowrap; }
  .admin-side-foot { flex-direction: row; border-top: 0; gap: 12px; white-space: nowrap; }
  .admin-content { padding: 14px; }
}

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -10px);
  z-index: 999; max-width: 80vw;
  background: rgba(20, 26, 32, .9); color: #fff;
  padding: 10px 16px; border-radius: 10px;
  font-size: 13px; text-align: center;
  opacity: 0; transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-err { background: rgba(190, 45, 45, .94); }

/* ---------- 弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-box {
  width: 100%; max-width: 340px;
  background: #fff; border-radius: 16px; padding: 20px 18px 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
}
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.modal-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--line);
}
.modal-row:last-of-type { border-bottom: 0; }
.modal-row span { color: var(--muted); }
.modal-row b { text-align: right; }
.modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

/* ---------- 后台：账号详情 ---------- */
.acct-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.acct-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acct-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.admin-h3 { font-size: 12px; color: var(--muted); font-weight: 500; margin: 14px 0 8px; }
.admin-h3:first-of-type { margin-top: 0; }
.kv-list .kv b { max-width: 60%; word-break: break-all; }

/* ---------- 首页：搜索 ---------- */
.search-bar { display: flex; gap: 8px; margin-bottom: 10px; }
.search-input {
  flex: 1; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 13px; outline: none;
  box-shadow: var(--shadow);
}
.search-input:focus { border-color: var(--primary); }
.search-btn {
  height: 36px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 600;
}
.search-btn:active { opacity: .85; }

/* ---------- 车牌选择 / 列表 ---------- */
.plate-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.plate-chip {
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 600; letter-spacing: 1px; cursor: pointer;
}
.plate-chip.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.plate-input { text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.tip-link { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--primary-dark); }

.veh-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.veh-card:last-child { border-bottom: 0; }
.veh-plate { font-size: 17px; font-weight: 700; letter-spacing: 1.5px; }
.veh-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.veh-ops { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

/* ---------- 扫码 ---------- */
.btn-scan { height: 48px; font-size: 16px; }
.scan-video-wrap { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.scan-video { width: 100%; display: block; max-height: 60vh; object-fit: cover; }
.scan-frame {
  position: absolute; inset: 18% 12%; z-index: 1; overflow: hidden;
  border: 2px solid rgba(0, 211, 204, .9); border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35);
}
.scan-line {
  position: absolute; left: 0; right: 0; top: 4%; height: 2px;
  background: #00d3cc; box-shadow: 0 0 12px 2px rgba(0, 211, 204, .8);
  animation: scanMove 2.2s ease-in-out infinite alternate;
}
@keyframes scanMove { from { top: 4%; } to { top: 96%; } }
.scan-status {
  position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2;
  text-align: center; font-size: 12px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}

/* ---------- 充值金额 ---------- */
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.amount-item {
  height: 54px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; color: var(--text);
}
.amount-item.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
