/* ==========================================================
   FinBenchAudit — 视觉系统
   暖象牙底色 · 墨色文字 · 陶土色点缀 · 克制的红绿信号色
   ========================================================== */

:root {
  --bg: #faf9f5;
  --bg-sunk: #f3f1ea;
  --surface: #ffffff;
  --surface-2: #f6f4ee;
  --ink: #1f1e1d;
  --ink-2: #3d3b37;
  --muted: #73706a;
  --faint: #a19e96;
  --line: #e9e6dd;
  --line-strong: #dad6ca;

  --accent: #c15f3c;
  --accent-ink: #a14d2f;
  --accent-soft: #f7ebe4;

  --red: #a93a2b;
  --red-soft: #f8ebe7;
  --red-line: #ecc9c0;
  --green: #2e6a4e;
  --green-soft: #e8f1eb;
  --green-line: #c2dbcb;
  --amber: #8f6417;
  --amber-soft: #f6efdf;

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(31, 30, 29, 0.04);
  --shadow-md: 0 1px 2px rgba(31, 30, 29, 0.04), 0 6px 24px rgba(31, 30, 29, 0.05);
  --shadow-lg: 0 24px 64px rgba(31, 30, 29, 0.14), 0 2px 8px rgba(31, 30, 29, 0.06);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", "PingFang SC", "Microsoft YaHei", serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Consolas, "Microsoft YaHei", monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --d-fast: 120ms;
  --d-base: 200ms;
  --d-slow: 320ms;
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px rgba(193, 95, 60, 0.5);
  --shadow-pop: 0 0 0 1px rgba(31, 30, 29, 0.06), 0 12px 32px -4px rgba(31, 30, 29, 0.14), 0 4px 10px -2px rgba(31, 30, 29, 0.06);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
  scrollbar-color: var(--line-strong) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--faint); }

button, summary, .seg, .nav-btn { -webkit-tap-highlight-color: transparent; }
button { user-select: none; -webkit-user-select: none; }
:focus-visible { outline: none; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-soft); color: var(--ink); }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; }
p { margin: 0; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section { padding-top: 72px; }
.tab-panel { display: none; padding-bottom: 96px; }
.tab-panel.active { display: block; animation: fadeUp 0.5s var(--ease) both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { color: var(--faint); font-size: 13px; }
.center { text-align: center; }
.hidden { display: none !important; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 13px; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 245, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); justify-self: start; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: #fffaf6;
  display: grid; place-items: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: var(--font-serif); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }

.nav-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-sunk);
  border-radius: 999px;
}
.nav-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color var(--d-base), background-color var(--d-base), box-shadow var(--d-base), transform var(--d-fast) var(--ease-out);
}
.nav-btn:hover { color: var(--ink); }
.nav-btn:active, .seg:active { transform: scale(0.96); }
.nav-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }

.auth-area { justify-self: end; display: flex; align-items: center; gap: 8px; }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink);
  transition: border-color var(--d-fast), background-color var(--d-fast), box-shadow var(--d-base), transform var(--d-fast) var(--ease-out);
}
.user-chip:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.user-chip:active { transform: scale(0.98); }
.user-chip.is-open { border-color: var(--line-strong); background: var(--surface-2); }
.user-chip:focus-visible { box-shadow: var(--ring); }
.chip-chev { display: inline-flex; color: var(--faint); margin-left: -2px; transition: transform var(--d-base) var(--ease-out); }
.user-chip.is-open .chip-chev { transform: rotate(180deg); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
}
.pts { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition:
    background-color var(--d-fast) ease,
    border-color var(--d-fast) ease,
    color var(--d-fast) ease,
    box-shadow var(--d-base) ease,
    transform var(--d-fast) var(--ease-out),
    opacity var(--d-fast);
}
.btn:active:not(:disabled) { transform: scale(0.97); transition-duration: 60ms; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.is-busy { opacity: 1; cursor: progress; color: transparent !important; }
.btn.is-busy::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 1.8px solid rgba(250, 249, 245, 0.3);
  border-top-color: #faf9f5;
  animation: spin 0.7s linear infinite;
}
.btn-secondary.is-busy::after, .btn-ghost.is-busy::after, .btn-vote.is-busy::after { border-color: rgba(31, 30, 29, 0.15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:focus-visible, .nav-btn:focus-visible, .seg:focus-visible, .icon-close:focus-visible,
.chart-row:focus-visible, .menu-item:focus-visible, summary:focus-visible { box-shadow: var(--ring); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: var(--r-xs); }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--ink);
  color: #faf9f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(31, 30, 29, 0.2);
}
.btn-primary:hover:not(:disabled) { background: #33312e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 6px rgba(31, 30, 29, 0.18); }
.btn-primary:active:not(:disabled) { background: #141312; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25); }
.btn-primary:focus-visible { box-shadow: var(--ring), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(31, 30, 29, 0.05); }
.btn-secondary:hover:not(:disabled) { background: #fdfcfa; border-color: #cbc6b8; box-shadow: 0 1px 3px rgba(31, 30, 29, 0.08); }
.btn-secondary:active:not(:disabled) { background: var(--surface-2); box-shadow: inset 0 1px 2px rgba(31, 30, 29, 0.06); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: rgba(31, 30, 29, 0.05); color: var(--ink); }
.btn-ghost:active:not(:disabled) { background: rgba(31, 30, 29, 0.08); }
.btn-ghost.is-done { color: var(--green); }
.btn svg { flex-shrink: 0; }
.btn-accent { background: var(--accent); color: #fffaf6; }
.btn-accent:hover { background: var(--accent-ink); }

.icon-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; background: transparent; color: var(--muted);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--d-fast), color var(--d-fast), transform var(--d-fast) var(--ease-out);
}
.icon-close:hover { background: rgba(31, 30, 29, 0.05); color: var(--ink); }
.icon-close:active { transform: scale(0.92); background: rgba(31, 30, 29, 0.08); }

/* 分段控件 */
.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-sunk);
  border-radius: var(--r-sm);
  gap: 2px;
}
.seg {
  border: 0; background: transparent;
  font: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--muted);
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color var(--d-base), transform var(--d-fast) var(--ease-out);
}
.seg:hover { color: var(--ink); }
.seg.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.segmented-full { display: flex; }
.segmented-full .seg { flex: 1; }

/* 滑动指示块 */
.has-slider { position: relative; isolation: isolate; }
.has-slider > .active { background: transparent !important; box-shadow: none !important; }
.slider-thumb {
  position: absolute; top: 0; left: 0;
  z-index: 0;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(31, 30, 29, 0.08), 0 0 0 1px rgba(31, 30, 29, 0.06);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--d-slow) var(--ease-out), width var(--d-slow) var(--ease-out), height var(--d-slow) var(--ease-out), opacity var(--d-base);
}
.nav-tabs .slider-thumb { border-radius: 999px; }

/* ---------------- 通用卡片与标签 ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.tag-plain { background: transparent; border: 0; padding: 0; color: var(--muted); height: auto; }
.tag-red { color: var(--red); background: var(--red-soft); border-color: var(--red-line); }
.tag-green { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
.tag-amber { color: var(--amber); background: var(--amber-soft); border-color: #e9dcbc; }
.tag-accent { color: var(--accent-ink); background: var(--accent-soft); border-color: #ecd3c6; }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-critical { background: var(--red); }
.dot-high { background: #c98a2b; }
.dot-medium { background: var(--faint); }

.sep { color: var(--line-strong); margin: 0 2px; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 88px 0 24px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
  text-wrap: balance;
}

.hero-desc {
  margin-top: 22px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 520px;
}

.hero-actions { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-stats dt { font-size: 13px; color: var(--muted); }
.hero-stats dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}

.hero-figure { margin: 0; padding: 28px 28px 22px; }
.hero-figure figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.figure-title { font-weight: 600; font-size: 14.5px; }
.figure-note { font-size: 12px; color: var(--faint); }
.figure-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.6; }

.hero-chart { display: flex; flex-direction: column; gap: 4px; }
.chart-group-label { font-size: 12px; color: var(--faint); margin: 10px 0 4px; letter-spacing: 0.02em; }
.chart-group-label:first-child { margin-top: 0; }
.chart-row {
  display: grid;
  grid-template-columns: 132px 1fr 52px;
  align-items: center;
  gap: 14px;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.chart-row:hover { background: var(--surface-2); }
.chart-row:active { background: var(--bg-sunk); }
.chart-name { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-track { position: relative; height: 8px; }
.chart-track::before { content: ""; position: absolute; inset: 3px 0; background: var(--bg-sunk); border-radius: 2px; }
.chart-ci { position: absolute; top: 3.5px; height: 1px; background: var(--ink-2); opacity: 0.45; }
.chart-ci::before, .chart-ci::after { content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: inherit; }
.chart-ci::before { left: 0; }
.chart-ci::after { right: 0; }
.chart-bar {
  position: absolute; left: 0; top: 0; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: left;
  animation: grow 0.9s var(--ease) both;
}
.chart-bar.is-meta { background: #c9a796; }
.chart-val { text-align: right; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------------- 区块标题 ---------------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2, .inquiry-layout h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.section-head p { margin-top: 6px; }

/* ---------------- 基准列表 ---------------- */
.bench-grid { display: flex; flex-direction: column; gap: 36px; }
.bench-group-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 0 4px 10px;
}
.bench-group-head .muted { font-weight: 400; }
.bench-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.bench-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 150px 120px;
  gap: 36px;
  align-items: center;
  padding: 26px 28px;
  cursor: pointer;
  transition: background 0.15s;
}
.bench-row + .bench-row { border-top: 1px solid var(--line); }
.bench-row:hover { background: #fdfcf9; }
.bench-row:active, .case-row:active { background: var(--surface-2); transition-duration: 60ms; }

.bench-name { font-family: var(--font-serif); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.bench-venue { font-size: 13px; color: var(--muted); margin-top: 3px; }
.bench-meta { font-size: 12px; color: var(--faint); margin-top: 10px; display: flex; gap: 4px; flex-wrap: wrap; }

.bench-headline { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.bench-scope { font-size: 12.5px; color: var(--faint); margin-top: 8px; }

.bench-rate { text-align: right; }
.bench-rate-num { font-family: var(--font-serif); font-size: 30px; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; }
.bench-rate-num small { font-size: 0.55em; margin-left: 1px; color: var(--muted); font-weight: 500; }
.rate-critical .bench-rate-num { color: var(--red); }
.bench-bar { height: 3px; background: var(--bg-sunk); border-radius: 2px; margin: 10px 0 8px; overflow: hidden; }
.bench-bar span { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.rate-medium .bench-bar span, .rate-high .bench-bar span { background: #c9a796; }
.bench-ci { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.bench-go { text-align: right; font-size: 13.5px; }
.link-arrow { color: var(--ink); font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.link-arrow svg { transition: transform 0.2s var(--ease); }
.bench-row:hover .link-arrow svg { transform: translateX(3px); }

/* 方法 */
.method-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.method-item { padding: 32px 32px 0 0; }
.method-item + .method-item { padding-left: 32px; border-left: 1px solid var(--line); }
.method-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); margin-bottom: 14px; }
.method-item h3 { font-size: 16px; margin-bottom: 8px; }
.method-item p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ---------------- 案例库 ---------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.filter-bar .search-field { flex: 2 1 260px; }
.filter-bar .select { flex: 1 1 150px; width: auto; }

.input, .select, .textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0 12px;
  height: 40px;
  transition: border-color var(--d-fast), box-shadow var(--d-base), background-color var(--d-fast);
  outline: none;
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.65; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(193, 95, 60, 0.14); }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2373706a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.search-field { position: relative; }
.search-field svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-field .input { padding-left: 36px; }

/* 自绘下拉 */
.dd { position: relative; min-width: 0; }
.filter-bar .dd { flex: 1 1 150px; }
.dd-native { position: absolute !important; inset: auto auto 0 0; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.dd-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-align: left;
  cursor: pointer;
}
.dd-trigger:active { background: var(--surface-2); }
.dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-trigger.is-default .dd-label { color: var(--muted); }
.dd-trigger svg { color: var(--muted); flex-shrink: 0; transition: transform var(--d-base) var(--ease-out); }
.dd-trigger.is-open { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(193, 95, 60, 0.14); }
.dd-trigger.is-open svg { transform: rotate(180deg); }

/* 弹出菜单 */
.menu {
  position: fixed;
  z-index: 300;
  max-height: min(340px, calc(100vh - 32px));
  max-width: min(420px, calc(100vw - 16px));
  overflow-y: auto;
  padding: 5px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  animation: menuIn 180ms var(--ease-out) both;
}
.menu.from-above { animation-name: menuInUp; }
.menu.is-closing { animation: menuOut 120ms var(--ease-in) both; pointer-events: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes menuInUp { from { opacity: 0; transform: translateY(4px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes menuOut { to { opacity: 0; transform: scale(0.98); } }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 0; border-radius: 7px;
  background: transparent;
  font: inherit; font-size: 14px; text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 80ms;
}
.menu-item:hover, .menu-item:focus-visible { background: rgba(31, 30, 29, 0.055); box-shadow: none; }
.menu-item:active { background: rgba(31, 30, 29, 0.09); }
.menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-icon { display: inline-flex; color: var(--muted); }
.menu-check { display: inline-flex; color: var(--accent); margin-left: 8px; }
.menu-item.is-selected { font-weight: 500; }
.menu-item.is-danger, .menu-item.is-danger .menu-icon { color: var(--red); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 6px; }
.menu-header { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.menu-name { font-weight: 600; font-size: 14px; }
.menu-sub { font-size: 12.5px; color: var(--muted); }

/* 提示气泡 */
.tip {
  position: fixed; z-index: 400;
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 300px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #2b2a27;
  color: #f3f0e8;
  font-size: 12px; line-height: 1.45;
  box-shadow: 0 4px 14px rgba(31, 30, 29, 0.18);
  pointer-events: none;
  animation: tipIn 140ms var(--ease-out) both;
}
.tip kbd { font: 500 10.5px var(--font-mono); color: #c9c4b8; background: rgba(255, 255, 255, 0.1); border-radius: 4px; padding: 1px 5px; }
@keyframes tipIn { from { opacity: 0; transform: translateY(3px) scale(0.98); } to { opacity: 1; transform: none; } }

.result-meta { font-size: 13px; color: var(--muted); margin: 0 0 12px; min-height: 20px; font-variant-numeric: tabular-nums; }

.cases-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.case-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  padding: 22px 26px;
  cursor: pointer;
  transition: background 0.15s;
}
.case-row + .case-row { border-top: 1px solid var(--line); }
.case-row:hover { background: #fdfcf9; }
.case-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.case-meta .bm { color: var(--ink-2); font-weight: 500; }
.case-meta .mono { font-size: 12px; }
.case-title { font-size: 16px; font-weight: 600; line-height: 1.5; margin: 8px 0 6px; letter-spacing: -0.003em; }
.case-summary {
  font-size: 14px; color: var(--muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.case-foot { margin-top: 12px; font-size: 12.5px; color: var(--faint); display: flex; gap: 14px; font-variant-numeric: tabular-nums; }

.answer-pair { display: flex; flex-direction: column; gap: 8px; align-self: center; }
.answer {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
}
.answer-k { color: var(--faint); font-size: 12px; }
.answer-v {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  word-break: break-word;
}
.answer-wrong .answer-v { color: var(--red); text-decoration: line-through; text-decoration-color: rgba(169, 58, 43, 0.35); }
.answer-right .answer-v { color: var(--green); }

.empty-state { padding: 64px 24px; text-align: center; color: var(--muted); }
.empty-state h3 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }

.pagination-bar { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 24px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pagination-bar:empty { display: none; }

/* 骨架屏 */
.skeleton { padding: 22px 26px; }
.skeleton + .skeleton { border-top: 1px solid var(--line); }
.sk-line { height: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--bg-sunk), #f9f7f2, var(--bg-sunk)); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin: 8px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------- 贡献者 ---------------- */
.lb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted);
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: transparent; white-space: nowrap;
}
.data-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.col-rank { width: 64px; }
.rank { font-family: var(--font-serif); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-1 { color: var(--accent-ink); }
.lb-user { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.lb-bio { color: var(--muted); font-size: 13.5px; }

.policy-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.75;
}
.policy-card h3 { font-size: 15px; margin-bottom: 12px; }
.policy-card h4 { font-size: 13px; color: var(--muted); font-weight: 500; margin: 22px 0 8px; }
.policy-card p + p { margin-top: 10px; }
.rule-list { margin: 0; }
.rule-list div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-strong); }
.rule-list div:last-child { border-bottom: 0; }
.rule-list dt { color: var(--ink-2); }
.rule-list dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink); }

/* ---------------- 机构评测 ---------------- */
.private-band {
  background: #22211f;
  color: #ece9e1;
  margin-top: 0;
  padding: 88px 0 80px;
  position: relative;
  overflow: hidden;
}
.private-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 320px at 85% 0%, rgba(193, 95, 60, 0.18), transparent 70%);
  pointer-events: none;
}
.private-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; }
.eyebrow-light { color: #e3a284; }
.private-copy h2 { font-family: var(--font-serif); color: #f5f2ea; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.3; letter-spacing: -0.01em; }
.private-copy p { margin-top: 20px; color: #b9b5ab; font-size: 15.5px; line-height: 1.85; }
.private-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.pf-item { display: flex; gap: 14px; padding: 24px 24px 24px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.pf-item:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.pf-num { font-family: var(--font-mono); font-size: 12px; color: #e3a284; padding-top: 3px; }
.pf-item h3 { color: #f5f2ea; font-size: 15px; margin-bottom: 6px; }
.pf-item p { color: #a9a59b; font-size: 13.5px; line-height: 1.75; }

.inquiry-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.inquiry-layout > div p { margin-top: 10px; line-height: 1.8; }
.inquiry-form { padding: 28px; }

/* ---------------- 表单 ---------------- */
.stack-form { display: flex; flex-direction: column; gap: 16px; }
.stack-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.stack-form label > span { display: flex; align-items: baseline; gap: 6px; }
.opt { font-style: normal; font-weight: 400; color: var(--faint); font-size: 12px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-foot { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 4px; }
.form-foot .form-feedback { flex: 1; }
.form-feedback { font-size: 13px; min-height: 0; }
.form-feedback:empty { display: none; }
.feedback-err { color: var(--red); }
.feedback-ok { color: var(--green); }

/* ---------------- 页脚 ---------------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-serif); font-weight: 600; font-size: 15px; }

/* ---------------- 弹窗 ---------------- */
.modal, .drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(31, 30, 29, 0.26);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  animation: fadeIn var(--d-base) var(--ease-out) both;
}
.modal.is-closing, .drawer.is-closing { animation: fadeOut 170ms var(--ease-in) both; pointer-events: none; }
@keyframes fadeOut { to { opacity: 0; } }
.modal { display: grid; place-items: center; padding: 24px; overflow-y: auto; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-dialog {
  width: 100%;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: 0 0 0 1px rgba(31, 30, 29, 0.05), 0 24px 64px -8px rgba(31, 30, 29, 0.22), 0 4px 12px rgba(31, 30, 29, 0.06);
  animation: dialogIn 280ms var(--ease-out) both;
  max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
}
@keyframes dialogIn { from { opacity: 0; transform: translateY(6px) scale(0.965); } to { opacity: 1; transform: none; } }
.modal.is-closing .modal-dialog { animation: dialogOut 160ms var(--ease-in) both; }
@keyframes dialogOut { to { opacity: 0; transform: translateY(2px) scale(0.975); } }
.modal-sm { max-width: 400px; }
.modal-md { max-width: 640px; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 24px 4px 28px; }
.modal-header h3 { font-family: var(--font-serif); font-size: 21px; letter-spacing: -0.01em; }
.modal-header p { margin-top: 4px; }
.modal-body { padding: 18px 28px 28px; overflow-y: auto; }
.auth-switch { margin-bottom: 20px; }
.oauth-btns { display: grid; gap: 10px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; text-decoration: none; }
.oauth-btn svg { flex: none; }
.oauth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--faint); font-size: 12px; }
.oauth-or::before, .oauth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 抽屉 */
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(880px, 100%);
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(31, 30, 29, 0.06), -24px 0 64px -16px rgba(31, 30, 29, 0.22);
  display: flex; flex-direction: column;
  outline: none;
  animation: drawerIn 420ms var(--ease-out) both;
}
@keyframes drawerIn { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer.is-closing .drawer-panel { animation: drawerOut 210ms var(--ease-in) both; }
@keyframes drawerOut { to { transform: translateX(32px); opacity: 0; } }
.case-main > * { animation: fadeUp 460ms var(--ease-out) both; }
.case-main > *:nth-child(1) { animation-delay: 60ms; }
.case-main > *:nth-child(2) { animation-delay: 100ms; }
.case-main > *:nth-child(3) { animation-delay: 140ms; }
.case-main > *:nth-child(n+4) { animation-delay: 180ms; }
.drawer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px 14px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(10px);
}
.drawer-body { overflow-y: auto; padding: 36px 40px 64px; flex: 1; }
.modal-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.case-header h2 { font-family: var(--font-serif); font-size: 26px; line-height: 1.4; letter-spacing: -0.01em; }
.case-header .muted { margin-top: 10px; }

.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.diff-box { border-radius: var(--r-md); padding: 16px 18px; border: 1px solid; }
.diff-wrong { background: var(--red-soft); border-color: var(--red-line); }
.diff-right { background: var(--green-soft); border-color: var(--green-line); }
.diff-label { font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.diff-wrong .diff-label { color: var(--red); }
.diff-right .diff-label { color: var(--green); }
.diff-val { font-family: var(--font-mono); font-size: 14px; line-height: 1.6; word-break: break-word; color: var(--ink); }

.detail-section { margin-top: 36px; }
.detail-section > h4, .section-row-head h4 {
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.detail-section > h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-row-head h4 { margin: 0; }
.detail-section .hint { margin: -4px 0 12px; }

.prose { font-size: 15px; line-height: 1.85; color: var(--ink-2); white-space: pre-wrap; }
.prose strong { color: var(--ink); }

/* 清洗历程 */
.lineage-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.lineage-step { position: relative; padding: 0 0 22px 28px; }
.lineage-step:last-child { padding-bottom: 0; }
.lineage-step::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: -2px; width: 1px; background: var(--line-strong); }
.lineage-step:last-child::before { display: none; }
.lineage-step::after {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--faint);
}
.lineage-step.tone-error::after { border-color: var(--red); }
.lineage-step.tone-warn::after { border-color: #c98a2b; }
.lineage-step.tone-ok::after { border-color: var(--faint); }
.lineage-step.tone-verified::after { border-color: var(--green); background: var(--green); }
.lineage-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lineage-stage { font-size: 14px; font-weight: 600; }
.lineage-content { margin-top: 4px; font-size: 14px; color: var(--ink-2); line-height: 1.75; }

/* 核验步骤 */
.walkthrough-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.step-card { transition: border-color var(--d-fast), box-shadow var(--d-base), transform var(--d-fast) var(--ease-out); }
.step-card:hover { border-color: var(--line-strong); box-shadow: 0 2px 8px rgba(31, 30, 29, 0.05); }
.step-card:active { transform: scale(0.99); }
.step-card.active-step { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(193, 95, 60, 0.12); }
.step-head { display: flex; align-items: center; gap: 10px; }
.step-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
  flex-shrink: 0;
}
.step-card.tone-error .step-num { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.step-card.tone-verified .step-num { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.step-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.step-action { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.step-loc { margin-top: 10px; font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.step-loc code { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 代码与原文 */
.code-box {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.raw-full-box { max-height: 460px; overflow-y: auto; }
.json-box { max-height: 400px; overflow-y: auto; margin-top: 10px; background: var(--surface-2); }
.proof-box { background: #22211f; color: #e7e3d9; border-color: #22211f; }

.xray-mark { border-radius: 3px; padding: 1px 2px; color: inherit; transition: box-shadow 0.3s; }
.xray-mark::before {
  content: attr(data-step);
  display: inline-block;
  font-size: 10px; font-weight: 600;
  min-width: 15px; height: 15px; line-height: 15px;
  text-align: center;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: 1px;
  color: #fff;
}
.xray-ok { background: #efeadf; }
.xray-ok::before { background: var(--muted); }
.xray-error { background: #f6ddd6; }
.xray-error::before { background: var(--red); }
.xray-verified { background: #d9eadf; }
.xray-verified::before { background: var(--green); }
.xray-pulse { animation: pulse 1.6s var(--ease); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(193, 95, 60, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(193, 95, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(193, 95, 60, 0); }
}

.raw-json-details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 0 6px 0 16px; }
.raw-json-details[open] { padding-bottom: 12px; }
.raw-json-details summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  height: 48px;
  font-size: 14px; font-weight: 500;
}
.raw-json-details summary::-webkit-details-marker { display: none; }
.raw-json-details .json-box { margin-right: 10px; }
.summary-actions { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.chev { margin: 0 8px; transition: transform var(--d-base) var(--ease-out); }
.raw-json-details { transition: border-color var(--d-fast); }
.raw-json-details:hover { border-color: var(--line-strong); }
.raw-json-details summary { border-radius: 8px; }
.raw-json-details::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size var(--d-slow) var(--ease-out), content-visibility var(--d-slow) allow-discrete;
}
.raw-json-details[open]::details-content { block-size: auto; }
details[open] .chev { transform: rotate(180deg); }

.task-brief { padding: 4px 10px 6px 0; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.task-brief dl { margin: 0; display: grid; grid-template-columns: 72px 1fr; gap: 10px 16px; }
.task-brief dt { color: var(--muted); font-size: 13px; }
.task-brief dd { margin: 0; }

.inline-code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.math-span { font-family: var(--font-serif); font-style: italic; }

/* 投票 */
.vote-bar {
  margin-top: 40px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.vote-q { font-size: 14px; font-weight: 500; }
.vote-buttons { display: flex; gap: 8px; }
.btn-vote { height: 36px; background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); font-size: 13.5px; }
.btn-vote:hover { border-color: var(--faint); color: var(--ink); }
.vote-n { display: inline-block; font-variant-numeric: tabular-nums; color: var(--muted); }
.vote-n.bump { animation: bump 360ms var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.btn-vote.active-agree { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }
.btn-vote.active-dispute { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }
.btn-vote.active-agree .vote-n, .btn-vote.active-dispute .vote-n { color: inherit; }
.admin-bar { display: flex; gap: 8px; width: 100%; padding-top: 14px; border-top: 1px solid var(--line); }

/* 讨论 */
.comments-section { margin-top: 44px; }
.comments-section h3 { font-family: var(--font-serif); font-size: 20px; display: flex; align-items: baseline; gap: 8px; }
.count { font-family: var(--font-sans); font-size: 14px; color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }

.comment-form {
  margin-top: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.comment-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(193, 95, 60, 0.12); }
.comment-form .textarea { border: 0; box-shadow: none; background: transparent; padding: 14px 16px 6px; }
.comment-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px 10px 12px; flex-wrap: wrap; }
.comment-submit { display: flex; align-items: center; gap: 12px; }
.stance-row { display: flex; gap: 4px; }
.stance-opt { cursor: pointer; }
.stance-opt input { position: absolute; opacity: 0; pointer-events: none; }
.stance-opt span {
  display: inline-block;
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background-color var(--d-fast), color var(--d-fast), border-color var(--d-fast), transform var(--d-fast) var(--ease-out);
}
.stance-opt:hover span { color: var(--ink); border-color: var(--line-strong); }
.stance-opt:active span { transform: scale(0.95); }
.stance-opt input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.stance-opt input:focus-visible + span { box-shadow: var(--ring); }

.comments-list { margin-top: 8px; }
.comment-item { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.comment-item:last-child { border-bottom: 0; }
.comment-item .avatar { width: 32px; height: 32px; font-size: 13px; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-bio { color: var(--muted); }
.comment-time { color: var(--faint); margin-left: auto; font-variant-numeric: tabular-nums; }
.comment-body { margin-top: 6px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.comments-empty { padding: 28px 0 8px; color: var(--faint); font-size: 13.5px; }

/* 个人账户 */
.profile-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.profile-head .avatar { width: 48px; height: 48px; font-size: 18px; }
.profile-name { font-size: 17px; font-weight: 600; }
.profile-pts { margin-left: auto; text-align: right; }
.profile-pts strong { display: block; font-family: var(--font-serif); font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.profile-pts span { font-size: 12px; color: var(--muted); }
.profile-sub { font-size: 13px; margin-bottom: 10px; color: var(--muted); }
.delta-pos { color: var(--green); font-weight: 500; }
.delta-neg { color: var(--red); font-weight: 500; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 500;
  display: inline-flex; align-items: center; gap: 8px;
  background: #2b2a27; color: #f5f2ea;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 32px -6px rgba(31, 30, 29, 0.32), 0 2px 6px rgba(31, 30, 29, 0.12);
  animation: toastIn 360ms var(--ease-out) both;
  max-width: calc(100vw - 32px);
}
.toast.is-leaving { animation: toastOut 200ms var(--ease-in) both; }
.toast-icon { display: inline-flex; margin-left: -2px; }
.toast[data-tone="success"] .toast-icon { color: #93c9a6; }
.toast[data-tone="error"] .toast-icon { color: #f0a493; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 6px) scale(0.98); } }

body.no-scroll { overflow: hidden; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .private-inner, .inquiry-layout, .lb-layout { grid-template-columns: 1fr; gap: 40px; }
  .filter-bar .search-field { flex-basis: 100%; }
  .bench-row { grid-template-columns: 200px minmax(0, 1fr) 130px; gap: 24px; }
  .bench-go { grid-column: 2 / -1; text-align: left; margin-top: -8px; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .topbar-inner { grid-template-columns: 1fr auto; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .nav-tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; }
  .nav-btn { flex: 1; padding: 6px 10px; }
  .brand-sub { display: none; }
  .section { padding-top: 48px; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 30px; }
  .br-lg { display: none; }
  .private-band { padding: 56px 0; }
  .hero-stats { gap: 24px; }
  .hero-stats dd { font-size: 24px; }
  .chart-row { grid-template-columns: 96px 1fr 44px; gap: 10px; }
  .method-strip { grid-template-columns: 1fr; }
  .method-item, .method-item + .method-item { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .private-features { grid-template-columns: 1fr; }
  .pf-item, .pf-item:nth-child(even) { padding: 20px 0; border-left: 0; }
  .case-row { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .bench-row { grid-template-columns: 1fr auto; gap: 14px 20px; padding: 20px 18px; }
  .bench-body { grid-column: 1 / -1; grid-row: 2; }
  .bench-rate { grid-column: 2; grid-row: 1; }
  .bench-go { grid-column: 1 / -1; margin-top: 0; }
  .walkthrough-grid, .diff-grid, .form-row-2 { grid-template-columns: 1fr; }
  .drawer-top { padding-left: 20px; }
  .drawer-body { padding: 24px 20px 48px; }
  .hide-sm { display: none; }
  .data-table th, .data-table td { padding: 12px 14px; }
}

/* ---------------- 减少动效 ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
a:focus-visible { box-shadow: var(--ring); border-radius: 3px; }

/* ---------------- 案例详情：五步叙事 ---------------- */
.drawer-actions { display: flex; gap: 2px; flex-shrink: 0; }
.ic-collapse { display: none; }
.drawer.is-full .ic-expand { display: none; }
.drawer.is-full .ic-collapse { display: block; }
.drawer-panel { transition: width var(--d-slow) var(--ease-out); }
.drawer.is-full .drawer-panel { width: 100%; box-shadow: none; }
.drawer.is-full { background: rgba(31, 30, 29, 0.12); }

.drawer-body { padding-top: 0; }
.case-layout { display: block; }
.story-nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 4px;
  margin: 0 -40px 8px; padding: 10px 40px;
  background: rgba(250, 249, 245, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.story-nav::-webkit-scrollbar { display: none; }
.story-nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 6px;
  border-radius: 999px;
  font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: background-color var(--d-fast), color var(--d-fast);
}
.story-nav a span {
  width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--bg-sunk); color: var(--muted);
  transition: background-color var(--d-base), color var(--d-base);
}
.story-nav a:hover { background: rgba(31, 30, 29, 0.05); color: var(--ink); }
.story-nav a.active { color: var(--ink); }
.story-nav a.active span { background: var(--ink); color: var(--bg); }
.story-nav a:focus-visible { box-shadow: var(--ring); }

.case-header { padding-top: 28px; }
.case-lede { margin-top: 18px; font-size: 16px; line-height: 1.85; color: var(--ink-2); max-width: 62ch; }
.review-notice {
  margin-top: 18px; padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--amber-soft); border: 1px solid #e9dcbc;
  font-size: 14px; line-height: 1.75; color: var(--ink-2);
  display: flex; gap: 10px;
}
.review-notice strong { color: var(--amber); white-space: nowrap; font-weight: 600; }

.story-sec { margin-top: 44px; scroll-margin-top: 64px; }
.sec-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  margin-bottom: 16px;
}
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--ink); color: var(--bg);
}
.sub-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 24px 0 12px; }
.sec-note { margin-top: 14px; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.sec-note strong { color: var(--ink-2); font-weight: 500; }

.task-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.flow-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.flow-k { font-size: 12px; color: var(--faint); margin-bottom: 4px; }
.flow-v { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.flow-arrow { display: grid; place-items: center; color: var(--faint); }

.row-actions { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
#sec-source .section-row-head { align-items: flex-end; }
.label-box {
  margin-top: 12px; padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--red-soft); border: 1px solid var(--red-line);
}
.label-k { font-size: 12px; font-weight: 500; color: var(--red); margin-bottom: 4px; }
.label-v { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--ink); word-break: break-word; }

#sec-result .diff-grid { margin-top: 0; }
#cmJsonWrap { margin-top: 36px; }

/* 全屏：左侧目录 + 居中正文 */
.drawer.is-full .drawer-body { padding: 0 40px 80px; }
.drawer.is-full .case-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 860px);
  justify-content: center;
  gap: 56px;
}
.drawer.is-full .story-nav {
  flex-direction: column; gap: 2px;
  margin: 0; padding: 40px 0 0;
  align-self: start; top: 0;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 0;
}
.drawer.is-full .story-nav a { padding: 7px 10px 7px 6px; }
.drawer.is-full .case-header { padding-top: 40px; }
.drawer.is-full .case-header h2 { font-size: 30px; }
.drawer.is-full .drawer-top { padding-left: 40px; }

@media (max-width: 1020px) {
  .drawer.is-full .case-layout { display: block; }
  .drawer.is-full .story-nav { flex-direction: row; margin: 0 -40px 8px; padding: 10px 40px; background: rgba(250, 249, 245, 0.94); border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .story-nav { margin: 0 -20px 8px; padding: 10px 20px; }
  .drawer.is-full .drawer-body { padding: 0 20px 48px; }
  .task-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  #btnExpand { display: none; }
}

/* ---------------- 参与审题 ---------------- */
#caseModal { z-index: 110; }
.howto { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.howto li { display: flex; gap: 12px; padding: 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.howto li > span { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--ink); color: var(--bg); }
.howto strong { font-size: 14px; }
.howto p { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.7; }

.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ds-card {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: border-color var(--d-fast), box-shadow var(--d-base), transform var(--d-fast) var(--ease-out);
}
.ds-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.ds-card:active { transform: scale(0.99); }
.ds-card:focus-visible { box-shadow: var(--ring); }
.ds-kind { font-size: 12px; color: var(--accent-ink); }
.ds-name { font-family: var(--font-serif); font-size: 19px; font-weight: 600; margin-top: 4px; }
.ds-task { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.ds-bar { height: 3px; background: var(--bg-sunk); border-radius: 2px; margin: 16px 0 10px; overflow: hidden; }
.ds-bar span { display: block; height: 100%; background: var(--green); }
.ds-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ds-stats strong { color: var(--ink); font-weight: 600; }
.ds-flag { color: var(--red); }

.list-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.list-head h3 { font-family: var(--font-serif); font-size: 22px; }
.back-btn svg { margin-left: -4px; }
#reviewList .filter-bar .segmented { flex-shrink: 0; }
.item-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 22px; cursor: pointer; transition: background var(--d-fast); }
.item-row + .item-row { border-top: 1px solid var(--line); }
.item-row:hover { background: #fdfcf9; }
.item-row:active { background: var(--surface-2); }
.item-no { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; text-align: right; }
.item-title { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-key { font-size: 11.5px; color: var(--faint); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* 单题视图 */
#itemModal .drawer-panel { width: 100%; }
.item-body { padding: 0 40px 40px; }
.item-wrap { max-width: 1240px; margin: 0 auto; }
.item-header { padding-top: 32px; }
.item-header .eyebrow { margin-bottom: 8px; }
.item-header h2 { font-family: var(--font-serif); font-size: 24px; line-height: 1.45; }
.case-link { margin-top: 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid #ecd3c6; font-size: 13.5px; }
.case-link a { color: var(--accent-ink); font-weight: 500; }
.item-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; margin-top: 28px; align-items: start; }
.item-label { position: sticky; top: 16px; }
.src-text {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; font-size: 14.5px; line-height: 1.95; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
  max-height: calc(100vh - 330px); overflow-y: auto;
}
.src-prose { white-space: normal; }
.src-prose p + p, .src-prose p + .table-scroll, .src-prose .table-scroll + p { margin-top: 10px; }
.table-scroll { overflow-x: auto; margin: 10px 0; }
.src-table { border-collapse: collapse; font-size: 13px; line-height: 1.5; min-width: 60%; font-variant-numeric: tabular-nums; }
.src-table th, .src-table td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.src-table th { background: var(--surface-2); font-weight: 500; }
mark.fv { background: #f3ead2; color: inherit; border-radius: 3px; padding: 0 2px; transition: box-shadow var(--d-base), background-color var(--d-base); }
mark.fv.is-active { background: #f0d8a8; box-shadow: 0 0 0 2px rgba(193, 95, 60, 0.45); }

.ev-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.ev-card + .ev-card { margin-top: 10px; }
.ev-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ev-no { font-size: 12px; color: var(--muted); }
.ev-type { font-weight: 600; font-size: 14px; }
.ev-field { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 14px; cursor: pointer; transition: background var(--d-fast); }
.ev-field + .ev-field { border-top: 1px solid var(--line); }
.ev-field:hover { background: #fdfcf9; }
.ev-k { font-size: 12.5px; color: var(--muted); }
.ev-v { font-size: 14px; word-break: break-word; }
.faint { color: var(--faint); }
.nf { display: inline-block; margin-left: 8px; font-size: 11.5px; color: var(--amber); background: var(--amber-soft); border-radius: 4px; padding: 0 5px; }
.flag-btn { display: none; font: inherit; font-size: 12px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 1px 9px; cursor: pointer; color: var(--muted); }
.flag-mode .flag-btn { display: inline-block; }
.ev-field.is-flagged { background: var(--red-soft); }
.ev-field.is-flagged .flag-btn { background: var(--red); border-color: var(--red); color: #fff; }

.answer-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.answer-big { font-family: var(--font-serif); font-size: 28px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; word-break: break-word; }
.calc-steps { margin: 0; padding-left: 22px; font-family: var(--font-mono); font-size: 13px; line-height: 2; color: var(--ink-2); }
.item-label .raw-json-details { margin-top: 16px; }
.prior-box { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.75; }
.prior-box p { margin-top: 4px; }
.opt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.opt-list li { display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 14.5px; line-height: 1.6; }
.opt-list li.is-key { border-color: #ecd3c6; background: var(--accent-soft); }
.opt-letter { font-weight: 600; color: var(--muted); width: 16px; flex-shrink: 0; }
.opt-list .tag { margin-left: auto; }

/* 判断栏 */
.judge-bar { border-top: 1px solid var(--line); background: rgba(250, 249, 245, 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 14px 40px; flex-shrink: 0; max-height: 46vh; overflow-y: auto; }
.judge-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; }
.judge-q { display: flex; gap: 10px; align-items: center; }
.judge-q strong { font-size: 14.5px; }
.verdict-group { display: flex; gap: 8px; }
.verdict {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  font: inherit; font-size: 14px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2); cursor: pointer;
  transition: background-color var(--d-fast), border-color var(--d-fast), color var(--d-fast), transform var(--d-fast) var(--ease-out);
}
.verdict:hover { border-color: var(--faint); color: var(--ink); }
.verdict:active { transform: scale(0.97); }
.verdict:focus-visible { box-shadow: var(--ring); }
.verdict kbd { font: 500 11px var(--font-mono); color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; background: var(--surface-2); }
.verdict.active { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }
.verdict-wrong.active { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }
.verdict[data-v="unsure"].active { background: var(--amber-soft); border-color: #e9dcbc; color: var(--amber); }
.judge-detail, .others { grid-column: 1 / -1; }
.judge-detail .textarea { margin-top: 6px; }
.judge-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 8px; }
.judge-foot .form-feedback { margin-right: auto; }
.other-note { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13.5px; padding: 6px 0; border-top: 1px dashed var(--line); }
.others .sub-label { margin-top: 4px; }

@media (max-width: 1020px) {
  .item-grid { grid-template-columns: 1fr; }
  .item-label { position: static; }
  .src-text { max-height: 60vh; }
  .howto { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .item-body { padding: 0 16px 24px; }
  .judge-bar { padding: 12px 16px; }
  .judge-inner { grid-template-columns: 1fr; }
  .verdict-group { width: 100%; }
  .verdict { flex: 1; justify-content: center; padding: 0 8px; }
  .verdict kbd { display: none; }
  .item-row { grid-template-columns: 84px minmax(0, 1fr); }
  .item-tags { grid-column: 2; justify-content: flex-start; }
  #reviewList .filter-bar .segmented { overflow-x: auto; max-width: 100%; }
}
.src-table th { white-space: nowrap; }
.src-table td:not(:first-child) { white-space: nowrap; }
.item-header h2.is-long { font-family: var(--font-sans); font-size: 17px; font-weight: 600; line-height: 1.7; }
mark.fv.is-active { box-shadow: none; }
mark.fv.is-current { background: #e9c27a; box-shadow: 0 0 0 2px rgba(193, 95, 60, 0.6); }

.captcha-row { display: flex; gap: 8px; align-items: stretch; }
.captcha-row .input { flex: 1; min-width: 0; letter-spacing: 0.08em; }
.captcha-img { flex-shrink: 0; width: 132px; height: 40px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: #f7f5ef; cursor: pointer; transition: border-color var(--d-fast), transform var(--d-fast) var(--ease-out); }
.captcha-img:hover { border-color: var(--faint); }
.captcha-img:active { transform: scale(0.97); }
.captcha-img img { display: block; width: 100%; height: 100%; }
.send-code-btn { flex-shrink: 0; width: 132px; height: 40px; padding: 0 10px; }
#sendCodeHint:empty { display: none; }

/* 题目编号 */
.item-uid { justify-self: start; font-size: 12.5px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; cursor: copy; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; transition: background var(--d-fast), border-color var(--d-fast); }
.item-uid:hover { border-color: var(--accent); background: var(--accent-soft); }
.tag-uid { cursor: copy; gap: 5px; color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }
.tag-uid:hover { border-color: var(--accent); background: var(--accent-soft); }
.tag-ai { color: #3d5a80; background: #eef2f8; border-color: #d3dceb; }
.uid-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 6px 0 22px; }
.uid-jump { display: flex; gap: 8px; }
.uid-jump .input { width: 260px; max-width: 60vw; }
.uid-bar p a { color: var(--accent-ink); margin-left: 6px; white-space: nowrap; }
