/* ============ 车辆加油管理 H5 —— 移动端自适应样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  background: #f2f3f7; color: #1f2430;
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 0.95rem; line-height: 1.5;
}
#app { max-width: 680px; margin: 0 auto; min-height: 100vh; position: relative; }
.page { padding: 12px 12px 76px; } /* 底部留出导航高度 */
.hidden { display: none !important; }

/* ---------- 通用 ---------- */
.card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 6px rgba(31,36,48,.05); }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.input {
  width: 100%; border: 1px solid #e3e5ec; border-radius: 8px;
  padding: 11px 12px; font-size: 1rem; background: #fff; outline: none;
}
.input:focus { border-color: #2f6bff; }
.btn-primary {
  display: block; width: 100%; border: none; border-radius: 10px;
  background: #2f6bff; color: #fff; font-size: 1.05rem; padding: 13px 0;
  text-align: center; text-decoration: none; cursor: pointer;
}
.btn-primary:disabled { background: #9db9f5; }
.btn-ghost-danger {
  display: block; width: auto; border: 1px solid #f3c2c0; background: #fff; border-radius: 10px;
  color: #e53935; font-size: 1rem; padding: 12px 18px; text-align: center; text-decoration: none; cursor: pointer;
}
.btn-ghost-danger:disabled { border-color: #eee; color: #bbb; cursor: not-allowed; }
.shot-actions { display: -webkit-flex; display: flex; gap: 12px; flex: 1; width: 100%; }
.shot-actions.hidden { display: none !important; }
.shot-actions #sys-pay-shot-reject { flex: 1; }
.shot-actions #sys-pay-shot-approve { flex: 1; }
.btn-mini { border: 1px solid #e3e5ec; background: #fff; border-radius: 8px; padding: 7px 12px; font-size: .85rem; color: #333; }
.btn-mini-lg { width: auto; padding: 11px 18px; font-size: .95rem; }
.btn-ghost { flex: 1; border: none; background: #f0f1f5; color: #333; border-radius: 10px; padding: 12px 0; font-size: 1rem; }
.btn-danger { flex: 1; border: none; background: #e53935; color: #fff; border-radius: 10px; padding: 12px 0; font-size: 1rem; }
.btn-confirm { flex: 1; border: none; background: #2f6bff; color: #fff; border-radius: 10px; padding: 12px 0; font-size: 1rem; }
.btn-link { margin-top: 10px; }
.tip { font-size: .8rem; color: #999; margin-top: 10px; line-height: 1.6; }
.empty { text-align: center; color: #999; padding: 40px 0; }
.notice {
  background: #fff8e6; color: #8a6d1a; font-size: .85rem; line-height: 1.6;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 12px;
}
.err-text { color: #e53935; font-size: .85rem; margin-top: 10px; min-height: 1.2em; text-align: center; }
.toast {
  position: fixed; left: 50%; bottom: 120px; -webkit-transform: translateX(-50%); transform: translateX(-50%);
  background: rgba(0,0,0,.78); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: .88rem; z-index: 999; max-width: 80%; text-align: center;
}

/* ---------- 登录页 ---------- */
#view-login { display: -webkit-flex; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding-bottom: 12px; }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 34px 26px; box-shadow: 0 4px 24px rgba(31,36,48,.08); }
.login-title { font-size: 1.4rem; font-weight: 700; text-align: center; }
.login-sub { text-align: center; color: #999; font-size: .85rem; margin: 6px 0 24px; }
.login-card .input { margin-bottom: 12px; }
.remember { display: -webkit-flex; display: flex; align-items: center; gap: 6px; font-size: .85rem; color: #666; margin: 4px 0 16px; }
.remember input { width: 17px; height: 17px; }

/* ---------- 录入：拍照区 ---------- */
.photo-row { display: -webkit-flex; display: flex; gap: 8px; }
.photo-item { flex: 1; text-align: center; min-width: 0; }
.photo-box {
  position: relative; width: 100%; aspect-ratio: 1 / 1.15;
  background: #f5f6fa; border: 1px dashed #c9cdd8; border-radius: 10px;
  overflow: hidden; display: -webkit-flex; display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
}
.photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-ph { display: -webkit-flex; display: flex; flex-direction: column; align-items: center; color: #b9bfcc; }
.ph-plus { font-size: 2rem; line-height: 1; }
.ph-text { font-size: .75rem; margin-top: 4px; }
.photo-mask { position: absolute; inset: 0; background: rgba(0,0,0,.5); color: #fff; display: -webkit-flex; display: flex; align-items: center; justify-content: center; font-size: .85rem; z-index: 2; }
.photo-retake {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  background: rgba(0,0,0,.55); color: #fff; font-size: .72rem;
  padding: 3px 10px; border-radius: 12px;
}
.photo-label { font-size: 1rem; font-weight: 600; margin-top: 6px; }
.photo-hint { font-size: .68rem; color: #999; }
.ocr-info { font-size: .72rem; color: #b9bfcc; margin-top: 8px; word-break: break-all; }

/* ---------- 录入：表单 ---------- */
.field { display: -webkit-flex; display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f1f5; gap: 10px; }
.field:last-child { border-bottom: none; }
.field.column { flex-direction: column; align-items: stretch; }
.field label { width: 92px; flex-shrink: 0; color: #555; font-size: .92rem; }
/* 录入页：识别填入的数据加大加粗，方便眼神不好的师傅核对 */
#tab-entry .field label { font-size: 1rem; color: #333; }
#tab-entry .field .input { font-size: 1.28rem; font-weight: 700; color: #0b4fd8; padding: 13px 12px; }
.backfill-row { display: -webkit-flex; display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f1f5; }
.backfill-row:last-child { border-bottom: none; }
.backfill-label { display: -webkit-flex; display: flex; align-items: center; gap: 6px; font-size: .92rem; color: #555; cursor: pointer; white-space: nowrap; }
.backfill-label input { width: 16px; height: 16px; cursor: pointer; }
.backfill-row .input[type=date] { flex: 1; padding: 8px 10px; font-size: .9rem; }
#btn-submit { margin: 4px 0 12px; }

/* ---------- 记录 ---------- */
.filter-bar { display: -webkit-flex; display: flex; align-items: center; gap: 8px; background: #fff; padding: 10px; border-radius: 10px; margin-bottom: 10px; }
.date-input { flex: 1; min-width: 0; border: 1px solid #e3e5ec; border-radius: 8px; padding: 9px 8px; font-size: .85rem; }
.filter-to { color: #999; font-size: .85rem; }
.r-alert { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; padding: 10px 12px; border-radius: 10px; margin-bottom: 10px; font-weight: 600; font-size: .92rem; text-align: center; cursor: pointer; }
.total-line { color: #999; font-size: .8rem; margin: 2px 4px 8px; display: -webkit-flex; display: flex; align-items: baseline; flex-wrap: wrap; }
.total-line .sum-base { min-width: 0; }
.total-line .sum-red { color: #e53935; font-weight: 700; font-size: .95rem; margin-left: auto; margin-right: 8px; white-space: nowrap; flex-shrink: 0; }
.rec-card { background: #fff; border-radius: 10px; padding: 10px 12px 10px 8px; margin-bottom: 8px; display: -webkit-flex; display: flex; align-items: center; gap: 8px; }
.rec-no { color: #b9bfcc; font-size: .9rem; min-width: 1.6em; text-align: left; align-self: center; font-weight: 600; margin-right: 6px; }
.rec-no-warn { color: #e53935; }
.rec-main { flex: 1; min-width: 0; }
.rec-head { display: -webkit-flex; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.rec-plate { font-size: 1rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; color: #0b4fd8; }
.rec-f1 { font-size: .8rem; color: #444; white-space: nowrap; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rec-amt { color: #e53935; font-weight: 700; font-size: 1rem; margin-left: auto; white-space: nowrap; flex-shrink: 0; }
.rec-line { margin-top: 5px; font-size: .85rem; color: #444; }
.rec-line.sub { color: #999; font-size: .78rem; display: -webkit-flex; display: flex; align-items: center; gap: 6px; }
.rec-sub-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-verify { color: #27ae60; font-weight: 600; font-size: .75rem; white-space: nowrap; flex-shrink: 0; }
.rec-flag { color: #e53935; font-weight: 700; font-size: .75rem; white-space: nowrap; flex-shrink: 0; }
.rec-serial { margin-top: 5px; font-size: .72rem; color: #b9bfcc; }

/* ---------- 导出 ---------- */
.range-row { display: -webkit-flex; display: flex; gap: 8px; margin-bottom: 10px; }
.range-btn { flex: 1; padding: 10px 0; background: #f0f1f5; border: none; border-radius: 8px; font-size: .95rem; color: #555; }
.range-btn.on { background: #2f6bff; color: #fff; font-weight: 600; }
.rec-range-btn { flex: 1; padding: 9px 0; background: #f0f1f5; border: none; border-radius: 8px; font-size: .9rem; color: #555; }
.rec-range-btn.on { background: #2f6bff; color: #fff; font-weight: 600; }
.pv-grid { display: -webkit-flex; display: flex; }
.pv-item { flex: 1; text-align: center; min-width: 0; }
.pv-num { font-size: 1.15rem; font-weight: 700; color: #2f6bff; word-break: break-all; }
.pv-k { font-size: .72rem; color: #999; margin-top: 3px; }
.export-status { text-align: center; color: #666; font-size: .85rem; margin: 10px 0; min-height: 1.2em; }
.file-name { font-size: .9rem; color: #333; word-break: break-all; }

/* ---------- 我的 ---------- */
.user-card { display: -webkit-flex; display: flex; align-items: center; background: #fff; border-radius: 12px; padding: 16px 14px; margin-bottom: 12px; }
.u-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: #e8eeff; color: #2f6bff;
  display: -webkit-flex; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 600; flex-shrink: 0;
}
.u-info { flex: 1; margin-left: 12px; min-width: 0; }
.u-name { font-size: 1.15rem; font-weight: 700; }
.u-role { display: inline-block; margin-top: 5px; font-size: .72rem; color: #666; background: #f0f1f5; border-radius: 6px; padding: 2px 10px; }
.u-role.admin { color: #8a6d1a; background: #fff3d6; }
.u-logout { font-size: .85rem; color: #e53935; padding: 6px 0 6px 12px; }
.acc-add { display: -webkit-flex; display: flex; gap: 8px; }
.acc-export-row { margin-top: 10px; display: -webkit-flex; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-export-tip { font-size: .72rem; color: #999; }
.acc-export-ta { width: 100%; box-sizing: border-box; min-height: 220px; resize: vertical; font-size: .92rem; line-height: 1.8; padding: 10px; border: 1px solid #ddd; border-radius: 8px; white-space: pre; background: #fafafa; color: #333; }
.acc-list-scroll { max-height: 46vh; min-height: 160px; overflow-y: auto; border: 1px solid #f0f1f5; border-radius: 6px; padding: 0 8px; }
.acc-count { font-size: .78rem; color: #999; font-weight: normal; }
.acc-tip { font-size: .75rem; color: #999; margin: 8px 0 10px; }
.acc-search { margin: 8px 0 10px; }
.acc-empty { padding: 14px; text-align: center; color: #999; font-size: .85rem; }
.acc-lock-row { display: -webkit-flex; display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; }
.acc-lock-label { font-size: .9rem; color: #555; }
.acc-lock-text { font-size: .8rem; color: #999; }
.acc-lock-text.open { color: #43a047; }
/* Toggle switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; inset: 0; background: #ccc; border-radius: 24px; -webkit-transition: .2s; transition: .2s; }
.switch-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; -webkit-transition: .2s; transition: .2s; }
.switch input:checked + .switch-slider { background: #43a047; }
.switch input:checked + .switch-slider::before { -webkit-transform: translateX(18px); transform: translateX(18px); }
.acc-row { display: -webkit-flex; display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f1f5; position: relative; }
.acc-row:last-child { border-bottom: none; }
.acc-name { flex: 1; font-size: .95rem; }
.acc-role { font-size: .72rem; color: #999; margin-right: 10px; }
.acc-more { border: none; background: none; color: #666; font-size: 1.2rem; line-height: 1; padding: 2px 10px 2px 0; flex-shrink: 0; cursor: pointer; }
.acc-more:active { opacity: .6; }
.acc-menu { position: absolute; left: 6px; z-index: 30; background: #fff; border: 1px solid #e3e5ec; border-radius: 8px; min-width: 128px; box-shadow: 0 4px 14px rgba(31,36,48,.12); overflow: hidden; }
.acc-menu-item { display: block; width: 100%; border: none; background: none; text-align: left; padding: 10px 12px; font-size: .85rem; color: #333; cursor: pointer; }
.acc-menu-item:active { background: #f2f6ff; }
.acc-menu-del { color: #c62828; }
.acc-del { border: none; background: #fdecea; color: #c62828; border-radius: 6px; padding: 5px 12px; font-size: .78rem; }
.pwd-row { display: -webkit-flex; display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f1f5; }
.pwd-label { font-size: .9rem; color: #555; }
.nkey-status { font-size: .75rem; color: #999; margin-left: 4px; }
.nkey-inputs { display: -webkit-flex; display: flex; align-items: center; gap: 8px; }
.nkey-inputs .input { width: 180px; font-size: .82rem; }
.ver { text-align: center; color: #c9cdd8; font-size: .75rem; margin-top: 16px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 680px; background: #fff; border-top: 1px solid #ebedf3;
  display: -webkit-flex; display: flex; z-index: 50; padding-bottom: env(safe-area-inset-bottom);
}
.tab { flex: 1; text-align: center; padding: 8px 0 6px; font-size: 1.1rem; color: #999; cursor: pointer; }
.tab span { display: block; font-size: .7rem; margin-top: 2px; }
.tab.on { color: #2f6bff; }

/* ---------- 弹层 ---------- */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100; display: -webkit-flex; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  background: #fff; width: 100%; max-width: 680px; max-height: 82vh; overflow-y: auto;
  border-radius: 14px 14px 0 0; padding: 18px 16px 24px;
}
.sheet-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }
.sheet-btns { display: -webkit-flex; display: flex; gap: 10px; margin-top: 16px; }
.d-row { display: -webkit-flex; display: flex; padding: 6px 0; font-size: .85rem; }
.d-k { color: #999; flex-shrink: 0; }
.d-v { flex: 1; word-break: break-all; min-width: 0; }
.d-row2, .d-row3 { display: -webkit-flex; display: flex; }
.d-row2 > .d-row, .d-row3 > .d-row { flex: 1; min-width: 0; }
.d-note { display: -webkit-flex; display: flex; padding: 6px 0; }
.d-note .d-k { width: 56px; font-size: .78rem; color: #999; flex-shrink: 0; }
.d-note .d-v { flex: 1; min-width: 0; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.d-row.d-full .d-k { width: 60px; }
.d-row:not(.d-full) .d-k { width: 56px; font-size: .78rem; }
.d-row:not(.d-full) .d-v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.d-photos { display: -webkit-flex; display: flex; gap: 8px; margin-top: 10px; }
.d-photo-item { flex: 1; text-align: center; min-width: 0; }
.d-photo-item img { width: 100%; border-radius: 8px; background: #f5f6fa; cursor: zoom-in; }
.d-photo-label { font-size: .85rem; color: #999; margin-top: 4px; }
.d-photo-view { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 200; display: -webkit-flex; display: flex; align-items: center; justify-content: center; }
.photo-view { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 210; display: -webkit-flex; display: flex; align-items: center; justify-content: center; }
.photo-view img, .d-photo-view img { max-width: 96%; max-height: 96%; }

/* 月里程选择图片来源：贴底弹层，下沿停在底部导航上方（露出各板块名称，按键顺手） */
.mask.km-center { align-items: flex-end; }
.mask.km-center .sheet { border-radius: 14px 14px 0 0; max-width: 420px; max-height: none; margin-bottom: 58px; }
/* ---------- 小屏优化（≤360px） ---------- */
@media (max-width: 360px) {
  html { font-size: 15px; }
  .field label { width: 80px; }
  .pv-num { font-size: 1rem; }
  .ph-text { font-size: .68rem; }
}

.acc-role-admin { color: #8a6d1a; background: #fff3d6; padding: 2px 8px; border-radius: 4px; }
.acc-role-set { border: none; background: #e3f2fd; color: #1565c0; border-radius: 6px; padding: 5px 10px; font-size: .78rem; margin-right: 6px; cursor: pointer; }
.acc-role-set:active { opacity: .7; }

/* ---------- 删除模式 ---------- */
.rec-cb { margin-right: 8px; width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.del-bar { background: #fff8e6; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; display: -webkit-flex; display: flex; align-items: center; gap: 8px; font-size: .85rem; color: #8a6d1a; }
.btn-risk { flex: none; padding: 8px 16px; font-size: .82rem; width: auto; }
.btn-del-mode { color: #e53935; }

/* ---------- 导出预览弹层（手机端在H5内直接看表格+照片） ---------- */
.sheet-wide { max-width: 720px; }
.epv-summary { font-size: .9rem; color: #555; margin-bottom: 12px; padding: 8px 10px; background: #f5f6fa; border-radius: 8px; }
.epv-rec { background: #fff; border: 1px solid #ebedf3; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.epv-rec-head { display: -webkit-flex; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.epv-no { color: #b9bfcc; font-size: .85rem; min-width: 1.6em; }
.epv-plate { font-size: 1rem; font-weight: 600; color: #0b4fd8; flex: 1; }
.epv-amt { color: #e53935; font-weight: 700; font-size: 1rem; }
.epv-rec-meta { font-size: .8rem; color: #666; word-break: break-all; }
.epv-rec-flag { margin-top: 4px; font-size: .78rem; }
.epv-photos { display: -webkit-flex; display: flex; gap: 6px; margin-top: 8px; }
.epv-photo-item { flex: 1; min-width: 0; text-align: center; }
.epv-photo-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 6px; background: #f5f6fa; cursor: zoom-in; -webkit-touch-callout: default; }
.epv-photo-label { font-size: .7rem; color: #999; margin-top: 2px; }
.epv-photos-empty { font-size: .8rem; color: #bbb; padding: 6px 0; }

/* ---------- 月里程（月末公里数上报） ---------- */
/* 板块整体撑满视口（减底部导航），header 固定、车辆网格铺满剩余空间 */
#tab-miles { display: -webkit-flex; display: flex; flex-direction: column; height: calc(100dvh - 62px); min-height: calc(100vh - 62px); overflow: hidden; padding-top: 6px; }
#tab-miles .km-header-card { flex: none; }
.km-title-tip { font-size: .68rem; color: #999; font-weight: 400; }
.km-header-card { padding: 5px 10px 3px; margin-bottom: 2px; }
.km-header-card .card-title { margin-bottom: 2px; font-size: .85rem; }
.km-header-card .km-stat { margin-top: 0; font-size: .75rem; }
.km-export-btn { margin-top: 4px; padding: 5px 0; font-size: .82rem; }
/* 其他单位手动添加车牌入口 */
.km-add-row { display: -webkit-flex; display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.km-add-input { flex: 1; padding: 8px 10px; font-size: .85rem; }
.km-add-btn { flex: none; padding: 8px 14px; font-size: .85rem; }
.km-empty { grid-column: 1 / -1; align-self: center; text-align: center; color: #8a919c; font-size: .85rem; line-height: 1.7; padding: 20px 16px; }
/* 识别中加载态 */
.km-loading { display: -webkit-flex; display: flex; flex-direction: column; align-items: center; padding: 24px 0 36px; }
.km-loading .spinner {
  width: 30px; height: 30px; border: 3px solid #e0e4ea;
  border-top-color: #1e88e5; border-radius: 50%;
  animation: km-spin .8s linear infinite; margin-bottom: 14px;
}
.km-loading .text { color: #1e88e5; font-size: 1.1rem; font-weight: 600; }
@keyframes km-spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
.km-sub { display: -webkit-flex; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: #666; }
.km-badge { font-size: .75rem; padding: 3px 10px; border-radius: 12px; }
.km-badge.on { background: #e3f2fd; color: #1565c0; }
.km-badge.off { background: #e8eaee; color: #8a919c; }
.km-stat { margin-top: 8px; font-size: .88rem; color: #555; }
.km-stat b { color: #2f6bff; }
.km-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; grid-auto-rows: 1fr; align-content: stretch; }
.km-card {
  border-radius: 5px; height: auto; padding: 2px 0;
  display: -webkit-flex; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .2px;
  cursor: pointer; user-select: none; -webkit-user-select: none; white-space: nowrap;
}
.km-card.locked { background: #a7acb5; cursor: not-allowed; }
.km-card.empty { background: #6f7681; }
.km-card.filled { background: #2f6bff; }
.km-card:active { opacity: .82; }
/* 选择来源 */
.km-src-btns { display: -webkit-flex; display: flex; flex-direction: column; gap: 10px; }
.km-src-btns .btn-confirm, .km-src-btns .btn-ghost { flex: none; width: 100%; padding: 18px 0; font-size: 1.1rem; }
/* 已有记录提示 + 删除入口 */
.km-src-has { text-align: center; font-size: .88rem; color: #333; margin-top: 10px; }
.km-src-has b { color: #2f6bff; }
.km-src-has-tip { text-align: center; font-size: .75rem; color: #999; margin-top: 6px; line-height: 1.5; }
.km-src-del {
  display: block; width: 100%; margin-top: 8px; padding: 11px 0;
  border: 1px solid #f0b3b0; border-radius: 8px; background: #fdecea;
  color: #c62828; font-size: .95rem; cursor: pointer;
}
.km-src-del:active { opacity: .75; }
/* 确认里程弹层 */
.km-dlg-plate { text-align: center; margin-top: 10px; }
.km-dlg-badge {
  display: inline-block; background: #2f6bff; color: #fff;
  font-size: 1.4rem; font-weight: 700; padding: 10px 26px;
  border-radius: 10px; letter-spacing: 2px;
}
.km-dlg-month { text-align: center; font-size: .85rem; color: #999; margin-top: 6px; }
.km-dlg-row { display: -webkit-flex; display: flex; gap: 12px; margin-top: 12px; align-items: stretch; }
.km-dlg-preview {
  flex: 1; min-height: 160px; min-width: 0; border-radius: 8px;
  overflow: hidden; background: #eef0f3; display: -webkit-flex; display: flex;
  align-items: center; justify-content: center;
}
.km-dlg-preview img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.km-dlg-preview .no-img { font-size: .72rem; color: #9aa0aa; }
.km-dlg-right { flex: 1; min-width: 0; display: -webkit-flex; display: flex; flex-direction: column; justify-content: center; }
.km-dlg-right .km-dlg-field { margin-top: 0; }
.km-dlg-right label { font-size: .8rem; }
.km-dlg-tips { font-size: .75rem; color: #999; text-align: center; margin-top: 8px; }
.km-dlg-tips.overwrite { color: #e65100; }
.km-dlg-field { margin-top: 12px; }
.km-dlg-field label { font-size: .85rem; color: #555; display: block; margin-bottom: 4px; }
.km-dlg-input {
  width: 100%; font-size: 1.7rem; font-weight: 700; text-align: center;
  padding: 12px 4px; border: 1px solid #e3e5ec; border-radius: 8px; outline: none;
}
.km-dlg-input:focus { border-color: #2f6bff; }
.km-dlg-btns { display: -webkit-flex; display: flex; gap: 10px; margin-top: 14px; }
/* 司机锁定页 */
.km-locked-ico { text-align: center; font-size: 2.4rem; margin-top: 18px; }
.km-locked-txt { text-align: center; font-size: 1rem; font-weight: 600; color: #333; margin-top: 12px; line-height: 1.7; }
.km-locked-sub { text-align: center; font-size: .8rem; color: #999; margin-top: 6px; }

/* ============================================================
 * 多单位：倒计时条 / 司机到期提示 / 开通页 / 续费 / 补名（2026-09-01）
 * ============================================================ */
/* ---- 倒计时条（sticky 置顶常驻，仅班长/副班长渲染） ---- */
.cd-bar {
  position: sticky; top: 0; z-index: 90;
  padding: 8px 12px; margin: 0 0 6px;
  font-size: .88rem; font-weight: 600;
  -webkit-transition: background .3s; transition: background .3s;
}
.cd-bar .cd-body { display: -webkit-flex; display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cd-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; animation: cd-pulse 1.6s ease-in-out infinite; }
@keyframes cd-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.cd-text { flex: 1; min-width: 0; text-align: center; }
.cd-btn {
  border: none; border-radius: 14px; padding: 4px 14px; font-size: .8rem; font-weight: 700;
  background: #fff; color: #b8860b; box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
/* 三态：黄=正常 红=临期 深红=到期 */
.cd-bar.normal { background: #fff8dc; color: #b8860b; }
.cd-bar.due { background: #fdecea; color: #e53935; }
.cd-bar.expired { background: #c62828; color: #fff; }
.cd-bar.expired .cd-btn { color: #c62828; }

/* ---- 司机端到期提示条（无倒计时数字） ---- */
.dbar-expired {
  position: sticky; top: 0; z-index: 89;
  background: #fff8dc; color: #b8860b;
  font-size: .85rem; text-align: center; padding: 8px 12px; margin-bottom: 6px;
}

/* ---- 登录页：开通入口 + 队长勾选 ---- */
.open-unit-row { margin-top: 12px; text-align: center; }
.open-unit-row .btn-ghost { background: none; color: #2f6bff; font-size: .85rem; padding: 8px 0; width: 100%; border: none; }
#login-leader-row { margin-bottom: 4px; }
#login-leader-pwd-row { margin: 0 0 12px; }
#login-leader-pwd-row .field { border-bottom: none; padding: 6px 0; }
#login-leader-pwd-row .input { font-size: 1rem; }

/* ---- 开通页 / 续费：档位卡片 ---- */
.period-row, .renew-period-row { display: -webkit-flex; display: flex; gap: 10px; }
.period-btn {
  flex: 1; position: relative; border: 2px solid #e3e5ec; background: #fff;
  border-radius: 12px; padding: 12px 8px; text-align: center; font-size: .92rem; color: #333;
}
.period-btn b { display: block; font-size: 1.25rem; margin-top: 2px; }
.period-btn .period-sub { display: block; font-size: .7rem; color: #999; margin-top: 4px; line-height: 1.5; }
.period-btn.on { border-color: #2f6bff; background: #eef4ff; color: #2f6bff; }
.period-btn.on b { color: #2f6bff; }
.period-rec {
  position: absolute; top: -9px; right: -6px; background: #ff6d00; color: #fff;
  font-size: .68rem; padding: 2px 8px; border-radius: 10px; -webkit-transform: rotate(6deg); transform: rotate(6deg);
}
.qr-wrap, .renew-qr-row { text-align: center; }
.qr-img { width: 170px; height: auto; max-height: 240px; border: 1px solid #eee; border-radius: 10px; background: #fafafa; object-fit: contain; }
.qr-tip, .renew-qr-tip { font-size: .75rem; color: #999; margin-top: 6px; line-height: 1.6; }
/* 续费：二维码下方提示放大字体 + 关键词加粗 */
.renew-qr-tip { font-size: .92rem; color: #555; }
.renew-qr-tip b { color: #2f6bff; font-weight: 700; }

/* ---- 开通成功 ---- */
.open-ok { color: #27ae60; font-weight: 700; font-size: 1.05rem; text-align: center; margin: 10px 0 6px; }
.open-url-label { font-size: .85rem; color: #555; margin-top: 10px; }
.open-url {
  font-size: .82rem; color: #0b4fd8; background: #f0f4ff; border-radius: 8px;
  padding: 10px; word-break: break-all; margin: 8px 0 10px; user-select: all;
}
.open-unit-code {
  font-size: 1.05rem; color: #0b4fd8; font-weight: 700; background: #f0f4ff; border-radius: 8px;
  padding: 10px; word-break: break-all; margin: 8px 0 10px; user-select: all; letter-spacing: 1px;
}
.unit-code-line { font-size: .9rem; color: #333; margin: 6px 0 4px; }
.unit-code-line b { color: #0b4fd8; font-weight: 700; letter-spacing: 1px; user-select: all; }
.btn-mine-block { display: block; width: 100%; box-sizing: border-box; margin-top: 10px; border: 1px solid #2f6bff; background: #2f6bff; color: #fff; border-radius: 8px; padding: 11px 0; font-size: .95rem; font-weight: 600; text-align: center; cursor: pointer; }
.btn-mine-block:active { opacity: .85; }

/* ---- 续费成功 ---- */
.renew-ok { background: #e8f5e9; color: #2e7d32; border-radius: 8px; padding: 10px; font-size: .88rem; line-height: 1.7; margin-top: 8px; }
/* 2026-09-06 修复：提交后的成功状态改造成醒目卡片（含对勾图标+主副文案+尾号），替换原淡绿小字 */
.renew-ok { text-align: center; padding: 22px 16px; }
.renew-success-ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: #2e7d32; color: #fff; font-size: 30px; line-height: 52px; font-weight: 700; }
.renew-success-tit { font-size: 1.05rem; font-weight: 700; color: #1b5e20; margin-bottom: 6px; }
.renew-success-sub { font-size: .85rem; color: #4caf50; line-height: 1.7; }
.renew-success-tail { font-size: .8rem; color: #9e9e9e; margin-top: 8px; }
/* ---- 续费审核状态提示（审核中 / 被驳回） ---- */
.renew-status { border-radius: 8px; padding: 12px 14px; font-size: .9rem; line-height: 1.7; margin-top: 8px; text-align: center; }
.renew-status.pending { background: #fff8e1; color: #b8860b; border: 1px solid #ffe082; }
.renew-status.rejected { background: #fdecea; color: #c62828; border: 1px solid #f5c6cb; }

/* ---- 我的档案 ---- */
.pf-tip { font-size: .88rem; color: #555; line-height: 1.8; background: #f7f8fa; border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.u-profile { font-size: .85rem; color: #2f6bff; padding: 6px 12px 6px 0; border: none; background: none; }

/* ---- 平台超管（?sys=1） ---- */
.sys-tabs { display: -webkit-flex; display: flex; gap: 8px; margin-bottom: 12px; }
.sys-tab { flex: 1; border: 1px solid #e3e5ec; background: #fff; border-radius: 8px; padding: 10px 0; font-size: .95rem; color: #666; cursor: pointer; }
.sys-tab.on { border-color: #2f6bff; color: #2f6bff; background: #f0f5ff; font-weight: 600; }
.sys-unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 720px) { .sys-unit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sys-unit-grid { grid-template-columns: repeat(1, 1fr); } }
.sys-unit-card { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 1px 6px rgba(31,36,48,.05); display: -webkit-flex; display: flex; flex-direction: column; }
.sys-unit-head { display: -webkit-flex; display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 6px; }
.sys-unit-name { font-weight: 600; font-size: .92rem; }
.sys-unit-name-wrap { flex: 1; min-width: 0; overflow: hidden; }
.sys-unit-name-wrap .sys-unit-name, .sys-unit-name-wrap .sys-unit-id { display: inline-block; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-unit-id { color: #999; font-size: .72rem; margin-left: 6px; }
.sys-unit-tag { font-size: .72rem; color: #8a6d1a; background: #fff3d6; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.sys-unit-tag.gray { color: #999; background: #f0f1f5; }
.sys-unit-tag.red { color: #c62828; background: #fdecea; }
.sys-unit-tag.blue { color: #2f6bff; background: #eef3ff; }
.sys-unit-row { display: -webkit-flex; display: flex; justify-content: space-between; font-size: .82rem; color: #666; padding: 3px 0; }
.sys-unit-row b { color: #333; }
.sys-unit-actions { display: -webkit-flex; display: flex; gap: 8px; margin-top: 10px; }
.sys-unit-actions .sua { flex: 1; border: none; border-radius: 8px; padding: 9px 0; font-size: .8rem; cursor: pointer; font-family: inherit; text-align: center; }
.sys-unit-actions .sua:active { opacity: .75; }
.sua.driver { background: #e8f0fe; color: #185fa5; }
.sua.leader { background: #fbeaf0; color: #993556; }
.sua.reset { background: #fdecea; color: #c62828; }
.sua.del { background: #fff1f0; color: #d32f2f; border: 1px dashed #f0a9a6; }
.btn-reset-pwd { display: block; width: 100%; margin-top: 10px; border: 1px solid #f0b3b0; background: #fdecea; color: #c62828; border-radius: 8px; padding: 8px 0; font-size: .82rem; cursor: pointer; }
.btn-reset-pwd:active { opacity: .7; }
.sys-pay-row { display: -webkit-flex; display: flex; justify-content: space-between; font-size: .85rem; padding: 9px 0; border-bottom: 1px solid #f0f1f5; }
.sys-pay-row:last-child { border-bottom: none; }
.sys-pay-row .p1 { color: #333; }
.sys-pay-row .p2 { color: #999; font-size: .78rem; }
/* 收款对账：一行一个单位的续费状态（可点击放大） */
.sys-pay-group { margin-bottom: 6px; display: -webkit-flex; display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #888; padding: 4px 2px; }
.sys-pay-group::after { content: ''; flex: 1; height: 1px; background: #eef0f5; }
.sys-pay-group .gp-name { font-weight: 600; color: #555; }
.sys-pay-group .gp-num { color: #aaa; }
.sys-unit-line { display: -webkit-flex; display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid #eef0f5; border-radius: 10px; margin-bottom: 8px; background: #fff; cursor: pointer; -webkit-transition: border-color .15s, box-shadow .15s; transition: border-color .15s, box-shadow .15s; }
.sys-unit-line:hover { border-color: #2f6bff; box-shadow: 0 1px 8px rgba(47,107,255,.12); }
.sys-unit-line .line-main { flex: 1; min-width: 0; }
.sys-unit-line .line-name { font-weight: 600; font-size: .92rem; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-unit-line .line-sub { font-size: .76rem; color: #999; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-unit-line .line-right { display: -webkit-flex; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.sys-unit-line .line-st { font-size: .82rem; font-weight: 600; }
.sys-unit-line .line-until { font-size: .72rem; color: #999; }
.sys-unit-line .line-tail { font-size: .78rem; color: #2f6bff; font-weight: 600; background: #eef3ff; border-radius: 6px; padding: 2px 7px; }
.sys-unit-line .line-arrow { color: #bbb; font-size: .8rem; }
/* 倒计时徽章 */
.sys-unit-line .cnt { font-size: .72rem; font-weight: 600; padding: 2px 7px; border-radius: 6px; margin-top: 2px; display: inline-block; text-align: center; }
.sys-unit-line .cnt.due { color: #c62828; background: #fdecea; }
.sys-unit-line .cnt.soon { color: #8a6d1a; background: #fff3d6; }
.sys-unit-line .cnt.far { color: #2f6bff; background: #eef3ff; }
.sys-unit-line .cnt.paid { color: #666; background: #f0f1f5; }
/* 点击行后弹出的续费详情放大面板 */
.sys-pay-zoom .dd-shot { width: 100%; border-radius: 8px; background: #fff; cursor: zoom-in; margin-top: 10px; min-height: 96px; object-fit: contain; border: 1px solid #e6e9f2; }
.sys-pay-zoom .dd-noshot { font-size: .82rem; color: #999; padding: 16px 0; text-align: center; }
.sys-empty { text-align: center; color: #999; font-size: .85rem; padding: 24px 0; }
.sys-pend-card { background: #fff; border: 1px solid #ffe2b8; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.sys-pend-head { display: -webkit-flex; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sys-pend-unit { font-weight: 600; font-size: .98rem; }
.sys-pend-shot { width: 100%; border-radius: 8px; background: #f5f6fa; cursor: zoom-in; margin-top: 10px; min-height: 96px; object-fit: contain; }
.sys-pend-btns { display: -webkit-flex; display: flex; gap: 8px; margin-top: 10px; }
.sys-pend-btn { flex: 1; border: none; border-radius: 8px; padding: 10px 0; font-size: .88rem; cursor: pointer; }
.sys-pend-btn.reject { background: #fdecea; color: #c62828; }
.sys-pend-btn.approve { background: #2f6bff; color: #fff; }

/* ---- 超管 v2 定稿：紧凑单位卡 + 收款对账紧凑列表 + 页签红点 ---- */
/* 收款对账页签红点角标（有新的待审核续费申请时显示） */
.sys-tab { position: relative; }
.sys-tab-dot { position: absolute; top: 9px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 2px #fff; }
/* 紧凑单位卡：头部一行（名称+唯一代码+队长 / 付到+状态tag）+ 按钮一行 */
.sk-card { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 6px rgba(31,36,48,.05); margin-bottom: 8px; }
.sk-head { display: -webkit-flex; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sk-name-wrap { flex: 1; min-width: 0; overflow: hidden; display: -webkit-flex; display: flex; align-items: baseline; gap: 5px; }
.sk-name { font-weight: 600; font-size: .92rem; color: #1f2430; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-id { color: #a9afbd; font-size: .68rem; flex-shrink: 0; }
.sk-lead { color: #555; font-size: .72rem; background: #f0f1f5; border-radius: 6px; padding: 1px 7px; flex-shrink: 0; white-space: nowrap; }
.sk-right { display: -webkit-flex; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sk-paid { color: #2f6bff; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.sk-actions { display: -webkit-flex; display: flex; gap: 6px; margin-top: 9px; }
.sk-actions .sua { flex: 1; border: none; border-radius: 7px; padding: 8px 0; font-size: .78rem; cursor: pointer; font-family: inherit; text-align: center; }
.sk-actions .sua:active { opacity: .75; }
/* 收款对账：紧凑两行列表（每条 = 单位名+状态 / 提交时间 / 交易单号） */
.sys-pay-list { padding: 0 0 12px; }
/* 收款对账增强（2026-09-07）：自动确认开关 + 月/周/天分组 工具条 */
.sys-pay-toolbar { display: -webkit-flex; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sys-auto-toggle { display: -webkit-inline-flex; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; font-size: .78rem; color: #555; }
.sys-auto-toggle input { display: none; }
.sys-auto-toggle-track { width: 38px; height: 21px; border-radius: 11px; background: #d6d9e0; position: relative; transition: background .2s; flex-shrink: 0; }
.sys-auto-toggle-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.sys-auto-toggle input:checked + .sys-auto-toggle-track { background: #34c759; }
.sys-auto-toggle input:checked + .sys-auto-toggle-track::after { left: 19px; }
.sys-pay-group-tabs { display: -webkit-flex; display: flex; gap: 5px; }
.sys-pay-gtab { border: 1px solid #e3e6ee; background: #fff; color: #6b7280; font-size: .74rem; border-radius: 16px; padding: 3px 12px; cursor: pointer; font-family: inherit; }
.sys-pay-gtab.on { background: #2f6bff; border-color: #2f6bff; color: #fff; }
.sys-pay-gtab:active { opacity: .75; }
.sys-pay-group-head { margin: 12px 2px 6px; font-size: .74rem; color: #8a90a0; font-weight: 600; display: -webkit-flex; display: flex; align-items: center; justify-content: space-between; }
.sys-pay-group-head .cnt { font-weight: 400; color: #b0b4c0; }
/* 自动确认过 的自定义标签 */
.sys-unit-tag.auto { background: #e8f7ee; color: #1f9d55; }
.sys-pay-item { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 6px rgba(31,36,48,.05); margin-bottom: 8px; }
.sys-pay-top { display: -webkit-flex; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sys-pay-name { font-weight: 600; font-size: .92rem; color: #1f2430; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-pay-time { font-size: .72rem; color: #8a90a0; margin-top: 4px; }
.sys-pay-trade { font-size: .72rem; color: #8a90a0; margin-top: 3px; word-break: break-all; line-height: 1.4; }
/* 紧凑两行：第一行 = 单位名 + 状态标签(回收回按钮)，第二行 = 上传/到期 日期·单号后四位 一行内联 */
.sys-pay-right-inline { display: -webkit-flex; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sys-pay-sub { display: -webkit-flex; display: flex; align-items: center; flex-wrap: wrap; font-size: .72rem; color: #8a90a0; margin-top: 4px; line-height: 1.3; }
.sys-pay-sub .sys-pay-trade { margin-top: 0; }
.sys-pay-sep { margin: 0 5px; color: #c6cad4; }

/* 收款对账：可点击查看截图（待审核有截图时） */
.sys-pay-item.clickable { cursor: pointer; }
.sys-pay-item.clickable:active { background: #f7f9ff; }
.sys-pay-time-label { color: #b0b4c0; margin-right: 6px; }
.sys-shot-hint { display: inline-block; margin-left: 8px; font-size: .68rem; color: #2f6bff; background: #eef3ff; border-radius: 6px; padding: 1px 6px; }
/* 查看支付截图弹层 */
.shot-mask { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: -webkit-flex; display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 150; }
.shot-sheet { background: #fff; border-radius: 16px; max-width: 640px; width: 100%; max-height: 88vh; display: -webkit-flex; display: flex; flex-direction: column; overflow: hidden; }
.shot-head { display: -webkit-flex; display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #eef0f5; }
.shot-name { font-weight: 600; color: #1f2430; font-size: .95rem; }
.shot-trade { font-size: .72rem; color: #8a90a0; margin-top: 3px; }
.shot-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: #999; padding: 0 4px; }
.shot-close:hover { color: #333; }
.shot-body { padding: 12px 16px; overflow: auto; display: -webkit-flex; display: flex; justify-content: center; background: #fafbfd; }
.shot-body img { max-width: 100%; max-height: 62vh; border-radius: 8px; opacity: 0; transition: opacity .25s; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.shot-tip { padding: 8px 16px 12px; font-size: .72rem; color: #b0b4c0; text-align: center; border-top: 1px solid #eef0f5; }
.shot-foot { padding: 10px 16px 14px; border-top: 1px solid #eef0f5; display: -webkit-flex; display: flex; justify-content: flex-end; }
@media (max-width: 480px) { .shot-sheet { max-width: 96%; } }

/* 收款对账：退回误加延时按钮 + 已退回态 */
.sys-pay-right { display: -webkit-flex; display: flex; justify-content: flex-end; margin-top: 8px; }
.sys-revoke-btn { border: 1px solid #ffd8d8; background: #fff5f5; color: #e0503c; font-size: .72rem; border-radius: 7px; padding: 5px 12px; cursor: pointer; font-family: inherit; }
.sys-revoke-btn:active { opacity: .75; }
.sys-unit-tag.gray { background: #f0f1f4; color: #8a90a0; }

/* 月里程：车牌两行大字排版（前3位一行，其余一行） */
.km-card { flex-direction: column; line-height: 1.25; white-space: normal; padding: 4px 2px; }
.km-card > div { width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; }
/* 后四位（第二行）放大，方便快速定位车号 */
.km-card .km-tail { font-size: 1.2em; font-weight: 700; letter-spacing: .3px; }

/* ---------- 备案信息条（2026-09-18，工信部要求网站底部展示） ---------- */
.beian-bar {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #eef0f5;
  text-align: center;
  font-size: .72rem;
  line-height: 1.9;
  color: #9aa0ae;
  /* 关键：允许长公安备案号换行，避免撑宽卡片 */
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.beian-bar a {
  color: #9aa0ae;
  text-decoration: none;
  /* 关键：不用 inline-block + nowrap（长号码会撑宽父容器） */
  display: inline;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.beian-bar a:active { color: #6b7280; }
.beian-bar .beian-sep {
  margin: 0 5px;
  color: #d0d4dc;
}
.beian-bar .beian-icon {
  width: 12px;
  height: 12px;
  vertical-align: -1px;
  margin-right: 2px;
  display: inline-block;
}
