/* ===================================================
   酒店图片验收工作台 — 生产环境样式 v3
   设计体系：软色徽章 + 三档圆角(8/12/16) + 三档字重(400/500/700)
   主题色：酒红 primary（延续 v2 体系）
   =================================================== */

:root {
  --bg: #f5f5f3;
  --panel: #ffffff;
  --ink: #1b1e24;
  --sub: #767b85;
  --line: #ececef;
  --primary: #7c2230;
  --primary-d: #5f1824;
  --primary-soft: #faf2f3;
  --teal: #0f6e5c;
  --amber: #8a5f0a;
  --red: #b03a38;
  --green: #2f7a52;
  --blue: #3a6ea5;
  --sky: #2f6f8f;
  --grey: #9aa0ab;
  /* 软色徽章底 */
  --teal-soft: #e4f4f1;
  --amber-soft: #faeeda;
  --red-soft: #fcebeb;
  --green-soft: #eaf3de;
  --blue-soft: #e8f0f9;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(20,22,30,.04), 0 8px 24px rgba(20,22,30,.05);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; position: fixed; width: 100%; }

/* === 顶栏 === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245,245,243,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  margin-right: auto;
  letter-spacing: .01em;
}
.brand-logo {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--primary);
  flex-shrink: 0;
}
.rolebar {
  font-size: 13px;
  color: var(--sub);
  white-space: nowrap;
}
.sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sub);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
  flex-shrink: 0;
}
.sync .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); transition: .2s; }
.sync.syncing .dot { background: var(--amber); animation: pulse 1s infinite; }
.sync.offline .dot { background: var(--red); }
@keyframes pulse { 50% { opacity: .3; } }
.admin-toggle { flex-shrink: 0; }

/* === 区块 === */
.section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}
.section h2 {
  font-size: 12px;
  letter-spacing: .04em;
  margin: 0 0 14px;
  color: var(--sub);
  font-weight: 700;
}

/* === 筛选栏 === */
.filterbar { display: flex; flex-direction: column; gap: 10px; }
.search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fcfcfd;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.search:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* 状态胶囊栏（v3：统计+筛选合一，胶囊带计数） */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--sub);
  font-size: 13px;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.tab .tab-n {
  display: inline-block;
  min-width: 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 999px;
  background: #f0f2f5;
  margin-left: 2px;
}
.tab.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 500; }
.tab.on .tab-n { background: #f0dfe2; color: var(--primary); }
.tab:hover { background: #fafafa; }

.hotel-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.htab {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--sub);
  font-size: 13px;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.htab.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 500; }
.htab:hover { background: #fafafa; }
.foldtoggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--sub);
  cursor: pointer;
  user-select: none;
}
.foldtoggle input { width: 16px; height: 16px; }

/* === 任务卡片（v3：首图缩略图 + 软色徽章 + 意见计数） === */
.list { display: flex; flex-direction: column; gap: 8px; }

/* === v26 真手风琴：详情视觉上跟在被点卡片后面 ===
   原理：.list 用 display:contents「消失」，卡片直接变成 .listwrap 的 grid 项目；
   详情节点（.list 的兄弟，不在 innerHTML 重建范围内）用 grid-row 排到指定行，
   grid 自动排布会绕开它被显式占用的行，后面的卡片自动往下顺延。
   用 @supports 兜底：不支持 display:contents 的旧内核保持原样（详情在列表末尾），
   不会退化成错位或白屏。 */
@supports (display: contents) {
  .listwrap { display: grid; grid-auto-flow: row; gap: 8px; }
  .listwrap > .list { display: contents; }
  .listwrap > [data-zone="detail"] { grid-row: auto; } /* JS 会覆盖成具体行号 */
}
.card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  transition: .15s;
  position: relative;
}
.card:hover { border-color: #d5d5d8; box-shadow: var(--shadow); }
.card.sel { border-color: var(--primary); border-left-color: var(--primary); background: var(--primary-soft); }
.t-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #ececef;
  cursor: pointer;
}
.empty-thumb { background: #ececef; }
.card-main { flex: 1; min-width: 0; }
.card-title { font-weight: 500; font-size: 15px; margin-bottom: 3px; }
.card-meta { font-size: 12px; color: var(--sub); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.t-cnt { color: var(--primary); }
.t-overdue { display: block; font-size: 12px; color: var(--red); font-weight: 500; margin-top: 2px; }
.t-badge { font-size: 12px; font-weight: 500; white-space: nowrap; padding: 3px 10px; border-radius: 999px; }
.t-check { width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.card-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.card-del { margin-left: 4px; }

/* === 空态 === */
.empty { color: var(--sub); font-size: 13px; text-align: center; padding: 16px 0; }

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: .15s;
  border: 1px solid transparent;
}
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-d); }
.btn.ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #fafafa; border-color: #d5d5d8; }
.btn.ghost.danger { color: var(--red); border-color: #f0d5d5; }
.btn.ghost.danger:hover { background: #fdf2f2; }
.btn.sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }

/* === 任务详情（v3：无标题行，版本平铺） === */
/* v26：详情容器在列表末尾，展开后 scrollIntoView({block:'start'}) 把它对齐到视口顶部。
   顶栏是 sticky（见 .topbar），不加这个偏移，详情标题会被顶栏盖住。 */
[data-zone="detail"] { scroll-margin-top: 60px; }
.detail {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  margin: 4px 0 12px;
}
.detail-desc { font-size: 14px; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.d-status { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; margin-left: auto; }
.detail-sec-title { font-size: 12px; color: var(--sub); font-weight: 700; letter-spacing: .04em; margin: 8px 0 10px; }
.fold-count { font-size: 12px; font-weight: 500; color: var(--sub); }

/* 版本内嵌修改意见区 */
.v-comments { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.v-comments .comment { padding: 8px 0; border-bottom: 1px solid var(--line); }
.v-comments .comment:last-child { border-bottom: none; }
.cp-ver { font-size: 12px; font-weight: 500; color: var(--sub); margin-bottom: 6px; }

/* === 版本卡片 === */
.ver-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  background: #fafafa;
}
.ver-card:last-child { margin-bottom: 0; }
.v-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.v-no { font-weight: 700; font-size: 14px; }
.v-type { font-size: 12px; color: var(--sub); padding: 2px 8px; border-radius: 999px; background: #f0f2f5; }
.v-meta { font-size: 12px; color: var(--sub); margin-left: auto; }
.v-thumb { width: 100%; max-height: 300px; border-radius: var(--radius-sm); object-fit: cover; }
.v-thumb.empty { height: 100px; display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 13px; }
.v-foot { display: flex; gap: 8px; margin-top: 8px; }

/* === 修改意见 === */
.comment { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: none; }
.c-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.c-author { font-weight: 500; font-size: 14px; }
.c-role { font-size: 11px; color: var(--sub); padding: 1px 7px; border-radius: 999px; background: #f0f2f5; }
.c-time { font-size: 12px; color: var(--sub); margin-left: auto; }
.c-text { font-size: 14px; line-height: 1.6; word-break: break-word; }
.c-refs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.c-ref { width: 80px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--line); cursor: pointer; }

/* === 灯箱 === */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-user-select: none;
  user-select: none;
}
.lb.show { display: flex; }
.lb-close {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 102;
}
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 102;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.5);
  border-radius: 999px;
  padding: 6px 10px;
}
.lb-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-zoom { color: #fff; font-size: 13px; min-width: 48px; text-align: center; }
.lb-img {
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img img { max-width: 90vw; max-height: 80vh; border-radius: 6px; object-fit: contain; }
.lb-shield { position: absolute; inset: 0; z-index: -1; }
.lb-spin {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* === 管理后台（v3：div-grid 表格 + 徽章 + token 截断） === */
.admin-wrap { margin-top: 2px; }
.admin-panel .admin-sec { margin-bottom: 18px; }
.admin-panel .admin-sec:last-child { margin-bottom: 0; }
.admin-sec h3 { font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.atable { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ahead { background: #f7f7f5; }
.arow {
  display: grid;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 13px;
}
.arow:last-child { border-bottom: none; }
.arow.proj { grid-template-columns: 2fr 1.2fr .8fr 1.8fr; }
.arow.link { grid-template-columns: 2fr 1fr .9fr 1fr .7fr 2.2fr; }
.ahead.arow { font-size: 12px; color: var(--sub); font-weight: 500; }
.ac { min-width: 0; overflow: hidden; }
.ac.name, .ac > * { overflow-wrap: break-word; }
.ac.ops { display: flex; gap: 5px; flex-wrap: wrap; }
.ac.code code, .link-token { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--blue); }
.token-cell { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.token-cell .link-token { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-cell .btn { flex-shrink: 0; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.off { background: var(--red-soft); color: var(--red); }
.admin-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
}
.admin-form .inp { flex: 1; min-width: 120px; }

/* === Gate（登录门） === */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gate-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 30px;
  max-width: 380px;
  text-align: center;
  width: 100%;
}
.gate-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--primary);
  margin: 0 auto 16px;
}
.gate-box h1 { font-size: 20px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.gate-box p { color: var(--sub); font-size: 14px; margin: 0 0 16px; }
.gate-hint { font-size: 12px; color: var(--sub); line-height: 1.7; }
.gate-loading {
  padding: 12px;
  font-size: 14px;
  color: var(--amber);
}
.gate-error {
  padding: 12px;
  font-size: 14px;
  color: var(--red);
  background: #fdf2f2;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* === 表单 === */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
label.fld { display: block; font-size: 12px; color: var(--sub); margin-bottom: 5px; }
input.inp, textarea.inp, select.inp {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 16px;
  font-family: inherit;
  background: #fcfcfd;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
textarea.inp { resize: vertical; min-height: 64px; }
input.inp:focus, textarea.inp:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* === 上传区 === */
.dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--sub);
  font-size: 13px;
  cursor: pointer;
  background: #fafafa;
  transition: .15s;
}
.dropzone.over { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.dropzone .hint { margin-top: 5px; font-size: 11px; opacity: .75; }
.preview { margin-top: 10px; }
.preview img { max-width: 100%; max-height: 200px; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* === 修改意见输入面板 === */
.comment-panel {
  margin: 10px 0; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fafbfc;
}
.comment-panel .cp-row {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  flex-wrap: wrap;
}
.cp-file { font-size: 13px; flex: 1; min-width: 140px; }

/* === 批量操作栏 === */
.batchbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--panel);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.batchbar.show { display: flex; }
.batchbar .batch-count { font-size: 14px; font-weight: 500; }

/* === 缩略图 wrapper（v17：点击与长按解耦的结构层，全角色生效） === */
/* .thumb-wrap 是纯布局外壳：视觉上与原来的裸 img 完全一致；
   事件层归外壳（v17 委托已接入 .thumb-wrap），客户模式防长按见下方 client-mode 段。 */
.thumb-wrap { display: block; line-height: 0; }
.thumb-wrap-card { flex-shrink: 0; }

/* === 客户模式（防长按保存） === */
/* v17 根治（终结 v15↔v16 来回横跳）：点击与长按物理解耦——
   ① 所有缩略图/参考图外包 .thumb-wrap（div 外壳，渲染层 v17 改造），事件层在外壳上：
      外壳 pointer-events:auto 接收点击开灯箱；外壳是 div，长按不弹图片菜单。
   ② img 本体 pointer-events:none：手指摸不到图片，微信长按菜单没有图片上下文 → 不出现。
      （v15 的教训：当时 img 直接承担点击，none 一加点击也死；v17 点击已移交给外壳，none 不再误伤。）
   ③ 灯箱大图 .lb-img img 同样 none，长按原图也弹不出菜单；关闭走 #lbClose 按钮（原本就无点背景关闭）。
   ④ -webkit-touch-callout/user-select 继续保留双保险；
   ⑤ 安卓微信/桌面右键与拖拽由 bindEvents 已有的 contextmenu/dragstart 拦截兜底。
   ⑥ 非客户角色不命中任何 .client-mode 规则，行为零变化（红线 4）。 */
.client-mode .thumb-wrap { pointer-events: auto; cursor: zoom-in; }
.client-mode .thumb-wrap img,
.client-mode .lb-img img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.client-mode .lb-img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* v18：下载保存模式（body.lb-save-mode，仅「点下载→灯箱原图」临时挂上，关灯箱即移除）。
   此时灯箱大图恢复长按能力（微信长按菜单可弹出 → 用户主动保存）。
   选择器带 .lb-save-mode，优先级 (0,3,0)/(0,3,1) 明确压过上方基础防护 (0,2,0)/(0,2,1)。
   缩略图防护不在豁免范围（只作用于 .lb-img），列表/详情缩略图长按照样拦。 */
.client-mode.lb-save-mode .lb-img { pointer-events: auto; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.client-mode.lb-save-mode .lb-img img {
  pointer-events: auto;
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
  -webkit-user-drag: none;
  user-drag: none;
}

/* === 移动端适配 === */
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .topbar { padding: 10px 2px; gap: 8px; }
  .brand { font-size: 15px; }
  .section { padding: 14px; border-radius: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  /* 管理台表格 → 卡片堆叠 */
  .arow.proj, .arow.link { grid-template-columns: 1fr; gap: 6px; padding: 11px 12px; }
  .ahead { display: none; }
  .ac.ops { margin-top: 2px; }
  .arow .ac::before {
    content: attr(data-th) "：";
    font-size: 11px;
    color: var(--sub);
    margin-right: 4px;
  }
  .arow .ac.ops::before { content: none; }
}

/* === 回复区 === */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--blue);
  cursor: pointer;
  margin-bottom: 10px;
}
.back-link:hover { text-decoration: underline; }

/* === 容器 === */
#app > div[data-zone="main"] {
  max-width: 880px;
  margin: 0 auto;
  padding: 12px 14px 30px;
}
#app > div[data-zone="gate"] .gate { position: fixed; }

/* === 搜索框 === */
.inp.search { font-size: 15px; }

/* === 新建任务按钮（列表头部） === */
.list-head { display: flex; justify-content: flex-end; margin-bottom: 10px; }

/* === 新建任务浮层（modal） === */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 20, 26, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.modal {
  background: #fff; border-radius: var(--radius-lg);
  padding: 20px;
  width: 100%; max-width: 460px;
  max-height: 88vh; overflow: auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}
.modal h3 { margin: 0 0 14px; font-size: 17px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.form-err {
  margin-top: 12px; padding: 9px 12px;
  color: var(--red); background: #fdf2f2;
  border-radius: var(--radius-sm); font-size: 13px;
}

/* === toast 轻提示 === */
.toast {
  position: fixed; left: 50%; top: 18px; z-index: 300;
  transform: translateX(-50%) translateY(-12px);
  background: #ffffff; color: #2a2e37;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.04);
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
  max-width: 86vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #fdecea; color: #b3261e; box-shadow: 0 6px 20px rgba(179,38,30,.14); }

/* === 页脚版本号（核对是否运行最新版） === */
.app-foot { padding: 14px 0 8px; font-size: 11px; color: var(--sub); text-align: center; opacity: .7; }

/* === 缩略图可点击（指针） === */
.v-thumb, .c-ref { cursor: zoom-in; }
.t-thumb { cursor: pointer; }