/* vkt Screen 样式
 *
 * 这一款的 CSS 与同仓其他 App 有一处**根本不同**，先说清楚：
 *
 *   纯色页（#test）上**不允许有任何装饰**。
 *   没有渐变、没有纹理、没有圆角、没有阴影、没有 transition ——
 *   用户在这个页面上唯一要做的就是"看有没有哪个点跟别处不一样"。
 *   任何一丁点装饰都是在跟他的眼睛抢活。
 *
 * 所以纯色页的颜色只有一个来源：JS 把 --test-color 设成当前测试色，
 * 其余全部设为 0。切色是**硬切**，不是过渡。
 *
 * 说明页与结果页是另一回事：它们是给人读文字的界面，可以也应该有质感。
 * 底色刻意留在深档（不是跟随系统）——这款的使用场景要求环境光偏暗，
 * 首屏给一块白等于先把用户的暗适应打掉。但"深"不等于"平"：
 * 一层渐变 + 三档表面 + 顶部高光，让卡片浮得出来，而不是一堆灰矩形贴在黑纸上。
 *
 * 三条布局约定：
 *   1) body 固定在一个视口内，用 100dvh 而不是 100vh（iOS 的 vh 把地址栏算进去）
 *   2) 说明页/结果页可滚动，纯色页不可滚动（滚动条一动就露馅了）
 *   3) color-scheme 固定 only light（见 index.html 的注释），所以这里
 *      不用写 prefers-color-scheme 双声明
 */
:root {
  /* 深档分层：基色是带一点蓝的炭灰，不是纯黑 —— 纯黑会让卡片描边消失 */
  --bg: #10141A;
  --bg-hi: #1A2029;
  --bg-lo: #0A0D12;
  --surface: #1B212A;
  --surface-2: #242B36;
  --surface-3: #2E3742;
  /* 结果页示意图里那块"假屏幕"的底色，比 surface 再暗一档才有屏幕感 */
  --bg-2: #0C1015;
  --text: #E9EEF5;
  --dim: #93A0B0;
  --border: #2C3540;
  --accent: #4C9AFF;
  --warn: #E4657A;
  --ok: #4FBFAE;
  /* 卡片浮起：一层极淡的顶部高光 + 一层投影，写成一个变量免得散落 */
  --raise: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 2px 10px rgba(0, 0, 0, 0.28);
  --test-color: #FFFFFF;
  --test-ink: #000000;
  --grid-ink: rgba(0, 0, 0, 0.07);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --topbar-h: 52px;
  color-scheme: only light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }

/* 本款用 hidden 属性切屏与开关菜单；下面几条都给元素显式设了 display，
   优先级会盖过 UA 的 [hidden]{display:none}，所以统一挡一道 */
[hidden] { display: none !important; }

/* 只给读屏软件的节点。纯色屏上不能出现任何看得见的字，
   所以播报必须挂在"视觉上不存在"的元素上。 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  /* 从上往下压深：首屏不至于是一片死黑，底部又够沉，主按钮能站住 */
  background: linear-gradient(180deg, var(--bg-hi) 0%, var(--bg) 46%, var(--bg-lo) 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* 纯色页期间：整站底色就是被测的那个颜色，且顶栏整条摘掉。
   以前这里是往 body 写行内 background —— 行内样式压过 CSS，
   测完回说明页会带着上一色的残留（结果页变灰就是这么来的）。
   改成挂在 body 上的类：离开测试屏时类一撤，背景自己就回去了。 */
body.on-test { background: var(--test-color); --chrome-t: 0px; }
body.on-test #topbar { display: none; }

button, input { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 三屏 + 统一顶栏 ---------- */
:root { --chrome-t: calc(var(--topbar-h) + var(--safe-t)); }

.screen {
  position: absolute;
  top: var(--chrome-t);
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
}
.screen[hidden] { display: none; }

#topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--chrome-t);
  padding: var(--safe-t) 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 12;
  border-bottom: 1px solid var(--border);
}

.app-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-btn {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
  transition: transform 140ms ease, background 140ms ease;
}
.nav-btn:active { transform: scale(0.92); background: var(--surface-2); }

/* ---------- 可滚动正文 ---------- */
.scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 18px 18px;
  overscroll-behavior: contain;
}

/* 平板/横屏：一行排到 100+ 字就没法读了，正文限宽居中 */
@media (min-width: 700px) {
  .scroll { padding-left: 28px; padding-right: 28px; }
  .scroll > * { max-width: 640px; margin-left: auto; margin-right: auto; }
}

.h2 {
  margin: 22px 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.h2:first-child { margin-top: 8px; }

.lead { margin: 0 0 4px; color: var(--text); }

.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 7px; }

.what { margin: 0; padding-left: 20px; }
.what li { margin-bottom: 6px; }

/* ---------- 模式 / 时长 / 网格 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--dim);
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--raise);
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.chip[aria-checked="true"], .chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #08111C;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(76, 154, 255, 0.28);
}

/* 本轮色带：选了模式就看见要过哪几色。纯黑那格在深底上会糊掉，
   所以每格都带一圈描边，描边之外再留一点内阴影区分相邻两色 */
.spectrum {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.spec-cell {
  flex: 1 1 0;
  min-width: 22px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--raise);
}
.row-label { font-size: 13.5px; color: var(--dim); }
.switch-row { cursor: pointer; }
.switch-row input {
  width: 21px; height: 21px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.note { margin: 14px 0 0; font-size: 12.5px; color: var(--dim); }
.note.warn { color: var(--warn); }

/* ---------- 底部 ---------- */
.foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 18px calc(12px + var(--safe-b));
  border-top: 1px solid var(--border);
  /* 不写 background：让 body 的渐变一路透下来，比一条死色更接得上 */
}
@media (min-width: 700px) {
  .foot { padding-left: 28px; padding-right: 28px; }
}
.lang-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.lang-chip {
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-size: 11.5px;
  cursor: pointer;
}
.lang-chip.on { color: var(--text); background: var(--surface-2); }

.btn {
  padding: 13px 18px;
  border: 0;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease;
}
.btn:active { transform: scale(0.975); }
.btn.primary {
  background: linear-gradient(180deg, #5FA9FF, #3D86EA);
  color: #08111C;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 16px rgba(61, 134, 234, 0.3);
}

/* ---------- 折叠菜单 / 占位页（统一壳，纯色页用不到） ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
}

/* 底部抽屉（对齐 tally）：手机上拇指够不到右上角，菜单从底部升起、
   每项 ≥48px 触摸目标才是标准交互。不再锚在顶栏右侧做下拉。 */
.menu-list {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: 10px 12px calc(14px + var(--safe-b));
  background: var(--surface);
  color: var(--text);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  animation: sheetIn 300ms cubic-bezier(0.32, 0.72, 0, 1);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: none;
  color: var(--text);
  min-height: 52px;          /* ≥ 48px 触摸目标 */
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  white-space: nowrap;
}
.menu-item:active { background: var(--surface-2); }
.menu-ico { flex: 0 0 auto; font-size: 18px; width: 24px; text-align: center; }
.menu-txt { flex: 1; overflow: hidden; text-overflow: ellipsis; }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }

.page-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--bg-hi) 0%, var(--bg) 46%, var(--bg-lo) 100%);
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.page-head {
  flex: 0 0 auto;
  height: var(--chrome-t);
  padding: var(--safe-t) 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
/* 右边是关闭按钮，左边垫一个同宽的占位，标题才真居中 */
.page-head-pad { flex: 0 0 40px; }
.page-title {
  flex: 1 1 auto;
  font-size: 17px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.page-placeholder {
  font-size: 15px;
  color: var(--dim);
  text-align: center;
}

/* ---------- 内容页（「说明」页，下半部分是联系作者 / 隐私政策） ---------- */

/* 占位页是一句居中的话；内容页是长文，要顶对齐、可滚动，长文不能居中 */
.page-view.doc .page-body {
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 18px 18px 28px;
}

.doc-block {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.doc-p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.doc-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  display: grid;
  gap: 8px;
}

.doc-list li { list-style: disc; }

/* 分节标题：把「这款工具是什么」和「联系作者 / 隐私政策」分开。
   不画上边框 —— 它上面那条 .doc-note 已经有 border-top，再画一条就是双线。 */
.doc-h {
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0 10px;
}

.doc-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--dim);
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.doc-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.doc-k {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--dim);
}

.doc-link {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  /* 邮箱 / 长 URL 不许把行撑破 */
  overflow-wrap: anywhere;
}

.doc-link:active { opacity: .7; }

/* ---------- 登录 / 个人信息抽屉 ---------- */
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  background: var(--surface);
  color: var(--text);
  border-radius: 22px 22px 0 0;
  padding: 18px 20px calc(20px + var(--safe-b));
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  animation: sheetIn 300ms cubic-bezier(0.32, 0.72, 0, 1);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sheet-head h2 { font-size: 17px; margin: 0; }

/* 抽屉里的按钮一律撑满：手机表单里"只包住文字"的按钮很难点中 */
.sheet .btn { width: 100%; margin-top: 10px; }

.input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.input:focus { outline: none; border-color: var(--accent); }

.code-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* .sheet .btn 是 width:100%，直接丢进这一行会抢满整行、把验证码输入框挤成一个小方块；
   这里把按钮改回「按内容宽度」，剩下的宽度全给输入框。 */
.code-row .code-input { flex: 1 1 auto; min-width: 0; margin-top: 0; }
.code-row .btn { flex: 0 0 auto; width: auto; white-space: nowrap; margin-top: 0; }

/* Turnstile 用 interaction-only：平时完全隐形、高度 0（没有复选框，也没有 Cloudflare
   logo 和「验证·隐私」那行小字），只有 Cloudflare 真要用户点一下时才现形。
   所以这里不预留 65px，渲染出东西来才给顶部间距。 */
.turnstile-box { margin-top: 0; }
.turnstile-box:not(:empty) { margin-top: 12px; }

.form-msg {
  min-height: 18px;
  margin: 10px 0 2px;
  font-size: 13px;
  color: var(--warn);
  word-break: break-word;
}

.form-msg.ok { color: var(--ok); }

/* 人机校验未就绪时的说明行（比错误红字弱一档：它是状态，不是用户做错了什么） */
.form-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--dim);
  word-break: break-word;
}

.or-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
}

.or-line { flex: 1; height: 1px; background: var(--border); }
.or-txt { font-size: 12px; color: var(--dim); }

/* Google 官方按钮样式：白底描边 + 四色 G，深浅主题都不变（品牌规范） */
.btn.google {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.g-ico { width: 18px; height: 18px; flex: 0 0 auto; }

.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.ghost:disabled { opacity: 0.4; cursor: default; }
.btn.danger { background: var(--warn); color: #1A0A0E; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- 资料顶部的头像 + 昵称 ---------- */
.profile-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.profile-id { flex: 1; min-width: 0; }
.avatar {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--surface-2);
  font-size: 20px; font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-nick {
  margin: 0; font-size: 16px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-email {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--dim);
  word-break: break-all;
}

.user-line { margin: 6px 0; font-size: 14px; color: var(--dim); }

/* ---------- 确认弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  color: var(--text);
  border-radius: 18px;
  padding: 22px 20px;
}

.modal-card h3 { font-size: 17px; margin: 0 0 8px; }
.modal-card p { font-size: 14px; color: var(--dim); margin: 0 0 16px; }

.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ==================================================================
   纯色页：以下规则决定这款工具可不可信，务必保持"什么都没有"
   ================================================================== */
.test {
  background: var(--test-color);
  /* 不给任何 transition —— 渐变中间色会被当成坏点 */
  overflow: hidden;
  touch-action: none;
  /* 长按 600ms 要用来记标记：不关掉 iOS 的长按气泡和选中放大镜，
     用户按住会弹出系统菜单，标记就被吞掉了 */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* 右上角那一行进度。极小、极淡，但在任何底色上都看得见
   （前景色由 JS 按当前底色亮度算好塞进 --test-ink） */
.progress {
  position: absolute;
  top: calc(10px + var(--safe-t));
  right: 14px;
  z-index: 3;
  margin: 0;
  padding: 2px 7px;
  border-radius: 7px;
  background: var(--test-ink);
  color: var(--test-color);
  font-size: 11px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

/* 第一色的操作提示。三秒后自己消失，之后这一屏不再有任何文字。
   会消失的东西不可能被当成"怎么都不变"的坏点。
   写成 scrim 胶囊而不是"墨字压纯色"：这一句是唯一教用户长按标记的入口，
   而墨字在纯白底上只有 2:1，等于没写。胶囊的底色与文字都不跟 --test-color
   走，所以对比度和当前测试色无关（八色 + 黑白灰最差 8.2:1）。 */
.test-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(28px + var(--safe-b));
  z-index: 3;
  margin: 0;
  max-width: min(86vw, 420px);
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(8, 10, 14, .72);
  color: #FFFFFF;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

/* 辅助网格：默认关（不遮挡像素、不改变"这是纯色"的心理预期）。
   开了也只是极淡的一层线。 */
.grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-repeat: repeat;
}

/* 标记点：1px 空心圆，不遮挡像素本身 */
.marks { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.mark {
  position: absolute;
  width: 15px; height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border: 1.5px solid var(--test-ink);
  border-radius: 50%;
  opacity: 0.75;
}

/* ---------- 结果页 ---------- */
.verdict {
  margin: 10px 0 0;
  padding: 13px 15px;
  border-left: 3px solid var(--accent);
  border-radius: 0 11px 11px 0;
  background: var(--surface);
  box-shadow: var(--raise);
  font-size: 14px;
  line-height: 1.65;
}
.verdict.flagged { border-left-color: var(--warn); }
.verdict.clean { border-left-color: var(--ok); }

.map-wrap { margin-top: 20px; }
.map-legend {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* 缩略示意图：手机比例的一屏，标记按相对坐标画上去。
   能一眼看出"集中一角"还是"散在各处"——这两种的严重程度完全不同，
   光看数字列表看不出来（设计稿 §4.4） */
.map-frame {
  display: flex;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--raise);
}
.map-screen {
  position: relative;
  width: 150px;
  height: 290px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--bg-2);
  overflow: hidden;
}
.map-dot {
  position: absolute;
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border: 1.5px solid var(--warn);
  border-radius: 50%;
  background: rgba(228, 101, 122, 0.3);
}
.map-legend-row {
  position: absolute;
  left: 0; right: 0;
  height: 11px;
  font-size: 8px;
  line-height: 11px;
  text-align: center;
  color: var(--dim);
  pointer-events: none;
}

.times { margin: 0; padding: 0; list-style: none; }
.times li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.times li:last-child { border-bottom: 0; }
.swatch {
  width: 15px; height: 15px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.times .t-name { flex: 1 1 auto; }
.times .t-ms { color: var(--dim); font-variant-numeric: tabular-nums; }
.times .t-incomplete { color: var(--warn); font-size: 11.5px; }

.disclaimer {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.65;
  color: var(--dim);
}

/* ---------- Toast ---------- */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(96px + var(--safe-b));
  transform: translateX(-50%);
  max-width: 78vw;
  padding: 9px 15px;
  border-radius: 11px;
  background: rgba(6, 9, 13, 0.94);
  color: var(--text);
  font-size: 12.5px;
  text-align: center;
  /* 必须高过登录抽屉(41)与确认弹窗(60)：退出登录 / 登录成功这些提示正是
     在抽屉与弹窗动作之后弹出的，压在下面等于没提示 */
  z-index: 70;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ---------- 尊重系统的减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav-btn, .btn, .chip { transition: none !important; }
  .nav-btn:active, .btn:active { transform: none; }
  .menu-list, .sheet { animation: none; }
}
