/* 租个车 · 管理后台样式 v2 */

:root {
  --brand: #1763ff;
  --brand-deep: #0e49d6;
  --brand-2: #00b578;
  --ink: #0f2340;
  --text: #22304a;
  --text-2: #5d6d84;
  --text-3: #96a3b7;
  --line: #e7ecf4;
  --bg: #f3f5fa;
  --side: #101c33;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 35, 95, .04), 0 8px 24px rgba(15, 35, 95, .06);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; color: var(--ink); }

/* ---------- 外壳 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; flex: none; background: var(--side); color: #9fb0ca;
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0;
}
.sidebar .logo {
  padding: 20px 20px 16px; font-size: 17px; font-weight: 800; color: #fff;
  display: flex; flex-direction: column; gap: 3px; line-height: 1.3;
}
.sidebar .logo span { font-size: 11px; font-weight: 400; color: #7d90ad; letter-spacing: 2px; }
.sidebar nav { display: flex; flex-direction: column; padding: 8px 10px; gap: 4px; flex: 1; }
.sidebar nav a {
  padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 2px; transition: all .15s;
}
.sidebar nav a:hover { background: rgba(255, 255, 255, .07); color: #e6edf7; }
.sidebar nav a.on {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font-weight: 700;
  box-shadow: 0 6px 16px rgba(23, 99, 255, .35);
}
.sidebar-foot { padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; font-size: 12px; color: #7d90ad; }
.sidebar-foot a { color: #9fb0ca; }
.sidebar-foot a:hover { color: #fff; }
.content { flex: 1; min-width: 0; padding: 26px 28px 44px; margin-left: 216px; }
.content-title { font-size: 22px; margin-bottom: 20px; font-weight: 800; letter-spacing: .01em; }

/* ---------- 卡片 / 表格 ---------- */
.card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border: 1px solid #f0f3f8; }
.card-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-hd h2 { font-size: 16px; font-weight: 700; }
.link { color: var(--brand); font-size: 13px; font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--text-3); font-weight: 600; white-space: nowrap; background: #f8fafd; }
.table th:first-child { border-top-left-radius: 8px; }
.table th:last-child { border-top-right-radius: 8px; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #f8fafd; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .ellipsis { max-width: 320px; }
.table td a { color: var(--brand); font-weight: 500; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.muted { color: var(--text-2); }
.tiny { font-size: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border: 1px solid #f0f3f8; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); }
.stat-card span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; font-weight: 500; }
.stat-card b { font-size: 27px; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.stat-card.accent b { color: var(--brand); }
.stat-card.accent2 b { color: #f0433e; }

/* ---------- 状态药丸 ---------- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--text-2); }
.pill.s1 { background: #fff5e0; color: #b35c00; }
.pill.s2 { background: #e7f8ee; color: #177245; }
.pill.s3 { background: var(--bg); color: var(--text-2); }
.pill.s4 { background: #ffedec; color: #b0201f; }
.pill.s5 { background: #eaf1ff; color: #0d3f9e; }
.pill.s6 { background: #f2f2f2; color: #8a8a8a; text-decoration: line-through; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all .15s;
}
.btn:hover { background: #f8fafd; border-color: #c8d4e4; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(15, 35, 95, .07); }
.btn.xs { padding: 5px 11px; font-size: 12px; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.block { display: flex; width: 100%; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); border-color: transparent; color: #fff; box-shadow: 0 5px 14px rgba(23, 99, 255, .3); }
.btn.primary:hover { background: linear-gradient(135deg, #2870ff, var(--brand-deep)); color: #fff; }
.btn.danger { color: #f0433e; border-color: #ffd2cf; }
.btn.danger:hover { background: #fff3f2; }

/* ---------- 工具栏 ---------- */
.toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .tabs { display: flex; gap: 6px; background: #fff; border-radius: 999px; padding: 4px; box-shadow: var(--shadow); border: 1px solid #f0f3f8; }
.toolbar .tabs .tab { padding: 7px 15px; font-size: 13px; color: var(--text-2); border-radius: 999px; font-weight: 500; }
.toolbar .tabs .tab.on { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font-weight: 700; }
.search-inline { display: flex; gap: 8px; }
.search-inline input {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13px; background: #fff; min-width: 220px; outline: none; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.search-inline input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 99, 255, .12); }
.inline-form { display: flex; gap: 6px; align-items: center; }
.mini-input { width: 66px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 13px; background: #fff; outline: none; color: var(--text); }
.mini-input:focus { border-color: var(--brand); }
.ops-cell { white-space: nowrap; }
.ops-cell form { display: inline-block; margin-right: 6px; }
.empty-line { padding: 40px; text-align: center; color: var(--text-3); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; margin-bottom: 15px; }
.field input {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14px; background: #fff; outline: none; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 99, 255, .12); }
.alert { background: #ffedec; color: #b0201f; border-radius: 10px; padding: 11px 13px; font-size: 13px; margin-bottom: 15px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 26px; transform: translateX(-50%) translateY(-10px);
  background: rgba(15, 35, 64, .94); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: 13px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 弹层 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 35, 64, .5); padding: 20px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 16px; width: 100%; max-width: 380px; padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); animation: pop .2s ease; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-title { font-size: 17px; margin-bottom: 10px; color: var(--ink); font-weight: 700; }
.modal-body { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.modal-field { width: 100%; margin-top: 10px; }
.modal-field input, .modal-field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; background: #fff; color: var(--text); outline: none;
}
.modal-field input:focus, .modal-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 99, 255, .12); }

/* ---------- 后台登录 ---------- */
.login-body {
  display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px;
  background: linear-gradient(135deg, #101c33 0%, #1b2c4d 60%, #173a5e 100%);
}
.login-card { background: #fff; border-radius: 18px; padding: 30px; width: 100%; max-width: 380px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.login-card .logo {
  font-size: 22px; font-weight: 800; display: flex; flex-direction: column; margin-bottom: 22px; line-height: 1.3;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.login-card .logo span { font-size: 12px; font-weight: 400; color: var(--text-3); -webkit-text-fill-color: var(--text-3); letter-spacing: 3px; margin-top: 3px; }
.login-card .muted { font-size: 12px; margin-top: 12px; line-height: 1.7; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .sidebar { position: static; width: 100%; flex-direction: row; align-items: center; height: auto; padding: 0 10px; overflow-x: auto; }
  .sidebar .logo { padding: 12px 10px; flex-direction: row; gap: 6px; font-size: 15px; align-items: baseline; flex: none; }
  .sidebar nav { flex-direction: row; gap: 4px; padding: 8px 0; }
  .sidebar nav a { padding: 9px 11px; font-size: 13px; white-space: nowrap; }
  .sidebar-foot { display: none; }
  .shell { flex-direction: column; }
  .content { margin-left: 0; padding: 18px 14px 32px; }
  .card { padding: 14px; overflow-x: auto; }
  .table { min-width: 740px; }
  .content-title { font-size: 19px; }
}

/* 实名认证：证照缩略图 */
.doc-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.doc-thumbs a { display: block; width: 56px; text-align: center; text-decoration: none; }
.doc-thumbs img {
  width: 56px; height: 40px; object-fit: cover;
  border-radius: 4px; border: 1px solid #e3e9f2; background: #f6f8fb;
}
.doc-thumbs span { display: block; font-size: 10px; color: #8896ab; margin-top: 2px; line-height: 1.2; }

/* 人脸核验结论色 */
.ok { color: #177245; font-weight: 600; }
.bad { color: #b0201f; font-weight: 600; }

/* ---------- 数据看板：可点击卡片 + 明细面板 ---------- */
.stat-card {
  appearance: none; -webkit-appearance: none;
  cursor: pointer; width: 100%; text-align: left; font-family: inherit; font-size: inherit;
  color: inherit; display: block;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15, 35, 95, .10); border-color: #dbe4f2; }
.stat-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.stat-card.open { border-color: var(--brand); box-shadow: 0 10px 26px rgba(23, 99, 255, .16); }
.stat-card .chev { position: absolute; right: 13px; top: 13px; font-style: normal; font-size: 12px; color: var(--text-3); transition: transform .18s; }
.stat-card.open .chev { transform: rotate(180deg); color: var(--brand); }
.stat-detail {
  background: #fff; border: 1px solid #eef2f8; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; margin-bottom: 20px; animation: fadein .16s ease;
}
.stat-detail[hidden] { display: none; }
.stat-detail-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.stat-detail-hd strong { font-size: 15px; color: var(--ink); }
.stat-detail-scroll { overflow-x: auto; }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- 用户管理：操作按钮组 ---------- */
.user-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.user-ops .btn { white-space: nowrap; }

/* 看板：跳转型卡片（待审核→内容审核）保持与展开型一致的观感，仅用箭头区分 */
.stat-card-link { text-decoration: none; }
.stat-card-link:hover .chev { transform: translateX(3px); color: var(--brand); }

/* ============ v1.13.0 内容审核：就地展开完整内容 ============ */
.review-tip { margin: 0 0 10px; line-height: 1.7; }
.table-review .cell-main { min-width: 420px; max-width: 720px; }
.post-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.5; word-break: break-word; white-space: normal; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 6px 0 8px; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.post-meta .tagline { color: var(--brand); font-weight: 600; }
.review-toggle { margin-top: 2px; }

.review-row > td { background: #fbfcfe; padding: 0 !important; border-bottom: 1px solid var(--line); }
.review-row[hidden] { display: none !important; }
.review-panel { padding: 16px 18px 18px; border-left: 3px solid var(--brand); }
.review-hd { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.review-hd h3 { font-size: 16px; line-height: 1.5; color: var(--ink); margin: 0; word-break: break-word; }
.review-sec { margin-bottom: 16px; }
.review-sec h4 { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: .4px; margin: 0 0 8px; }
.review-body { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.85; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.review-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 14px; margin: 0; }
.review-kv > div { display: flex; gap: 8px; align-items: baseline; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; }
.review-kv dt { flex: 0 0 auto; font-size: 12px; color: var(--text-3); }
.review-kv dd { flex: 1 1 auto; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); word-break: break-word; }
.review-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.review-imgs a {
  display: block; position: relative; cursor: zoom-in;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.review-imgs a:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(23, 99, 255, .16); }
.review-imgs a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* 审核要看全图，不裁切：contain + 浅底 */
.review-imgs img { display: block; width: 100%; height: 110px; object-fit: contain; background: #f6f8fb; }
/* 缩略图右上角的「可放大」提示，只在 hover / 触屏点按时出现 */
.review-shot-zoom {
  position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1;
  color: #fff; background: rgba(15, 35, 95, .62); opacity: 0; transition: opacity .15s;
  pointer-events: none;
}
.review-imgs a:hover .review-shot-zoom, .review-imgs a:focus-visible .review-shot-zoom { opacity: 1; }
.review-h4-hint { font-weight: 400; letter-spacing: 0; color: var(--text-3); opacity: .8; margin-left: 6px; }
.review-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 12px; }
.review-actions { display: flex; gap: 8px; }
.review-actions form { margin: 0; }

/* v1.13.0 审核表：列不折行、按钮不挤压 */
.table-review .cell-owner { white-space: nowrap; }
.table-review .cell-state .pill { white-space: nowrap; }
.table-review .cell-time { white-space: nowrap; font-size: 12px; }
.table-review .ops-cell form { display: inline-block; margin: 0 0 4px 0; }
.table-review .ops-cell .btn { white-space: nowrap; }

/* ============ v1.17.0 内容审核：图片弹层（lightbox） ============ */
/* 点击缩略图就地放大，不再新开标签页。层级高于侧栏与 toast，低于无障碍焦点环。 */
.lb[hidden] { display: none !important; }
.lb {
  position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column;
  overflow: hidden; /* 窄屏工具条再挤也不会把页面撑出横向滚动 */
  background: rgba(8, 15, 28, .9);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .16s ease;
  /* 弹层内文字统一浅色，避免继承后台深色正文色 */
  color: #fff;
}
.lb.on { opacity: 1; }

/* 顶部工具条：标题 + 张数 + 缩放 + 关闭 */
.lb-bar {
  flex: none; display: flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 14px; min-width: 0;
  background: linear-gradient(180deg, rgba(6, 12, 24, .82), rgba(6, 12, 24, 0));
}
.lb-title {
  flex: 1 1 auto; min-width: 0; font-size: 13px; color: rgba(255, 255, 255, .88);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-count {
  flex: none; font-size: 12px; color: rgba(255, 255, 255, .66);
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.lb-tools { flex: none; display: flex; align-items: center; gap: 6px; }
.lb-btn {
  width: 34px; height: 34px; padding: 0; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .1);
  color: #fff; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .14s, border-color .14s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .34); }
.lb-btn:focus-visible { outline: 2px solid #7fb0ff; outline-offset: 2px; }
.lb-btn[disabled] { opacity: .3; cursor: not-allowed; }
.lb-zoomval {
  min-width: 50px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .8);
  font-variant-numeric: tabular-nums;
}
.lb-link {
  height: 34px; padding: 0 12px; border-radius: 9px; display: inline-flex; align-items: center;
  font-size: 12px; color: #fff; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .1);
}
.lb-link:hover { background: rgba(255, 255, 255, .22); }
.lb-link:focus-visible { outline: 2px solid #7fb0ff; outline-offset: 2px; }

/* 舞台：图片居中、超出的部分裁剪（放大后可拖拽看局部） */
.lb-stage {
  position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 72px 12px; touch-action: none; cursor: grab;
}
.lb-stage.dragging { cursor: grabbing; }
.lb-stage.zoomed { cursor: grab; }
.lb-img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 4px; background: #0d1726;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  transform-origin: 50% 50%; will-change: transform;
  -webkit-user-drag: none; user-select: none;
}
.lb-img.anim { transition: transform .16s cubic-bezier(.22, .61, .36, 1); }
/* 只做淡入：transform 已被 JS 内联占用，动画不要再碰它 */
.lb-img.ready { animation: lb-fade .16s ease both; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

/* 左右切换（同一条信息的多张图） */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 68px; padding: 0; cursor: pointer; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; font-size: 20px; line-height: 1;
  background: rgba(12, 20, 34, .52); display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  transition: background .14s, opacity .14s;
}
.lb-nav:hover { background: rgba(12, 20, 34, .78); }
.lb-nav:focus-visible { outline: 2px solid #7fb0ff; outline-offset: 2px; }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.lb-nav[hidden] { display: none !important; }

/* 加载中 / 加载失败 */
.lb-spin {
  position: absolute; left: 50%; top: 50%; margin: -13px 0 0 -13px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .22); border-top-color: #fff;
  animation: lb-spin .8s linear infinite;
}
.lb-spin[hidden] { display: none !important; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lb-msg {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 80%; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .72);
}
.lb-msg[hidden] { display: none !important; }

.lb-foot {
  flex: none; padding: 8px 16px 14px; text-align: center; line-height: 1.65;
  font-size: 12px; color: rgba(255, 255, 255, .5); word-break: break-word;
}

/* 窄屏：工具栏紧凑，导航退到底部两侧，避免压住图片 */
@media (max-width: 720px) {
  .lb-bar { height: 50px; gap: 6px; padding: 0 8px; }
  .lb-title { display: none; }
  .lb-btn { width: 32px; height: 32px; font-size: 14px; }
  .lb-zoomval { min-width: 40px; font-size: 11px; }
  .lb-link { padding: 0 8px; font-size: 11px; }
  .lb-stage { padding: 0 4px 4px; }
  .lb-nav { width: 30px; height: 52px; font-size: 17px; }
  .lb-nav.prev { left: 4px; }
  .lb-nav.next { right: 4px; }
  .lb-foot { padding: 6px 12px 10px; font-size: 11px; }
}
.lb-hd { color: #8fe0b8; }
.lb-hd[hidden] { display: none !important; }

/* 尊重系统「减少动态效果」偏好：弹层不做过渡/动画，直接呈现 */
@media (prefers-reduced-motion: reduce) {
  .lb, .lb-img.anim, .lb-img.ready { transition: none !important; animation: none !important; }
}

/* 尊重系统「减少动态效果」偏好：弹层不做过渡/动画，直接呈现 */
@media (prefers-reduced-motion: reduce) {
  .lb, .lb-img.anim, .lb-img.ready { transition: none !important; animation: none !important; }
}
