/* =========================================================
   视频总结助手 · 设计系统
   浅色极简 + 青绿品牌色（原创配色，与参考站明显区隔）
   ========================================================= */
:root {
  --bg: #fbfaf7;
  --bg-2: #f4f2ed;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --ink: #14181f;
  --ink-2: #4a5262;
  --ink-3: #8a93a3;
  --ink-4: #a5aebd; /* 仅用于输入框占位提示，比次要文字再浅一档 */
  --line: #e9e6e0;
  --line-2: #f0eee9;

  --brand: #0e8f7e;
  --brand-2: #14b8a6;
  --brand-ink: #0a6a5d;
  --brand-soft: #e6f5f2;
  --brand-soft-2: #d3ece7;

  --accent: #f5a524;
  --accent-soft: #fdf3e0;
  --danger: #dc2626;
  --danger-soft: #fdecec;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --sh-1: 0 1px 2px rgba(20, 24, 31, 0.05);
  --sh-2: 0 2px 6px rgba(20, 24, 31, 0.05), 0 10px 26px rgba(20, 24, 31, 0.06);
  --sh-3: 0 18px 48px rgba(20, 24, 31, 0.1);

  --maxw: 1120px;
  --font: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }

::selection { background: var(--brand-soft-2); }

/* ---------------------------- 布局 ---------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 78px 0; }
.section--tight { padding: 52px 0; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--brand-ink); background: var(--brand-soft);
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--brand-soft-2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); }

.h1 { font-size: clamp(30px, 4.6vw, 52px); }
.h2 { font-size: clamp(23px, 3vw, 34px); }
.h3 { font-size: 19px; }
.lead { color: var(--ink-2); font-size: 17px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); }

/* ---------------------------- 导航 ---------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  height: 62px; display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 16.5px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px rgba(14, 143, 126, 0.28);
}
.brand__mark svg { width: 17px; height: 17px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav__links a {
  color: var(--ink-2); font-size: 14.5px; padding: 8px 12px; border-radius: 9px;
  transition: 0.15s;
}
.nav__links a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.nav__links a.active { color: var(--brand-ink); background: var(--brand-soft); font-weight: 600; }
/* 设置入口是纯图标按钮：正方形尺寸，避免文字链接的左右内边距导致图标偏心 */
.nav__links a#btnSettings {
  width: 34px; height: 34px; padding: 0; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav__links a#btnSettings svg { width: 18px; height: 18px; }

/* ---------------------------- 按钮 ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 18px; border-radius: 11px;
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  border: 1px solid transparent; cursor: pointer; transition: 0.16s;
  background: var(--surface); color: var(--ink); white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff; box-shadow: 0 6px 18px rgba(14, 143, 126, 0.26);
}
.btn--primary:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn--soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn--soft:hover { background: var(--brand-soft-2); }
.btn--sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 9px; }
.btn--lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 13px; }
.btn--block { width: 100%; }
.btn--icon { width: 34px; height: 34px; padding: 0; }

/* ---------------------------- 图标 ---------------------------- */
/* 内联 SVG 的兜底宽高见 public/js/ui.js（未声明宽高时会撑成 300×150）。
   这里只按场景细化：flex: none 防止图标被放进 flex 容器后被压扁。 */
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--sm svg { width: 15px; height: 15px; }
.btn--lg svg { width: 18px; height: 18px; }
.btn--icon svg { width: 17px; height: 17px; }

/* ---------------------------- 表单 ---------------------------- */
.field { display: block; }
.field__label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 10px 13px; transition: 0.15s; outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand-2); box-shadow: 0 0 0 3.5px var(--brand-soft);
}
/* 占位提示统一走 --ink-4（浅灰蓝）。浏览器自带的默认占位色偏深，
   不显式声明就会像"已填好的内容"，这里统一压浅一档。
   opacity: 1 是为了抵消 Firefox 对 placeholder 额外叠加的透明度。 */
.input::placeholder,
.textarea::placeholder,
.select::placeholder,
.paster__input::placeholder {
  color: var(--ink-4); opacity: 1;
}
/* 聚焦时仍保持浅色，避免一点进输入框提示就变黑 */
.input:focus::placeholder,
.textarea:focus::placeholder,
.paster__input:focus::placeholder {
  color: var(--ink-4);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.55; }

/* ---------------------------- 卡片 ---------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.card--pad { padding: 22px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
}
.pill--ok { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-soft-2); }
.pill--warn { background: var(--accent-soft); color: #96660a; border-color: #f7e3bd; }
.pill--off { background: var(--bg-2); color: var(--ink-3); }

/* ---------------------------- Hero 粘贴器 ---------------------------- */
.hero { padding: 60px 0 30px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto -20%; height: 520px;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(20, 184, 166, 0.13), transparent 65%),
    radial-gradient(520px 280px at 82% 12%, rgba(245, 165, 36, 0.12), transparent 62%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 55% at 50% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 20%, #000 30%, transparent 78%);
}

.paster {
  margin: 28px auto 0; max-width: 780px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--sh-2); padding: 14px;
}
.paster__box {
  display: flex; align-items: flex-end; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); padding: 10px 12px; transition: 0.15s;
}
.paster__box:focus-within { border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.paster__input {
  flex: 1; border: none; background: transparent; outline: none; resize: none;
  font-family: inherit; font-size: 15px; line-height: 1.6; color: var(--ink);
  min-height: 76px; max-height: 220px; padding: 2px 0;
}
.paster__foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 0 4px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
  transition: 0.15s; font-family: inherit;
}
.chip:hover { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-soft-2); }

/* ---------------------------- 网格 ---------------------------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.step { position: relative; }
.step__no {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 15px;
  margin-bottom: 14px;
}

.feat { display: flex; gap: 13px; align-items: flex-start; }
.feat__ico {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink);
}
.feat__ico svg { width: 19px; height: 19px; }

/* ---------------------------- 工作台 ---------------------------- */
.wb { display: grid; grid-template-columns: 320px 1fr; gap: 20px; padding: 22px 0 70px; align-items: start; }
.wb__side { position: sticky; top: 84px; display: grid; gap: 14px; }

.vcard__cover {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  border-radius: var(--r) var(--r) 0 0; background: var(--bg-2);
}
.vcard__cover--ph {
  display: grid; place-items: center; color: var(--brand-ink);
  background: linear-gradient(135deg, var(--bg-2), var(--brand-soft));
}
/* 无封面时的占位：图标 + 说明，撑不起封面也要看得出是个视频位，而不是一块空框 */
.vcard__ph-in { display: grid; place-items: center; gap: 7px; }
.vcard__ph-in svg { width: 40px; height: 40px; opacity: 0.66; }
.vcard__ph-in i { font-style: normal; font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.02em; }

/* 卡片内嵌播放：封面即播放键，点了才建 <video>（见 workbench.js playInPlace） */
/* ⚠️ 必须显式 relative：里面那个按钮是 inset:0 的绝对定位，宿主缺 relative 会以视口为参照铺满整页 */
.vplay { position: relative; }
.vplay__btn {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  border: none; background: none; cursor: pointer; font-family: inherit; color: #fff;
}
.vplay__btn svg {
  width: 52px; height: 52px; padding: 14px; box-sizing: border-box;
  border-radius: 50%; background: rgba(14, 143, 126, 0.94); color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.16s ease, background 0.16s ease;
}
.vplay__btn span {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.vplay__btn:hover svg { transform: scale(1.07); background: var(--brand); }
/* 占位封面（暂无封面）也要能点，别只剩一个灰块 */
.vcard__cover--ph + .vplay__btn span { color: var(--ink-2); text-shadow: none; }
.vplay__video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; border: 0; }
/* 纯音频（本地上传 mp3/m4a…）：不要 16:9 —— 那会留一个大黑框，高度交给内容自己撑 */
.vplay__audio { width: 100%; display: block; padding: 10px 12px; box-sizing: border-box; background: var(--surface-2); }

.vcard__body { padding: 15px 16px 16px; }
.vcard__title { font-size: 15px; font-weight: 700; line-height: 1.45; }
.vcard__meta { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.stat { background: var(--surface-2); border-radius: 9px; padding: 8px 6px; text-align: center; }
.stat b { display: block; font-size: 14px; }
.stat span { font-size: 11.5px; color: var(--ink-3); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button {
  border: none; background: none; font-family: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--ink-3); padding: 11px 15px; cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; transition: 0.15s;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--brand-ink); border-bottom-color: var(--brand); }

.tabpane { display: none; }
.tabpane.on { display: block; animation: fade 0.22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.prose { font-size: 15.5px; color: var(--ink-2); line-height: 1.85; }
.prose strong { color: var(--ink); }

/* 时间戳要点 */
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl__item { position: relative; padding: 11px 0; }
.tl__item::before {
  content: ""; position: absolute; left: -24px; top: 19px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 2.5px solid var(--brand-2);
}
.ts {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono);
  font-size: 12.5px; font-weight: 600; color: var(--brand-ink);
  background: var(--brand-soft); padding: 2px 8px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--brand-soft-2);
}
.ts:hover { background: var(--brand-soft-2); }

/* 章节 */
.chapter { border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; background: var(--surface); }
.chapter + .chapter { margin-top: 10px; }
.chapter__hd { display: flex; align-items: center; gap: 10px; }
.chapter__no {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand-ink);
  background: var(--brand-soft); border-radius: 6px; padding: 2px 7px; flex: none;
}
.chapter__t { font-weight: 700; font-size: 15px; }
.chapter__s { color: var(--ink-2); font-size: 14px; margin-top: 7px; line-height: 1.7; }

/* 字幕 */
.subs { max-height: 62vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sub { display: flex; gap: 13px; padding: 9px 15px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.sub:last-child { border-bottom: none; }
.sub:hover { background: var(--surface-2); }
.sub__t { font-family: var(--mono); font-size: 12px; color: var(--ink-3); flex: none; width: 54px; padding-top: 3px; cursor: pointer; }
.sub__t:hover { color: var(--brand-ink); }
.sub__x { color: var(--ink-2); line-height: 1.7; }
.sub__x mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
/* 合并成块之后标一下这块里含几句，免得看着像内容被吞了 */
.sub__n {
  display: inline-block; margin-left: 8px; font-size: 11.5px; color: var(--ink-4);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px;
  vertical-align: 1px;
}

/* ---------------------------- 思维导图 ----------------------------
   连线是一层 SVG，节点是绝对定位的卡片，尺寸全部在 mindmap.js 里算好。
   这里只管长相：一个分支一个色（--c），颜色跟着连线一起变。 */

.mm { display: flex; flex-direction: column; gap: 11px; }

.mm__bar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
/* 这一排按钮刚好卡在工作台窗格的宽度上，挤一点就能一行放下，不用换行 */
.mm__bar .btn--sm { padding: 0 10px; font-size: 13px; }
.mm__bar .mm__segbtn { padding: 5px 9px; }
.mm__gap { flex: 1; min-width: 4px; }
.mm__zoom { font-variant-numeric: tabular-nums; min-width: 60px; }
/* 分段控件：导图工具栏（.mm__seg）与字幕合并粒度（.seg）共用一套外观 */
.seg, .mm__seg {
  display: inline-flex; padding: 2px; gap: 2px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
}
.segbtn, .mm__segbtn {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 12.5px; color: var(--ink-2); padding: 5px 11px; border-radius: 8px;
}
.segbtn:hover, .mm__segbtn:hover { color: var(--brand-ink); }
.segbtn.on, .mm__segbtn.on {
  background: var(--surface); color: var(--brand-ink); font-weight: 600;
  box-shadow: var(--sh-1);
}

/* 画布：点阵底纹 + 可滚动，缩放不改变布局尺寸的坑由 .mm__sizer 兜住 */
.mm__stage {
  position: relative; overflow: auto; height: min(70vh, 660px);
  border: 1px solid var(--line); border-radius: var(--r);
  background-color: var(--surface-2);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 19px 19px;
  cursor: grab;
  overscroll-behavior: contain;
}
.mm__stage.is-panning { cursor: grabbing; }
.mm__sizer { position: relative; }
.mm__canvas { position: relative; }
.mm__links { position: absolute; left: 0; top: 0; pointer-events: none; }

.mm__node {
  position: absolute; display: flex; flex-direction: column; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--c-tint, var(--surface)); color: var(--c-ink, var(--ink));
  box-shadow: var(--sh-1); line-height: 1.4;
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.mm__node--d0 { padding: 14px 20px; border-radius: 12px; }
.mm__node--d1 { padding: 9px 14px; border-radius: 10px; font-weight: 600; }
.mm__node--d2 { padding: 7px 12px; border-radius: 9px; }
.mm__node--d3 { padding: 6px 11px; border-radius: 8px; }

.mm__node--root {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: transparent; color: #fff; font-weight: 700;
  box-shadow: 0 6px 18px rgba(14, 143, 126, .22);
}
.mm__node--d1 { background: var(--c-tint); border-color: var(--c-line); color: var(--c-ink); }
.mm__node--d1 .mm__dot { background: var(--c); }
.mm__node--d2, .mm__node--d3 { background: #fff; border-color: var(--line); color: var(--ink-2); }

.mm__node.is-branch { cursor: pointer; }
.mm__node.is-branch:hover { box-shadow: var(--sh-2); border-color: var(--c); }
.mm__node.is-closed { border-style: dashed; }

.mm__t {
  display: block; align-self: flex-start; margin-bottom: 1px;
  font-family: var(--mono); font-size: 10.5px; line-height: 15px;
  color: var(--c); opacity: .85; cursor: pointer;
}
.mm__node--root .mm__t { color: #cdeee8; opacity: 1; }
.mm__t:hover { opacity: 1; text-decoration: underline; }

.mm__row { display: flex; align-items: center; }
.mm__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; background: var(--c); }
.mm__node--d0 .mm__dot { display: none; }
.mm__tx { flex: 1; min-width: 0; }
.mm__ln { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mm__bd {
  position: absolute; right: -9px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  background: var(--surface); border: 1px solid var(--c-line);
  color: var(--c); font-size: 11px; font-weight: 700; line-height: 1;
}
.mm__node.is-l .mm__bd { right: auto; left: -9px; }
.mm__node.is-closed .mm__bd { background: var(--c); border-color: var(--c); color: #fff; }

.mm__hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.mm__hint b {
  display: inline-block; padding: 0 5px; border-radius: 5px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-2);
}

@media (max-width: 720px) {
  .mm__stage { height: min(66vh, 440px); }
}

/* 追问 */
.chat { display: flex; flex-direction: column; min-height: 420px; }
.chat__log { flex: 1; overflow-y: auto; max-height: 54vh; padding: 4px 2px 12px; display: grid; gap: 13px; align-content: start; }
.msg { display: flex; gap: 10px; }
.msg--me { flex-direction: row-reverse; }
.msg__av {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--bg-2); color: var(--ink-2);
}
.msg--me .msg__av { background: var(--brand-soft); color: var(--brand-ink); }
.msg__b { background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px; font-size: 14.5px; max-width: 76%; }
.msg--me .msg__b { background: var(--brand-soft); border-color: var(--brand-soft-2); }
.msg__b p + p { margin-top: 8px; }

/* 热词 */
.kws { display: flex; flex-wrap: wrap; gap: 8px; }
.kw {
  padding: 5px 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); cursor: default;
}
.kw b { color: var(--brand-ink); }

/* 空态 */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty__ico { font-size: 34px; margin-bottom: 10px; opacity: 0.6; }

/* 加载 */
.loader { display: grid; gap: 10px; padding: 22px; }
.skel { height: 13px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-2), var(--line-2), var(--bg-2)); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spin {
  width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff; border-radius: 50%; animation: sp 0.7s linear infinite;
}
.spin--dark { border-color: var(--line); border-top-color: var(--brand); }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------------------------- 弹层/提示 ---------------------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.on { display: flex; }
.modal__mask { position: absolute; inset: 0; background: rgba(20, 24, 31, 0.34); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3);
  padding: 26px; animation: pop 0.2s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal__hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

.toasts { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 300; display: grid; gap: 9px; justify-items: center; }
.toast {
  background: var(--ink); color: #fff; font-size: 14px; padding: 10px 18px; border-radius: 11px;
  box-shadow: var(--sh-2); animation: pop 0.2s ease; max-width: min(92vw, 460px);
  line-height: 1.55; text-align: center;
}
.toast--err { background: var(--danger); }
.toast--ok { background: var(--brand-ink); }

/* ---------------------------- 表格 / 列表 ---------------------------- */
.row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.row + .row { margin-top: 9px; }
.row__thumb { width: 84px; aspect-ratio: 16/9; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-2); }
.row__thumb svg { width: 26px; height: 26px; }
.row__main { flex: 1; min-width: 0; }
.row__t { font-weight: 650; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__m { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* ---------------------------- 定价 ---------------------------- */
.price { padding: 26px 24px; display: flex; flex-direction: column; }
.price--hi { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft), var(--sh-2); position: relative; }
.price__tag {
  position: absolute; top: -12px; left: 24px; font-size: 12px; font-weight: 700;
  background: var(--brand); color: #fff; padding: 3px 11px; border-radius: 999px;
}
.price__n { font-size: 36px; font-weight: 750; letter-spacing: -0.02em; }
.price__n small { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.price ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.price li { display: flex; gap: 9px; align-items: flex-start; }
.price li::before { content: "✓"; color: var(--brand); font-weight: 700; flex: none; }
.price li.off { color: var(--ink-3); }
.price li.off::before { content: "–"; color: var(--ink-3); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 17px 0; font-weight: 650; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 21px; color: var(--ink-3); font-weight: 400; transition: 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; color: var(--ink-2); font-size: 14.5px; }

/* ---------------------------- 页脚 ---------------------------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 42px 0 30px; margin-top: 40px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 26px; }
.foot a { color: var(--ink-2); font-size: 14px; display: block; padding: 4px 0; }
.foot__h { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.foot__bottom {
  border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
}

/* ---------------------------- 响应式 ---------------------------- */
@media (max-width: 980px) {
  .wb { grid-template-columns: 1fr; }
  .wb__side { position: static; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 52px 0; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  /* 小屏只留当前栏目，但设置入口必须保留（否则手机上进不去设置） */
  .nav__links a:not(.active):not(#btnSettings) { display: none; }
  .foot__grid { grid-template-columns: 1fr; }
  .msg__b { max-width: 86%; }
}

/* 打印 / 导出友好 */
@media print {
  .nav, .foot, .wb__side, .tabs, .btn { display: none !important; }
  .wb { grid-template-columns: 1fr; }
  body { background: #fff; }
}

/* =========================================================
   通用提示条
   ========================================================= */
.alert {
  border-radius: var(--r); padding: 12px 14px; font-size: 13.5px;
  line-height: 1.6; border: 1px solid;
}
.alert--err { background: var(--danger-soft); border-color: #f6cfcf; color: #9b1c1c; }
.alert--ok { background: var(--brand-soft); border-color: var(--brand-soft-2); color: var(--brand-ink); }
.alert--warn { background: var(--accent-soft); border-color: #f7e3bd; color: #8a5c08; }
.alert--info { background: var(--bg-2); border-color: var(--line); color: var(--ink-2); }
.alert b { font-weight: 700; }

/* =========================================================
   登录页
   ========================================================= */
.auth-block { padding: 4px 0; }
.auth-block__hd { display: flex; gap: 12px; align-items: center; }
.auth-ico {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 18px; font-weight: 700;
}
.auth-ico--wx { background: #e7f8ea; color: #17803d; font-size: 13px; }
.auth-sep {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-3); font-size: 12.5px; margin: 26px 0;
}
.auth-sep::before, .auth-sep::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* =========================================================
   定价页
   ========================================================= */
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 30px 26px 26px;
  box-shadow: var(--sh-1);
}
.plan--hi {
  border: 1.5px solid var(--brand-2);
  box-shadow: 0 0 0 4px var(--brand-soft), var(--sh-2);
}
.plan__badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: linear-gradient(135deg, #f5a524, #e08800);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 15px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(224, 136, 0, 0.28);
}
.plan__name { font-size: 25px; font-weight: 780; letter-spacing: -0.02em; }
.plan__tagline {
  display: inline-block; margin-top: 9px; font-size: 12.5px; font-weight: 650;
  color: var(--brand-ink); background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2); padding: 4px 11px; border-radius: 999px;
}
.plan__pricerow { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan__strike { color: var(--ink-3); text-decoration: line-through; font-size: 14.5px; }
.plan__price { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan__price small { font-size: 15px; font-weight: 550; color: var(--ink-3); letter-spacing: 0; }
.plan__perday { font-size: 13.5px; color: var(--ink-2); margin-bottom: 4px; }
.plan__note { font-size: 12.5px; color: var(--ink-3); margin-bottom: 18px; }
.plan__note--hi { color: var(--brand-ink); font-weight: 600; }

.coupon { display: flex; gap: 8px; margin-bottom: 12px; }
.coupon .input { flex: 1; height: 42px; }
.coupon .btn { height: 42px; padding: 0 18px; }

.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pay-btn {
  height: 44px; border-radius: 10px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 14.5px; font-weight: 650; color: #fff; font-family: inherit;
  transition: filter 0.15s, transform 0.12s;
}
.pay-btn:hover:not(:disabled) { filter: brightness(1.07); }
.pay-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.pay-btn--alipay { background: #1677ff; }
.pay-btn--wechat { background: #07c160; }
.pay-btn--other {
  grid-column: 1 / -1; background: #4b5563; margin-top: 9px;
}
.pay-btn svg { width: 18px; height: 18px; flex: none; }
.plan__renew { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 11px 0 0; }

/* ------------------------------ 扫码支付弹层 ------------------------------ */
.qrpay { display: flex; flex-direction: column; align-items: center; text-align: center; }
.qrpay__box {
  position: relative; /* 过期态要相对它定位，别去掉 */
  width: 216px; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20, 24, 31, 0.06);
}
.qrpay__img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.qrpay__box--dead .qrpay__img { opacity: 0.16; filter: grayscale(1); }
.qrpay__box--dead::after {
  content: "二维码已过期"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 750; color: var(--ink-2);
}
.qrpay__amount { margin-top: 14px; font-size: 26px; font-weight: 780; color: var(--ink); }
.qrpay__tip { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.qrpay__status {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-3); line-height: 1.5;
}
.qrpay__status b { color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.qrpay__dead { color: #d9534f; }

.plan__feats { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.plan__feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.plan__feats li::before {
  content: "✓"; flex: none; width: 19px; height: 19px; margin-top: 2px;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.plan__feats li b { color: var(--ink); font-weight: 700; }
.plan__inherit {
  margin-top: 24px; padding: 11px 14px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 650; color: var(--ink-2);
}

/* 权益对比表 */
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th { font-size: 13px; color: var(--ink-2); font-weight: 700; background: var(--surface-2); }
.cmp td:first-child, .cmp th:first-child { text-align: left; color: var(--ink-2); font-weight: 600; }
.cmp__col--hi { background: var(--brand-soft); }
.cmp .yes { color: var(--brand); font-weight: 800; }
.cmp .no { color: var(--ink-3); }
.cmp tbody tr:hover td { background: var(--surface-2); }
.cmp tbody tr:hover td.cmp__col--hi { background: var(--brand-soft-2); }

/* =========================================================
   导航登录态
   ========================================================= */
.nav__user { display: inline-flex; align-items: center; gap: 8px; position: relative; }
.nav__avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  background: var(--brand-soft); color: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; flex: none;
}
.nav__plan {
  font-size: 11px; font-weight: 750; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #f5a524, #e08800); color: #fff;
}
.nav__plan--plus { background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.nav__menu {
  position: absolute; top: 130%; right: 0; min-width: 210px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-3); padding: 6px;
}
.nav__menu a, .nav__menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px;
  border-radius: 8px; font-size: 14px; color: var(--ink-2);
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav__menu a:hover, .nav__menu button:hover {
  background: var(--bg-2); text-decoration: none; color: var(--ink);
}
.nav__menu__hd { padding: 10px 12px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 5px; }
.nav__menu__hd b { display: block; font-size: 14px; }
.nav__menu__hd span {
  display: block; font-size: 12px; color: var(--ink-3);
  /* 邮箱可能很长，宁可省略号也不要撑破菜单 */
  max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* =========================================================
   进度条（语音识别任务）
   ========================================================= */
.prog { margin: 16px 0 4px; }
.prog__hd { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; }
.prog__hd b { color: var(--ink); }
.prog__track { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
/* ⚠️ position:relative 不能省。下面 ::after 的高光是绝对定位，一旦没有定位祖先，
 * 它的参照块会一路退化到「初始包含块 = 视口」，于是变成一个盖住整页的半透明层，
 * 每帧跑 background-position 动画 → 浏览器只能每帧重绘整页 → 所有文字被反复重新光栅化，
 * 看上去就是「整个页面在抖」（在米白背景上看不出，只在文字边缘露馅，极难排查）。
 * contain:paint 做兜底，把重绘范围钉死在进度条自己身上。 */
.prog__bar {
  position: relative; overflow: hidden; contain: paint;
  height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-2), var(--brand));
  transition: width 0.45s ease;
}
.prog__foot { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }

/* 进度条上的流动高光：让「确实在跑」一眼可见，不用盯着百分比数字。
 * 用 transform 走 GPU 合成；background-position 是不可合成的，必然触发重绘。 */
.prog__bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 22%, rgba(255, 255, 255, 0.5) 50%, transparent 78%);
  transform: translateX(-100%);
  will-change: transform;
  animation: progShine 1.9s linear infinite;
}
@keyframes progShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
/* 排队中 / 阶段内进度不可知：条纹滚动，而不是停在 2% 假装有进度 */
.prog__bar--idle {
  width: 100% !important;
  background: none;
  background-image: repeating-linear-gradient(-52deg, var(--brand-soft-2) 0 8px, var(--brand-2) 8px 16px);
  background-size: 23px 100%;
  animation: progSlide 0.9s linear infinite;
}
.prog__bar--idle::after { display: none; }
@keyframes progSlide { to { background-position: 23px 0; } }

/* 阶段步骤条：把「获取音轨 → 语音转写 → 整理文稿」摊开，比一个孤零零的百分比更有预期 */
/* 「查看队列」面板：把「前面还有 N 个任务」摊开成明细（标题/精度/时长/预估） */
#asrQueue { margin-top: 14px; }
.qlist {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  overflow: hidden;
}
.qlist__hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.qlist__tag {
  font-weight: 400;
  font-size: 11.5px;
  color: var(--ink-3);
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--line-2);
}
.qlist__i {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.qlist__i + .qlist__i { border-top: 1px solid var(--line-2); }
.qlist__i.is-run { background: var(--brand-soft); color: var(--brand-ink); }
.qlist__no {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--line-2);
  color: var(--ink-3);
}
.qlist__i.is-run .qlist__no { background: var(--brand); color: #fff; }
.qlist__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 「你」标记：队列是大家共用的，得让人认出自己排的那几条 */
.qlist__mine {
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--brand);
  color: #fff;
  vertical-align: 1px;
}
.qlist__m,
.qlist__r { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.qlist__i.is-run .qlist__m,
.qlist__i.is-run .qlist__r { color: var(--brand-ink); }
.qlist__r { font-weight: 600; min-width: 46px; text-align: right; }
.qlist__ft {
  padding: 8px 12px;
  font-size: 11.5px;
  color: var(--ink-4);
  border-top: 1px solid var(--line-2);
}
.qlist__none { padding: 12px; font-size: 12.5px; color: var(--ink-3); }

.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 2px 0 15px; }
.steps__i { display: grid; gap: 6px; }
.steps__bar { height: 3px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.steps__i.is-on .steps__bar {
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  animation: stepPulse 1.6s ease-in-out infinite;
}
.steps__i.is-done .steps__bar { background: var(--brand); }
@keyframes stepPulse { 50% { opacity: 0.5; } }
.steps__lb { font-size: 11.5px; color: var(--ink-3); transition: color 0.2s; }
.steps__i.is-on .steps__lb { color: var(--brand-ink); font-weight: 600; }
.steps__i.is-done .steps__lb { color: var(--ink-2); }

/* 等待期的小贴士（轮播） */
.asr-tip {
  display: flex; gap: 9px; align-items: flex-start; margin-top: 16px;
  background: var(--brand-soft); border: 1px solid var(--brand-soft-2);
  border-radius: var(--r); padding: 11px 13px;
  font-size: 13px; color: var(--brand-ink); line-height: 1.62;
}
.asr-tip__ico { flex: none; font-size: 14px; line-height: 1.6; opacity: 0.9; }
/* 预留两行高度：贴士长短不一，切换时不把下面的按钮顶来顶去 */
.asr-tip__t { min-height: 3.24em; }
.asr-tip__t.is-fade { animation: asrTipIn 0.45s ease; }
@keyframes asrTipIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* 侧栏：识别进行中的信息卡 */
.asr-side__live { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-ink); }
.asr-side__rows { display: grid; gap: 8px; font-size: 13px; }
.asr-side__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--ink-3); }
.asr-side__row b { color: var(--ink); font-weight: 600; text-align: right; }

/* 骨架屏：按真实卡片结构占位（封面 / 标题 / 标签 / 数据格 / 按钮） */
.skel--cover { height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.skel--title { height: 16px; }
.skel--pill { height: 25px; width: 76px; border-radius: 999px; }
.skel--box { height: 50px; border-radius: 9px; }
.skel--btn { height: 36px; border-radius: var(--r); }
.skel-body { display: grid; gap: 10px; padding: 15px 16px 16px; }

/* =========================================================
   上传区（Pro）
   ========================================================= */
.updrop {
  border: 1.5px dashed var(--line); border-radius: var(--r-lg);
  padding: 30px 22px; text-align: center; cursor: pointer;
  background: var(--surface-2); transition: border-color 0.15s, background 0.15s;
}
.updrop:hover, .updrop--on { border-color: var(--brand-2); background: var(--brand-soft); }
.updrop__t { font-weight: 700; margin-bottom: 6px; }

/* =========================================================
   登录页：登录 / 注册 双 tab + 图形验证码 + 密码框
   ========================================================= */

.link {
  color: var(--brand-ink); text-decoration: none;
  border-bottom: 1px solid var(--brand-soft-2);
}
.link:hover { border-bottom-color: var(--brand); }

/* .field 是作者样式 display:block，会盖掉 [hidden] 的默认 none，所以显式补一条 */
.field[hidden] { display: none; }

.hint--ok { color: var(--brand-ink); }
.hint--warn { color: #8a5c08; }
.hint--err { color: #9b1c1c; }

/* ---------------------------- 双 tab ---------------------------- */
.auth-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-2); border-radius: var(--r);
}
.auth-tab {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink-2); padding: 9px 10px; border-radius: calc(var(--r) - 4px);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-on {
  background: var(--surface); color: var(--brand-ink); box-shadow: var(--sh-1);
}

/* --------------------------- 注册步骤 --------------------------- */
.reg-steps {
  display: flex; gap: 8px; margin-top: 14px;
  font-size: 12.5px; color: var(--ink-3);
}
.reg-step { padding: 3px 10px; border-radius: 999px; background: var(--bg-2); }
.reg-step.is-on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

/* --------------------------- 密码输入框 --------------------------- */
.pwd-wrap { position: relative; }
.pwd-wrap .input { padding-right: 58px; }
.pwd-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 12.5px; color: var(--ink-3);
  padding: 6px 9px; border-radius: var(--r-sm); transition: 0.15s;
}
.pwd-eye:hover { color: var(--brand-ink); background: var(--brand-soft); }

/* --------------------------- 图形验证码 --------------------------- */
.cap-row { display: flex; gap: 10px; align-items: center; }
.cap-img {
  flex: none; width: 126px; height: 42px; display: block;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); cursor: pointer;
}
.cap-img:hover { border-color: var(--brand-2); }

/* 窄屏：验证码图缩到刚好放得下 */
@media (max-width: 420px) {
  .cap-img { width: 104px; height: 35px; }
}
