/* 配色沿用曲曲：灰白冷淡风，不用阴影，靠细边框分层；红绿只做低饱和的柔和提示 */
:root {
  --bg: #f6f6f6;
  --card: #ffffff;
  --field: #f7f7f7;
  --press: #ededed;
  --line: rgba(0, 0, 0, .07);
  --line-strong: rgba(0, 0, 0, .14);
  --text: #3a3a3a;
  --title: #6e6e6e;
  --sub: #939393;
  --faint: #b8b8b8;
  --accent: #4a4a4a;       /* 主按钮、选中态：深灰 */
  --on-accent: #ffffff;
  --accent-soft: #f0f0f0;
  --warn: #a08a60;
  --warn-soft: #f6f3ec;
  --info: #74849a;
  --info-soft: #eff2f5;
  --ok: #6a8e76;
  --ok-soft: #eef4f0;
  --ok-line: #d3e2d8;
  --bad: #b27a72;
  --bad-soft: #f8f0ee;
  --bad-line: #ebd6d2;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101010;
    --card: #1c1c1c;
    --field: #232323;
    --press: #2a2a2a;
    --line: rgba(255, 255, 255, .07);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #ececec;
    --title: #c0c0c0;
    --sub: #8c8c8c;
    --faint: #5e5e5e;
    --accent: #e4e4e4;
    --on-accent: #1c1c1c;
    --accent-soft: #2a2a2a;
    --warn: #c2ab80;
    --warn-soft: #27241d;
    --info: #97a7bb;
    --info-soft: #1e2227;
    --ok: #8fb59b;
    --ok-soft: #1c2520;
    --ok-line: #2e4035;
    --bad: #c9968e;
    --bad-soft: #2a201f;
    --bad-line: #45312e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }

.wrap { max-width: 520px; margin: 0 auto; padding: 20px 16px 48px; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > .grow { flex: 1; }
.muted { color: var(--sub); }
.faint { color: var(--sub); font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card + .card { margin-top: 12px; }
.card h2 { font-size: 18px; margin-bottom: 4px; }
.card h3 { font-size: 15px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }

/* ---------- 顶部 ---------- */
.hero { text-align: center; padding: 40px 0 28px; }
.logo {
  width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 18px;
  overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 图是白底，日间用正片叠底把白底吃掉，直接融进页面底色 */
@media (prefers-color-scheme: light) { .logo img { mix-blend-mode: multiply; } }
.hero h1 { font-size: 24px; letter-spacing: .06em; }
.hero p { color: var(--sub); margin-top: 8px; font-size: 14px; }

.topbar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; min-height: 36px; }
.topbar .title { font-weight: 500; font-size: 17px; }
.icon-btn {
  border: 0; background: transparent; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer; color: var(--sub);
}
.icon-btn:hover { background: var(--press); }

/* ---------- 步骤条 ---------- */
.steps { display: flex; gap: 6px; margin: 4px 0 18px; }
.steps .s { flex: 1; }
.steps .bar { height: 3px; border-radius: 2px; background: var(--press); }
.steps .s.done .bar { background: var(--faint); }
.steps .s.on .bar { background: var(--accent); }
.steps .lbl { font-size: 12px; color: var(--faint); margin-top: 6px; text-align: center; }
.steps .s.done .lbl { color: var(--sub); }
.steps .s.on .lbl { color: var(--text); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--text);
  font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .06s, opacity .15s, background .15s;
}
.btn:hover:not(:disabled) { background: var(--field); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.big { height: 52px; font-size: 16px; width: 100%; }
.btn.sm { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 14px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover:not(:disabled) { background: var(--accent); opacity: .88; }
.btn.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); font-weight: 600; }
.btn.ok:hover:not(:disabled) { background: var(--ok-line); }
.btn.danger { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); font-weight: 600; }
.btn.danger:hover:not(:disabled) { background: var(--bad-line); }
.btn.danger-ghost { color: var(--bad); border-color: var(--bad-line); background: transparent; }
.btn.ghost { background: transparent; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.actions .btn { flex: 1; }
.actions.col { flex-direction: column; }
.actions.col .btn { flex: none; width: 100%; }

/* ---------- 表单 ---------- */
.field { display: block; margin-top: 14px; }
.field .lbl { display: block; font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.input, .textarea {
  width: 100%; border: 1px solid var(--line); background: var(--field);
  border-radius: 12px; padding: 0 14px; height: 50px; font-size: 17px; outline: none;
  transition: border-color .15s, background .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { height: auto; min-height: 90px; padding: 12px 14px; font-size: 15px; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--line-strong); background: var(--card); }
.err { color: var(--bad); font-size: 13px; margin-top: 8px; }

.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin-top: 16px; font-size: 14px; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 2px 0 0;
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--faint); background: var(--card);
  display: grid; place-items: center; cursor: pointer; transition: all .15s;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after {
  content: ""; width: 5px; height: 9px; margin-top: -2px;
  border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- 提示条 ---------- */
.banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 12px;
}
.banner .ico { flex: none; line-height: 1.5; font-weight: 700; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner b { font-weight: 600; }

.notes { list-style: none; padding: 0; margin: 18px 4px 0; color: var(--sub); font-size: 13px; }
.notes li { position: relative; padding-left: 14px; margin-top: 6px; }
.notes li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

/* ---------- 答题 ---------- */
.section-title { font-size: 12px; font-weight: 500; color: var(--sub); margin: 22px 4px 8px; display: flex; justify-content: space-between; letter-spacing: .04em; }
.section-title:first-of-type { margin-top: 0; }
/* 答题页顶上的参考页：四张小纸片一排，点开进看图层 */
.guide { margin-bottom: 4px; }
.guide-pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.guide-page {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.guide-paper {
  display: block; aspect-ratio: 1588 / 2246; overflow: hidden; border-radius: 8px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 16px rgba(0, 0, 0, .06);
  transition: transform .18s cubic-bezier(.25, .46, .45, .94), box-shadow .18s;
}
.guide-paper img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-page:hover .guide-paper { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 10px 22px rgba(0, 0, 0, .09); }
.guide-page:active .guide-paper { transform: scale(.96); }
.guide-no { margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--faint); font-variant-numeric: tabular-nums; }
.guide-name { font-size: 12px; color: var(--title); line-height: 1.4; }
.q { font-weight: 500; margin-bottom: 10px; }
.q .no { color: var(--faint); margin-right: 6px; font-weight: 600; }
.opt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer; margin-top: 8px;
  background: var(--card); color: var(--title);
  transition: border-color .15s, background .15s, color .15s;
}
.opt:hover { background: var(--field); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
/* 选项前面是 A / B / C 小方块，选中后变深灰实心 */
.opt .key {
  flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--field);
  display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--sub);
  transition: background .15s, color .15s;
}
.opt:has(input:checked) { border-color: var(--line-strong); background: var(--field); color: var(--text); }
.opt:has(input:checked) .key { background: var(--accent); color: var(--on-accent); }
.opt:has(input:focus-visible) { outline: 2px solid var(--line-strong); outline-offset: 2px; }

/* ---------- 上传 ---------- */
.count { font-size: 13px; color: var(--sub); white-space: nowrap; }
.count.full { color: var(--ok); }
/* 槽位下的分条要求：几选一的方案带序号，方案里的细则用短横 */
.rules { list-style: none; counter-reset: rule; margin-top: 10px; padding: 12px 14px; background: var(--field); border-radius: 12px; font-size: 13px; line-height: 1.6; }
.rules > li { counter-increment: rule; }
.rules > li + li { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.rules b { color: var(--text); font-weight: 600; }
.rules b::before { content: counter(rule) ". "; color: var(--sub); font-weight: 500; }
.rules ul { list-style: none; margin-top: 2px; color: var(--sub); }
.rules ul li { position: relative; padding-left: 12px; }
.rules ul li::before { content: "–"; position: absolute; left: 0; color: var(--faint); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.thumb, .add {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--field);
}
.thumb { border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
}
.add {
  display: grid; place-items: center; align-content: center; gap: 2px;
  border: 1px dashed var(--line-strong); color: var(--sub); font-size: 13px; cursor: pointer; background: var(--field);
}
.add:hover { background: var(--press); }
.add .plus { font-size: 26px; line-height: 1; color: var(--title); font-weight: 300; }
.add input { display: none; }

/* ---------- 确认页 ---------- */
.cred { border: 1px solid var(--line); border-radius: 14px; padding: 2px 16px; margin-top: 14px; background: var(--field); }
.cred .item { padding: 14px 0; }
.cred .item + .item { border-top: 1px solid var(--line); }
.cred .k { font-size: 12px; color: var(--sub); }
.cred .v { font-size: 26px; font-weight: 600; word-break: break-all; margin-top: 2px; }

.progress { height: 6px; background: var(--press); border-radius: 3px; overflow: hidden; margin-top: 16px; }
.progress > div { height: 100%; background: var(--accent); transition: width .2s; }

/* ---------- 状态 ---------- */
.state { text-align: center; padding: 30px 20px 24px; }
.state .big-ico {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center;
}
.state h2 { font-size: 22px; }
.state p { color: var(--sub); margin-top: 8px; font-size: 14px; }
.tone-warn .big-ico { background: var(--warn-soft); color: var(--warn); }
.tone-info .big-ico { background: var(--info-soft); color: var(--info); }
.tone-ok .big-ico { background: var(--ok-soft); color: var(--ok); }
.tone-bad .big-ico { background: var(--bad-soft); color: var(--bad); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.pending { background: var(--warn-soft); color: var(--warn); }
.badge.reviewing { background: var(--info-soft); color: var(--info); }
.badge.approved { background: var(--ok-soft); color: var(--ok); }
.badge.rejected { background: var(--bad-soft); color: var(--bad); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--faint); box-sizing: border-box;
}
.timeline li::after { content: ""; position: absolute; left: 8px; top: 20px; bottom: 2px; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--title); border-color: var(--title); }
.timeline li.now::before { background: var(--card); border-color: var(--accent); border-width: 2.5px; }
.timeline .t { font-weight: 500; }
.timeline li:not(.done):not(.now) .t { color: var(--faint); }
.timeline .d { font-size: 13px; color: var(--sub); }

.pass-box {
  margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--ok-soft); text-align: left;
  border: 1px solid var(--ok-line);
}
.pass-item + .pass-item { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ok-line); }
.pass-box .k { font-size: 12px; color: var(--ok); font-weight: 500; }
.pass-box .v { font-size: 22px; font-weight: 600; margin-top: 2px; word-break: break-all; color: var(--text); }
.reasons { text-align: left; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--bad-soft); border: 1px solid var(--bad-line); }
.reasons .k { font-size: 12px; color: var(--bad); font-weight: 500; }
.reasons ul { margin: 6px 0 0; padding-left: 20px; }
.reasons li { margin-top: 4px; }
.expire { margin-top: 14px; font-size: 13px; color: var(--sub); }

/* ---------- 弹窗 / 提示 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .28); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
  animation: fade .15s;
}
@media (min-width: 640px) { .mask { align-items: center; } }
.dialog {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; width: 100%; max-width: 440px; padding: 22px;
  animation: rise .18s; max-height: calc(100vh - 32px); overflow: auto;
}
.dialog h3 { font-size: 17px; margin-bottom: 6px; }
.dialog p { color: var(--sub); font-size: 14px; }
.mask.still, .mask.still .dialog { animation: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 90;
  background: rgba(58, 58, 58, .92); color: #fff; padding: 9px 16px; border-radius: 100px;
  font-size: 14px; max-width: calc(100% - 32px); animation: rise .18s;
}

.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 管理后台 ---------- */
.wrap.wide { max-width: 960px; }
.admin-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.admin-top .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; flex: 1; }
.admin-top .brand .logo { width: 38px; height: 38px; border-radius: 11px; margin: 0; }
.me { display: flex; align-items: center; gap: 8px; color: var(--sub); font-size: 14px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--title);
  display: grid; place-items: center; font-weight: 600; font-size: 12px;
}
.tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); padding: 4px; border-radius: 14px; margin-bottom: 14px; }
.tab {
  flex: 1; border: 0; background: transparent; height: 40px; border-radius: 10px; cursor: pointer;
  font-weight: 500; color: var(--sub); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tab.on { background: var(--field); color: var(--text); }
.tab .n { font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--press); display: inline-grid; place-items: center; color: var(--sub); }
.tab.on .n { background: var(--accent); color: var(--on-accent); }

.tlist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trow { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.trow + .trow { border-top: 1px solid var(--line); }
.trow.click { cursor: pointer; }
.trow.click:hover { background: var(--field); }
.trow .grow { flex: 1; min-width: 0; }
.trow .qq { font-weight: 600; font-size: 16px; }
.trow .side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.trow.mine { box-shadow: inset 2px 0 0 var(--title); }
/* 手机上工单行改成上下两层：上面 QQ 和时间，下面状态和按钮 */
@media (max-width: 600px) {
  .trow { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }
  .trow .side { justify-content: flex-start; flex-wrap: nowrap; }
  .trow .side .btn { margin-left: auto; }
  .admin-top .me span { display: none; }
}
.empty { text-align: center; padding: 48px 20px; color: var(--sub); font-size: 14px; }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px 18px; margin-top: 16px; }
.meta-grid .k { font-size: 12px; color: var(--sub); }
.meta-grid .v { font-weight: 500; margin-top: 2px; }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.imgs button { border: 1px solid var(--line); padding: 0; background: var(--field); border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; }
.imgs img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sticky-actions {
  position: sticky; bottom: 0; margin: 18px -16px -48px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; gap: 10px; border-top: 1px solid var(--line);
}
.sticky-actions .btn { flex: 1; }
.sticky-actions .btn.ghost { flex: 0 0 auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  border: 1px solid var(--line-strong); background: var(--card); border-radius: 100px; padding: 6px 14px;
  cursor: pointer; font-size: 14px; color: var(--title); transition: all .15s;
}
.chip:hover { background: var(--field); }
.chip.on { border-color: var(--bad-line); background: var(--bad-soft); color: var(--bad); }

/* ---------- 看图层（参照曲曲仓库的看图） ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; transition: opacity .2s;
}
.viewer.show { opacity: 1; }
.viewer[hidden] { display: none; }
.viewer-track {
  position: absolute; inset: 0; display: flex;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-x;
}
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-cell {
  flex: none; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center; scroll-snap-stop: always;
  padding: calc(68px + env(safe-area-inset-top)) 16px calc(52px + env(safe-area-inset-bottom));
}
.viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; cursor: zoom-in; }
/* 放大：锁住翻页，当前这张在自己的格子里两个方向都能拖；手机上放到约 2.5 倍屏宽，电脑上放到原图大小 */
.viewer.zoomed .viewer-track { overflow: hidden; touch-action: auto; }
.viewer.zoomed .viewer-nav, .viewer.zoomed .viewer-dots { display: none; }
.viewer-cell.zoomed { display: block; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.viewer-cell.zoomed .viewer-img { display: block; width: min(1588px, 250vw); max-width: none; max-height: none; margin: 0 auto; cursor: zoom-out; }
.viewer-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 0 16px;
}
.viewer-label { color: rgba(255, 255, 255, .85); font-size: 14px; white-space: pre; }
/* 关闭键照搬曲曲仓库看图层的 .rp-shot-x：36px 半透明黑圆底 + reicon 的 x 字形 16px */
.viewer-x {
  pointer-events: auto; flex: none;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .42); color: #fff;
  transition: transform .15s cubic-bezier(.25, .46, .45, .94);
}
.viewer-x:active { transform: scale(.94); }
.viewer-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .18); color: #fff; display: grid; place-items: center;
}
.viewer-nav:hover:not(:disabled) { background: rgba(255, 255, 255, .3); }
.viewer-nav:disabled { opacity: .25; cursor: default; }
.viewer-nav.prev { left: 16px; }
.viewer-nav.next { right: 16px; }
.viewer.single .viewer-nav { display: none; }
/* 手机上靠滑，不要左右箭头挡着图 */
@media (hover: none), (max-width: 600px) { .viewer-nav { display: none; } }
.viewer-dots {
  position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 2;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.viewer-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .36); transition: background .2s; }
.viewer-dots span.on { background: #fff; }

/* ---------- 搜索 ---------- */
.search {
  position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  height: 44px; padding: 0 12px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--faint);
}
.search:focus-within { border-color: var(--line-strong); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--text); }
.search input::placeholder { color: var(--faint); }
.search-x {
  border: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--press); color: var(--sub);
  font-size: 14px; line-height: 1; cursor: pointer;
}
.search-x[hidden] { display: none; }

/* ---------- 常用口令 ---------- */
.saved-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--sub); }
.link-btn { border: 0; background: none; padding: 0; color: var(--title); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.pass-chip { display: inline-flex; align-items: center; gap: 4px; padding-right: 6px; }
.pass-chip.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.chip-x {
  border: 0; background: transparent; color: inherit; opacity: .5; cursor: pointer;
  width: 20px; height: 20px; border-radius: 50%; font-size: 15px; line-height: 1; display: grid; place-items: center;
}
.chip-x:hover { opacity: 1; background: rgba(127, 127, 127, .15); }

.login { max-width: 380px; margin: 10vh auto 0; }
