/* ============================================================
   place-map · 少即是多（Linear 式克制）
   颜色 3 种：#18181b / #fff / #2b7fff（灰阶由黑色透明度派生）
   字号 3 级：12 / 14 / 16    边框统一 1px    无渐变 · 无阴影
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  /* —— 颜色（3 种） —— */
  --text: #18181b;
  --text-sub: rgba(24, 24, 27, .45);
  --bg: #ffffff;
  --card: #ffffff;
  --blue: #2b7fff;
  --blue-dark: #2b7fff;
  --blue-soft: rgba(43, 127, 255, .08);
  --blue-50: rgba(43, 127, 255, .08);
  --blue-100: rgba(43, 127, 255, .08);
  --blue-grad: #2b7fff;             /* 兼容旧引用：实为纯色 */
  --line: rgba(24, 24, 27, .12);
  --hover: rgba(24, 24, 27, .05);
  --press-bg: rgba(43, 127, 255, .06);
  --surface: #ffffff;
  --surface-line: var(--line);
  --divider: var(--line);
  --ghost: #ffffff;
  --danger: #18181b;                /* 破坏性操作走单色描边，不引入第 4 种颜色 */
  --danger-soft: rgba(24, 24, 27, .06);

  /* —— 字体 —— */
  --font-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  /* —— 圆角（2 档 + 胶囊） —— */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* —— 阴影：全部禁用（兼容旧引用） —— */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --ring: none;

  /* —— 动效 —— */
  --t-fast: .15s;
  --t-med: .2s;
  --ease-bounce: ease;
  --ease-spring: ease;

  /* —— 层级 —— */
  --z-topbar: 20;
  --z-placecard: 24;
  --z-fab: 25;
  --z-search: 30;
  --z-modal: 50;
  --z-toast: 60;
  --z-confirm: 90;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 细滚动条 */
#search-results::-webkit-scrollbar,
#place-list::-webkit-scrollbar,
#user-list::-webkit-scrollbar,
.log-list::-webkit-scrollbar { width: 4px; }
#search-results::-webkit-scrollbar-thumb,
#place-list::-webkit-scrollbar-thumb,
#user-list::-webkit-scrollbar-thumb,
.log-list::-webkit-scrollbar-thumb { background: rgba(24,24,27,.15); border-radius: 2px; }

/* ---------- 布局 ---------- */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-topbar);
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-row .search-wrap { flex: 1; min-width: 0; }

#user-chip {
  flex: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1px;
  max-width: 92px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: opacity .15s;
}
#user-chip:active { opacity: .6; }
#user-chip span { font-size: 12px; font-weight: 500; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.login-err {
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.modal-actions.col { flex-direction: column; }
.modal-actions.col .btn { width: 100%; padding: 12px 0; }
.acct-line { font-size: 14px; margin: 6px 0; color: var(--text); }
.acct-line b { font-weight: 600; }

#user-list {
  flex: none;
  max-height: 50vh;
  overflow-y: auto;
  list-style: none;
  margin-bottom: 12px;
}
#user-list li {
  display: flex; align-items: center; flex-wrap: wrap; row-gap: 2px;
  padding: 10px 11px;
  margin-bottom: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
/* 导出格式选择弹窗 */
.export-tip { margin: -6px 0 12px; font-size: 12px; color: var(--text-sub); line-height: 1.5; }
.export-tip b { font-weight: 600; color: var(--text); }
#export-modal .modal-actions.col { gap: 8px; }
/* 每日自动备份列表 */
.auto-backup { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.ab-head { font-size: 12px; font-weight: 500; color: var(--text-sub); margin-bottom: 6px; }
.ab-list { list-style: none; margin: 0; padding: 0; max-height: 132px; overflow-y: auto; }
.ab-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.ab-list .ab-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-list .ab-size { flex: none; color: var(--text-sub); }
.ab-list .ab-empty { justify-content: center; color: var(--text-sub); }

/* 用户行：三行制——账号 / 权限信息（独占一行可换行）/ 操作按钮平铺 */
.u-name { flex: 0 1 100%; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-role { flex: 1 1 100%; min-width: 0; font-size: 12px; color: var(--text-sub); text-align: left; line-height: 1.5; }
.u-act { flex: 1 1 0; min-width: 60px; border: none; background: none; color: var(--text); font-size: 12px; font-weight: 500; padding: 7px 4px; margin-top: 4px; border-top: 1px solid var(--line); transition: opacity .15s; }
.u-act:active { opacity: .5; }
.u-act.del { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.add-user {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
/* 用户管理头部「添加用户」入口按钮 */
.list-head .head-btn {
  margin-left: auto;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  flex: none;
}
.add-user input, .add-user select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  font-size: 16px;
  outline: none;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
}
.add-user input:focus, .add-user select:focus { border-color: var(--blue); }
.add-user #new-username, .add-user #new-name { grid-column: auto; }
.add-user #new-password, .add-user #new-post { grid-column: auto; }
.add-user #add-user-btn { grid-column: 1 / -1; padding: 11px 0; }
.add-user .add-tip {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}

.search-wrap { position: relative; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  transition: border-color .15s;
}
.search-box:focus-within { border-color: var(--blue); }
.search-box .search-icon { color: var(--text-sub); flex: none; transition: color .15s; }
.search-box:focus-within .search-icon { color: var(--blue); }
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--text);
}
#search-clear {
  border: none; background: none;
  display: flex; align-items: center;
  color: var(--text-sub); padding: 2px;
  transition: color .15s;
}
#search-clear:active { color: var(--text); }

/* 搜索结果下拉 */
#search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: var(--z-search);
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-height: 42vh;
  overflow-y: auto;
  overflow: hidden auto;
  animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } }
#search-results li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .12s;
}
#search-results li:last-child { border-bottom: none; }
#search-results li:active { background: var(--press-bg); }
#search-results .sr-info { flex: 1; min-width: 0; }
#search-results .sr-name { font-size: 14px; font-weight: 500; }
#search-results .sr-sub { margin-top: 2px; font-size: 12px; color: var(--text-sub); }
#search-results .sr-nav {
  flex: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}
#search-results .sr-nav:active { opacity: .8; }

/* ---------- 操作日志 ---------- */
.log-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0 12px 12px;
}
.log-list li { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.log-list li:last-child { border-bottom: none; }
.log-list .lg-head { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.log-list .lg-time { flex: none; font-size: 12px; color: var(--text-sub); }
.log-list .lg-user { flex: none; font-size: 12px; font-weight: 500; }
.log-list .lg-act { flex: none; font-size: 12px; font-weight: 500; color: var(--blue); }
.log-list .lg-detail {
  flex: 1; min-width: 0;
  font-size: 12px; color: var(--text-sub);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: right;
}
.log-list .lg-fail .lg-act { color: var(--text); font-weight: 600; }

/* 日志筛选行：关键字 + 用户下拉 */
.log-filter-row { display: flex; gap: 8px; }
.log-filter-row #log-search { flex: 1; min-width: 0; }
.log-filter-row #log-user {
  flex: none;
  width: 108px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.log-filter-row #log-user:focus { border-color: var(--blue); }

/* 用户管理筛选行 */
.user-filter-row { display: flex; gap: 8px; }
.user-filter-row #user-search { flex: 1; min-width: 0; }
.user-filter-row #user-role-filter {
  flex: none;
  width: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  outline: none;
}
#user-post-filter {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.user-filter-row #user-role-filter:focus,
#user-post-filter:focus { border-color: var(--blue); }
#search-results .no-result {
  text-align: center; color: var(--text-sub);
  font-size: 12px; cursor: default;
  padding: 18px 0;
}

#map {
  position: absolute;
  inset: 0;
  width: 100%; height: 100vh;
}

/* ---------- 右侧悬浮按钮组（36px 方形 · 1px 边框 · 8px 圆角） ---------- */
#fab-stack {
  position: fixed;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  z-index: var(--z-fab);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.round-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity .15s;
}
.round-btn:active { opacity: .6; }
.round-btn.primary {
  background: var(--blue); color: #fff;
  border-color: var(--blue);
}
.round-btn.active { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------- 已保存地点弹窗 ---------- */
.list-card {
  width: min(92vw, 440px);
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 12px;
}
.list-head {
  flex: none;
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 16px;
  margin-bottom: 10px;
}
.list-head #list-title { flex: 1; }
.list-search-box { flex: none; margin-bottom: 10px; }
.list-search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 16px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
}
.list-search-box input:focus { border-color: var(--blue); }
.sync-dot { font-size: 12px; font-weight: 400; color: var(--text-sub); }
.sync-dot.loading::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-sub);
  margin-right: 4px;
  animation: pulse 1s infinite;
}
@keyframes pulse { 50% { opacity: .25; } }
.icon-btn {
  border: 1px solid var(--line); background: var(--bg);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.icon-btn:active { background: var(--hover); color: var(--text); }
#place-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0 2px 4px;
}
#place-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  margin-bottom: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s, background .15s;
}
#place-list li:active { border-color: var(--blue); background: var(--press-bg); }
.place-info { flex: 1; min-width: 0; cursor: pointer; }
.place-name {
  font-size: 14px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.place-sub {
  margin-top: 2px;
  font-size: 12px; color: var(--text-sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-nav {
  flex: none;
  border: none; border-radius: var(--radius-sm);
  padding: 7px 14px;
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 500;
  transition: opacity .12s;
}
.btn-nav:active { opacity: .8; }
.btn-del {
  flex: none;
  border: none; background: none;
  color: var(--text-sub); font-size: 12px;
  padding: 6px 4px;
  transition: color .15s;
}
.btn-del:active { color: var(--text); }
#list-empty {
  padding: 26px 0 30px;
  text-align: center;
  font-size: 12px; color: var(--text-sub);
}
.list-more {
  padding: 12px 0 6px;
  text-align: center;
  font-size: 12px; color: var(--text-sub) !important;
}

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
}
.modal.modal-top { z-index: var(--z-confirm); }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(24, 24, 27, .4);
}
.modal-card {
  position: relative;
  width: min(86vw, 340px);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 16px;
  animation: fade .15s ease;
}
.modal-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.modal-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 16px;
  outline: none;
  margin-top: 6px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
}
.modal-card input:focus { border-color: var(--blue); }
.coords { font-size: 12px; font-family: var(--font-mono); color: var(--text-sub); margin-bottom: 6px; }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 18px;
}
.btn {
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity .12s;
}
.btn:active { opacity: .7; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.danger { background: var(--bg); border-color: var(--text); color: var(--text); }
.btn.ghost { background: var(--bg); border-color: var(--line); color: var(--text); }

.nav-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.nav-mode {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 0;
  font-size: 14px;
  transition: border-color .15s, background .15s;
}
.nav-mode:active { border-color: var(--blue); background: var(--press-bg); }

.ak-tip {
  font-size: 12px; line-height: 1.8;
  color: var(--text-sub);
  margin-bottom: 10px;
}

/* ---------- 地点详情卡（贴边浮层） ---------- */
#place-card {
  position: fixed;
  left: 12px;
  right: 56px; /* 避开右侧 36px 悬浮按钮组 */
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  z-index: var(--z-placecard);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  animation: fade .15s ease;
}
#pc-close {
  position: absolute;
  top: 8px; right: 8px;
  border: 1px solid var(--line); background: var(--bg);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
}
#pc-close:active { background: var(--hover); color: var(--text); }
.pc-name {
  font-size: 16px; font-weight: 600;
  padding-right: 44px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-sub { margin-top: 3px; font-size: 12px; color: var(--text-sub); }
.pc-note {
  margin-top: 7px;
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-all;
}
.pc-actions { display: flex; gap: 8px; margin-top: 11px; }
.pc-actions button {
  flex: 1;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  transition: opacity .12s;
}
.pc-actions button:active { opacity: .7; }
.pc-actions #pc-nav { background: var(--blue); border-color: var(--blue); color: #fff; }
.pc-actions #pc-edit { background: var(--bg); }
.pc-actions #pc-del { background: var(--bg); }

/* 编辑地点：顶部浮动，不遮地图，便于拖动图钉 */
.modal.edit-top { align-items: flex-start; padding-top: calc(env(safe-area-inset-top, 0px) + 76px); }
.modal.edit-top .modal-mask { display: none; }
.modal.edit-top .modal-card { border-color: var(--line); }
.edit-tip { margin-top: 8px; font-size: 12px; color: var(--text-sub); line-height: 1.5; }

/* ---------- Toast（黑底白字，反色即对比） ---------- */
.toast {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-toast);
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
  animation: fade .15s ease;
}
.hidden { display: none !important; }

/* ---------- 无障碍与全局一致性 ---------- */
button, input, select, textarea { font-family: var(--font-ui); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 辖区范围 ---------- */
.pc-juris {
  margin-top: 6px;
  font-size: 12px;
  display: flex; align-items: center; gap: 6px;
  color: var(--text);
}
.pc-juris .juris-dot {
  width: 9px; height: 9px; border-radius: 50%;
  flex: none;
}
.pc-juris b { font-weight: 500; }
.juris-admin {
  flex: none;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.juris-admin input, .juris-admin select, .modal-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.juris-admin input:focus, .juris-admin select:focus, .modal-card select:focus {
  border-color: var(--blue);
}
#juris-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0 2px 4px;
}
#juris-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  margin-bottom: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s, background .15s;
}
#juris-list li.active { border-color: var(--blue); background: var(--press-bg); }
.juris-dot {
  width: 13px; height: 13px; border-radius: 50%;
  flex: none;
}
.juris-info { flex: 1; min-width: 0; cursor: pointer; }
.juris-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.juris-sub { margin-top: 2px; font-size: 12px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.juris-acts { display: flex; gap: 6px; flex: none; }
.juris-acts button {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  font-size: 12px;
  color: var(--text);
  transition: background .15s;
}
.juris-acts button:active { background: var(--hover); }
.juris-acts button.danger { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.juris-tip { flex: none; margin-top: 8px; font-size: 12px; color: var(--text-sub); line-height: 1.6; }

/* ---------- 权限复选框组 ---------- */
.perm-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.perm-box label {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px;
  cursor: pointer;
  min-width: 0;
}
.perm-box input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--blue);
  flex: none;
  cursor: pointer;
}

/* ---------- 锁定辖区提示条 ---------- */
#lock-chip {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 62px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px 6px 12px;
  background: var(--bg);
  border: 1px solid var(--blue);
  border-radius: var(--radius-full);
  font-size: 12px;
  max-width: 86vw;
  white-space: nowrap;
}
#lock-chip .lock-ico { flex: none; color: var(--blue); display: flex; align-items: center; }
#lock-chip #lock-chip-text { overflow: hidden; text-overflow: ellipsis; }
#lock-chip #lock-chip-text b { font-weight: 500; color: var(--blue); }
#lock-chip-x {
  border: none; background: var(--hover);
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 14px; line-height: 1;
  color: var(--text-sub);
  flex: none;
  cursor: pointer;
}

/* 备案页脚：全屏地图应用，固定悬浮左下角 */
.site-footer {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 500;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--border, #e4e4e7);
  border-radius: 8px;
  padding: 3px 10px;
  line-height: 1.4;
}
.site-footer a { color: var(--text-sub, rgba(24,24,27,.45)); font-size: 12px; text-decoration: none; }
.site-footer a:hover { color: var(--text, #18181b); }

/* 充值码管理 */
.card-gen { display: flex; gap: 8px; margin-bottom: 10px; }
.card-gen select { flex: 1; }
.card-gen input { flex: 1; min-width: 0; }
.card-gen .btn { flex: none; }
#card-out {
  width: 100%; box-sizing: border-box; resize: vertical;
  font-family: ui-monospace, Consolas, monospace; font-size: 13px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); margin-bottom: 8px;
}
.cards-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 40vh; }
.cd-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; margin-bottom: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13px;
}
.cd-item.used { opacity: .45; }
.cd-code { font-family: ui-monospace, Consolas, monospace; font-weight: 600; letter-spacing: .5px; user-select: all; }
.cd-meta { flex: none; font-size: 12px; color: var(--text-sub); }

/* 扫码付款续费 */
.pay-qr-wrap { text-align: center; margin-bottom: 10px; }
.pay-qr-wrap img { width: 180px; height: 180px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.qr-tip { margin: 6px 0 0; font-size: 12px; color: var(--text-sub); }
.pay-price { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.pay-price b { font-size: 24px; font-weight: 700; color: var(--blue); }
.pay-price span { color: var(--text-sub); font-size: 13px; }
.od-item.rejected { opacity: .4; }
.od-acts { flex: none; display: flex; gap: 4px; }

/* 注册申请 */
.rg-divider { margin: 14px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-sub); text-align: center; }
.rg-result { padding: 10px 12px; margin-bottom: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.7; color: var(--text-sub); word-break: break-all; }
.rg-ok-line { margin: 0 0 6px; color: var(--text); font-weight: 500; }
.rg-cred { margin: 4px 0; font-size: 15px; color: var(--text); }
.rg-cred b { font-weight: 700; letter-spacing: 1px; user-select: all; }
.rg-warn { margin: 6px 0 0; font-size: 12px; }

/* 账号弹窗：功能入口两列网格（admin 项目多时不再超长） */
#acct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
#acct-grid .btn { width: 100%; padding: 11px 0; font-size: 13px; }
.acct-logout { margin-top: 10px; }
