/* ============================================================
   北京市律师协会互联网诉讼法律专业委员会 · 委员专业信息调研
   设计体系: 靛 — 中性灰阶 + 单一交互蓝
   形状规则: 控件 6px, 容器 10px, 头像圆形; 胶囊只留状态标签
   ------------------------------------------------------------
   令牌分三层, 改配色只动第一层:
     1 原始色阶   --paper / --ink / --navy-* / --gold-*
     2 分量令牌   --*-rgb, 供 rgb(var(--x-rgb) / .35) 调透明度
     3 语义令牌   --surface / --text / --line / --accent ...
   组件一律用第三层, 不要直接写第一层, 更不要写字面量。
   ============================================================ */
:root {
  /* ---- 1 原始色阶 · 靛 ----
     纸色刻意脱离蓝色相家族: 旧的 #F4F6FA 是 H220, 与墨蓝同族,
     导致全站只有"一个蓝 + 一个金", 缺中性层。现在纸是中性微暖灰。 */
  --paper: #F6F6F5;
  --ink: #191C20;
  --muted: #5C6169;
  --faint: #6B7079;
  /* 蓝只有三档, 且刻意不等距 —— 均匀六档色阶是令牌生成器的指纹 */
  --navy-950: #0F1F33;   /* 最深, 仅用于裁剪台底与金按钮文字 */
  --navy-900: #152B44;   /* 深色面: 首屏 / 概况 / 个人页卡片 */
  --navy-800: #17427A;   /* = accent-ink, hover 与按下态 */
  --navy-700: #17427A;
  --navy-600: #1D5599;   /* = accent, 唯一交互色, 面上 7.47:1 */
  /* 金退出浅色面。会徽官方口径是"淡黄、银白"而非饱和鎏金,
     旧的 #C29A3B 在浅底仅 2.43:1, 连非文字 3:1 都不到。 */
  --gold-300: #C9B489;
  --gold-400: #B9A06A;
  --gold-500: #A98F5C;
  --gold-600: #8E7644;
  --gold-ink: #7E5C10;
  --success: #1C6B45;
  --warn: #7E5C10;
  --error: #A32C22;
  --white: #FFFFFF;
  --on-deep: #EBEDEF;

  /* ---- 2 分量令牌 ---- */
  --paper-rgb: 246 246 245;
  --ink-rgb: 25 28 32;
  --muted-rgb: 92 97 105;
  --faint-rgb: 107 112 121;
  --navy-950-rgb: 15 31 51;
  --navy-900-rgb: 21 43 68;
  --navy-800-rgb: 23 66 122;
  --navy-700-rgb: 23 66 122;
  --navy-600-rgb: 29 85 153;
  --gold-300-rgb: 201 180 137;
  --gold-400-rgb: 185 160 106;
  --gold-500-rgb: 169 143 92;
  --gold-600-rgb: 142 118 68;
  --gold-ink-rgb: 126 92 16;
  --success-rgb: 28 107 69;
  --warn-rgb: 126 92 16;
  --error-rgb: 163 44 34;
  --white-rgb: 255 255 255;
  --on-deep-rgb: 235 237 239;
  --accent-rgb: var(--navy-600-rgb);
  --on-accent-rgb: var(--white-rgb);

  /* ---- 3 语义令牌 ---- */
  --surface: var(--white);
  --surface-sunk: #E4E5E6;
  --text: var(--ink);
  --text-2: var(--muted);
  --text-3: var(--faint);
  --line: rgb(var(--ink-rgb) / .14);      /* 装饰分隔 */
  --line-2: rgb(var(--ink-rgb) / .48);    /* 控件边框, 实测 3.07:1 满足 WCAG 非文字 3:1 */
  --accent: var(--navy-600);
  --accent-ink: var(--navy-700);
  --accent-soft: rgb(var(--accent-rgb) / .1);
  --on-accent: var(--white);
  --deep: var(--navy-900);
  /* 兼容旧名, 存量组件仍在用 */
  --border: var(--line);
  --border-strong: var(--line-2);

  /* ---- 形状: 三档 ---- */
  --r-ctl: 6px;
  --r-box: 10px;
  --r-pill: 999px;

  /* ---- 字号: 七档 ---- */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 19px;
  --fs-xl: 24px;
  --fs-2xl: 32px;

  /* ---- 行高: 三档 ---- */
  --lh-tight: 1.28;
  --lh-body: 1.75;
  --lh-num: 1.15;

  /* ---- 间距: 4px 网格 ---- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* ---- 阴影: 两档, 只给真正浮起的层 ---- */
  --sh-1: 0 8px 24px -12px rgb(var(--navy-900-rgb) / .28);
  --sh-2: 0 24px 56px -24px rgb(var(--navy-900-rgb) / .38);

  /* ---- 毛玻璃: 两档, 只用于 sticky 栏与浮层遮罩 ---- */
  --blur-1: 12px;
  --blur-2: 20px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100dvh;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
[hidden] { display: none !important; }

main { position: relative; z-index: 1; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s, box-shadow .35s, color .35s;
  color: var(--on-deep);
}
.topbar.scrolled {
  background: rgb(var(--paper-rgb) / .78);
  -webkit-backdrop-filter: blur(var(--blur-1));
  backdrop-filter: blur(var(--blur-1));
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.topbar-inner {
  max-width: 860px; margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 28px);
  padding-top: calc(14px + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-org { font-size: var(--fs-xs); letter-spacing: .12em; opacity: .82; white-space: nowrap; }
.brand-rule { width: 1px; height: 14px; background: var(--gold-400); opacity: .9; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: var(--fs-md); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag {
  flex: none; font-size: var(--fs-xs); letter-spacing: .1em; padding: 4px 10px;
  border: 1px solid currentColor; border-radius: var(--r-pill); opacity: .75;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  background: var(--deep);
  color: var(--on-deep);
  padding: calc(96px + env(safe-area-inset-top)) clamp(20px, 5vw, 32px) 96px;
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero-kicker {
  font-size: var(--fs-sm); letter-spacing: .22em; color: var(--gold-300);
  margin-bottom: 18px; font-weight: 500;
}
.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 7.2vw, 52px);
  letter-spacing: .06em; line-height: 1.22;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 18px; max-width: 34em;
  font-size: clamp(14.5px, 2.2vw, 16px);
  color: rgb(var(--on-deep-rgb) / .82);
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.meta-pill {
  font-size: var(--fs-sm); padding: 7px 14px; border-radius: var(--r-ctl);
  border: 1px solid rgb(var(--on-deep-rgb) / .28);
  background: rgb(var(--on-deep-rgb) / .07);
  letter-spacing: .03em;
}
.meta-live b { color: var(--gold-300); font-variant-numeric: tabular-nums; }
.hero-cta { margin-top: 34px; }
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-curve svg { width: 100%; height: clamp(36px, 6vw, 64px); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--r-ctl);
  font-size: var(--fs-md); font-weight: 600; letter-spacing: .06em;
  padding: 15px 30px; min-height: 50px;
  transition: transform .16s var(--ease), box-shadow .25s var(--ease), background .25s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn .ic { width: 17px; height: 17px; }
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-gold:hover { background: var(--gold-600); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-ink); }
.btn-outline {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-plain {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--accent);
  font-size: var(--fs-base); font-weight: 600; padding: 8px 10px; border-radius: var(--r-ctl);
}
.btn-plain .ic { width: 15px; height: 15px; }
.btn-plain:hover { background: rgb(var(--navy-600-rgb) / .08); }
.ic { display: inline-block; width: 18px; height: 18px; fill: currentColor; flex: none; }
/* 随行内文字走的小图标, 替掉原先的 emoji */
.ic-inline { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }

/* ---------- 表单卡片 ---------- */
.form-wrap { padding: 0 clamp(14px, 4vw, 28px) 56px; margin-top: -34px; }
.glass-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
}
.card { max-width: 760px; margin: 0 auto; padding: clamp(22px, 5vw, 44px); position: relative; }

/* 进度 */
.progress { margin-bottom: 26px; }
.progress-info { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.progress-step { font-family: var(--serif); font-weight: 600; font-size: var(--fs-md); letter-spacing: .08em; color: var(--text); }
.progress-count { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-count b { color: var(--warn); font-size: var(--fs-md); }
.progress-track { height: 6px; border-radius: var(--r-ctl); background: rgb(var(--ink-rgb) / .09); overflow: hidden; }
.progress-fill {
  height: 100%; width: 25%; border-radius: var(--r-ctl);
  background: var(--accent);
}

/* 步骤 */
.step-title { font-family: var(--serif); font-weight: 700; font-size: clamp(21px, 4vw, 25px); letter-spacing: .05em; color: var(--text); }
.step-desc { font-size: var(--fs-base); color: var(--muted); margin: 8px 0 24px; }

.field { margin-bottom: 22px; }
.field-row { display: grid; gap: 22px 18px; margin-bottom: 22px; }
.field-row .field { margin-bottom: 0; }
.label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-base); font-weight: 600; margin-bottom: 9px; color: var(--ink); }
.req { color: var(--error); font-style: normal; font-weight: 700; }
.opt { font-size: var(--fs-xs); font-weight: 500; color: var(--faint); background: rgb(var(--ink-rgb) / .06); padding: 2px 8px; border-radius: var(--r-pill); }
.hint { font-size: var(--fs-sm); color: var(--faint); margin-top: 7px; }
.counter { text-align: right; font-variant-numeric: tabular-nums; }
.ferr { display: flex; align-items: center; gap: 5px; font-size: var(--fs-sm); color: var(--error); margin-top: 7px; font-weight: 500; }
.ferr::before { content: "!"; flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--error); color: #FFF; font-size: var(--fs-xs); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.input {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font-size: var(--fs-md); color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: var(--r-ctl);
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .22); }
.input.err { border-color: var(--error); box-shadow: 0 0 0 4px rgb(var(--error-rgb) / .12); }
.textarea { resize: vertical; min-height: 108px; line-height: 1.7; }
.input-sub { margin-top: 10px; }
.hp { position: absolute; left: -5000px; top: -5000px; height: 1px; width: 1px; opacity: 0; }

/* 姓名检索 */
.name-box { position: relative; }
.name-ic { position: absolute; left: 15px; top: 17px; width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.input.has-ic { padding-left: 42px; }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-box);
  box-shadow: var(--sh-1);
  overflow: hidden; max-height: 316px; overflow-y: auto;
}
.suggest-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; cursor: pointer; transition: background .15s; }
.suggest-item:hover, .suggest-item.hl { background: rgb(var(--navy-600-rgb) / .07); }
.suggest-item + .suggest-item { border-top: 1px solid rgb(var(--ink-rgb) / .06); }
.sg-name { font-size: var(--fs-md); font-weight: 600; }
.sg-name em { font-style: normal; color: var(--accent); }
.sg-sub { font-size: var(--fs-xs); color: var(--faint); text-align: right; }
.sg-role { display: inline-block; font-size: var(--fs-xs); color: var(--accent); background: rgb(var(--navy-600-rgb) / .1); border-radius: var(--r-pill); padding: 1px 8px; margin-left: 6px; }
.suggest-empty { padding: 14px 16px; font-size: var(--fs-sm); color: var(--faint); }

/* 身份确认卡 */
.verify-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface-sunk);
  border: 1px solid rgb(var(--navy-600-rgb) / .2); border-radius: var(--r-box);
  padding: 15px 16px; margin-bottom: 18px;
}
.verify-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.verify-ic { width: 34px; height: 34px; color: var(--accent); flex: none; }
.verify-name { font-size: var(--fs-md); font-weight: 700; letter-spacing: .02em; }
.verify-sub { font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
.notice { border-radius: var(--r-box); padding: 12px 14px; font-size: var(--fs-sm); margin-bottom: 16px; line-height: 1.6; }
.notice-amber { background: rgb(var(--warn-rgb) / .1); color: var(--warn); border: 1px solid rgb(var(--warn-rgb) / .25); }
.notice-blue { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid rgb(var(--navy-600-rgb) / .2); }

/* 勾选 */
.consent { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--border); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  border: 1.5px solid var(--border-strong); border-radius: var(--r-ctl);
  background: #FFF; display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s, border-color .18s, transform .18s var(--ease);
}
.check-box .ic { width: 13px; height: 13px; color: #FFF; opacity: 0; transform: scale(.4); transition: all .18s var(--ease); }
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); transform: scale(1.05); }
.check input:checked + .check-box .ic { opacity: 1; transform: scale(1); }
.check-text { font-size: var(--fs-base); }
.link { background: none; border: none; padding: 0; color: var(--accent); font-size: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(var(--navy-600-rgb) / .35); }

/* 标签选择 chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border-strong); border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--ink); font-size: var(--fs-base); font-weight: 500;
  padding: 10px 17px; min-height: 42px;
  transition: all .2s var(--ease);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.chip .ic { width: 0; height: 13px; opacity: 0; transition: all .22s var(--ease); }
.chip:active { transform: scale(.96); }
.chip.on {
  background: var(--accent);
  border-color: var(--accent); color: var(--on-accent);
}
.chip.on .ic { width: 13px; opacity: 1; }

/* 照片上传 */
.photo-field { display: flex; align-items: center; gap: 16px; }
.photo-pick {
  flex: none; width: 92px; height: 92px; border-radius: 50%;
  border: 2px dashed var(--border-strong); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0; position: relative;
  transition: border-color .2s, transform .15s var(--ease);
}
.photo-pick:active { transform: scale(.97); }
.photo-pick.has { border: 2px solid var(--accent); }
.photo-pick .photo-empty { color: var(--faint); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.photo-pick .photo-empty .ic { width: 26px; height: 26px; }
.photo-img { width: 100%; height: 100%; object-fit: cover; }
.photo-side { min-width: 0; }
.photo-acts { display: flex; gap: 4px; margin-top: 2px; }
.photo-remove { color: var(--error); }
.photo-remove:hover { background: rgb(var(--error-rgb) / .07); }

.photo-pick-rect { border-radius: var(--r-box); width: 90px; height: 120px; }
.photo-pick-rect.has { border-radius: var(--r-box); }
.photo-spec { line-height: 1.7; }
.check-mini { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.check-mini .check-box { width: 18px; height: 18px; margin-top: 0; border-radius: var(--r-ctl); }
.check-mini .check-box .ic { width: 11px; height: 11px; }
.check-mini .check-text { font-size: var(--fs-sm); color: var(--muted); }

/* 照片裁剪 */
.crop-card { max-width: 380px; }
.crop-stage {
  position: relative; width: 270px; height: 360px; margin: 0 auto;
  overflow: hidden; border-radius: var(--r-box); background: var(--navy-950);
  border: 1.5px solid var(--border-strong);
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; pointer-events: none; }
.crop-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(var(--white-rgb) / .16) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--white-rgb) / .16) 1px, transparent 1px);
  background-size: 33.34% 33.34%; }
.crop-zoom { display: flex; align-items: center; gap: 12px; margin: 16px 2px 4px; }
.crop-zoom-t { font-size: var(--fs-sm); color: var(--muted); flex: none; }
.crop-zoom input[type=range] { flex: 1; accent-color: var(--accent); }
.crop-actions { margin-top: 14px; }
.crop-actions .btn { flex: 1; }

/* 典型案例条目 */
.case-item {
  border: 1px solid var(--border); border-radius: var(--r-box);
  background: var(--surface);
  padding: 14px 14px 12px; margin-bottom: 12px;
}
.case-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.case-item-t { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.case-del { background: none; border: none; color: var(--error); font-size: var(--fs-sm); font-weight: 600; padding: 4px 8px; border-radius: var(--r-ctl); }
.case-del:hover { background: rgb(var(--error-rgb) / .07); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.case-grid .full { grid-column: 1 / -1; }
.case-grid .input, .case-grid select.input { min-height: 44px; padding: 8px 12px; font-size: var(--fs-base); }
.case-lab { display: block; font-size: var(--fs-xs); color: var(--faint); margin-bottom: 4px; }

/* AI 润色按钮 */
.ai-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid rgb(var(--accent-rgb) / .4); border-radius: var(--r-ctl);
  background: var(--accent-soft);
  color: var(--accent); font-size: var(--fs-xs); font-weight: 600;
  padding: 5px 12px; transition: all .2s var(--ease);
}
.ai-btn .ic { width: 13px; height: 13px; }
.ai-btn:hover { border-color: var(--accent); background: rgb(var(--accent-rgb) / .16); }
.ai-btn:active { transform: scale(.96); }
.ai-btn:disabled { opacity: .55; pointer-events: none; }
.ai-undo {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--accent);
  font-size: var(--fs-xs); font-weight: 600; padding: 4px 6px; margin-top: 6px; border-radius: var(--r-ctl);
}
.ai-undo .ic { width: 12px; height: 12px; }
.ai-undo:hover { background: rgb(var(--navy-600-rgb) / .07); }

/* 通讯录页面预览 */
.profile-wrap { margin: 30px 0 26px; text-align: left; }
.profile-cap {
  text-align: center; font-size: var(--fs-sm); letter-spacing: .18em;
  color: var(--faint); margin-bottom: 14px; font-weight: 600;
}
.profile-card {
  background: var(--deep);
  border-radius: var(--r-box); padding: 26px 24px 18px; color: var(--on-deep);
  position: relative; overflow: hidden;
}
.profile-top { display: flex; align-items: center; gap: 16px; position: relative; }
.profile-avatar {
  flex: none; width: 76px; height: 76px; border-radius: 50%;
  border: 2.5px solid var(--gold-400);
  background: rgb(var(--on-deep-rgb) / .12);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.profile-avatar .ic { width: 40px; height: 40px; color: rgb(var(--on-deep-rgb) / .55); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 700; letter-spacing: .05em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-role { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; color: var(--gold-300); border: 1px solid rgb(var(--gold-400-rgb) / .55); border-radius: var(--r-pill); padding: 2px 9px; letter-spacing: .06em; }
.profile-firm { font-size: var(--fs-sm); color: rgb(var(--on-deep-rgb) / .75); margin-top: 4px; }
.profile-rows { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgb(var(--on-deep-rgb) / .14); position: relative; }
.profile-row { display: flex; gap: 12px; font-size: var(--fs-base); padding: 4px 0; }
.profile-row b { flex: none; width: 3.5em; font-weight: 500; color: rgb(var(--on-deep-rgb) / .55); }
.profile-intro { position: relative; font-size: var(--fs-base); line-height: 1.8; color: rgb(var(--on-deep-rgb) / .88); margin-top: 14px; padding-top: 14px; border-top: 1px solid rgb(var(--on-deep-rgb) / .14); }
.profile-sec { position: relative; margin-top: 14px; }
.profile-sec-t { font-size: var(--fs-xs); letter-spacing: .14em; color: rgb(var(--on-deep-rgb) / .5); margin-bottom: 8px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-tag { font-size: var(--fs-xs); padding: 4px 11px; border-radius: var(--r-pill); background: rgb(var(--on-deep-rgb) / .1); border: 1px solid rgb(var(--on-deep-rgb) / .16); }
.profile-foot { position: relative; text-align: center; font-size: var(--fs-xs); letter-spacing: .1em; color: rgb(var(--on-deep-rgb) / .4); margin-top: 20px; padding-top: 12px; border-top: 1px solid rgb(var(--on-deep-rgb) / .1); }
.pv-case { padding: 9px 0; border-bottom: 1px solid rgb(var(--on-deep-rgb) / .1); }
.pv-case:last-child { border-bottom: none; }
.pv-case-t { font-size: var(--fs-base); font-weight: 600; color: rgb(var(--on-deep-rgb) / .95); line-height: 1.5; }
.pv-case-m { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); color: rgb(var(--on-deep-rgb) / .6); margin-top: 4px; }
.pv-case-badge { font-size: var(--fs-xs); color: var(--gold-300); border: 1px solid rgb(var(--gold-400-rgb) / .45); border-radius: var(--r-pill); padding: 1px 9px; }

/* 步骤导航 */
.step-nav { display: flex; gap: 12px; margin-top: 30px; }
.step-nav .btn { flex: 1; }
.step-nav .btn-outline { flex: 0 0 auto; }
.form-foot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 22px; font-size: var(--fs-xs); color: var(--faint);
}
.form-foot .ic { width: 13px; height: 13px; }

/* 成功页 */
.step-done { text-align: center; padding: 26px 0 10px; }
.done-medal {
  width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.done-medal .ic { width: 46px; height: 46px; color: var(--accent); }
.done-title { font-family: var(--serif); font-weight: 700; font-size: var(--fs-xl); letter-spacing: .05em; color: var(--text); }
.done-text { font-size: var(--fs-base); color: var(--muted); margin: 14px 0 8px; }
.done-meta { font-size: var(--fs-sm); color: var(--faint); margin-bottom: 24px; }

/* 页脚 */
.foot { text-align: center; padding: 8px 20px calc(40px + env(safe-area-inset-bottom)); font-size: var(--fs-sm); color: var(--muted); }
.foot-dim { color: var(--faint); margin-top: 4px; font-size: var(--fs-xs); }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 22px; }
.modal-mask { position: absolute; inset: 0; background: rgb(var(--navy-950-rgb) / .5); -webkit-backdrop-filter: blur(var(--blur-2)); backdrop-filter: blur(var(--blur-2)); }
.modal-card { position: relative; max-width: 520px; width: 100%; max-height: 82dvh; overflow-y: auto; padding: 28px 26px; }
.modal-title { font-family: var(--serif); font-weight: 700; font-size: var(--fs-lg); letter-spacing: .06em; color: var(--text); margin-bottom: 14px; }
.modal-body p { font-size: var(--fs-base); margin-bottom: 10px; color: var(--text); }
.modal-ok { width: 100%; margin-top: 12px; }

/* 提示条 */
.toast {
  position: fixed; left: 50%; bottom: calc(34px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: rgb(var(--navy-900-rgb) / .94); color: var(--on-deep);
  font-size: var(--fs-base); padding: 12px 22px; border-radius: var(--r-ctl);
  box-shadow: var(--sh-2);
  z-index: 120; max-width: 86vw; text-align: center;
}

.done-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.done-actions .btn { min-width: 220px; text-decoration: none; }

/* ============ 委员通讯录 ============ */
.txl-auth { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; z-index: 1; }
.txl-auth-card { width: 100%; max-width: 430px; padding: 34px 28px 24px; }
.txl-org { font-size: var(--fs-xs); letter-spacing: .14em; color: var(--muted); }
.txl-title { font-family: var(--serif); font-weight: 700; font-size: var(--fs-xl); letter-spacing: .08em; color: var(--text); margin: 8px 0 6px; }
.txl-note { font-size: var(--fs-sm); color: var(--faint); margin-bottom: 20px; line-height: 1.7; }
.txl-tabs { display: flex; gap: 6px; background: rgb(var(--ink-rgb) / .07); border-radius: var(--r-ctl); padding: 4px; margin-bottom: 22px; }
.txl-tab { flex: 1; border: none; background: none; border-radius: var(--r-ctl); padding: 9px 0; font-size: var(--fs-base); font-weight: 600; color: var(--muted); transition: all .2s; }
.txl-tab.on { background: var(--surface); color: var(--accent); }
.txl-err { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-sm); color: var(--error); margin: -4px 0 12px; font-weight: 500; line-height: 1.6; }
.txl-btn { width: 100%; margin-top: 4px; }
/* 「输入框 + 获取验证码」同行 (v6.8 引入, v6.9 登录沿用) */
.txl-inline { display: flex; gap: 10px; align-items: stretch; }
.txl-inline .input { flex: 1; min-width: 0; }
.txl-inline-btn { flex: none; white-space: nowrap; padding: 12px 16px; font-size: var(--fs-sm); }
.txl-foot { text-align: center; font-size: var(--fs-xs); color: var(--faint); margin-top: 18px; line-height: 1.8; }

.txl-bar {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.txl-bar-inner {
  max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px clamp(16px, 3vw, 24px);
  padding-top: calc(13px + env(safe-area-inset-top));
}
.txl-bar-name { font-family: var(--serif); font-weight: 700; font-size: var(--fs-lg); color: var(--text); letter-spacing: .06em; }
.txl-bar-sub { font-size: var(--fs-xs); color: var(--faint); letter-spacing: .08em; }
.txl-bar-user { display: flex; align-items: center; gap: 4px; }

.txl-main { max-width: 980px; margin: 0 auto; padding: 18px clamp(14px, 3vw, 24px) 80px; position: relative; z-index: 1; }
.txl-search { position: relative; margin-bottom: 20px; }
.txl-search .ic { position: absolute; left: 15px; top: 15px; width: 16px; height: 16px; color: var(--faint); }
.txl-search .input { padding-left: 41px; border-radius: var(--r-ctl); min-height: 46px; background: var(--surface); }
.txl-stat { font-size: var(--fs-sm); color: var(--faint); margin-bottom: 16px; }
.txl-group { margin-bottom: 22px; }
.txl-group-t { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: var(--fs-md); color: var(--text); letter-spacing: .1em; margin-bottom: 11px; }
.txl-group-t small { font-family: var(--sans); font-size: var(--fs-xs); color: var(--faint); font-weight: 500; letter-spacing: 0; }
.txl-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.txl-card {
  display: flex; align-items: center; gap: 13px; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-box); padding: 13px 15px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
  -webkit-tap-highlight-color: transparent; cursor: pointer; border-width: 1px;
}
.txl-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.txl-card:active { transform: scale(.985); }
.txl-card.off { opacity: .55; cursor: default; }
.txl-card.off:hover { border-color: var(--line); }
.txl-ava {
  flex: none; width: 50px; height: 50px; border-radius: 50%; overflow: hidden;
  background: var(--accent-soft);
  color: var(--accent); font-family: var(--serif); font-size: var(--fs-lg); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
}
.txl-ava img { width: 100%; height: 100%; object-fit: cover; }
.txl-info { min-width: 0; flex: 1; }
.txl-nm { display: flex; align-items: center; gap: 7px; font-size: var(--fs-md); font-weight: 600; color: var(--ink); }
.txl-firm { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txl-pending { font-size: var(--fs-xs); color: var(--faint); border: 1px dashed var(--border-strong); padding: 1px 8px; border-radius: var(--r-pill); }

/* 个人页浮层 */
.txl-view { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.txl-view-mask { position: absolute; inset: 0; background: rgb(var(--navy-950-rgb) / .5); -webkit-backdrop-filter: blur(var(--blur-2)); backdrop-filter: blur(var(--blur-2)); }
.txl-view-card { position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; border-radius: var(--r-box) var(--r-box) 0 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.txl-view-card .profile-card { border-radius: var(--r-box) var(--r-box) 0 0; padding-bottom: 26px; }
.txl-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgb(var(--on-deep-rgb) / .16); color: #E9EFF8;
  display: flex; align-items: center; justify-content: center;
}
.txl-close .ic { width: 15px; height: 15px; }
.profile-row a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(var(--on-deep-rgb) / .3); }
.wm { position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .5; }

@media (min-width: 700px) {
  .txl-grid { grid-template-columns: repeat(2, 1fr); }
  .txl-view { align-items: center; padding: 30px; }
  .txl-view-card { border-radius: var(--r-box); }
  .txl-view-card .profile-card { border-radius: var(--r-box); }
}
@media (min-width: 980px) {
  .txl-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 桌面端 ---------- */
@media (min-width: 760px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: calc(130px + env(safe-area-inset-top)); padding-bottom: 120px; }
  .form-wrap { margin-top: -48px; }
  .step-nav .btn { flex: 0 0 auto; min-width: 170px; margin-left: auto; }
  .step-nav .btn-outline { margin-left: 0; margin-right: auto; min-width: 130px; }
}

/* ---------- 动效降级 ----------
   JS 侧另有 anime.engine.defaults.duration = 0 兜底, 见 txl.js / admin.js */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- v5 身份核验门 ---------- */
.change-panel {
  margin-top: 16px; padding: 18px 16px 16px;
  border: 1px dashed rgb(var(--navy-900-rgb) / .28); border-radius: var(--r-box);
  background: rgb(var(--navy-900-rgb) / .035);
}
.change-panel .change-title {
  font-family: var(--serif); font-weight: 700; font-size: var(--fs-md);
  color: var(--text); margin: 0 0 6px;
}
.notice .link { background: none; border: 0; padding: 0; font-size: inherit; color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; }
.prefill-note { display: block; margin-top: 6px; color: var(--accent); }
.phone-relock { background: none; border: 0; padding: 0; margin-left: 10px; font-size: var(--fs-sm); color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; }
.input.locked { background: rgb(var(--navy-900-rgb) / .05); color: rgb(var(--navy-900-rgb) / .78); cursor: default; }

/* ============ v5.8: 通讯录页签 / 委员看板 / 活动申报 ============ */
.txl-nav { display: flex; gap: 6px; background: rgb(var(--ink-rgb) / .07); border-radius: var(--r-ctl);
  padding: 4px; margin-bottom: 18px; max-width: 420px; }
.txl-nav-btn { flex: 1; border: none; background: none; padding: 9px 0; border-radius: var(--r-ctl);
  font-size: var(--fs-base); font-weight: 600; color: var(--muted); transition: all .22s var(--ease); }
.txl-nav-btn.on { background: #fff; color: var(--accent); }

/* 委员看板 */
.bd-hero { text-align: center; margin: 6px 0 20px; }
.bd-hero-num { font-size: var(--fs-md); color: var(--muted); }
.bd-hero-num b { font-family: var(--serif); font-size: var(--fs-2xl); color: var(--text); margin-right: 4px; }
.bd-hero-num i { font-style: normal; font-weight: 700; color: var(--accent); }
.bd-hero-cap { font-size: var(--fs-sm); color: var(--faint); margin-top: 4px; }
.bd-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-box);
  padding: 18px 20px; margin-bottom: 14px; }
.bd-t { font-family: var(--serif); font-size: var(--fs-md); color: var(--text); margin-bottom: 2px; }
.bd-cap { font-size: var(--fs-xs); color: var(--faint); margin-bottom: 8px; }
.bd-bar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center;
  padding: 5px 0; }
.bd-bar-label { font-size: var(--fs-sm); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-bar-track { height: 14px; border-radius: var(--r-ctl); background: rgb(var(--ink-rgb) / .06); position: relative; overflow: hidden; }
.bd-bar-fill { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: var(--r-ctl); min-width: 3px;
  background: var(--accent); }
.bd-bar-val { font-size: var(--fs-xs); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bd-bar-val em { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 4px; font-size: var(--fs-xs); }

/* 活动申报 */
.af-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-box);
  padding: 22px; margin-bottom: 14px; }
.af-title { font-family: var(--serif); font-size: var(--fs-lg); color: var(--text); }
.af-sub { font-family: var(--serif); font-size: var(--fs-md); color: var(--text); margin-bottom: 10px; }
.af-note { font-size: var(--fs-sm); color: var(--muted); margin: 8px 0 18px; line-height: 1.7; }
.af-f { margin-bottom: 15px; }
.af-req { color: var(--error); font-style: normal; }
.af-types { display: flex; gap: 7px; flex-wrap: wrap; }
.af-type { font-size: var(--fs-sm); padding: 7px 15px; border-radius: var(--r-ctl); border: 1px solid var(--border-strong);
  background: none; color: var(--muted); transition: all .18s; }
.af-type.on { background: var(--accent); border-color: var(--text); color: #fff; font-weight: 600; }
.af-acts { display: flex; gap: 10px; margin-top: 18px; }
.af-acts .btn { flex: 1; }
.af-mine-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--fs-sm);
  padding: 9px 0; border-bottom: 1px dashed var(--border); }
.af-mine-row b { color: var(--ink); }
.af-mine-m { color: var(--faint); font-size: var(--fs-xs); }
.af-mine-st { font-size: var(--fs-xs); padding: 2px 10px; border-radius: var(--r-pill); background: rgb(var(--warn-rgb) / .12);
  color: var(--warn); font-weight: 600; }
.af-mine-st.ok { background: rgb(var(--success-rgb) / .12); color: var(--success); }

/* 预审表预览: 白纸公文风 */
.af-preview { position: fixed; inset: 0; z-index: 90; overflow-y: auto; }
.af-preview-mask { position: fixed; inset: 0; background: rgb(var(--navy-950-rgb) / .55);
  -webkit-backdrop-filter: blur(var(--blur-2)); backdrop-filter: blur(var(--blur-2)); }
.af-paper-wrap { position: relative; max-width: 640px; margin: 4dvh auto 6dvh; padding: 0 14px; }
.af-paper { background: #fff; border-radius: var(--r-ctl); padding: 34px 34px 26px; box-shadow: var(--sh-2);
  font-family: "Songti SC", "SimSun", var(--serif); color: #111; }
.afp-head { text-align: center; font-size: var(--fs-lg); font-weight: 700; margin-bottom: 18px; letter-spacing: .04em; }
.afp-row { display: flex; font-size: var(--fs-base); line-height: 1.9; margin-bottom: 6px; }
.afp-l { flex: 0 0 auto; font-weight: 700; white-space: nowrap; }
.afp-v { flex: 1; border-bottom: 1px solid #999; min-height: 27px; }
.afp-pre { white-space: pre-wrap; }
.afp-sign { margin-top: 26px; font-size: var(--fs-base); line-height: 2.2; }
.afp-mut { color: #888; font-size: var(--fs-xs); }
.afp-foot { margin-top: 18px; text-align: center; color: #999; font-size: var(--fs-xs); }
.af-preview-acts { display: flex; gap: 10px; margin-top: 14px; }
.af-preview-acts .btn { flex: 1; }
@media (max-width: 560px) { .af-paper { padding: 24px 18px; } }

/* ============ v5.9: 本委概况 hero / 领域筛选 / 看板重构 / 申报管理 ============ */
/* 实色深底: 去掉三段线性渐变 + 两处径向光晕 + 金色内框 */
.ov-hero { position: relative; text-align: center; padding: var(--s6) var(--s4) var(--s5);
  margin-bottom: var(--s5); border-radius: var(--r-box); overflow: hidden;
  color: var(--on-deep); background: var(--deep); }
.ov-org { font-family: var(--serif); font-size: var(--fs-sm); letter-spacing: .2em;
  text-indent: .2em; color: var(--gold-300); }
/* 去掉 background-clip:text 文字渐变, 用实色 */
.ov-title { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 6vw, 34px);
  letter-spacing: .08em; margin: 6px 0 2px; color: var(--on-deep); }
.ov-term { font-size: var(--fs-xs); letter-spacing: .22em; text-indent: .22em;
  color: rgb(var(--on-deep-rgb) / .66); }
.ov-line { width: 48px; height: 1px; margin: var(--s3) auto;
  background: rgb(var(--on-deep-rgb) / .28); }
.ov-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px; max-width: 560px; margin: 0 auto; }
.ov-stat b { display: block; font-family: var(--serif); font-size: clamp(26px, 6.4vw, 38px);
  line-height: var(--lh-num); color: var(--gold-300); font-variant-numeric: tabular-nums; }
.ov-stat span { font-size: var(--fs-xs); color: rgb(var(--on-deep-rgb) / .72); letter-spacing: .06em; }
/* 头像条: 去掉 60s 无限滚动, 改为用户可横向滑动 */
.ov-strip-wrap { position: relative; margin-top: var(--s5); overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ov-strip-wrap::-webkit-scrollbar { display: none; }
.ov-strip { display: flex; gap: var(--s2); width: max-content; padding: 0 var(--s5); }
.ov-strip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgb(var(--on-deep-rgb) / .35); flex: 0 0 auto; }
@media (max-width: 430px) { .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) 6px; } }

.txl-fchips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 10px; margin-top: 10px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.txl-fchips::-webkit-scrollbar { display: none; }
.txl-fchip { flex: 0 0 auto; font-size: var(--fs-sm); padding: 6px 13px; border-radius: var(--r-ctl);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted);
  transition: all .18s; white-space: nowrap; }
.txl-fchip i { font-style: normal; margin-left: 4px; font-size: var(--fs-xs); color: var(--faint); }
.txl-fchip.on { background: var(--accent); border-color: var(--text); color: #fff; font-weight: 600; }
.txl-fchip.on i { color: rgb(var(--on-accent-rgb) / .7); }

.txl-ftags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.txl-ftag { font-size: var(--fs-xs); padding: 1px 8px; border-radius: var(--r-pill); color: var(--accent);
  background: rgb(var(--navy-600-rgb) / .09); border: 1px solid rgb(var(--navy-600-rgb) / .14); white-space: nowrap; }

.bd-hero-t { font-family: var(--serif); font-weight: 700; font-size: var(--fs-xl); color: var(--text); letter-spacing: .06em; }
.bd-hero-cap i { font-style: normal; font-weight: 700; color: var(--accent); }
.bd-bar-btn { cursor: pointer; border-radius: var(--r-ctl); padding: 7px 8px; margin: 0 -8px; transition: background .15s; }
.bd-bar-btn:hover { background: rgb(var(--ink-rgb) / .05); }
.bd-arr { transition: transform .2s; display: inline-block; }
.bd-opt.open .bd-arr { transform: rotate(180deg); }
.bd-people { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 0 12px; }
.bd-p { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--r-ctl); padding: 4px 12px 4px 4px;
  font-size: var(--fs-sm); color: var(--ink); transition: all .16s; }
.bd-p:hover { border-color: var(--accent); }
.bd-p img, .bd-p i { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.bd-p i { font-style: normal; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); }
.bd-p em { font-style: normal; font-size: var(--fs-xs); color: var(--text-3); }
.bd-years { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.bd-year { font-size: var(--fs-sm); color: var(--muted); background: var(--surface-sunk);
  border-radius: var(--r-ctl); padding: 8px 14px; }
.bd-year b { font-family: var(--serif); font-size: var(--fs-lg); color: var(--text); margin-right: 5px; }

.af-mine-acts { display: flex; gap: 6px; margin-left: auto; }
.btn-mine { font-size: var(--fs-xs); padding: 4px 12px; border-radius: var(--r-ctl); border: 1px solid var(--border-strong);
  background: none; color: var(--accent); }
.btn-mine:hover { border-color: var(--accent); }
.btn-mine-warn { color: var(--error); border-color: rgb(var(--error-rgb) / .4); }
.af-mine-off b, .af-mine-off .af-mine-m { opacity: .5; text-decoration: line-through; }
.af-mine-st.off { background: rgb(var(--ink-rgb) / .07); color: var(--faint); }

/* ============ v5.9.1: 看板卡片式布局 / 侧边目录 / 申报常驻卡 ============ */
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; margin-top: 12px; }
.bd-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bd-tile { position: relative; text-align: left; border: 1px solid var(--border); border-radius: var(--r-box);
  background: var(--surface); padding: 12px 14px 10px; transition: all .18s var(--ease); }
.bd-tile:hover { border-color: var(--accent); }
.bd-tile.on { border-color: var(--text); background: var(--accent); }
.bd-tile.on b, .bd-tile.on .bd-tile-name { color: #F2F6FC; }
.bd-tile.on b i { color: rgb(var(--on-deep-rgb) / .6); }
.bd-tile b { display: block; font-family: var(--serif); font-size: var(--fs-xl); line-height: 1.2; color: var(--text);
  font-variant-numeric: tabular-nums; }
.bd-tile b i { font-style: normal; font-size: var(--fs-xs); font-weight: 400; color: var(--faint); margin-left: 2px; }
.bd-tile-name { display: block; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; min-height: 2.5em;
  margin-top: 2px; }
.bd-grid-4 .bd-tile-name { min-height: auto; }
.bd-tile-bar { display: block; height: 4px; border-radius: var(--r-ctl); background: rgb(var(--ink-rgb) / .07);
  overflow: hidden; margin-top: 7px; }
.bd-tile-bar i { display: block; height: 100%; border-radius: var(--r-ctl);
  background: var(--accent); }
.bd-tile.on .bd-tile-bar { background: rgb(var(--on-deep-rgb) / .2); }
.bd-panel { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-box); background: rgb(var(--ink-rgb) / .04);
  border: 1px dashed var(--border-strong); }
.bd-panel-t { font-size: var(--fs-sm); font-weight: 600; color: var(--text); margin-bottom: 8px; }
.bd-sidenav { display: none; }
@media (max-width: 720px) {
  .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-sidenav { display: flex; flex-direction: column; gap: 6px; position: fixed; right: 6px; top: 50%;
    transform: translateY(-50%); z-index: 40; }
  .bd-sidenav[hidden] { display: none; }
  .bd-sidenav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--accent); font-size: var(--fs-xs); font-weight: 600; padding: 0;
    box-shadow: var(--sh-1); }
}
.af-empty { font-size: var(--fs-sm); color: var(--faint); padding: 6px 0; }

/* ============ v6.0: 六页签 / 介绍页 / 排序 / 业绩申报 / 反馈 ============ */
.txl-nav-6 { max-width: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.txl-nav-6::-webkit-scrollbar { display: none; }
.txl-nav-6 .txl-nav-btn { flex: 1 0 auto; padding: 9px 16px; white-space: nowrap; }
.in-text { font-size: var(--fs-base); line-height: 2; color: var(--ink); text-align: justify; margin-top: 8px; }
.txl-yrs { font-style: normal; font-size: var(--fs-xs); color: var(--text-2); margin-left: 6px;
  background: var(--surface-sunk); border-radius: var(--r-pill); padding: 1px 8px; white-space: nowrap; }
.af-mine-kind { flex: 0 0 auto; font-size: var(--fs-xs); padding: 2px 8px; border-radius: var(--r-pill);
  background: rgb(var(--navy-600-rgb) / .1); color: var(--accent); font-weight: 600; white-space: nowrap; }
.fb-row { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.fb-row-h { display: flex; align-items: center; gap: 10px; }
.fb-row-h .af-mine-st { margin-left: auto; }
.fb-row-c { font-size: var(--fs-base); color: var(--ink); margin-top: 6px; white-space: pre-wrap; }

/* ============ v6.1: 圆头像取景下移 / 活动报名 / 领导监事卡 ============ */
.ov-strip img, .txl-ava img, .bd-p img { object-position: 50% 28%; }
.ev-card { border: 1px solid var(--border); border-radius: var(--r-box); padding: 14px 16px; margin-bottom: 12px;
  background: var(--surface); }
.ev-card.ev-closed { opacity: .65; }
.ev-h { display: flex; align-items: center; gap: 10px; }
.ev-h b { font-size: var(--fs-md); color: var(--text); flex: 1; }
.ev-m { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }
.ev-c { font-size: var(--fs-sm); color: var(--ink); margin-top: 6px; white-space: pre-wrap; }
.btn-ev { margin-top: 10px; min-height: 38px; padding: 0 22px; font-size: var(--fs-base); }
.adv-card { border-bottom: 1px dashed var(--border); padding: 4px 0; }
.adv-card:last-child { border-bottom: none; }
.adv-head { display: flex; align-items: center; gap: 12px; padding: 8px 4px; cursor: pointer; border-radius: var(--r-box); }
.adv-head:hover { background: rgb(var(--ink-rgb) / .04); }
.adv-arr { width: 14px; height: 14px; color: var(--text-3); transition: transform .2s; }
.adv-card.open .adv-arr { transform: rotate(180deg); }
.adv-bio { font-size: var(--fs-sm); line-height: 1.9; color: var(--muted); padding: 2px 8px 10px 60px; text-align: justify; }

/* 键盘焦点环: 之前只有 .input 有可见焦点, 按钮与卡片靠浏览器默认 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-ctl);
}
.btn:focus-visible, .chip:focus-visible, .txl-card:focus-visible,
.bd-tile:focus-visible, .txl-nav-btn:focus-visible, .gtab:focus-visible {
  outline-offset: 3px;
}

/* ============ v6.4: 纸质通讯录印前校对 ============
   语义令牌 + 三档圆角, 不新增配色。状态标签用胶囊(状态标签是唯一允许的胶囊)。 */
.txl-nav-dot { display: inline-block; width: 6px; height: 6px; margin-left: 5px;
  border-radius: var(--r-pill); background: var(--error); vertical-align: 3px; }
.pc-status { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-box);
  padding: 14px 16px; margin-bottom: 14px; }
.pc-st-badge { flex: none; font-size: var(--fs-xs); font-weight: 600; padding: 3px 10px;
  border-radius: var(--r-pill); background: rgb(var(--warn-rgb) / .12); color: var(--warn); }
.pc-st-badge.ok { background: rgb(var(--success-rgb) / .12); color: var(--success); }
.pc-st-badge.draft { background: var(--accent-soft); color: var(--accent); }
.pc-st-text { font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-body); }
.pc-fixed { color: var(--text-2); }
.pc-fixed b { color: var(--text); }

/* 名录卡: 照着纸质版式排, 让委员一眼看到印出来长什么样 */
.pc-card { border: 1px solid var(--border-strong); border-radius: var(--r-box);
  padding: 18px 18px 16px; display: grid; grid-template-columns: 90px 1fr; gap: 16px; }
.pc-card-photo { width: 90px; height: 120px; border-radius: var(--r-ctl); overflow: hidden;
  background: var(--surface-sunk); display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); color: var(--text-3); }
.pc-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.pc-card-name { font-family: var(--serif); font-size: var(--fs-lg); color: var(--text); }
.pc-card-name span { font-size: var(--fs-sm); color: var(--accent); margin-left: 8px; }
.pc-card-firm { font-size: var(--fs-base); color: var(--text); margin-top: 4px; }
.pc-card-con { font-size: var(--fs-sm); color: var(--muted); margin-top: 6px; line-height: var(--lh-body); }
.pc-card-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.pc-card-tags span { font-size: var(--fs-xs); color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--r-ctl); padding: 2px 8px; }
.pc-card-bio { grid-column: 1 / -1; font-size: var(--fs-sm); line-height: var(--lh-body);
  color: var(--ink); text-align: justify; border-top: 1px dashed var(--border); padding-top: 10px; }

/* 照片三选一 */
.pc-photos { display: flex; gap: 12px; flex-wrap: wrap; }
.pc-photo { flex: 1 1 130px; max-width: 170px; border: 1px solid var(--border);
  border-radius: var(--r-box); padding: 10px; cursor: pointer; background: none; text-align: center; }
.pc-photo.on { border-color: var(--accent); background: var(--accent-soft); }
.pc-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-ctl); display: block; }
.pc-photo b { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--text); margin-top: 8px; }
.pc-photo i { display: block; font-style: normal; font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }

/* AI 一键修图 (v6.5) —— 与 photos_std 的离线归一化并存, 这里是委员点按钮实时生成的 */
.pc-ai { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--r-box);
  background: var(--accent-soft); padding: 14px 16px; }
.pc-ai-opts { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-start; }
.pc-ai-opt { min-width: 200px; }
.pc-ai-lb { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--text); margin-bottom: 8px; }
.pc-bgs { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-bg { border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--r-ctl);
  padding: 6px 12px; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.pc-bg.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.pc-check { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text); cursor: pointer; }
.pc-check input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.pc-ai-hint { font-size: var(--fs-xs); color: var(--text-3); margin-top: 6px; padding-left: 24px; }
.pc-ai-go { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-ai-tick { font-size: var(--fs-sm); color: var(--muted); }
.pc-ai-off { font-size: var(--fs-sm); color: var(--warn); margin-top: 10px; line-height: var(--lh-body); }
.pc-spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid rgb(var(--white-rgb) / .45); border-top-color: #fff;
  border-radius: var(--r-pill); animation: pc-spin .8s linear infinite; }
@keyframes pc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pc-spin { animation-duration: 2.4s; } }
.pc-ai-out { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 14px; }
.pc-ai-pair { display: flex; gap: 12px; flex-wrap: wrap; }
.pc-ai-pair figure { flex: 1 1 130px; max-width: 190px; margin: 0; }
.pc-ai-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  border-radius: var(--r-ctl); border: 1px solid var(--border); background: var(--surface-sunk); }
.pc-ai-pair figcaption { font-size: var(--fs-xs); color: var(--text-3); margin-top: 6px; text-align: center; }
.pc-ai-ph { width: 100%; aspect-ratio: 3 / 4; border: 1px dashed var(--border-strong);
  border-radius: var(--r-ctl); background: var(--surface); display: flex; align-items: center;
  justify-content: center; text-align: center; font-size: var(--fs-xs); color: var(--text-3);
  line-height: var(--lh-body); padding: 8px; }
.pc-ai-weak { margin: 0 0 12px; color: var(--warn); line-height: var(--lh-body); }
.pc-ai-base { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-ai-base .pc-ai-lb { margin-bottom: 0; }
/* v6.10 补充要求输入框 + 最近 3 版缩略图 */
.pc-ai-extra { flex: 1 1 100%; }
.pc-ai-extra .pc-ai-hint { padding-left: 0; }
.pc-ai-hist { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pc-ai-th { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px;
  padding: 0; border: none; background: none; cursor: pointer; }
.pc-ai-th img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  border: 2px solid var(--border); border-radius: var(--r-ctl); }
.pc-ai-th.on img { border-color: var(--accent); }
.pc-ai-th span { font-size: var(--fs-xs); color: var(--text-3); }
.pc-ai-th.on span { color: var(--accent); font-weight: 600; }
.pc-intro-short { margin: -8px 0 14px; color: var(--warn); line-height: var(--lh-body); }

/* 简介三来源 */
.pc-src { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.pc-src-item { border: 1px solid var(--border); border-radius: var(--r-box); padding: 12px 14px; }
.pc-src-h { display: flex; align-items: center; gap: 10px; }
.pc-src-h b { font-size: var(--fs-sm); color: var(--text); flex: 1; }
.pc-src-t { font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-body);
  margin-top: 6px; text-align: justify; white-space: pre-wrap; }
.pc-count { font-size: var(--fs-xs); color: var(--text-3); margin-top: 6px; text-align: right; }
.pc-count.ok { color: var(--success); }

.pc-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pc-firm-field { position: relative; }
.pc-sub2 { font-size: var(--fs-base); font-weight: 600; color: var(--text); margin: 18px 0 10px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pc-tag { border: 1px solid var(--border-strong); background: none; border-radius: var(--r-ctl);
  padding: 6px 12px; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.pc-tag.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pc-tag em { font-style: normal; font-size: var(--fs-xs); margin-right: 4px; opacity: .8; }
.pc-cf-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pc-cf-acts .btn { white-space: nowrap; padding: 14px 10px; }
#pcConfirmModal .pc-card { margin-top: 12px; }
.pc-acts { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0;
  border-top: 1px solid var(--border); z-index: 5; }
/* 窄屏两个按钮并排, 字距与内边距收一档, 免得"确认无误，提交"折行 */
.pc-acts .btn { white-space: nowrap; padding: 15px 12px; letter-spacing: .02em; }
.pc-row-btn { margin-top: 14px; }
.pc-btn-inline { min-height: 38px; padding: 0 18px; font-size: var(--fs-base); }


/* ============ v7.1 文件审阅 · 按章翻页阅读器 ============
   侯鹏主任 2026-09-20 提出研究成果上系统; 秘书长 2026-09-20 看过线上版后要求
   照微信读书 / Kindle 网页版改成「按章翻页 + 目录 + 记位置」的成熟阅读器。
   读者相当比例年长, 正文按长文阅读口径放大: 默认 17px/1.9, 另给大(19)/特大(21)两档,
   这三档只给 .rv-doc 的正文, 其余一律走既有七档。 */
#viewReview { --rv-read: 17px; --rv-bar-h: 56px; }

/* 列表页 */
.rv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-box);
  padding: 18px 20px; margin-bottom: 12px; }
.rv-card-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rv-card-t { font-family: var(--serif); font-size: var(--fs-md); color: var(--text); flex: 1; min-width: 0; }
.rv-st { flex: none; font-size: var(--fs-xs); font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill);
  background: rgb(var(--ink-rgb) / .07); color: var(--text-2); }
.rv-st.ok { background: rgb(var(--success-rgb) / .12); color: var(--success); }
.rv-st.draft { background: var(--accent-soft); color: var(--accent); }
.rv-card-m { font-size: var(--fs-sm); color: var(--muted); margin-top: 8px; line-height: var(--lh-body); }
.rv-card-n { font-size: var(--fs-sm); color: var(--text-2); margin-top: 8px; line-height: var(--lh-body);
  padding-left: 10px; border-left: 2px solid var(--line); }
.rv-card-closed { font-size: var(--fs-xs); color: var(--warn); margin-top: 8px; }
/* 「读到 第 n 章 · xx%」: 卡片上一条细进度条 + 文字 */
.rv-card-read { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.rv-card-read i { flex: 1; height: 4px; border-radius: var(--r-pill); background: rgb(var(--ink-rgb) / .1);
  overflow: hidden; }
.rv-card-read i b { display: block; height: 100%; background: var(--accent); }
.rv-card-read span { flex: none; font-size: var(--fs-xs); color: var(--text-2); }
.rv-card-a { margin-top: 14px; }
.rv-card-a .btn { width: 100%; }

/* ---- 阅读页 sticky 顶栏: 顶在通讯录顶栏下面, --rv-top 由 review.js 实测写入 ---- */
.rv-bar { position: sticky; top: var(--rv-top, 56px); z-index: 46;
  margin: -18px -14px 14px; padding: 8px 0 0;
  background: var(--surface);                       /* 实色兜底: X5 内核可能无 backdrop-filter */
  background: rgb(var(--white-rgb) / .9);
  -webkit-backdrop-filter: blur(var(--blur-1)); backdrop-filter: blur(var(--blur-1));
  box-shadow: 0 1px 0 var(--line);
  transition: transform .26s var(--ease); }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .rv-bar { background: var(--surface); }
}
.rv-bar-row { display: flex; align-items: center; gap: 8px; padding: 0 14px 8px; }
.rv-bar-t { flex: 1; min-width: 0; font-family: var(--serif); font-size: var(--fs-base); color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-bar-btn { flex: none; background: none; border: none; color: var(--accent); font-weight: 600;
  font-size: var(--fs-sm); padding: 8px 6px; border-radius: var(--r-ctl); min-height: 38px; }
.rv-bar-aa { font-family: var(--serif); font-size: var(--fs-md); letter-spacing: .02em; }
.rv-bar-btn.on { background: var(--accent-soft); }
.rv-bar-done { flex: none; min-height: 34px; padding: 0 12px; border: 1px solid var(--accent);
  border-radius: var(--r-ctl); background: var(--accent); color: var(--on-accent);
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.rv-bar-done.done { background: rgb(var(--success-rgb) / .12); border-color: rgb(var(--success-rgb) / .5);
  color: var(--success); }
/* 全文进度: 顶栏底边一条细线 */
.rv-prog { height: 3px; background: rgb(var(--ink-rgb) / .08); }
.rv-prog i { display: block; height: 100%; background: var(--accent); transition: width .3s var(--ease); }
/* 字号面板 */
.rv-fs { position: absolute; right: 14px; top: calc(100% + 6px); z-index: 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box);
  box-shadow: var(--sh-1); padding: 12px 14px; min-width: 210px; }
.rv-fs-t { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 8px; }
.rv-fs-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rv-fs-b { min-height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--text); font-size: var(--fs-base); }
.rv-fs-b[data-rvfs="19"] { font-size: var(--fs-md); }
.rv-fs-b[data-rvfs="21"] { font-size: var(--fs-lg); }
.rv-fs-b.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ---- 两栏: 桌面常驻目录 + 正文 ---- */
.rv-wrap { display: block; }
.rv-side { display: none; }
.rv-main { min-width: 0; padding-bottom: 104px; }

.rv-head { margin-bottom: 14px; }
.rv-head-m { font-size: var(--fs-sm); color: var(--muted); }
.rv-head-n { font-size: var(--fs-sm); color: var(--text-2); line-height: var(--lh-body); margin-top: 8px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-box); }
.rv-head-tip { font-size: var(--fs-sm); color: var(--text-2); margin-top: 8px; line-height: var(--lh-body); }
.rv-head-tip b { color: var(--accent); font-size: var(--fs-md); }
.rv-head-c { font-size: var(--fs-xs); color: var(--text-3); margin-top: 6px; }

/* 章头 */
.rv-ch-n { font-size: var(--fs-xs); color: var(--text-3); letter-spacing: .1em; margin-top: 16px; }
.rv-ch-t { font-family: var(--serif); font-size: var(--fs-xl); color: var(--text);
  margin: 6px 0 10px; line-height: var(--lh-tight); }
.rv-ch-t:focus { outline: none; }
.rv-ch-t[hidden] + .rv-doc { margin-top: 6px; }

/* ---- 正文 ---- */
.rv-doc { font-size: var(--rv-read); line-height: 1.9; color: var(--text); max-width: 44em; }
.rv-blk { position: relative; scroll-margin-top: calc(var(--rv-top, 56px) + 72px); }
.rv-ch-n, .rv-ch-t { scroll-margin-top: calc(var(--rv-top, 56px) + 24px); }
.rv-txt { margin: .5em 0; text-align: justify; font-weight: 400; }
.rv-txt.rv-h1, .rv-txt.rv-h2, .rv-txt.rv-h3 { font-family: var(--serif); font-weight: 700;
  text-align: left; color: var(--text); }
.rv-txt.rv-h1 { font-size: var(--fs-xl); margin: .2em 0 .5em; line-height: var(--lh-tight); }
.rv-txt.rv-h2 { font-size: var(--fs-lg); margin: 1.3em 0 .4em; }
.rv-txt.rv-h3 { font-size: var(--fs-md); margin: 1.1em 0 .3em; }
.rv-txt.rv-li { margin-left: 1.4em; list-style: disc; display: list-item; }
.rv-num { margin-right: .2em; }
/* 脚注/引用标记: 秘书长 2026-09-20「数字太不明显」→ 改成 accent 实心圆徽标,
   ::after 把触控区撑到 26px, 视觉仍只有 18px。 */
.rv-doc sup { font-size: var(--fs-xs); color: var(--accent); vertical-align: super; line-height: 0; }
.rv-doc sup.rv-fn { display: inline-flex; align-items: center; justify-content: center; position: relative;
  min-width: 18px; height: 18px; padding: 0 4px; margin: 0 2px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent); font-family: var(--sans);
  font-size: 11px; font-weight: 600; line-height: 1; vertical-align: .12em;
  cursor: pointer; -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent; }
.rv-doc sup.rv-fn::after { content: ""; position: absolute; inset: -4px; border-radius: var(--r-pill); }
.rv-doc sup.rv-fn:hover, .rv-doc sup.rv-fn.on { background: var(--accent-ink); }
.rv-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .8em 0; }
.rv-table { border-collapse: collapse; min-width: 100%; font-size: var(--fs-base); line-height: var(--lh-body); }
.rv-table th, .rv-table td { border: 1px solid var(--line); padding: 7px 10px; text-align: left;
  vertical-align: top; white-space: nowrap; }
.rv-table th { background: rgb(var(--ink-rgb) / .05); font-weight: 600; }

/* 章末「本章注释」 */
.rv-chfn { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }
.rv-chfn-t { font-family: var(--serif); font-size: var(--fs-md); color: var(--text); margin-bottom: 10px; }
.rv-chfn-l { list-style: none; }
.rv-chfn-i { display: flex; gap: 8px; margin-bottom: 10px; font-size: var(--fs-sm);
  line-height: var(--lh-body); color: var(--text-2); }
.rv-chfn-n { flex: none; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill);
  border: 1px solid var(--accent); background: none; color: var(--accent);
  font-size: 11px; font-weight: 600; line-height: 1; }
.rv-chfn-x { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }

/* 章末翻页 (微信读书: 滚到底就是下一章) */
.rv-endnav { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 26px; }
.rv-endnav .btn { width: 100%; min-height: 50px; }
.rv-endnav-2 { grid-template-columns: 1fr 1fr; }
.rv-foot { font-size: var(--fs-sm); color: var(--faint); text-align: center; margin: 24px 0 10px; }

/* 段末「＋」气泡: 触控区 22px 起 */
.rv-bub { display: inline-block; width: 22px; height: 22px; line-height: 20px; margin-left: 6px;
  text-align: center; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  color: var(--text-3); font-size: var(--fs-xs); vertical-align: middle; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  font-family: var(--sans); }
.rv-bub:hover { border-color: var(--accent); color: var(--accent); }
.rv-bub.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }

/* 高亮: 只分「本人 / 他人」两色, 不按人分色 */
mark.rv-mk { background: rgb(var(--gold-300-rgb) / .62); color: inherit; padding: 0 1px;
  box-shadow: inset 0 -2px 0 rgb(var(--gold-600-rgb) / .5); }
mark.rv-mk.me { background: rgb(var(--accent-rgb) / .16); box-shadow: inset 0 -2px 0 rgb(var(--accent-rgb) / .55); }

/* 批注卡片 */
.rv-notes:empty { display: none; }
.rv-note { border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: var(--r-box);
  padding: 10px 12px; margin: 8px 0; font-size: var(--fs-base); line-height: var(--lh-body);
  background: rgb(var(--ink-rgb) / .025); }
.rv-note.me { border-left-color: var(--accent); background: rgb(var(--accent-rgb) / .05); }
.rv-note-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rv-note-h b { font-size: var(--fs-base); color: var(--text); }
.rv-note-k { font-size: var(--fs-xs); font-weight: 600; padding: 1px 8px; border-radius: var(--r-ctl);
  background: var(--accent-soft); color: var(--accent); }
.rv-note-k.sug { background: rgb(var(--success-rgb) / .12); color: var(--success); }
.rv-note-t { font-style: normal; font-size: var(--fs-xs); color: var(--text-3); margin-left: auto; }
.rv-note-q { font-size: var(--fs-sm); color: var(--text-3); margin-top: 4px; }
.rv-note-b { margin-top: 4px; color: var(--text); white-space: pre-wrap; }
.rv-sug { margin-top: 6px; font-size: var(--fs-base); }
.rv-sug-o { color: var(--text-3); text-decoration: line-through; }
.rv-sug-arrow { color: var(--text-3); margin: 0 6px; }
.rv-sug-n { color: var(--success); font-weight: 600; }
.rv-note-s { margin-top: 6px; font-size: var(--fs-sm); color: var(--warn); }
.rv-note-s.ok { color: var(--success); }
.rv-reply { margin: 8px 0 0 12px; padding-left: 10px; border-left: 2px solid var(--line); font-size: var(--fs-sm); }
.rv-reply-h { display: flex; align-items: baseline; gap: 8px; }
.rv-reply b { color: var(--text); }
.rv-note-a { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.rv-act { background: none; border: none; color: var(--accent); font-size: var(--fs-sm); font-weight: 600;
  padding: 6px 8px; border-radius: var(--r-ctl); min-height: 32px; }
.rv-act:hover { background: rgb(var(--accent-rgb) / .08); }
.rv-act.warn { color: var(--error); }

/* ---- 选中文字后的小工具条 ---- */
.rv-selbar { position: absolute; z-index: 60; display: flex; gap: 2px; padding: 3px;
  background: var(--deep); border-radius: var(--r-box); box-shadow: var(--sh-1); }
.rv-selbar-b { background: none; border: none; color: var(--on-deep); font-size: var(--fs-base);
  font-weight: 600; padding: 0 13px; min-height: 38px; border-radius: var(--r-ctl); white-space: nowrap; }
.rv-selbar-b:hover { background: rgb(var(--white-rgb) / .14); }

/* ---- 底部输入面板 ---- */
.rv-pane { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--sh-2);
  padding: 12px clamp(14px, 4vw, 20px) calc(12px + env(safe-area-inset-bottom));
  max-height: 72dvh; overflow-y: auto; }
.rv-pane-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rv-pane-target { flex: 1; min-width: 0; font-size: var(--fs-sm); color: var(--text-2);
  max-height: 3em; overflow: hidden; line-height: var(--lh-body); }
.rv-kinds { display: flex; gap: 7px; margin-bottom: 10px; }
.rv-sug-wrap { margin-bottom: 10px; }
.rv-sug-wrap .label { display: block; margin-bottom: 6px; }
.rv-ta { width: 100%; min-height: 84px; resize: vertical; line-height: 1.7; font-size: var(--fs-md); }
.rv-pane-a { margin-top: 10px; }
.rv-pane-a .btn { width: 100%; min-height: 46px; }

/* ---- 脚注浮层: 桌面小气泡 / 手机底部面板 ---- */
.rv-fnpop { position: absolute; z-index: 70; max-width: min(360px, 88vw);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-box);
  box-shadow: var(--sh-1); padding: 10px 12px;
  font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--text-2);
  overflow-wrap: anywhere; word-break: break-word; }
.rv-fnpop b { color: var(--accent); }
.rv-fnsheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 112;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--sh-2);
  padding: 12px clamp(14px, 4vw, 20px) calc(16px + env(safe-area-inset-bottom));
  max-height: 56dvh; overflow-y: auto; }
.rv-fnsheet-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rv-fnsheet-h b { flex: 1; min-width: 0; font-size: var(--fs-base); color: var(--accent); }
.rv-fnsheet-b { font-size: var(--fs-base); line-height: var(--lh-body); color: var(--text);
  overflow-wrap: anywhere; word-break: break-word; }

/* ---- 目录: 抽屉(手机) 与常驻栏(桌面) 共用 .rv-toc ---- */
.rv-drawer { position: fixed; inset: 0; z-index: 115; }
.rv-drawer-mask { position: absolute; inset: 0; background: rgb(var(--navy-950-rgb) / .45);
  -webkit-backdrop-filter: blur(var(--blur-1)); backdrop-filter: blur(var(--blur-1)); }
.rv-drawer-p { position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 340px);
  background: var(--surface); box-shadow: var(--sh-2); overflow-y: auto;
  padding: 18px 14px calc(24px + env(safe-area-inset-bottom)); }
.rv-side-t { font-family: var(--serif); font-size: var(--fs-md); color: var(--text); }
.rv-side-p { font-size: var(--fs-xs); color: var(--text-2); margin: 4px 0 10px; }
.rv-toc-i { display: flex; align-items: flex-start; gap: 7px; width: 100%; text-align: left;
  background: none; border: none; font-size: var(--fs-base); color: var(--text);
  padding: 9px 8px; border-radius: var(--r-ctl); line-height: var(--lh-body); min-height: 42px; }
.rv-toc-i:hover { background: var(--accent-soft); color: var(--accent); }
.rv-toc-i.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rv-toc-dot { flex: none; width: 7px; height: 7px; border-radius: var(--r-pill);
  background: var(--line-2); opacity: .3; margin-top: .62em; }
.rv-toc-i.read .rv-toc-dot { background: var(--success); opacity: 1; }
.rv-toc-x { flex: 1; min-width: 0; }
.rv-toc-c { flex: none; font-size: var(--fs-xs); color: var(--text-3); margin-top: .25em; }
.rv-toc-i.on .rv-toc-c { color: var(--accent); }
.rv-toc-h2 { padding-left: 22px; color: var(--text-2); font-size: var(--fs-sm); min-height: 36px; }
.rv-toc-h2.on { color: var(--accent); }

/* ---- 底部翻页栏 (手机) ---- */
.rv-page { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px;
  padding: 8px clamp(10px, 3vw, 16px) calc(8px + env(safe-area-inset-bottom));
  background: var(--surface);
  background: rgb(var(--white-rgb) / .9);
  -webkit-backdrop-filter: blur(var(--blur-1)); backdrop-filter: blur(var(--blur-1));
  box-shadow: 0 -1px 0 var(--line);
  transition: transform .26s var(--ease); }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .rv-page { background: var(--surface); }
}
.rv-page-b { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2);
  border-radius: var(--r-ctl); background: var(--surface); color: var(--text);
  font-size: var(--fs-base); font-weight: 600; white-space: nowrap; }
.rv-page-b[disabled] { color: var(--text-3); border-color: var(--line); }
.rv-page-c { min-width: 0; min-height: 44px; background: none; border: none; padding: 0 4px;
  font-size: var(--fs-sm); color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- 沉浸阅读: 手机端下滚收起两条栏 ---- */
#rvRead.rv-imm .rv-bar { transform: translateY(calc(-100% - var(--rv-top, 56px) - 4px)); }
#rvRead.rv-imm .rv-page { transform: translateY(110%); }

/* ---- 桌面右下竖排工具 ---- */
.rv-tools { position: fixed; right: 18px; bottom: 28px; z-index: 44;
  display: none; flex-direction: column; gap: 4px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box);
  box-shadow: var(--sh-1); }
.rv-tool { width: 60px; min-height: 42px; background: none; border: none; border-radius: var(--r-ctl);
  font-size: var(--fs-sm); color: var(--text-2); }
.rv-tool:hover { background: var(--accent-soft); color: var(--accent); }
.rv-tool[disabled] { color: var(--text-3); opacity: .5; }

/* ---- 桌面正文两侧留白点击翻页 (Kindle tap sides) ---- */
.rv-tap { position: fixed; top: 0; bottom: 0; z-index: 12; display: none;
  align-items: center; justify-content: center; border: none; background: none;
  width: min(15vw, calc((100vw - 980px) / 2));
  color: transparent; font-size: var(--fs-2xl); transition: background .2s, color .2s; }
.rv-tap-l { left: 0; }
.rv-tap-r { right: 0; }
.rv-tap:hover { background: rgb(var(--ink-rgb) / .035); color: var(--text-3); }
.rv-tap[disabled]:hover { background: none; color: transparent; cursor: default; }

/* 「我已审阅完毕」确认 */
.rv-check { display: flex; align-items: flex-start; gap: 9px; font-size: var(--fs-base); color: var(--text);
  margin: 12px 0; line-height: var(--lh-body); }
.rv-check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.rv-modal-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.rv-modal-acts .btn { white-space: nowrap; padding: 14px 10px; }

@media (max-width: 420px) {
  .rv-bar-row { gap: 4px; }
  .rv-bar-btn { padding: 8px 4px; font-size: var(--fs-xs); }
  .rv-bar-done { padding: 0 9px; font-size: var(--fs-xs); }
  .rv-bar-t { font-size: var(--fs-sm); }
  .rv-page-b { padding: 0 10px; font-size: var(--fs-sm); }
}
@media (min-width: 900px) {
  .rv-wrap { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 26px; align-items: start; }
  #rvRead.rv-no-side .rv-wrap { grid-template-columns: minmax(0, 1fr); }
  .rv-side { display: block; }
  #rvRead.rv-no-side .rv-side { display: none; }
  .rv-side-in { position: sticky; top: calc(var(--rv-top, 56px) + 78px);
    max-height: calc(100dvh - var(--rv-top, 56px) - 110px); overflow-y: auto;
    padding-right: 4px; border-right: 1px solid var(--line); }
  .rv-main { padding-bottom: 32px; }
  .rv-page { display: none; }
  .rv-tools { display: flex; }
  .rv-endnav-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .rv-tap { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-bar, .rv-page, .rv-prog i { transition: none; }
}
