/* ============================================================
   AGI 万神殿 · Oracle Machine Design System v5.0
   方向：神谕机 —— 琥珀磷光单主色 × 冷灰大面积 × 等宽 display
   原则：仪器外壳，游乐场内核（趣味只进轮盘区，数据区保持克制）
   主题：console（默认暗）/ paper（实验纸白）/ abyss（OLED 纯黑）
   v4「天穹神殿」（Cinzel/神殿金/星野）自本版起退役
   ============================================================ */

/* ---------- Tokens ---------- */
:root, [data-theme="console"] {
  --bg: #060709;
  --bg-soft: #0a0b0e;
  --panel: #0b0d10;
  --panel-2: #101318;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --amber: #ffb224;
  --amber-dim: rgba(255, 178, 36, 0.35);
  --amber-soft: rgba(255, 178, 36, 0.08);
  --cyan: #5ad7ff;
  --cyan-soft: rgba(90, 215, 255, 0.1);
  --ink-on-amber: #0a0803;
  --text: #c9ccd1;
  --text-bright: #f2f3f5;
  --text-dim: #7d828a;
  --faint: #4a4e55;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --star-a: rgba(255, 255, 255, 0.5);
  --star-b: rgba(255, 178, 36, 0.55);
  --star-c: rgba(90, 215, 255, 0.45);
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', 'JetBrains Mono', monospace;
  --font-body: 'Noto Sans SC', -apple-system, 'PingFang SC', sans-serif;
}

[data-theme="paper"] {
  --bg: #f2f0ea;
  --bg-soft: #eae7df;
  --panel: #faf9f5;
  --panel-2: #f0ede5;
  --line: rgba(20, 22, 26, 0.1);
  --line-strong: rgba(20, 22, 26, 0.22);
  --amber: #a86a00;
  --amber-dim: rgba(168, 106, 0, 0.35);
  --amber-soft: rgba(168, 106, 0, 0.08);
  --cyan: #0a7ea4;
  --cyan-soft: rgba(10, 126, 164, 0.1);
  --ink-on-amber: #fdf9f0;
  --text: #3a3d42;
  --text-bright: #17181b;
  --text-dim: #6b6e74;
  --faint: #a0a3a8;
  --shadow: 0 14px 40px rgba(40, 36, 20, 0.14);
  --star-a: rgba(20, 22, 26, 0.25);
  --star-b: rgba(168, 106, 0, 0.3);
  --star-c: rgba(10, 126, 164, 0.25);
}

[data-theme="abyss"] {
  --bg: #000000;
  --bg-soft: #030304;
  --panel: #07080a;
  --panel-2: #0b0c0f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.8);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-color: var(--faint) transparent; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

/* 扫描线质感（极淡） */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(128, 128, 128, 0.025) 3px 4px);
}

::selection { background: var(--amber-soft); color: var(--text-bright); }

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

button { font-family: inherit; cursor: pointer; }

kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--text-dim);
  background: var(--panel);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- HUD 画框：四角括号 ---------- */
#starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.hud-frame { position: fixed; inset: 12px; z-index: 1; pointer-events: none; }
.hud-frame::before, .hud-frame::after,
.hud-frame b::before, .hud-frame b::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--amber-dim);
}
.hud-frame::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.hud-frame::after { top: 0; right: 0; border-left: none; border-bottom: none; }
.hud-frame b::before { bottom: 0; left: 0; border-right: none; border-top: none; }
.hud-frame b::after { bottom: 0; right: 0; border-left: none; border-top: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.brand-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-bright);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.brand-name b { color: var(--amber); }
.brand-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--amber);
  margin-left: 6px;
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.search-box {
  position: relative;
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--amber-dim); }
.search-icon { color: var(--faint); flex-shrink: 0; }
.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 13px;
}
.search-box input::placeholder { color: var(--faint); }
.search-clear {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  padding: 2px 5px;
}
.search-clear:hover { color: var(--amber); }
.key-hint { opacity: 0.8; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.stat-chips { display: flex; gap: 6px; }
.chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 8px;
  background: var(--panel);
  white-space: nowrap;
}
.chip b { color: var(--text-bright); font-weight: 600; }

.ghost-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  transition: border-color 0.15s, color 0.15s;
}
.ghost-btn:hover { border-color: var(--amber-dim); color: var(--text-bright); }
.icon-btn { padding: 6px 10px; }

/* ---------- Main / Section 骨架 ---------- */
.site-main {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 30px 60px;
}

.section { margin-bottom: 46px; }

/* 入场显现（JS IntersectionObserver 驱动） */
.section { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.section.is-visible { opacity: 1; transform: none; }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--amber);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.14em;
  color: var(--text-bright);
  margin-bottom: 6px;
}
.section-title small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.prompt-glyph { color: var(--amber); font-family: var(--font-mono); margin-right: 6px; }

/* ---------- 神谕机 ---------- */
.oracle-head .oracle-sub { color: var(--text-dim); margin-bottom: 26px; font-size: 13.5px; }

.oracle-stage {
  display: flex;
  align-items: center;
  gap: 46px;
  padding: 30px 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
}

.medallion { position: relative; width: 220px; height: 220px; flex-shrink: 0; }
.dial-svg { width: 100%; height: 100%; animation: dial-spin 18s linear infinite; }
.dial-svg circle, .dial-svg line { fill: none; }
.dial-ticks { stroke: var(--amber); stroke-opacity: 0.4; stroke-width: 1.5; stroke-dasharray: 2 10; }
.dial-ring { stroke: var(--line-strong); stroke-width: 1; }
.dial-sweep { stroke: var(--cyan); stroke-opacity: 0.3; stroke-width: 1; stroke-dasharray: 46 433; }
.dial-needle { stroke: var(--amber); stroke-width: 2; }
@keyframes dial-spin { to { transform: rotate(360deg); } }

.medallion.is-spinning .dial-svg { animation-duration: 0.55s; }
.medallion.is-spinning .dial-ticks { stroke-opacity: 0.8; }
.medallion-avatar {
  position: absolute;
  inset: 34px;
  width: calc(100% - 68px);
  height: calc(100% - 68px);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.medallion.is-spinning .medallion-avatar { filter: saturate(0.7) brightness(0.85); }
.medallion.is-settled .dial-svg { animation: dial-sweep-flash 0.8s ease; }
@keyframes dial-sweep-flash {
  0% { filter: brightness(1); }
  30% { filter: brightness(2.2) drop-shadow(0 0 14px var(--amber-dim)); }
  100% { filter: brightness(1); }
}

.oracle-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.draw-btn {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--amber);
  background: transparent;
  border: 1.5px solid var(--amber);
  border-radius: 8px;
  padding: 14px 34px;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.draw-btn:hover { background: var(--amber); color: var(--ink-on-amber); }
.draw-btn:active { transform: scale(0.97); }
.draw-btn:disabled { opacity: 0.5; cursor: wait; filter: grayscale(0.3); }
.draw-btn kbd { border-color: var(--amber-dim); color: inherit; margin-left: 4px; }

.mode-note { font-size: 12px; color: var(--text-dim); }
.mode-note b { color: var(--text-bright); }

/* 结果：遥测读数卡 */
.oracle-result { min-height: 60px; }
.result-hint { color: var(--text-dim); font-size: 13px; padding: 12px 4px; }

.result-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: 10px;
}
.result-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}
.result-main { flex: 1; min-width: 0; }
.result-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.result-handle { font-family: var(--font-mono); font-size: 12.5px; color: var(--amber); letter-spacing: 0.04em; margin: 2px 0 10px; }
.result-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.result-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 8px;
  background: var(--panel-2);
}
.result-tag.is-hi { color: var(--amber); border-color: var(--amber-dim); }
.result-tag.is-cy { color: var(--cyan); border-color: var(--cyan-soft); }
.result-bio { font-size: 12.5px; color: var(--text-dim); margin-bottom: 10px; }
.result-weight {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.03em;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
.result-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.visit-btn, .share-btn, .redraw-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 6px;
  text-align: center;
  transition: filter 0.15s, border-color 0.15s;
}
.visit-btn { background: var(--amber); color: var(--ink-on-amber); font-weight: 600; }
.visit-btn:hover { text-decoration: none; filter: brightness(1.08); }
.share-btn, .redraw-btn { background: transparent; color: var(--text-dim); border: 1px solid var(--line); }
.share-btn:hover, .redraw-btn:hover { border-color: var(--amber-dim); color: var(--text-bright); }

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--bg);
  flex-shrink: 0;
}
.priority-star, .card-star { color: var(--amber); font-size: 0.9em; }

/* ---------- 快讯 SIGNALS ---------- */
.sig-meta { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.06em; margin-bottom: 14px; }
.sig-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.sig-row {
  display: grid;
  grid-template-columns: 96px 74px 92px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.sig-row:last-child { border-bottom: none; }
.sig-row:hover { background: var(--panel-2); }
.sig-time { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.sig-src { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--text-dim); }
.sig-flag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  border-radius: 4px;
  padding: 1px 5px;
  justify-self: start;
}
.sig-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig-title a { color: var(--text); }
.sig-title a:hover { color: var(--amber); text-decoration: none; }
.pipe-empty { padding: 26px 16px; color: var(--faint); font-family: var(--font-mono); font-size: 12px; text-align: center; }

/* ---------- 模型榜 BENCHMARKS ---------- */
.bench-meta { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.06em; margin-bottom: 14px; }
.bench-table { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.bench-head, .bench-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 130px minmax(90px, 220px) 76px;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
}
.bench-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
  border-bottom: 1px solid var(--line-strong);
}
.bench-row { border-bottom: 1px solid var(--line); }
.bench-row:last-child { border-bottom: none; }
.bench-row:hover { background: var(--panel-2); }
.bench-row:nth-child(2) .bench-rank, .bench-row:first-of-type .bench-rank { color: var(--amber); }
.bench-rank { font-family: var(--font-mono); font-weight: 600; color: var(--text-dim); }
.bench-model { font-family: var(--font-mono); color: var(--text-bright); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bench-org { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bench-meter { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.bench-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--amber)); border-radius: 3px; }
.bench-score { font-family: var(--font-mono); font-weight: 600; color: var(--amber); text-align: right; }

/* ---------- 广告位 ---------- */
.ad-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  padding: 26px 20px;
  min-height: 84px;
  justify-content: center;
}
.ad-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  border-radius: 4px;
  padding: 2px 7px;
}
.ad-text { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--faint); }

/* ---------- 工具行 ---------- */
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.cate-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.cate-tab {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 11px;
  transition: border-color 0.15s, color 0.15s;
}
.cate-tab:hover { border-color: var(--amber-dim); color: var(--text-bright); }
.cate-tab.is-active { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }
.cate-tab .n { opacity: 0.6; margin-left: 4px; font-size: 10px; }

.view-tabs { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: var(--panel); }
.view-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: none;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
}
.view-tab.is-active { background: var(--amber-soft); color: var(--amber); }

.toolbar-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-count { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.05em; }
.sort-chips { display: flex; align-items: center; gap: 6px; }
.sort-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--faint); }
.sort-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
}
.sort-chip.is-active { color: var(--amber); border-color: var(--amber-dim); background: var(--amber-soft); }

/* ---------- 画廊（规格表卡片） ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none !important;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--amber-dim); transform: translateY(-2px); }
.card:hover::before, .card:hover::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--amber);
}
.card:hover::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.card:hover::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.card-avatar-wrap { position: relative; width: 38px; height: 38px; margin-bottom: 6px; }
.card-avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: block; }
.card-star {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 12px;
  background: var(--panel);
  border: 1px solid var(--amber-dim);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
}
.card-name { display: flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text-bright); font-size: 13.5px; min-width: 0; }
.card-name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-handle { font-family: var(--font-mono); font-size: 11.5px; color: var(--amber); letter-spacing: 0.02em; }
.card-stats { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.card-stats .w { color: var(--cyan); }
.card-cate { font-size: 10.5px; color: var(--faint); letter-spacing: 0.04em; }

/* ---------- 排行 ---------- */
.ledger-head, .ledger-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 110px 84px 64px 96px;
  gap: 12px;
  align-items: center;
  padding: 9px 16px;
  font-size: 13px;
}
.ledger-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  background: var(--panel);
}
.ledger {
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: var(--panel);
  overflow: hidden;
}
.ledger-row { border-bottom: 1px solid var(--line); text-decoration: none !important; color: var(--text); }
.ledger-row:last-child { border-bottom: none; }
.ledger-row:hover { background: var(--panel-2); }
.rank-num { font-family: var(--font-mono); font-weight: 600; color: var(--text-dim); }
.ledger-row:nth-child(1) .rank-num { color: var(--amber); font-size: 18px; }
.ledger-row:nth-child(2) .rank-num { color: var(--amber); opacity: 0.7; }
.ledger-row:nth-child(3) .rank-num { color: var(--amber); opacity: 0.5; }
.lr-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lr-avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); }
.lr-name { display: flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text-bright); font-size: 13px; }
.lr-name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-handle { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.lr-cate { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); text-align: right; }
.lr-num.w { color: var(--cyan); }

/* ---------- 名册 ---------- */
.roster { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.roster-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 140px 84px;
  gap: 12px;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-decoration: none !important;
  color: var(--text);
}
.roster-row:last-child { border-bottom: none; }
.roster-row:hover { background: var(--panel-2); }
.roster-avatar { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); }
.roster-name { display: flex; align-items: center; gap: 5px; font-weight: 500; color: var(--text-bright); min-width: 0; }
.roster-name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-handle { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }
.roster-fs { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); text-align: right; }

/* ---------- 空态 / 加载更多 ---------- */
.empty { text-align: center; padding: 60px 0 30px; }
.empty-glyph { font-family: var(--font-mono); font-size: 26px; color: var(--faint); margin-bottom: 12px; }
.empty-title { color: var(--text-bright); font-weight: 600; margin-bottom: 4px; }
.empty-desc { color: var(--text-dim); font-size: 13px; }
.linkish { color: var(--amber); cursor: pointer; text-decoration: underline; }
.load-more-wrap { text-align: center; margin-top: 20px; }

/* ---------- SHOWCASE ---------- */
.show-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.show-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  padding: 22px 18px;
  min-height: 110px;
}
.show-glyph { color: var(--amber); font-size: 16px; }
.show-card b { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--text-bright); font-weight: 600; }
.show-card span:last-child { font-size: 12px; color: var(--text-dim); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 22px 30px 30px;
  max-width: 1080px;
  margin: 0 auto;
}
.footer-row { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-dim); }
.footer-brand b { color: var(--amber); }
.ad-open { color: var(--amber); }
.footer-disclaimer { margin-top: 12px; font-size: 11px; color: var(--faint); line-height: 1.7; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-bright);
  background: var(--panel-2);
  border: 1px solid var(--amber-dim);
  border-radius: 8px;
  padding: 10px 18px;
  box-shadow: var(--shadow);
  max-width: 82vw;
}

/* ---------- 稀有度庆祝 ---------- */
.rare-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rare-box {
  position: relative;
  text-align: center;
  padding: 40px 60px;
  border: 1.5px solid var(--amber);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 0 60px var(--amber-soft), var(--shadow);
  animation: rare-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes rare-pop { from { transform: scale(0.7); opacity: 0; } }
.rare-kind {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--amber);
  margin-bottom: 4px;
  text-shadow: 0 0 24px var(--amber-dim);
}
.rare-cn { font-size: 20px; letter-spacing: 1em; color: var(--text-bright); font-weight: 700; margin-bottom: 14px; text-indent: 1em; }
.rare-who { font-family: var(--font-mono); font-size: 14px; color: var(--cyan); margin-bottom: 20px; }
.rare-hint { font-size: 11px; color: var(--faint); letter-spacing: 0.1em; }
.rare-particle {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  pointer-events: none;
  animation: burst 1.15s cubic-bezier(0.15, 0.8, 0.3, 1) forwards;
}
@keyframes burst {
  from { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) rotate(540deg) scale(0.2); opacity: 0; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .site-main { padding: 24px 16px 50px; }
  .site-header { padding: 12px 16px; flex-wrap: wrap; }
  .stat-chips { display: none; }
  .oracle-stage { flex-direction: column; gap: 24px; padding: 26px 18px; text-align: center; }
  .oracle-actions { align-items: center; }
  .medallion { width: 180px; height: 180px; }
  .medallion-avatar { inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); }
  .result-card { flex-direction: column; }
  .result-actions { flex-direction: row; }
  .sig-row { grid-template-columns: 84px minmax(0, 1fr); }
  .sig-src, .sig-flag { display: none; }
  .bench-head, .bench-row { grid-template-columns: 40px minmax(0, 1fr) 70px; }
  .bench-org, .bh-org, .bench-meter, .bh-meter { display: none; }
  .ledger-head, .ledger-row { grid-template-columns: 40px minmax(0, 1fr) 80px 70px; }
  .lh-cate, .lr-cate, .lh-num:nth-of-type(2), .lr-num:nth-of-type(2) { display: none; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .roster-row { grid-template-columns: 30px minmax(0, 1fr) 70px; }
  .roster-handle { display: none; }
}

/* ---------- 动效克制 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .section { opacity: 1; transform: none; }
  .dial-svg { animation: none !important; }
}
