/* 《无尽轮回》 · 档案终端 */
:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --surface: #151518;
  --surface-2: #1b1b1f;
  --surface-3: #222228;
  --line: #2a2a30;
  --line-2: #3a3a42;
  --text: #e4e0d8;
  --text-2: #bdb8ae;
  --muted: #8a857c;
  --faint: #5f5b55;
  --red: #7f1919;
  --red-2: #b3302a;
  --red-3: #d4473f;
  --red-dim: rgba(179, 48, 42, 0.14);
  --red-glow: rgba(179, 48, 42, 0.35);
  --paper: #141311;
  --serif: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --radius: 4px;
  --page: 1080px;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--sans);
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  position: relative;
}
/* 光影层固定在视口上，滚动时不出现断层（iOS 不支持 background-attachment: fixed） */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(220, 210, 195, 0.07), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 110%, rgba(127, 25, 25, 0.10), transparent 70%);
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--red-2); }
:focus-visible { outline: 2px solid var(--red-3); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.3; margin: 0; letter-spacing: 0.04em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- 氛围层：颗粒 + 扫描线 ---------- */
.fx-grain, .fx-scan { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.fx-grain {
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fx-scan {
  opacity: 0.22;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0, 0, 0, 0.35) 3px, transparent 4px);
}

/* ---------- 动效 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes charIn { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }
@keyframes breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.fade-in { animation: fadeUp 0.7s ease both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 布局 ---------- */
.page { flex: 1; width: 100%; max-width: var(--page); margin: 0 auto; padding: 20px var(--gutter) 56px; }
.foot { text-align: center; color: var(--faint); font-size: 12px; padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); letter-spacing: 0.2em; border-top: 1px solid var(--line); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  padding: 10px var(--gutter);
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; font-family: var(--serif); font-size: 18px; letter-spacing: 0.12em; white-space: nowrap; }
.tier-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; border: 1px solid var(--line-2); padding: 3px 10px; border-radius: 999px; background: var(--surface); white-space: nowrap; }
.tier-badge-k { color: var(--muted); }
.tier-badge-v { color: var(--red-3); font-weight: 600; letter-spacing: 0.08em; }
.topnav { display: flex; align-items: center; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a, .topnav button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px;
  color: var(--text-2); text-decoration: none; font: inherit; font-size: 14px; white-space: nowrap;
  background: none; border: 0; cursor: pointer; border-radius: var(--radius);
}
.topnav a:hover, .topnav button:hover { color: #fff; background: var(--surface-2); }
.topnav-exit { color: var(--red-3) !important; }
.sound-toggle .ico-wave { opacity: 0.25; }
.sound-toggle[aria-pressed="true"] .ico-wave { opacity: 1; }
@media (max-width: 720px) {
  .topbar { padding: 8px var(--gutter) 4px; }
  .brand { font-size: 16px; }
  .tier-badge { margin-left: auto; }
  .tier-badge-k { display: none; }
  .topnav { width: 100%; margin-left: -10px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .topnav a, .topnav button { font-size: 13px; padding: 0 9px; }
}

.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }

/* ---------- 通用元件 ---------- */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 6px; height: 6px; background: var(--red-2); border-radius: 50%; box-shadow: 0 0 8px var(--red-glow); flex: none; animation: breathe 3.2s ease-in-out infinite; }
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.back-link:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius);
  font: inherit; font-size: 15px; letter-spacing: 0.08em; text-decoration: none; cursor: pointer;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--surface-3); border-color: var(--muted); color: #fff; }
.btn-primary { background: linear-gradient(180deg, #8a1d1d, #6b1414); border-color: #a3302a; color: #f6ece8; }
.btn-primary:hover { background: linear-gradient(180deg, #9c2420, #7a1818); border-color: var(--red-3); box-shadow: 0 0 18px var(--red-glow); }
.btn-ghost { background: transparent; }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { color: var(--red-3); border-color: rgba(179, 48, 42, 0.5); }
.btn:disabled, .btn.is-disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 6px 4px; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link-btn:hover { color: #fff; }
.link-btn.danger { color: var(--red-3); }
.file-btn { position: relative; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

.badge { display: inline-flex; align-items: center; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--text-2); letter-spacing: 0.08em; margin-right: 6px; white-space: nowrap; vertical-align: 2px; }
.badge-pin { border-color: #6f5a2a; color: #d6b56a; }
.badge-spoiler { border-color: rgba(179, 48, 42, 0.6); color: var(--red-3); }
.badge-cat { color: var(--muted); }
.badge-admin { border-color: rgba(179, 48, 42, 0.6); color: var(--red-3); }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); background: var(--bg-2); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2);
  text-decoration: none; font: inherit; font-size: 14px; color: var(--text); cursor: pointer;
}
.chip:hover { border-color: var(--red-2); }
.chip.is-locked { color: var(--muted); border-style: dashed; background: transparent; }
.chip-person { padding-left: 4px; }

.avatar { border-radius: 50%; object-fit: cover; background: var(--surface-3); border: 1px solid var(--line-2); flex: none; }
.avatar-xs { width: 22px; height: 22px; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 38px; height: 38px; }
.avatar-lg { width: 96px; height: 96px; }

.placeholder {
  font-family: var(--mono); font-size: 13px; color: var(--faint);
  border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 10px 12px; background: rgba(255, 255, 255, 0.01);
}
.state { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.state-box { border: 1px dashed var(--line-2); padding: 28px 16px; justify-content: center; border-radius: var(--radius); }
.hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.redacted { color: var(--text-2); filter: blur(4px); user-select: none; -webkit-user-select: none; opacity: 0.6; font-size: 14px; }
.sealed-line { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-left: 2px solid var(--red); background: var(--red-dim); margin-top: 8px; }
.lock-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--red-3); letter-spacing: 0.12em; }
.admin-preview { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #d6b56a; border: 1px solid #5a4a24; background: rgba(214, 181, 106, 0.06); padding: 8px 12px; border-radius: var(--radius); margin: 4px 0 16px; }

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-title { font-size: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; color: var(--text-2); letter-spacing: 0.1em; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
input:not([type="checkbox"]):not([type="file"]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 10px 12px; min-height: 46px; transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { line-height: 1.7; resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red-2); box-shadow: 0 0 0 3px var(--red-dim); }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 40px; font-size: 14px; color: var(--text-2); }
.check input { width: 20px; height: 20px; accent-color: var(--red-2); flex: none; margin: 0; }
.check-lg { font-size: 16px; color: var(--text); }
.form-error { color: var(--red-3); font-size: 14px; min-height: 1.4em; }
.form-error:empty { min-height: 0; }
.form-msg { font-size: 13px; color: var(--muted); }
.form-msg.is-error { color: var(--red-3); }
.form-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.form-inline .field { flex: 1 1 200px; }

/* ---------- 入口验证 ---------- */
.is-gate .page { display: flex; align-items: center; justify-content: center; max-width: none; padding-top: 48px; }
.gate { width: 100%; display: flex; justify-content: center; }
.gate-panel {
  width: min(440px, 100%); padding: 40px 28px 32px; position: relative;
  background: linear-gradient(180deg, rgba(27, 27, 31, 0.92), rgba(16, 16, 18, 0.95));
  border: 1px solid var(--line); border-top: 2px solid var(--red);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.gate-panel::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 40px; background: linear-gradient(180deg, var(--red-dim), transparent); pointer-events: none; }
.gate-title { font-size: clamp(34px, 9vw, 48px); letter-spacing: 0.14em; margin: 18px 0 6px; text-shadow: 0 0 30px rgba(179, 48, 42, 0.25); }
.gate-sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.gate-form { display: flex; flex-direction: column; gap: 16px; }
.gate-note { margin-top: 16px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 12px; }
.gate-welcome, .welcome-flash {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: #050505; padding: 24px; animation: fadeIn 0.6s ease both;
}
.welcome-text, .welcome-flash p { font-family: var(--serif); font-size: clamp(18px, 5vw, 26px); letter-spacing: 0.18em; text-align: center; line-height: 2; }
.welcome-text .ch { opacity: 0; display: inline-block; animation: charIn 0.5s ease forwards; }
.welcome-flash { animation: fadeIn 0.4s ease both, fadeOutHide 0.8s ease 2.4s forwards; }
@keyframes fadeOutHide { to { opacity: 0; visibility: hidden; } }

/* ---------- 规则 ---------- */
.rules-wrap { max-width: 760px; margin: 0 auto; }
.is-rules .page { padding-top: 32px; }
.rules-sheet {
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 39px, rgba(255, 255, 255, 0.025) 40px),
    var(--paper);
  border: 1px solid var(--line); padding: 36px 24px 28px; position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.rules-sheet::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--line-2), var(--red) 85%); }
.rules-head h1 { font-size: 32px; margin: 12px 0 8px; letter-spacing: 0.2em; }
.rules-lead { color: var(--muted); font-size: 14px; }
.rules-list { list-style: none; padding: 0; margin: 28px 0 32px; counter-reset: none; }
.rule { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 16px; line-height: 1.75; }
.rule-no { font-family: var(--mono); font-size: 13px; color: var(--faint); padding-top: 3px; }
.rule-calm .rule-text { color: var(--text-2); }
.rule-uneasy .rule-text { color: var(--text); }
.rule-uneasy .rule-no { color: var(--muted); }
.rule-dread .rule-text { color: var(--text); font-family: var(--serif); letter-spacing: 0.05em; }
.rule-dread .rule-no { color: var(--red-2); }
.rule-dread { background: linear-gradient(90deg, rgba(127, 25, 25, 0.08), transparent 70%); padding-left: 8px; margin-left: -8px; }
.rules-confirm { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line-2); padding-top: 22px; }

/* ---------- 主界面 ---------- */
.home-head { text-align: center; padding: 24px 0 28px; }
.home-head .kicker { justify-content: center; }
.home-title { font-size: clamp(36px, 8vw, 60px); letter-spacing: 0.16em; margin: 14px 0 8px; text-shadow: 0 0 40px rgba(179, 48, 42, 0.2); }
.home-sub { color: var(--muted); }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.menu-card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.7s ease both;
}
.menu-card:nth-child(2) { animation-delay: 0.08s; }
.menu-card:nth-child(3) { animation-delay: 0.16s; }
.menu-card:nth-child(4) { animation-delay: 0.24s; }
.menu-card:hover { border-color: var(--red-2); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--red-dim); }
.menu-cover { aspect-ratio: 16 / 8; overflow: hidden; background: #0c0c0e; border-bottom: 1px solid var(--line); }
.menu-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.4s, transform 0.6s; }
.menu-card:hover .menu-cover img { opacity: 1; transform: scale(1.03); }
.menu-body { padding: 16px 20px 20px; position: relative; }
.menu-no { position: absolute; right: 18px; top: 10px; font-family: var(--mono); font-size: 34px; color: rgba(255, 255, 255, 0.06); }
.menu-title { font-size: 24px; letter-spacing: 0.16em; }
.menu-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.menu-dungeon .menu-title { color: #ead9d4; }
.home-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr; gap: 12px; }
  .menu-cover { aspect-ratio: 16 / 6; }
  .menu-title { font-size: 21px; }
  .home-tools .btn { flex: 1 1 40%; }
}

/* ---------- 页面标题 ---------- */
.page-head { margin: 4px 0 24px; }
.page-head h1 { font-size: clamp(26px, 6vw, 34px); margin: 10px 0 6px; letter-spacing: 0.1em; }
.page-sub { color: var(--muted); font-size: 14px; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 副本卡片 ---------- */
.dcard-list { display: flex; flex-direction: column; gap: 14px; }
.dcard {
  display: grid; grid-template-columns: minmax(140px, 34%) 1fr; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; font: inherit; padding: 0; cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s; animation: fadeUp 0.6s ease both;
}
.dcard:hover { border-color: var(--red-2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.dcard-cover { position: relative; background: #0c0c0e; min-height: 150px; overflow: hidden; }
.dcard-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dcard-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dcard-tier { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--red-3); }
.dcard-name { font-size: 22px; letter-spacing: 0.08em; }
.dcard-intro { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rating-inline { font-size: 14px; color: var(--text); display: inline-flex; align-items: center; gap: 4px; }
.rating-inline .star { color: var(--red-3); }
.rating-inline.is-empty { color: var(--muted); }
@media (max-width: 560px) {
  .dcard { grid-template-columns: 112px 1fr; }
  .dcard-cover { min-height: 132px; }
  .dcard-body { padding: 12px 14px; gap: 6px; }
  .dcard-name { font-size: 19px; }
  .dcard-intro { -webkit-line-clamp: 2; }
}

/* 封存状态（高阶） */
.is-locked .sealed-img { filter: blur(6px) grayscale(1) brightness(0.35); transform: scale(1.1); }
.dcard.is-locked, .ccard.is-locked, .icard.is-locked { background: linear-gradient(135deg, #121214, #0d0d0f); border-style: dashed; border-color: var(--line-2); }
.dcard.is-locked .dcard-name { color: var(--muted); }
.dcard.is-locked:hover, .ccard.is-locked:hover, .icard.is-locked:hover { border-color: var(--red); box-shadow: none; }
.seal-stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 2px solid rgba(179, 48, 42, 0.75); color: var(--red-3); padding: 4px 12px;
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.3em; background: rgba(10, 10, 11, 0.55);
}

/* ---------- 详情页头图 ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 42%) 1fr; gap: 28px; align-items: start; margin-bottom: 20px; }
.hero-media { border: 1px solid var(--line); background: #0c0c0e; overflow: hidden; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-portrait img { aspect-ratio: 3 / 4; }
.hero-person { grid-template-columns: minmax(0, 36%) 1fr; }
.hero-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-title { font-size: clamp(28px, 6vw, 42px); letter-spacing: 0.12em; }
.hero-lead { color: var(--text-2); font-size: 16px; }
@media (max-width: 720px) {
  .hero, .hero-person { grid-template-columns: 1fr; gap: 18px; }
  .hero-portrait { max-width: 320px; }
}

.jump-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.jump-nav::-webkit-scrollbar { display: none; }
.jump-nav a { flex: none; font-size: 13px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--text-2); }
.jump-nav a:hover { border-color: var(--red-2); color: #fff; }

/* ---------- 档案正文 ---------- */
.doc { display: flex; flex-direction: column; }
.doc-sec { padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.section-title { font-size: 20px; letter-spacing: 0.14em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 3px; height: 1.05em; background: var(--red-2); flex: none; }
.prose { color: var(--text); font-size: 16px; line-height: 1.9; max-width: 72ch; }
.prose p { white-space: pre-line; margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose-reader { font-family: var(--serif); font-size: 17px; line-height: 2.05; letter-spacing: 0.03em; }
.doc-rules { margin: 0; padding: 0; list-style: none; counter-reset: r; max-width: 72ch; }
.doc-rules li { counter-increment: r; display: grid; grid-template-columns: 36px 1fr; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.doc-rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--red-3); padding-top: 4px; }
.entry + .entry { margin-top: 18px; }
.entry-title { font-size: 16px; color: var(--text-2); margin-bottom: 6px; }

.chapter-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chapter-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.chapter-hidden { background: linear-gradient(180deg, #131216, #0f0e12); border-color: #2c2632; }
.chapter-col-title { font-size: 16px; letter-spacing: 0.3em; margin-bottom: 8px; color: var(--text-2); }
.chapter-hidden .chapter-col-title { color: #b8a9c4; }
.chapter-list { list-style: none; margin: 0; padding: 0; }
.chapter a, .chapter.is-locked { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 6px; min-height: 44px; padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); text-decoration: none; }
.chapter a:hover { background: var(--surface-2); }
.chapter-no { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.chapter.is-locked .chapter-title { color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 640px) { .chapter-cols { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.gallery-item { display: block; border: 1px solid var(--line); overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- 章节阅读 ---------- */
.reader { max-width: 760px; margin: 0 auto; }
.reader-head { padding: 12px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.reader-head h1 { font-size: clamp(24px, 6vw, 34px); margin-top: 12px; letter-spacing: 0.1em; }
.reader-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.reader-nav .btn { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 44px; }

/* ---------- 评分 ---------- */
.rating-box { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "sum stars" "hint hint"; align-items: center; gap: 6px 16px; max-width: 460px; }
.rating-summary { grid-area: sum; display: flex; align-items: baseline; gap: 8px; min-width: 96px; }
.rating-avg { font-family: var(--serif); font-size: 32px; color: #f0e6e2; line-height: 1; }
.rating-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.rating-empty { color: var(--muted); font-size: 15px; }
.rating-stars { grid-area: stars; display: flex; gap: 2px; justify-self: end; }
.star-btn { width: 40px; height: 44px; background: none; border: 0; padding: 0; font-size: 28px; line-height: 1; color: #3a3a42; cursor: pointer; transition: color 0.15s, transform 0.15s; }
.star-btn.is-on { color: var(--red-3); text-shadow: 0 0 12px var(--red-glow); }
.star-btn.is-hover { color: #e06a62; }
.star-btn:active { transform: scale(0.9); }
.rating-box.is-busy .star-btn { pointer-events: none; opacity: 0.6; }
.rating-hint { grid-area: hint; font-size: 13px; color: var(--muted); }
.rating-hint.is-error { color: var(--red-3); }
@media (max-width: 420px) {
  .rating-box { grid-template-columns: 1fr; grid-template-areas: "sum" "stars" "hint"; }
  .rating-stars { justify-self: start; margin-left: -6px; }
}

/* ---------- 评论 ---------- */
.comments { margin-top: 36px; scroll-margin-top: 90px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.comment-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.login-prompt { border: 1px dashed var(--line-2); padding: 16px; text-align: center; margin-bottom: 20px; border-radius: var(--radius); }
.login-prompt a { color: var(--red-3); }
.comment-list { display: flex; flex-direction: column; }
.comment { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); animation: fadeUp 0.4s ease both; }
.comment .comment { padding: 12px 0 0; border-top: 0; grid-template-columns: 30px 1fr; }
.comment .comment .avatar { width: 30px; height: 30px; }
.comment-main { min-width: 0; }
.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
.comment-name { color: var(--text); font-weight: 600; }
.comment-time { color: var(--faint); }
.comment-reply-to { color: var(--muted); }
.comment-body { white-space: pre-wrap; word-break: break-word; margin-top: 4px; font-size: 15px; line-height: 1.75; }
.comment-deleted { color: var(--faint); font-size: 14px; font-style: italic; margin-top: 4px; }
.comment-actions { display: flex; gap: 8px; margin-top: 2px; }
.comment-replies { margin-top: 4px; border-left: 1px solid var(--line-2); padding-left: 12px; }
.comment-reply-form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.spoiler-box { margin-top: 6px; }
.spoiler-toggle { width: 100%; text-align: left; min-height: 44px; padding: 8px 12px; background: var(--red-dim); border: 1px dashed rgba(179, 48, 42, 0.5); color: var(--red-3); font: inherit; font-size: 14px; cursor: pointer; border-radius: var(--radius); }
details.spoiler { border: 1px dashed rgba(179, 48, 42, 0.5); border-radius: var(--radius); padding: 0 14px; background: rgba(127, 25, 25, 0.05); }
details.spoiler > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--red-3); font-size: 14px; list-style: none; }
details.spoiler > summary::-webkit-details-marker { display: none; }
details.spoiler[open] { padding-bottom: 14px; }

/* ---------- 人物卡 ---------- */
.ccard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ccard {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; font: inherit; text-align: left;
  padding: 16px; cursor: pointer; width: 100%;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s; animation: fadeUp 0.6s ease both; position: relative; overflow: hidden;
}
.ccard::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 2px; background: var(--red-2); }
.ccard:hover { border-color: var(--red-2); transform: translateY(-2px); }
.ccard-top { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; }
.ccard-photo { width: 72px; height: 72px; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #0c0c0e; position: relative; }
.ccard-photo img { width: 100%; height: 100%; object-fit: cover; }
.ccard-head { min-width: 0; }
.ccard-name { font-size: 21px; letter-spacing: 0.12em; }
.ccard-code { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; margin-top: 2px; }
.ccard-radar { width: 92px; height: 92px; }
.ccard-summary { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.ccard.is-featured { border-color: #3b2a2c; background: linear-gradient(160deg, #1f1a1d, var(--surface) 65%); }
.ccard.is-featured .ccard-top { grid-template-columns: 96px 1fr auto; }
.ccard.is-featured .ccard-photo { width: 96px; height: 96px; }
.ccard.is-featured .ccard-name { font-size: 26px; }
.ccard.is-featured .ccard-radar { width: 112px; height: 112px; }
.ccard.is-locked { border-style: dashed; background: linear-gradient(135deg, #121214, #0d0d0f); }
.ccard.is-locked .ccard-name { color: var(--muted); }
@media (max-width: 420px) {
  .ccard-top, .ccard.is-featured .ccard-top { grid-template-columns: 64px 1fr auto; gap: 10px; }
  .ccard-photo, .ccard.is-featured .ccard-photo { width: 64px; height: 64px; }
  .ccard-radar, .ccard.is-featured .ccard-radar { width: 84px; height: 84px; }
  .ccard-name, .ccard.is-featured .ccard-name { font-size: 19px; }
}

/* ---------- 六维雷达图 ---------- */
.radar { display: block; width: 100%; height: auto; overflow: visible; }
.radar-ring { fill: none; stroke: #2c2b32; stroke-width: 1; }
.radar-ring-outer { stroke: #44424b; fill: rgba(255, 255, 255, 0.015); }
.radar-axis { stroke: #2c2b32; stroke-width: 1; }
.radar-tick { fill: var(--faint); font: 10px var(--mono); }
.radar-center { fill: var(--faint); }
.radar-prev { fill: none; stroke: #8a857c; stroke-width: 1.4; stroke-dasharray: 4 4; }
.radar-shape { fill: rgba(179, 48, 42, 0.28); stroke: var(--red-3); stroke-width: 2; stroke-linejoin: round; }
.radar-dot { fill: #e8dcd8; stroke: var(--red-3); stroke-width: 1.5; }
.radar-dot.is-high { fill: var(--red-3); }
.radar-label { fill: var(--text-2); font: 13px var(--sans); letter-spacing: 0.1em; }
.radar-grade { fill: var(--text); font: 600 17px var(--serif); }
.radar-mini .radar-shape { stroke-width: 3; }
.radar-mini .radar-ring { stroke-width: 1.5; }
.grade-S { fill: #ff5c52; color: #ff5c52; }
.grade-A { fill: var(--red-3); color: var(--red-3); }
.grade-B { fill: var(--text); color: var(--text); }
.grade-C { fill: var(--text-2); color: var(--text-2); }
.grade-D, .grade-E { fill: var(--muted); color: var(--muted); }

/* ---------- 人物档案头 ---------- */
.pfile {
  display: grid; grid-template-columns: 168px 1fr minmax(0, 360px); grid-template-areas: "photo main rate" "photo quote rate" "photo sum rate";
  gap: 6px 24px; align-items: start; padding: 20px; margin-bottom: 18px; position: relative;
  background: linear-gradient(150deg, #1c1a1e, var(--surface) 55%); border: 1px solid var(--line); border-radius: var(--radius);
}
.pfile::before { content: ""; position: absolute; left: -1px; top: -1px; width: 48px; height: 2px; background: var(--red-2); }
.pfile-photo { grid-area: photo; width: 168px; aspect-ratio: 1; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #0c0c0e; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.pfile-photo img { width: 100%; height: 100%; object-fit: cover; }
.pfile-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pfile-name { font-size: clamp(28px, 6vw, 38px); letter-spacing: 0.14em; }
.pfile-code { color: var(--text-2); font-size: 14px; letter-spacing: 0.12em; }
.pfile-meta { margin: 6px 0 2px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.pfile-meta div { display: flex; gap: 6px; }
.pfile-meta dt { color: var(--muted); }
.pfile-meta dd { margin: 0; }
.pfile-meta dd[class^="grade-"] { font-family: var(--serif); font-weight: 700; }
.pfile-quote { grid-area: quote; margin: 8px 0 0; padding: 8px 14px; border-left: 2px solid var(--red-2); background: var(--red-dim); font-family: var(--serif); color: #eadfdb; letter-spacing: 0.05em; }
.pfile-summary { grid-area: sum; color: var(--text-2); font-size: 15px; margin-top: 8px; }
.pfile-rating { grid-area: rate; }
.pfile-rating .rating-box { max-width: none; }
@media (max-width: 960px) {
  .pfile { grid-template-columns: 140px 1fr; grid-template-areas: "photo main" "quote quote" "sum sum" "rate rate"; }
  .pfile-photo { width: 140px; }
}
@media (max-width: 560px) {
  .pfile { grid-template-columns: 96px 1fr; gap: 6px 14px; padding: 14px; }
  .pfile-photo { width: 96px; }
  .pfile-meta { font-size: 13px; gap: 2px 12px; }
}

/* ---------- 面板标签 ---------- */
.ptab-nav { display: none; }
.ptabs.is-tabbed .ptab-nav {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 58px; z-index: 20;
  background: rgba(10, 10, 11, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.ptabs.is-tabbed .ptab-nav::-webkit-scrollbar { display: none; }
.ptab {
  flex: 1 0 auto; min-height: 46px; padding: 0 16px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font: inherit; font-size: 15px; letter-spacing: 0.2em; cursor: pointer; margin-bottom: -1px;
}
.ptab:hover { color: var(--text); }
.ptab.is-active { color: #fff; border-bottom-color: var(--red-2); background: linear-gradient(0deg, var(--red-dim), transparent); }
.ptab-panel { padding: 8px 0 24px; scroll-margin-top: 120px; }
.ptabs:not(.is-tabbed) .ptab-panel { border-bottom: 1px solid var(--line); padding: 24px 0; }
.ptabs.is-tabbed .ptab-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ptabs.is-tabbed .ptab-panel { animation: fadeIn 0.3s ease both; }
@media (max-width: 720px) { .ptabs.is-tabbed .ptab-nav { top: 92px; } .ptab { padding: 0 7px; font-size: 14px; letter-spacing: 0.06em; } }

/* 属性 */
.stage-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.stage-btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; font: inherit; font-size: 13px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text-2); cursor: pointer;
}
.stage-btn.is-active { border-color: var(--red-2); color: #fff; background: var(--red-dim); }
.stage-btn.is-locked { color: var(--faint); border-style: dashed; cursor: not-allowed; }
.stats-grid { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 24px; align-items: center; }
.stats-radar { width: 100%; max-width: 340px; margin: 0 auto; }
.sv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sv-row { display: grid; grid-template-columns: 56px 1fr 30px 16px; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.sv-name { color: var(--text-2); letter-spacing: 0.15em; font-size: 15px; }
.sv-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.sv-bar i { height: 8px; background: #26252b; border-radius: 1px; }
.sv-bar i.on { background: #8c6f6c; }
.sv-bar i.on.hi { background: var(--red-3); box-shadow: 0 0 8px var(--red-glow); }
.sv-grade { font: 700 20px var(--serif); text-align: center; }
.sv-up { color: var(--red-3); font-size: 11px; }
.stats-legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.legend-prev { width: 22px; border-top: 1.5px dashed #8a857c; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr; gap: 8px; } .stats-radar { max-width: 300px; } }

/* 天赋 */
.talent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.talent { background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--red-2); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.talent-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.talent-name { font-size: 19px; letter-spacing: 0.12em; }
.talent-cost { border-top: 1px dashed var(--line-2); padding-top: 8px; }
.talent-cost-k { display: block; font-size: 12px; color: var(--red-3); letter-spacing: 0.15em; margin-bottom: 2px; }
.talent .prose { font-size: 15px; line-height: 1.8; }
@media (max-width: 400px) { .talent-list { grid-template-columns: 1fr; } }

/* 持有 */
.hold-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.hold-filters::-webkit-scrollbar { display: none; }
.hold-filter { flex: none; min-height: 36px; }
.hold-filter.is-active { border-color: var(--red-2); background: var(--red-dim); color: #fff; }
.hold-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.slot { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.slot-icon { position: relative; width: 64px; height: 64px; border: 1px solid var(--line-2); border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, #222128, #0c0c0e 75%); overflow: hidden; }
.slot-icon img { width: 100%; height: 100%; object-fit: cover; }
.slot-qty { position: absolute; right: 2px; bottom: 2px; font: 11px var(--mono); background: rgba(0, 0, 0, 0.8); padding: 1px 4px; border-radius: 2px; }
.slot-item .slot-icon { border-color: #5a2424; }
.slot-fragment .slot-icon { border-color: #4b3f62; }
.slot-contract .slot-icon { border-color: #6f5a2a; }
.slot-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.slot-kind { font-size: 11px; letter-spacing: 0.18em; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.slot-item .slot-kind { color: var(--red-3); }
.slot-fragment .slot-kind { color: #b8a9c4; }
.slot-contract .slot-kind { color: #d6b56a; }
.slot-lost { color: var(--faint); border: 1px solid var(--line-2); padding: 0 5px; border-radius: 2px; letter-spacing: 0.1em; }
.slot-name { font-size: 16px; letter-spacing: 0.06em; word-break: break-word; }
.slot-desc { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.slot-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.slot-meta a { color: var(--text-2); }
.slot.is-lost { opacity: 0.55; border-style: dashed; }
.slot.is-lost .slot-icon img { filter: grayscale(1); }
.slot.is-lost .slot-name { text-decoration: line-through; text-decoration-color: var(--faint); }
.slot[hidden] { display: none; }
@media (max-width: 400px) { .hold-grid { grid-template-columns: 1fr; } }

/* 经历 */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; max-width: 780px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--line-2), var(--red) 90%); }
.tl-item { position: relative; padding: 0 0 22px; }
.tl-dot { position: absolute; left: -21px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--red-2); }
.tl-item.is-locked .tl-dot { border-color: var(--faint); }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; }
.tl-head a { text-decoration: none; font-family: var(--serif); }
.tl-tier { font: 12px var(--mono); color: var(--red-3); letter-spacing: 0.15em; }
.tl-title { font-size: 17px; margin: 6px 0 4px; letter-spacing: 0.06em; }
.tl-item .prose { font-size: 15px; margin-top: 4px; }
.badge-outcome { border-color: #6f5a2a; color: #d6b56a; margin: 0; }

/* 关系 */
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.rel { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rel-who { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; text-decoration: none; font-size: 13px; text-align: center; }
.rel-who .avatar { width: 46px; height: 46px; border-radius: var(--radius); }
.rel-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge-rel { border-color: rgba(179, 48, 42, 0.6); color: var(--red-3); margin: 0; }
.rel-desc { color: var(--text-2); font-size: 14px; white-space: pre-line; }
@media (max-width: 400px) { .rel-list { grid-template-columns: 1fr; } }

/* 档案 */
.file-sec { padding: 4px 0 18px; }
.file-sec + .file-sec { border-top: 1px solid var(--line); padding-top: 18px; }
.file-h { font-size: 16px; letter-spacing: 0.2em; color: var(--text-2); margin-bottom: 8px; }

/* ---------- 诡物 ---------- */
.icard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.icard {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; font: inherit; text-align: left; padding: 0; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.25s; animation: fadeUp 0.6s ease both;
}
.icard:hover { border-color: var(--red-2); }
.icard-media { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 45%, #1d1d22, #0b0b0d 70%); overflow: hidden; border-bottom: 1px solid var(--line); }
.icard-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.icard-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.icard-no { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.12em; }
.icard-name { font-size: 19px; letter-spacing: 0.12em; }
.icard.is-locked .icard-name { color: var(--muted); }
.icard-desc { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) { .icard-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .icard-name { font-size: 16px; } }

.specimen { display: grid; grid-template-columns: minmax(0, 40%) 1fr; gap: 28px; }
.specimen-media { background: radial-gradient(circle at 50% 45%, #1d1d22, #0b0b0d 70%); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.specimen-media img { width: 80%; height: 80%; object-fit: contain; }
.specimen-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 720px) { .specimen { grid-template-columns: 1fr; } .specimen-media { max-width: 360px; } }

.spec { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-row dt { color: var(--muted); font-size: 14px; letter-spacing: 0.08em; }
.spec-row dd { margin: 0; min-width: 0; }
@media (max-width: 480px) { .spec-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- 讨论区 ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; text-decoration: none; color: var(--muted); font: inherit; font-size: 14px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--red-2); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-row { border-bottom: 1px solid var(--line); }
.post-row.is-pinned { background: linear-gradient(90deg, rgba(214, 181, 106, 0.05), transparent 60%); }
.post-link { display: flex; flex-direction: column; gap: 6px; padding: 14px 8px; text-decoration: none; }
.post-link:hover { background: var(--surface); }
.post-title { font-size: 16px; color: var(--text); word-break: break-word; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); align-items: center; }
.post-meta .badge { margin-right: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }
.pager-info { color: var(--muted); font-size: 14px; }
.post { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.post-head { margin-bottom: 20px; }
.post-head h1 { font-size: clamp(22px, 5vw, 30px); margin: 10px 0 12px; letter-spacing: 0.06em; word-break: break-word; }
.post-badges .badge { margin-right: 6px; }
.post-author { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.post-actions { margin-top: 18px; }
.linked-dungeon { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.linked-title { font-size: 18px; }
.linked-title a { text-decoration: none; }

.rate-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rate-row { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rate-head { display: flex; align-items: baseline; gap: 12px; }
.rate-tier { font-family: var(--mono); font-size: 12px; color: var(--red-3); letter-spacing: 0.14em; }
.rate-name { font-family: var(--serif); font-size: 19px; text-decoration: none; letter-spacing: 0.08em; }
.rate-row.is-locked { border-style: dashed; background: transparent; padding: 0; }
.rate-locked { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-align: left; flex-wrap: wrap; }
.rate-locked .rate-name { color: var(--muted); }
.rate-locked .lock-tag { margin-left: auto; }

/* ---------- 玩家档案 ---------- */
.auth-tabs { max-width: 480px; }
.auth-tabs .card { margin-top: 12px; }
.auth-tabs.is-enhanced[data-mode="login"] [data-auth-panel="register"],
.auth-tabs.is-enhanced[data-mode="register"] [data-auth-panel="login"] { display: none; }
.profile { max-width: 520px; display: flex; flex-direction: column; gap: 18px; }
.profile-avatar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- 拒绝访问 / 错误 ---------- */
.denied { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.denied-box {
  width: min(420px, 100%); text-align: center; padding: 32px 24px;
  background: linear-gradient(180deg, #17151a, #0f0e10); border: 1px solid var(--line); border-top: 2px solid var(--red-2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--red-dim);
  display: flex; flex-direction: column; gap: 14px;
}
.denied-box h1 { font-size: 26px; letter-spacing: 0.3em; color: #f0e2de; }
.denied-icon { color: var(--red-3); display: flex; justify-content: center; }
.denied-icon .ico { width: 40px; height: 40px; }
.denied-info { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); padding: 12px 0; }
.denied-info div { display: flex; justify-content: center; gap: 4px; }
.denied-info dt { color: var(--muted); }
.denied-info dd { margin: 0; }
.denied-info .danger { color: var(--red-3); font-weight: 600; }
.whisper { color: var(--faint); font-size: 13px; letter-spacing: 0.2em; font-family: var(--serif); }
.denied-box .kicker { justify-content: center; }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(4, 4, 5, 0.78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fadeIn 0.25s ease both;
}
.modal-overlay .denied-box { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; animation: fadeUp 0.35s ease both; }

/* ---------- 管理后台 ---------- */
.is-admin .page { max-width: 1240px; }
.admin { display: grid; grid-template-columns: 180px 1fr; gap: 28px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; align-self: start; }
.admin-nav a { padding: 10px 12px; text-decoration: none; color: var(--text-2); border-left: 2px solid transparent; font-size: 14px; }
.admin-nav a:hover { background: var(--surface); color: #fff; }
.admin-nav a.is-active { border-left-color: var(--red-2); color: #fff; background: var(--surface); }
.admin-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.admin-title { font-size: 26px; letter-spacing: 0.08em; }
.admin-card h2 { font-size: 18px; margin-bottom: 8px; }
.admin-card .hint { margin-bottom: 12px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.danger-zone { border-color: rgba(179, 48, 42, 0.35); }
.flash { padding: 10px 14px; border: 1px solid #2f4a2f; background: rgba(80, 140, 80, 0.08); color: #a8d0a8; border-radius: var(--radius); font-size: 14px; }
.flash-error { border-color: rgba(179, 48, 42, 0.5); background: var(--red-dim); color: var(--red-3); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); padding: 14px; border-radius: var(--radius); display: flex; flex-direction: column; }
.stat-v { font-family: var(--serif); font-size: 28px; }
.stat-k { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; background: var(--surface); white-space: nowrap; }
.table tr.is-muted td { color: var(--faint); }
.cell-text { max-width: 420px; word-break: break-word; }
.nowrap { white-space: nowrap; }
.inline-form { display: inline; }
.pw-form { display: inline-flex; gap: 6px; align-items: center; }
.pw-form input { min-height: 34px !important; padding: 4px 8px !important; font-size: 13px !important; width: 110px !important; }
.admin-user-actions { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 12px; }
.img-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.img-pick-preview { width: 120px; height: 120px; object-fit: cover; border: 1px solid var(--line-2); background: #0c0c0e; border-radius: var(--radius); }
.img-pick-actions { display: flex; gap: 8px; }
.gallery-pick { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.gallery-pick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-pick-list figure { margin: 0; position: relative; }
.gallery-pick-list img { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--line-2); border-radius: var(--radius); }
.gallery-remove { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.75); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; gap: 16px; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .admin-nav a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .admin-nav a.is-active { border-bottom-color: var(--red-2); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* 后台：人物面板编辑 */
.stats-table select { min-width: 60px; min-height: 38px !important; padding: 4px 6px !important; font-size: 14px !important; }
.stats-table td, .stats-table th { padding: 6px 8px; text-align: center; }
.admin-jump { gap: 4px 12px; font-size: 13px; color: var(--muted); position: sticky; top: 58px; z-index: 5; background: var(--bg); padding: 8px 0; }
.admin-card { scroll-margin-top: 110px; }

/* =====================================================================
   玩家身份 · 登录页场景 · 主界面 HUD · 共创 · 社交
   ===================================================================== */

/* ---------- 左上角玩家身份牌 ---------- */
.ptag {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 3px 12px 3px 3px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); text-decoration: none; max-width: 240px;
}
.ptag:hover { border-color: var(--red-2); }
.ptag-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); flex: none; }
.ptag-avatar-guest { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--muted); font-family: var(--serif); }
.ptag-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ptag-name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptag-k { color: var(--red-3); margin-right: 4px; font-size: 11px; letter-spacing: 0.1em; }
.ptag-no { font: 10px var(--mono); color: var(--muted); letter-spacing: 0.06em; white-space: nowrap; }
.ptag.is-guest .ptag-name { color: var(--text-2); }
.ptag-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red-2); color: #fff; font-size: 11px; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.brand { font-size: 16px; color: var(--text-2); }
@media (max-width: 720px) {
  .ptag { max-width: 60vw; }
  .brand { display: none; }
}

.dot-count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--red-2); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.badge-ok { border-color: #2f5a3a; color: #8fcf9f; }
.state-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4fbf6f; box-shadow: 0 0 8px rgba(79, 191, 111, 0.7); margin-right: 6px; vertical-align: 1px; animation: breathe 2.4s ease-in-out infinite; }

/* ---------- 背景文字 ---------- */
.bgtext { position: fixed; inset: 0; z-index: -1; display: flex; justify-content: space-between; pointer-events: none; overflow: hidden; padding: 0 2vw; }
.bgcol { height: 100%; overflow: hidden; flex: none; }
.bgcol-inner { writing-mode: vertical-rl; font-family: var(--serif); font-size: 15px; letter-spacing: 0.5em; line-height: 2.6; color: rgba(228, 224, 216, 0.07); animation: drift 120s linear infinite; }
.bgcol:nth-child(2n) .bgcol-inner { animation-duration: 160s; animation-direction: reverse; font-size: 13px; }
.bgcol:nth-child(3n) .bgcol-inner { animation-duration: 200s; font-size: 17px; color: rgba(228, 224, 216, 0.05); }
.bgcol:nth-child(5n) .bgcol-inner { animation-duration: 140s; }
.bgw { display: inline-block; padding-block: 1.4em; transition: color 1.2s, text-shadow 1.2s; }
.bgw.is-lit { color: rgba(212, 71, 63, 0.75); text-shadow: 0 0 14px rgba(179, 48, 42, 0.6); }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.bgtext-home .bgcol-inner { color: rgba(228, 224, 216, 0.045); }
@media (max-width: 720px) { .bgcol:nth-child(n+7) { display: none; } .bgcol-inner { font-size: 13px; } }

/* ---------- 登录页场景 ---------- */
.is-gate { background: #060607; }
.is-gate::before { display: none; }
.gate-scene { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.scene-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; animation: sceneIn 2.4s ease both; }
@keyframes sceneIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 0.85; transform: scale(1); } }
.scene-glow { position: absolute; left: 50%; top: 47%; width: 46vmax; height: 46vmax; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(179, 48, 42, 0.32), rgba(127, 25, 25, 0.08) 40%, transparent 65%); animation: flicker 9s steps(1) infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 41% { opacity: 1; } 42% { opacity: 0.35; } 43% { opacity: 0.9; } 44% { opacity: 0.4; } 46% { opacity: 1; } 77% { opacity: 1; } 78% { opacity: 0.6; } 79% { opacity: 1; } }
.fog { position: absolute; width: 140vmax; height: 60vmax; left: -20vmax; border-radius: 50%; filter: blur(40px); opacity: 0.5; }
.fog-a { bottom: -22vmax; background: radial-gradient(ellipse, rgba(120, 110, 115, 0.22), transparent 70%); animation: fogA 38s ease-in-out infinite alternate; }
.fog-b { bottom: -30vmax; background: radial-gradient(ellipse, rgba(90, 40, 40, 0.25), transparent 70%); animation: fogB 52s ease-in-out infinite alternate; }
@keyframes fogA { from { transform: translateX(-8vmax); } to { transform: translateX(10vmax); } }
@keyframes fogB { from { transform: translateX(12vmax) scale(1.1); } to { transform: translateX(-10vmax) scale(1); } }
.dust { position: absolute; inset: 0; }
.sweep { position: absolute; left: 0; right: 0; height: 120px; top: -140px; background: linear-gradient(transparent, rgba(220, 210, 200, 0.05), transparent); animation: sweep 11s linear infinite; }
@keyframes sweep { 0% { top: -140px; } 70% { top: 110%; } 100% { top: 110%; } }
.is-gate .page { flex-direction: column; gap: 18px; }
.gate { flex-direction: column; align-items: center; gap: 16px; }
.boot { width: min(460px, 100%); font: 13px/1.9 var(--mono); color: #b9b2a6; text-shadow: 0 0 6px rgba(0, 0, 0, 0.9); min-height: 0; }
.boot-line { opacity: 0; white-space: pre-wrap; }
.boot-line.is-on, .boot.is-done .boot-line { opacity: 1; }
.boot-line::before { content: "> "; color: var(--red-3); }
.boot.is-done .boot-line { opacity: 0.55; }
.boot.is-done .boot-line:last-child { opacity: 1; color: #e8ddd6; }
.is-booting .boot-line.is-on:last-of-type::after { content: "▋"; color: var(--red-3); animation: breathe 0.8s steps(1) infinite; }
.gate-panel { transition: opacity 0.8s ease, transform 0.8s ease; background: linear-gradient(180deg, rgba(24, 22, 27, 0.9), rgba(12, 11, 13, 0.94)); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); padding-top: 18px; }
.is-booting .gate-panel { opacity: 0; transform: translateY(12px); pointer-events: none; }
.term-bar { display: flex; justify-content: space-between; align-items: center; font: 11px var(--mono); color: var(--muted); letter-spacing: 0.15em; border-bottom: 1px dashed var(--line-2); padding-bottom: 10px; margin-bottom: 4px; }
.term-signal { display: inline-flex; align-items: center; gap: 6px; }
.term-signal i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-3); box-shadow: 0 0 8px var(--red-glow); animation: breathe 1.6s ease-in-out infinite; }
.term-foot { margin-top: 16px; font: 11px var(--mono); color: var(--faint); letter-spacing: 0.15em; text-align: center; border-top: 1px dashed var(--line-2); padding-top: 12px; }
.gate-sub { margin-bottom: 20px; }

/* ---------- 主界面 HUD ---------- */
.hud {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 14px 18px; margin-bottom: 12px;
  background: linear-gradient(100deg, rgba(31, 26, 30, 0.92), rgba(18, 17, 20, 0.92)); border: 1px solid var(--line); border-left: 3px solid var(--red-2); border-radius: var(--radius);
}
.hud-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hud-avatar { width: 58px; height: 58px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--line-2); flex: none; }
.hud-avatar-guest { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--muted); font: 24px var(--serif); }
.hud-who { min-width: 0; }
.hud-no { font: 12px var(--mono); color: var(--muted); letter-spacing: 0.12em; }
.hud-name { font: 600 22px var(--serif); letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-k { color: var(--red-3); font-size: 0.6em; letter-spacing: 0.2em; margin-right: 8px; vertical-align: 0.2em; }
.hud-state { font-size: 13px; color: var(--text-2); }
.hud-state a { color: var(--red-3); }
.hud-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.hud-stats div { display: flex; flex-direction: column; }
.hud-stats dt { font-size: 11px; color: var(--muted); letter-spacing: 0.15em; }
.hud-stats dd { margin: 0; font: 600 18px var(--serif); white-space: nowrap; }
.hud-red { color: var(--red-3); }
.sys-line { font: 14px/1.8 var(--mono); color: #d8cfc6; padding: 10px 14px; margin-bottom: 18px; background: rgba(10, 10, 11, 0.7); border: 1px dashed var(--line-2); border-radius: var(--radius); min-height: 46px; }
.sys-tag { color: var(--red-3); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.home-h { font-size: 16px; letter-spacing: 0.25em; color: var(--text-2); margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; }
.home-h .muted { font: 12px var(--mono); letter-spacing: 0.1em; }
.home-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 72px; }
.side-panel { background: rgba(21, 21, 24, 0.92); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.side-h { font-size: 14px; letter-spacing: 0.2em; color: var(--text-2); margin-bottom: 10px; display: flex; align-items: center; }
.channel-view { max-height: 300px; overflow-y: auto; scrollbar-width: thin; mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); }
.feed { list-style: none; margin: 0; padding: 6px 0; display: flex; flex-direction: column; gap: 2px; }
.feed-item { font-size: 13px; line-height: 1.6; padding: 6px 2px; border-bottom: 1px dashed rgba(255, 255, 255, 0.05); color: var(--text-2); }
.feed-item a { color: var(--text); text-decoration: none; }
.feed-item a:hover { color: #fff; text-decoration: underline; }
.feed-tag { font: 10px var(--mono); color: var(--red-3); border: 1px solid rgba(179, 48, 42, 0.5); padding: 0 4px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.feed-me .feed-tag { color: #8fcf9f; border-color: #2f5a3a; }
.feed-me, .feed-me a { color: var(--muted); }
.feed-bc a, .feed-bc > span:not(.feed-tag) { color: var(--text); }
.feed-bc-countdown { background: rgba(179, 48, 42, .08); border-left: 2px solid var(--red-2); padding-left: 8px; }
.feed-bc-countdown .feed-time { color: var(--red-3); }
.feed-time { display: block; font: 11px var(--mono); color: var(--faint); }
.feed-empty { color: var(--muted); }
.resume { justify-content: flex-start; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 44px; margin-bottom: 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.steps li { display: flex; align-items: center; gap: 4px; min-width: 0; }
.steps a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.menu-create { grid-column: 1 / -1; background: linear-gradient(110deg, #20181b, var(--surface) 70%); }
.menu-create .menu-body { padding: 22px; }
.menu-create .menu-title { color: #ead9d4; }
.progress { margin-top: 22px; }
.track { list-style: none; margin: 0; padding: 4px 0 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; position: relative; }
.track::before { content: ""; position: absolute; left: 5%; right: 5%; top: 21px; height: 1px; background: var(--line-2); }
.track-node { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; min-width: 0; }
.track-dot { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 14px var(--serif); background: var(--bg); border: 1px dashed var(--line-2); color: var(--faint); text-decoration: none; }
.track-node.is-open .track-dot { border: 1px solid var(--red-2); color: #f0e2de; background: #1d1416; }
.track-node.is-current .track-dot { box-shadow: 0 0 0 4px var(--red-dim), 0 0 16px var(--red-glow); }
.track-label { font-size: 11px; color: var(--muted); line-height: 1.3; word-break: break-all; }
.track-node.is-open .track-label { color: var(--text-2); }
@media (max-width: 960px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-side { position: static; }
}
@media (max-width: 560px) {
  .hud { padding: 12px; }
  .hud-avatar { width: 48px; height: 48px; }
  .hud-name { font-size: 19px; }
  .hud-stats { width: 100%; justify-content: space-between; gap: 6px 12px; }
  .hud-stats dd { font-size: 16px; }
  .track { grid-template-columns: repeat(5, 1fr); row-gap: 14px; }
  .track::before { display: none; }
  .sys-line { font-size: 13px; }
}

/* ---------- 玩家面板 / 名片 ---------- */
.pcard { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px; margin-bottom: 16px; background: linear-gradient(150deg, #1c1a1e, var(--surface) 55%); border: 1px solid var(--line); border-left: 3px solid var(--red-2); border-radius: var(--radius); }
.pcard-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pcard-avatar { width: 140px; height: 140px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line-2); }
.pcard-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pcard-name { font-size: clamp(24px, 6vw, 32px); letter-spacing: 0.1em; }
.pcard-no { font: 13px var(--mono); color: var(--text-2); letter-spacing: 0.1em; }
.pcard-stats { display: flex; gap: 22px; margin: 8px 0 4px; }
.pcard-stats div { display: flex; flex-direction: column; }
.pcard-stats dt { font-size: 11px; color: var(--muted); letter-spacing: 0.15em; }
.pcard-stats dd { margin: 0; font: 600 20px var(--serif); }
.pcard-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.acct-sec { margin-bottom: 14px; }
.mine-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mine-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mine-list .hint { width: 100%; }
@media (max-width: 560px) {
  .pcard { grid-template-columns: 1fr; }
  .pcard-photo { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
  .pcard-avatar { width: 88px; height: 88px; }
}

/* ---------- 玩家列表 ---------- */
.search-form { margin-bottom: 18px; max-width: 560px; }
.player-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.player-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-width: 0; }
a.player-row:hover { border-color: var(--red-2); }
.player-row > span:last-child { margin-left: auto; }
.player-who { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.player-mid { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.last-msg { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-actions { display: flex; gap: 6px; margin-left: auto; }
.avatar-wrap { position: relative; display: inline-flex; }
.online-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #4fbf6f; box-shadow: 0 0 0 2px var(--surface); }
.comment-uid { font: 11px var(--mono); color: var(--faint); }
.comment-name { text-decoration: none; }
.post-who { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

/* ---------- 总部讨论群 / 私信 ---------- */
.is-hq .page { max-width: 860px; }
.hq { display: flex; flex-direction: column; gap: 10px; }
.hq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hq-title { font-size: clamp(24px, 6vw, 32px); letter-spacing: 0.14em; margin-top: 6px; }
.hq-online { font-size: 14px; color: var(--text-2); }
.hq-online strong { font: 600 18px var(--serif); color: #fff; }
.hq-log { height: min(62vh, 620px); overflow-y: auto; padding: 12px; background: rgba(12, 12, 14, 0.85); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 10px; max-width: 92%; animation: fadeUp 0.3s ease both; }
.msg-main { min-width: 0; }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12px; }
.msg-name { color: var(--text); font-weight: 600; text-decoration: none; font-size: 13px; }
.msg-uid, .msg-time { font: 11px var(--mono); color: var(--faint); }
.msg-acts { display: inline-flex; gap: 2px; opacity: 0.7; }
.msg-acts .link-btn { font-size: 11px; padding: 2px 4px; }
.msg-body { white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.6; margin-top: 3px; padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 2px 10px 10px 10px; display: inline-block; }
.msg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.is-mine .msg-head { justify-content: flex-end; }
.msg.is-mine .msg-body { background: #2a1517; border-color: #4a2224; border-radius: 10px 2px 10px 10px; }
.dm .msg { flex-direction: column; gap: 2px; }
.dm .msg.is-mine { align-items: flex-end; }
.dm .msg .link-btn { font-size: 11px; align-self: flex-start; padding: 0 2px; }
.hq-form { display: flex; gap: 8px; position: sticky; bottom: 0; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: var(--bg); }
.hq-form input { flex: 1; }

/* ---------- 玩家共创 ---------- */
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cr-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; min-height: 150px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--line-2); border-radius: var(--radius); }
.cr-card:hover { border-color: var(--red-2); }
.cr-dungeon { border-top-color: var(--red-2); }
.cr-character { border-top-color: #d6b56a; }
.cr-talent { border-top-color: #8a7aa8; }
.cr-type { font: 11px var(--mono); color: var(--muted); letter-spacing: 0.2em; }
.cr-title { font-size: 19px; letter-spacing: 0.08em; padding-right: 70px; }
.cr-sum { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-right: 70px; }
.cr-radar { position: absolute; right: 10px; top: 12px; width: 70px; height: 70px; }
.cr-meta { margin-top: auto; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.cr-stats, .cr-talent { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.cr-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cr-detail .badge { margin-bottom: 4px; }

/* ---------- 后台审核 ---------- */
.review-list { display: flex; flex-direction: column; gap: 10px; }
.review-item { display: flex; flex-direction: column; gap: 8px; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.review-text { white-space: pre-wrap; word-break: break-word; font: 13px/1.7 var(--sans); background: var(--bg-2); border: 1px solid var(--line); padding: 10px; margin: 6px 0 0; max-height: 360px; overflow: auto; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-reject { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.review-reject input { min-height: 36px !important; padding: 4px 8px !important; font-size: 13px !important; width: 260px !important; max-width: 70vw; }
.bgtext-home .bgw.is-lit { color: rgba(222, 72, 62, 0.62); text-shadow: 0 0 12px rgba(179, 48, 42, 0.55), 0 0 2px rgba(255, 90, 80, 0.4); }
@media (max-width: 960px) {
  .home-grid { display: flex; flex-direction: column; }
  .home-side { order: -1; width: 100%; }
  .home-main { width: 100%; }
  .channel-view { max-height: 190px; }
}
.msg.is-mine .msg-main { display: flex; flex-direction: column; align-items: flex-end; }
.msg-main { display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- 前往副本：分区与玩家副本 ---------- */
.seg-nav { display: flex; gap: 8px; margin: -8px 0 16px; flex-wrap: wrap; }
.seg-nav a { font-size: 13px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--text-2); }
.seg-nav a:hover { border-color: var(--red-2); color: #fff; }
.seg { margin-top: 34px; scroll-margin-top: 80px; }
.seg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.seg-h { font-size: 20px; letter-spacing: 0.2em; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; scroll-margin-top: 80px; }
.seg-h::before { content: ""; width: 3px; height: 1.05em; background: var(--red-2); }
.seg .page-sub { margin-bottom: 12px; }
.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pd-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pd-card:hover { border-color: var(--red-2); }
.pd-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: #0c0c0e; overflow: hidden; }
.pd-cover img { width: 100%; height: 100%; object-fit: cover; }
.pd-kind { position: absolute; left: 8px; top: 8px; font-size: 11px; letter-spacing: 0.1em; padding: 2px 8px; background: rgba(10, 10, 11, 0.8); border: 1px solid var(--line-2); border-radius: 2px; color: var(--text-2); }
.pd-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pd-title { font-size: 18px; letter-spacing: 0.06em; }
.pd-title a { text-decoration: none; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pd-tags .badge { margin: 0; }
.badge-diff-hard, .diff-hard { color: #e0a060 !important; border-color: #6a4a24; }
.badge-diff-nightmare, .diff-nightmare { color: var(--red-3) !important; border-color: rgba(179, 48, 42, 0.6); }
.pd-intro { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.pd-meta .badge { margin: 0; }
.pd-hero { margin: -4px 0 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-height: 360px; }
.pd-hero img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; }
.pd-spec { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pd-spec div { display: flex; flex-direction: column; }
.pd-spec dt { font-size: 11px; color: var(--muted); letter-spacing: 0.15em; }
.pd-spec dd { margin: 0; font-family: var(--serif); font-size: 16px; }
.cond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cond { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cond-ok { border-left: 3px solid #4f8f5f; }
.cond-bad { border-left: 3px solid var(--red-2); }
.cond-k { display: block; font-size: 12px; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 560px) { .cond-grid { grid-template-columns: 1fr; } }

/* ---------- 创建副本表单 ---------- */
.form-sec { display: flex; flex-direction: column; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-sec-h { font-size: 17px; letter-spacing: 0.15em; color: #ead9d4; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tpl { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); text-decoration: none; }
.tpl strong { font-family: var(--serif); font-size: 16px; letter-spacing: 0.1em; }
.tpl span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.tpl:hover { border-color: var(--red-2); }
.tpl.is-active { border-color: var(--red-2); background: var(--red-dim); }
.tag-pick { border: 0; padding: 0; margin: 0; }
.tag-pick-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag-opt { position: relative; cursor: pointer; }
.tag-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tag-opt span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--text-2); }
.tag-opt input:checked + span { border-color: var(--red-2); background: var(--red-dim); color: #fff; }
.tag-opt input:focus-visible + span { outline: 2px solid var(--red-3); outline-offset: 2px; }
.cover-preview { width: 200px !important; height: 112px !important; }
.item-row { display: grid; grid-template-columns: 160px 1fr; gap: 8px; }
@media (max-width: 560px) { .item-row { grid-template-columns: 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.form-actions .btn { min-width: 130px; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; }
.subtabs .chip { min-height: 34px; }
.subtabs .chip.is-active { border-color: var(--red-2); background: var(--red-dim); color: #fff; }

/* ===================== 第四次更新：音效 / 配乐 / 语音 ===================== */
/* 未填写的内容 */
.placeholder.is-sealed {
  display: flex; align-items: center; gap: 8px; color: var(--muted); letter-spacing: 0.16em;
  font-family: var(--serif); font-size: 14px; border-color: rgba(179, 48, 42, 0.28); background: var(--red-dim);
}
.placeholder.is-sealed .ico { color: var(--red-3); flex: none; }
.placeholder-note { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }

/* 没有顶栏的页面（入口、规则）右上角的音效开关 */
.sound-float {
  position: fixed; top: 12px; right: 12px; z-index: 60;
  background: rgba(10, 10, 11, 0.7); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: var(--text-2); font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-height: 36px;
}
.sound-float:hover { color: #fff; }
.sound-toggle.is-on { color: var(--red-3); }

/* 副本配乐播放器 */
.bgm {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(15, 15, 17, 0.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); max-width: calc(100vw - 32px);
}
.bgm.is-playing { border-color: rgba(179, 48, 42, 0.6); box-shadow: 0 0 18px var(--red-dim), 0 8px 24px rgba(0, 0, 0, 0.5); }
.bgm-btn {
  display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text-2); font: inherit;
  cursor: pointer; padding: 2px; min-height: 40px; text-align: left; min-width: 0;
}
.bgm-btn:focus-visible { outline: 1px solid var(--red-3); outline-offset: 2px; border-radius: 999px; }
.bgm-eq {
  width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2);
  display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 10px 0;
}
.bgm-eq i { width: 3px; height: 4px; background: var(--muted); border-radius: 1px; }
.bgm.is-playing .bgm-eq { border-color: var(--red-2); }
.bgm.is-playing .bgm-eq i { background: var(--red-3); animation: bgm-eq 1.1s ease-in-out infinite; }
.bgm.is-playing .bgm-eq i:nth-child(2) { animation-delay: -0.3s; }
.bgm.is-playing .bgm-eq i:nth-child(3) { animation-delay: -0.7s; }
.bgm.is-playing .bgm-eq i:nth-child(4) { animation-delay: -0.5s; }
@keyframes bgm-eq { 0%, 100% { height: 4px; } 50% { height: 15px; } }
.bgm-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.bgm-k { font-size: 12px; color: var(--muted); letter-spacing: 0.14em; }
.bgm.is-playing .bgm-k { color: var(--red-3); }
.bgm-name { font-family: var(--serif); font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11em; }
.bgm input.bgm-vol {
  width: 84px; min-width: 0; flex: none; padding: 0; margin: 0; border: 0; background: none; min-height: 0; height: 20px;
  accent-color: var(--red-2); box-shadow: none;
}
.bgm-k { white-space: nowrap; }
@media (max-width: 720px) {
  .bgm { right: 10px; bottom: 10px; padding-right: 10px; }
  .bgm input.bgm-vol { width: 64px; }
  .bgm-name { max-width: 7em; }
}
@media (prefers-reduced-motion: reduce) { .bgm.is-playing .bgm-eq i { animation: none; height: 10px; } }
body.is-dungeon .foot, body.is-chapter .foot { padding-bottom: 76px; }

/* 人物语音 */
.voice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.voice {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.voice.is-playing { border-color: rgba(179, 48, 42, 0.55); background: linear-gradient(90deg, var(--red-dim), var(--surface) 60%); }
.voice-play {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--red-2); background: var(--surface-2);
  color: var(--red-3); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.voice-play:hover { background: var(--red-dim); }
.voice-play:focus-visible { outline: 1px solid var(--red-3); outline-offset: 3px; }
.voice-ico { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.voice-play.is-playing .voice-ico { border: 0; width: 12px; height: 12px; background: currentColor; margin: 0; }
.voice-play.is-locked { border-color: var(--line-2); color: var(--faint); cursor: default; }
.voice-body { flex: 1; min-width: 0; }
.voice-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.voice-title { font-family: var(--serif); font-size: 16px; color: var(--text); }
.voice-time { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.voice-bar { height: 2px; background: var(--line); border-radius: 1px; overflow: hidden; }
.voice-bar i { display: block; height: 100%; width: 0; background: var(--red-3); transition: width 0.25s linear; }
.voice-line { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }
.voice-sealed { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; letter-spacing: 0.12em; }

/* 后台：音频上传 */
.audio-pick { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.audio-pick audio { width: 100%; max-width: 420px; height: 40px; }
.audio-pick-state { margin: 0; font-size: 13px; color: var(--text-2); }

/* ===================== 第7版：诡物轮盘 ===================== */
.reel-head .page-sub b { color: var(--red-3); font-weight: 600; }
.reel { position: relative; margin: 8px calc(50% - 50vw) 0; width: 100vw; }
.reel-stage {
  display: flex; gap: 16px; overflow-x: auto; padding: 24px 16px 32px; scroll-snap-type: x mandatory; outline: none;
}
.reel-stage:focus-visible { box-shadow: inset 0 0 0 1px var(--red-2); }
.rcard {
  flex: none; width: 210px; scroll-snap-align: center; text-decoration: none; color: var(--text);
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: center;
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}
.rcard-frame {
  display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden;
  background: linear-gradient(180deg, #1c1b20, #111013); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transition: border-color .4s, box-shadow .4s;
}
.rcard-media { position: relative; aspect-ratio: 3 / 4; background: radial-gradient(circle at 50% 40%, #26222a, #0b0b0d 72%); display: block; }
.rcard-media img { width: 100%; height: 100%; object-fit: contain; padding: 14%; pointer-events: none; }
.rcard-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--faint); padding: 10px 0 0; display: block; }
.rcard-name { font-family: var(--serif); font-size: 19px; letter-spacing: 0.14em; padding: 2px 10px 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard.is-locked .rcard-name { color: var(--faint); }
.rcard.is-center .rcard-frame { border-color: var(--red-2); box-shadow: 0 0 0 1px rgba(179, 48, 42, .35), 0 0 46px rgba(179, 48, 42, .28), 0 24px 50px rgba(0, 0, 0, .65); }
.reel-line { display: none; }
.reel-arrow { display: none; }
/* 有脚本时：变成一条线上的 3D 轮盘 */
.reel.is-live { height: clamp(380px, 52vw, 470px); perspective: 1400px; }
.reel.is-live .reel-stage {
  position: absolute; inset: 0; overflow: hidden; display: block; padding: 0; cursor: grab; touch-action: pan-y;
  transform-style: preserve-3d;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.reel.is-live .reel-stage.is-dragging { cursor: grabbing; }
.reel.is-live .rcard { position: absolute; left: 50%; top: 50%; margin: -170px 0 0 -105px; will-change: transform, opacity; }
.reel.is-live .reel-line {
  display: block; position: absolute; left: 0; right: 0; top: 50%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(179, 48, 42, .55) 30%, rgba(179, 48, 42, .55) 70%, transparent);
}
.reel.is-live .reel-arrow {
  display: flex; align-items: center; justify-content: center; position: absolute; top: 50%; z-index: 300; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 10, 11, .7); color: var(--text-2);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.reel.is-live .reel-arrow:hover { border-color: var(--red-2); color: #fff; }
.reel-prev { left: max(16px, calc(50vw - 520px)); }
.reel-next { right: max(16px, calc(50vw - 520px)); }
.reel-info { text-align: center; max-width: 560px; margin: 4px auto 0; min-height: 190px; transition: opacity .35s; }
.reel-info.is-fading { opacity: 0; }
.reel-info-no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; color: var(--red-3); margin: 0; }
.reel-info-name { font-size: 28px; letter-spacing: 0.16em; margin: 6px 0 4px; }
.reel-info-meta { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.reel-info-desc { color: var(--text-2); font-size: 15px; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-pos { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .2em; margin-top: 14px; }
@media (max-width: 720px) {
  .reel.is-live { height: 360px; }
  .reel.is-live .rcard { width: 170px; margin: -140px 0 0 -85px; }
  .rcard-name { font-size: 16px; }
  .reel.is-live .reel-arrow { width: 38px; height: 38px; font-size: 22px; }
  .reel-info-name { font-size: 22px; }
}

/* ===================== 第7版：声音设置面板 ===================== */
.apanel {
  position: fixed; z-index: 120; padding: 14px 16px 10px; border: 1px solid var(--line-2); border-radius: 8px;
  background: rgba(16, 15, 18, 0.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(179, 48, 42, 0.12);
}
.apanel-h { margin: 0 0 8px; font-family: var(--serif); letter-spacing: 0.2em; color: var(--text); }
.arow { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.aswitch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.aswitch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aswitch-track { flex: none; width: 40px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: background .25s, border-color .25s; }
.aswitch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .25s, background .25s; }
.aswitch input:checked + .aswitch-track { background: var(--red-dim); border-color: var(--red-2); }
.aswitch input:checked + .aswitch-track::after { transform: translateX(18px); background: var(--red-3); }
.aswitch input:focus-visible + .aswitch-track { outline: 1px solid var(--red-3); outline-offset: 2px; }
.arow-text { display: flex; flex-direction: column; line-height: 1.35; }
.arow-text b { font-weight: 500; font-size: 14px; color: var(--text); }
.arow-text small { font-size: 12px; color: var(--muted); }
.arow-vol { display: flex; align-items: center; gap: 10px; padding-left: 52px; }
.arow-vol input[type="range"] { flex: 1; min-width: 0; padding: 0; margin: 0; border: 0; background: none; min-height: 0; height: 20px; box-shadow: none; accent-color: var(--red-2); }
.arow-vol output { font-family: var(--mono); font-size: 12px; color: var(--text-2); width: 2.4em; text-align: right; }
.arow.is-off .arow-vol { opacity: 0.35; }
.apanel-foot { margin: 6px 0 0; font-size: 11px; color: var(--faint); }

/* ===================== 第7版：多语言语音 ===================== */
.vlang-switch { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.vlang-k { font-size: 13px; color: var(--muted); letter-spacing: .2em; margin-right: 4px; }
.vlang-btn { min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: inherit; font-size: 14px; letter-spacing: .12em; cursor: pointer; }
.vlang-btn:hover { border-color: var(--red-2); color: #fff; }
.vlang-btn.is-active { background: var(--red-dim); border-color: var(--red-2); color: var(--red-3); }
.voice { display: block; padding: 0; }
.vlang { display: flex; gap: 14px; align-items: flex-start; padding: 14px; }
.voices[data-lang="zh"] .vlang:not([data-lang="zh"]),
.voices[data-lang="en"] .vlang:not([data-lang="en"]),
.voices[data-lang="ja"] .vlang:not([data-lang="ja"]) { display: none; }
.vlang.is-playing { background: linear-gradient(90deg, var(--red-dim), transparent 60%); }
.voice.is-playing { border-color: var(--line); background: var(--surface); }
.voice-cv { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.voice-line-foreign { color: var(--text); font-size: 15px; }
.voice-line-tr { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.form-group-h { margin: 10px 0 -4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; letter-spacing: .2em; color: var(--red-3); }

/* ===================== 第7版：主界面背景字 ===================== */
.bgtext-home { padding: 0 1vw; }
.bgtext-home .bgcol-inner { color: rgba(228, 224, 216, 0.065); animation-duration: 48s; }
.bgtext-home .bgcol:nth-child(2n) .bgcol-inner { animation-duration: 62s; }
.bgtext-home .bgcol:nth-child(3n) .bgcol-inner { animation-duration: 74s; color: rgba(228, 224, 216, 0.05); }
.bgtext-home .bgcol:nth-child(5n) .bgcol-inner { animation-duration: 40s; }
.bgtext-home .bgcol:nth-child(4n+1) .bgcol-inner { font-size: 18px; }
.bgw.is-glitch { animation: bgGlitch .5s steps(2) 2; }
@keyframes bgGlitch {
  0% { transform: translateX(0); opacity: 1; }
  25% { transform: translateX(-3px); opacity: .3; }
  50% { transform: translateX(2px); opacity: 1; }
  75% { transform: translateX(-1px); opacity: .5; }
  100% { transform: translateX(0); opacity: 1; }
}
@media (max-width: 720px) { .bgtext-home .bgcol:nth-child(n+9) { display: none; } }

/* ===================== 第7版：核心人物宽横幅 ===================== */
.hcard-list { display: flex; flex-direction: column; gap: 16px; }
.hcard {
  position: relative; display: grid; grid-template-columns: minmax(180px, 30%) 1fr; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; font: inherit; padding: 0; cursor: pointer;
  transition: border-color .25s, box-shadow .25s; animation: fadeUp .6s ease both;
}
.hcard:hover { border-color: var(--red-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 24px rgba(179, 48, 42, .12); }
.hcard-photo { position: relative; background: #0c0c0e; min-height: 230px; overflow: hidden; }
.hcard-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .6s ease, filter .6s; filter: saturate(.85); }
.hcard:hover .hcard-photo img { transform: scale(1.04); filter: saturate(1); }
.hcard-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(21, 21, 24, .9)); pointer-events: none; }
.hcard-body { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-right: 170px; }
.hcard-no { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--red-3); margin: 0; }
.hcard-name { font-size: 30px; letter-spacing: .16em; margin: 0; }
.hcard-code { color: var(--muted); font-size: 14px; letter-spacing: .1em; margin: -4px 0 0; }
.hcard-summary { color: var(--text-2); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.hcard-radar { position: absolute; top: 16px; right: 18px; width: 140px; opacity: .9; }
.hcard-radar svg { width: 100%; height: auto; }
.hcard.is-featured { border-left: 2px solid var(--red-2); }
.hcard.is-locked { background: linear-gradient(135deg, #121214, #0d0d0f); border-style: dashed; border-color: var(--line-2); }
.hcard.is-locked .hcard-name { color: var(--muted); }
.hcard.is-locked .hcard-body { padding-right: 22px; }
.hcard .seal-stamp { z-index: 2; }
@media (max-width: 720px) {
  .hcard { grid-template-columns: 1fr; }
  .hcard-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .hcard-photo::after { background: linear-gradient(180deg, transparent 55%, rgba(21, 21, 24, .95)); }
  .hcard-body { padding: 14px 16px 16px; padding-right: 16px; }
  .hcard-name { font-size: 24px; }
  .hcard-radar { top: 10px; right: 10px; width: 92px; background: rgba(10, 10, 11, .55); border-radius: 50%; padding: 4px; }
}

/* ===================== 第7版：讨论区 · 房牌 ===================== */
.is-forum .page-head h1 { letter-spacing: .12em; }
.plates { position: relative; margin: 6px 0 26px; }
.plates-rail { position: absolute; left: -2%; right: -2%; top: 0; height: 12px; border-radius: 3px; background: linear-gradient(180deg, #3a2a22 0 3px, #24180f 3px 9px, #120b07 9px); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.plates-row { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(6px, 2vw, 24px); padding-top: 2px; }
.plate { position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; outline: none; -webkit-tap-highlight-color: transparent; }
.plate-nail { position: relative; z-index: 2; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #e6e1d6 0 25%, #8c8a86 26% 60%, #2b2a28 61%); box-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.plate-swing { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: -6px; transform-origin: 50% 0; animation: plateSway 5.2s ease-in-out infinite; }
.plate-swing-1 { animation-duration: 6.1s; animation-delay: -1.4s; }
.plate-swing-2 { animation-duration: 4.6s; animation-delay: -2.6s; }
@keyframes plateSway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
.plate-cord { position: relative; width: 70%; height: clamp(22px, 3.4vw, 34px); }
.plate-cord::before, .plate-cord::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 1.5px; height: 118%; background: rgba(226, 216, 196, .7); transform-origin: 50% 0;
}
.plate-cord::before { transform: rotate(48deg); }
.plate-cord::after { transform: rotate(-48deg); }
.plate-face {
  position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 170px;
  padding: clamp(8px, 1.6vw, 14px) 6px clamp(8px, 1.4vw, 12px); border-radius: 6px;
  background: linear-gradient(180deg, #2b2830 0 9px, #17151a 9px calc(100% - 9px), #0d0c0f calc(100% - 9px));
  border: 1px solid #3c3640; box-shadow: inset 0 0 0 3px #17151a, inset 0 0 0 4px rgba(179, 48, 42, .45), 0 10px 24px rgba(0, 0, 0, .55);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.plate-face::before, .plate-face::after { content: ""; position: absolute; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #050506; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.plate-face::before { left: 9px; }
.plate-face::after { right: 9px; }
.plate-no { font-family: var(--serif); font-weight: 700; font-size: clamp(18px, 3.4vw, 34px); letter-spacing: .12em; color: #e9dfcd; line-height: 1.1; text-shadow: 0 1px 0 #000; }
.plate-name { margin-top: 4px; font-size: clamp(10px, 1.4vw, 13px); letter-spacing: .24em; color: var(--muted); white-space: nowrap; }
.plate:hover .plate-face, .plate:focus-visible .plate-face { border-color: var(--red-2); box-shadow: inset 0 0 0 3px #17151a, inset 0 0 0 4px rgba(212, 71, 63, .8), 0 0 22px rgba(179, 48, 42, .3), 0 10px 24px rgba(0, 0, 0, .55); }
.plate:hover .plate-swing { animation-play-state: paused; }
.plate.is-active .plate-swing { transform: translateY(14px); animation: none; }
.plate.is-active .plate-cord { height: calc(clamp(22px, 3.4vw, 34px) + 14px); }
.plate.is-active .plate-face { border-color: var(--red-2); box-shadow: inset 0 0 0 3px #1a1013, inset 0 0 0 4px var(--red-3), 0 0 28px rgba(179, 48, 42, .4), 0 14px 28px rgba(0, 0, 0, .6); }
.plate.is-active .plate-no { color: var(--red-3); }
.plate.is-active .plate-name { color: var(--text-2); }
.plate.is-pulling .plate-swing { animation: plateYank .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes plateYank { 0% { transform: translateY(0) rotate(0); } 35% { transform: translateY(30px) rotate(-1deg); } 65% { transform: translateY(8px) rotate(1deg); } 100% { transform: translateY(14px) rotate(0); } }
.plates-sub { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .plate-swing { animation: none; } }

/* 帖子卡片 */
.forum-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.forum-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.sort-tabs { display: flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; margin-right: auto; }
.sort-tabs a { padding: 6px 14px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.sort-tabs a.is-active { background: var(--red-dim); color: var(--red-3); }
.forum-tools select, .forum-tools input[type="search"] { min-height: 36px !important; padding: 4px 10px !important; font-size: 13px !important; width: auto !important; max-width: 180px; }
.pcard2-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pcard2-link { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .25s, background .25s, transform .25s; }
.pcard2-link:hover { border-color: var(--red-2); background: #19181c; transform: translateX(3px); }
.pcard2.is-pinned .pcard2-link { border-left: 2px solid var(--red-2); }
.pcard2.is-featured .pcard2-link { box-shadow: inset 0 0 0 1px rgba(214, 181, 106, .25); }
.pcard2-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pcard2-who { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex-wrap: wrap; }
.pcard2-who b { font-weight: 500; color: var(--text); }
.pcard2-uid { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.pcard2-time { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pcard2-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pcard2-t { font-family: var(--serif); font-size: 18px; letter-spacing: .04em; }
.pcard2-excerpt { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard2-excerpt.is-spoiler { filter: blur(5px); user-select: none; }
.pcard2-spoiler-note { font-size: 12px; color: var(--red-3); margin-top: -4px; }
.pcard2-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.pcard2-dg { color: var(--muted); }
.pcard2-stats { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pcard2-faces { display: flex; }
.pcard2-faces img + img { margin-left: -6px; }
.badge-featured { color: #e6c27a; border-color: #6b5527; background: rgba(214, 181, 106, .1); }
.badge-hot { color: #ff8a6a; border-color: #7a2a1a; background: rgba(255, 106, 64, .1); }
.badge-op { color: var(--red-3); border-color: var(--red); background: var(--red-dim); }
.badge-cat.cat-plot { color: #e08a80; border-color: #6a2a24; }
.badge-cat.cat-char { color: #d9b46a; border-color: #5c4a22; }
.badge-cat.cat-dungeon { color: #8fb3c9; border-color: #2c4656; }
.badge-cat.cat-clue { color: #b49ad6; border-color: #463760; }
.forum-empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 36px 16px; text-align: center; }
.forum-empty-k { font-family: var(--serif); font-size: 18px; letter-spacing: .2em; margin: 0 0 6px; }
.forum-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
.fside { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(21, 21, 24, .92); padding: 14px; }
.fside-h { font-size: 14px; letter-spacing: .2em; margin: 0 0 10px; display: flex; align-items: center; }
.fside-hot { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.fside-hot li { display: flex; gap: 8px; align-items: baseline; }
.fside-hot a { color: var(--text-2); text-decoration: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fside-hot a:hover { color: #fff; }
.fside-rank { font-family: var(--mono); color: var(--red-3); width: 1.2em; }
.fside-faces { display: flex; flex-wrap: wrap; gap: 6px; }
.fside-notice { font-size: 13px; }
.fside-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.fside-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.fside-list li { display: flex; gap: 6px; align-items: center; }
.fside-list a { color: var(--text-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fside-empty { font-size: 13px; margin: 0; }
@media (max-width: 960px) {
  .forum-grid { grid-template-columns: 1fr; }
  .forum-side { position: static; }
}
@media (max-width: 560px) {
  .sort-tabs { margin-right: 0; width: 100%; }
  .sort-tabs a { flex: 1; text-align: center; }
  .forum-tools select, .forum-tools input[type="search"] { flex: 1; max-width: none; }
  .pcard2-stats { margin-left: 0; width: 100%; }
}
/* 表态 */
.reacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.react-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.react-btn b { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted); }
.react-btn:hover { border-color: var(--red-2); color: #fff; }
.react-btn.is-on { background: var(--red-dim); border-color: var(--red-2); color: var(--red-3); }
.react-btn.is-on b { color: var(--red-3); }
.react-btn:active { transform: scale(.96); }
.react-login { font-size: 13px; }
.comment-floor { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-left: auto; }

/* ===================== 第7版：核心人物 · 生命线 ===================== */
.life { margin: 6px calc(50% - 50vw) 0; width: 100vw; }
/* 没有脚本时：普通横向排列 */
.life-view { display: block; overflow-x: auto; }
.life-track { display: flex; gap: 16px; padding: 20px 16px; }
.life-svg, .life-bar { display: none; }
.lnode { position: relative; display: block; text-decoration: none; color: inherit; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.lnode-box { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; padding: 6px 6px 5px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(13, 13, 15, .94); box-shadow: 0 8px 22px rgba(0, 0, 0, .6); transition: border-color .3s, box-shadow .3s, transform .3s; }
.lnode-photo { display: block; width: 78px; height: 78px; overflow: hidden; border-radius: 2px; background: #0c0c0e; }
.lnode-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; pointer-events: none; filter: grayscale(.35); transition: filter .4s; }
.lnode-name { font-family: var(--serif); font-size: 14px; letter-spacing: .12em; white-space: nowrap; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
.lnode.is-locked .lnode-name { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.lnode.is-locked .lnode-box { border-style: dashed; opacity: .75; }
.lnode-card { display: none; }

.life.is-live .life-view { position: relative; overflow: hidden; cursor: grab; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.life.is-live .life-view.is-dragging { cursor: grabbing; }
.life.is-live .life-track { position: relative; display: block; padding: 0; will-change: transform;
  background-image: linear-gradient(rgba(179, 48, 42, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(179, 48, 42, .07) 1px, transparent 1px);
  background-size: 30px 30px; }
.life.is-live .life-svg { display: block; position: absolute; inset: 0; overflow: visible; }
.life-base { fill: none; stroke: rgba(179, 48, 42, .28); stroke-width: 2; stroke-linejoin: round; }
.life-trail { fill: none; stroke: rgba(226, 80, 70, .45); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(212, 71, 63, .6)); }
.life-pulse { fill: none; stroke: #ffd2c8; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px #ff5a4a) drop-shadow(0 0 14px rgba(212, 71, 63, .9)); }
.life.is-live .lnode { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.life.is-live .lnode:hover, .life.is-live .lnode:focus-visible, .life.is-live .lnode.is-open { z-index: 10; }
.lnode:hover .lnode-box, .lnode:focus-visible .lnode-box, .lnode.is-open .lnode-box { border-color: var(--red-2); box-shadow: 0 0 0 1px rgba(179, 48, 42, .4), 0 0 26px rgba(179, 48, 42, .35), 0 8px 22px rgba(0, 0, 0, .6); }
.lnode:hover .lnode-photo img, .lnode.is-open .lnode-photo img { filter: none; }
.lnode.is-beat .lnode-box { animation: lbeat .7s ease-out; }
@keyframes lbeat { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 74, .9), 0 0 30px rgba(255, 90, 74, .7); border-color: #ff6a5a; transform: scale(1.06); } 100% { box-shadow: 0 0 0 10px rgba(255, 90, 74, 0), 0 8px 22px rgba(0, 0, 0, .6); transform: scale(1); } }
.lnode-flat .lnode-box { filter: grayscale(1); }
/* 展开的人物卡 */
.life.is-live .lnode-card {
  display: flex; flex-direction: column; gap: 8px; position: absolute; left: 50%; width: 320px; padding: 14px 16px;
  border: 1px solid var(--red-2); border-radius: 6px; background: rgba(16, 15, 18, .98);
  box-shadow: 0 0 0 1px rgba(179, 48, 42, .25), 0 20px 50px rgba(0, 0, 0, .7), 0 0 30px rgba(179, 48, 42, .18);
  text-align: left; opacity: 0; pointer-events: none; transform: translate(-50%, 8px) scale(.96); transition: opacity .25s, transform .25s;
}
.lnode-up .lnode-card, .lnode-flat .lnode-card { top: calc(100% + 12px); }
.lnode-down .lnode-card { bottom: calc(100% + 12px); transform: translate(-50%, -8px) scale(.96); }
.life.is-live .lnode:hover .lnode-card, .life.is-live .lnode:focus-visible .lnode-card, .life.is-live .lnode.is-open .lnode-card { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.lnode-card-top { display: flex; gap: 12px; align-items: flex-start; }
.lnode-card-photo { flex: none; width: 76px; height: 76px; overflow: hidden; border-radius: 3px; border: 1px solid var(--line-2); }
.lnode-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.lnode-card-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lnode-card-no { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--red-3); }
.lnode-card-name { font-family: var(--serif); font-size: 22px; letter-spacing: .14em; color: var(--text); }
.lnode-card-code { font-size: 13px; color: var(--muted); }
.lnode-card-radar { flex: none; width: 84px; }
.lnode-card-radar svg { width: 100%; height: auto; }
.lnode-card-summary { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lnode-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lnode.is-locked .lnode-card .redacted { font-size: 13px; }
/* 下方拖动条 */
.life.is-live .life-bar { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 6px auto 0; padding: 0 16px; }
.life.is-live .life-bar[hidden] { display: none; }
.life-bar-k { color: var(--faint); font-size: 12px; }
.life-bar input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none; height: 22px; padding: 0; margin: 0; border: 0; min-height: 0; box-shadow: none;
  background: linear-gradient(var(--line-2), var(--line-2)) center / 100% 2px no-repeat;
}
.life-bar input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 54px; height: 14px; border-radius: 7px; background: var(--red-2); box-shadow: 0 0 12px rgba(179, 48, 42, .6); cursor: grab; }
.life-bar input[type="range"]::-moz-range-thumb { width: 54px; height: 14px; border: 0; border-radius: 7px; background: var(--red-2); box-shadow: 0 0 12px rgba(179, 48, 42, .6); cursor: grab; }
@media (max-width: 720px) {
  .lnode-box { width: 74px; }
  .lnode-photo { width: 62px; height: 62px; }
  .lnode-name { font-size: 12px; max-width: 64px; }
  .life.is-live .lnode-card { width: min(270px, 80vw); }
  .lnode-card-radar { width: 64px; }
  .lnode-card-name { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .life-pulse, .life-trail { display: none; } }

/* ===================== 第8版：同一个网页，手机和电脑各自的样子 ===================== */
.tabbar, .m-menu { display: none; }
.apanel-h { display: flex; align-items: center; justify-content: space-between; }
.apanel-x { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 6px; }
.apanel-x:hover { color: #fff; }

@media (max-width: 720px) {
  /* 顶部只留身份牌和等阶，导航挪到底部 */
  .topnav { display: none; }
  .topbar { flex-wrap: nowrap; padding: 8px var(--gutter); }
  .brand { display: none; }
  .tier-badge { margin-left: auto; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: rgba(10, 10, 11, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: var(--muted); text-decoration: none; font-size: 11px; letter-spacing: .1em; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a.is-active { color: var(--red-3); }
  .tabbar a.is-active svg { filter: drop-shadow(0 0 6px rgba(212, 71, 63, .6)); }
  .tabbar a:active { background: rgba(179, 48, 42, .08); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .m-menu { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
  .m-menu .sound-toggle, .m-menu [data-sound-toggle] { color: var(--text-2); }
  .m-menu-exit { color: var(--red-3) !important; }
  .ptabs.is-tabbed .ptab-nav { top: 52px; }
  /* 声音设置：从底部滑出 */
  .apanel { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto !important; border-radius: 14px 14px 0 0; padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px)); animation: sheetUp .25s ease-out; z-index: 130; }
  .apanel::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-2); }
  .aswitch-track { width: 48px; height: 26px; }
  .aswitch-track::after { width: 20px; height: 20px; }
  .aswitch input:checked + .aswitch-track::after { transform: translateX(22px); }
  .arow-vol input[type="range"] { height: 32px; }
  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
  /* 副本配乐：缩成右下角的小圆按钮，在底部导航上面 */
  .bgm { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); right: 12px; padding: 4px; border-radius: 50%; }
  .bgm .bgm-text { display: none; }
  .bgm-btn { min-height: 0; padding: 0; }
  .bgm-eq { width: 44px; height: 44px; }
  /* 诡物轮盘：手指左右滑，去掉箭头 */
  .reel.is-live .reel-arrow { display: none; }
  /* 讨论区房牌：上三下二两排 */
  .plates-rail { display: none; }
  .plates-row { grid-template-columns: repeat(6, 1fr); column-gap: 0; row-gap: 14px; }
  .plate { grid-column: span 2; }
  .plate:nth-child(4) { grid-column: 2 / span 2; }
  .plate:nth-child(5) { grid-column: 4 / span 2; }
  .plate::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: linear-gradient(180deg, #3a2a22 0 3px, #24180f 3px 8px, #120b07 8px); }
  .plate-face { max-width: 104px; padding: 10px 4px 9px; }
  .plate-no { font-size: 24px; }
  .plate-name { font-size: 11px; letter-spacing: .14em; }
  .plate-cord { height: 22px; }
  .plate.is-active .plate-cord { height: 32px; }
  /* 生命线：竖排，跟着页面往下滑，点头像直接进入 */
  .life.is-vertical { margin: 0; width: auto; }
  .life.is-live.is-vertical .life-view { cursor: default; touch-action: auto; -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .life.is-live.is-vertical .life-track { background-size: 26px 26px; }
  .life.is-vertical .lnode-card { display: none !important; }
  .life.is-vertical .lnode-box { width: 96px; }
  .life.is-vertical .lnode-photo { width: 82px; height: 82px; }
  .life.is-vertical .lnode-name { font-size: 14px; max-width: 84px; }
}
/* 手机、平板这类没有鼠标的设备：去掉悬停效果，改成按下时的反馈 */
@media (hover: none) {
  .pcard2-link:hover, .hcard:hover { transform: none; }
  .hcard:hover .hcard-photo img { transform: none; }
  .life.is-live .lnode:hover .lnode-card { opacity: 0; pointer-events: none; }
  .lnode:active .lnode-box, .pcard2-link:active, .plate:active .plate-face, .rcard:active .rcard-frame { filter: brightness(1.25); }
  .btn:active, .chip:active { transform: scale(.97); }
}
.only-phone { display: none; }
@media (max-width: 720px) {
  .only-desktop { display: none; }
  .only-phone { display: inline; }
  .tier-badge { max-width: 46vw; overflow: hidden; }
  .tier-badge-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ===================== 第9版 ===================== */
.ptitle { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 11px; line-height: 18px; letter-spacing: .08em; color: #e6c27a; border: 1px solid #6b5527; border-radius: 3px; background: rgba(214, 181, 106, .08); vertical-align: 2px; white-space: nowrap; font-family: var(--sans); font-weight: 400; }
.foot-term { color: inherit; text-decoration: none; border-bottom: 1px dotted transparent; }
.foot-term:hover { color: var(--red-3); border-bottom-color: var(--red-3); }

/* ---------- 火漆信 ---------- */
.letter { display: flex; justify-content: center; padding: 30px 0 10px; }
.letter-popup { position: fixed; inset: 0; z-index: 140; align-items: center; padding: 16px; background: rgba(5, 5, 6, .88); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn .5s ease both; overflow-y: auto; }
.letter-popup[hidden] { display: none; }
.letter-popup.is-leaving { opacity: 0; transition: opacity .4s; }
.letter-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.envelope { position: relative; width: min(420px, 86vw); height: calc(min(420px, 86vw) * .64); transition: width .8s ease, height .8s ease; perspective: 1200px; }
.env-back { position: absolute; inset: 0; z-index: 1; border-radius: 6px; background: #3b211b; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); transition: opacity .6s, transform .8s; }
.paper { position: absolute; left: 6%; right: 6%; top: 10%; height: 80%; z-index: 2; border-radius: 3px; overflow: hidden; background: #e7dcc5;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 30%), repeating-linear-gradient(180deg, transparent 0 31px, rgba(120, 90, 60, .08) 31px 32px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4); transition: transform .9s cubic-bezier(.2, .8, .2, 1), top .8s, left .8s, right .8s, height .8s; transform-origin: 50% 0; }
.env-front { position: absolute; inset: 0; z-index: 3; border-radius: 6px; background: #4a2a22; clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 100%, 0 100%); transition: opacity .6s, transform .8s; }
.env-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 40%); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 64%; z-index: 4; background: #5a3229; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transition: transform .6s ease-in-out, opacity .6s; border-top: 1px solid rgba(255, 255, 255, .08); }
.seal { position: absolute; left: 50%; top: 64%; z-index: 5; width: 68px; height: 68px; margin: -34px 0 0 -34px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.seal:focus-visible { outline: 2px solid #e6c27a; outline-offset: 4px; }
.seal-half { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #c8392f 0 18%, #9b1f18 45%, #6a120e 80%); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .45), 0 3px 8px rgba(0, 0, 0, .5); transition: transform .55s cubic-bezier(.4, 0, .9, .6), opacity .55s; }
.seal-l { clip-path: polygon(0 0, 54% 0, 44% 40%, 56% 62%, 46% 100%, 0 100%); }
.seal-r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 46% 100%, 56% 62%, 44% 40%); }
.seal-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 26px; font-weight: 700; color: rgba(40, 6, 4, .55); text-shadow: 0 1px 0 rgba(255, 120, 100, .25); pointer-events: none; transition: opacity .3s; }
.seal:hover .seal-half { filter: brightness(1.12); }
.letter:not(.is-crack) .seal { animation: sealPulse 2.4s ease-in-out infinite; }
@keyframes sealPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.paper-fold { position: absolute; left: 0; right: 0; height: 1px; z-index: 2; background: rgba(90, 60, 40, .25); box-shadow: 0 1px 0 rgba(255, 255, 255, .4); transition: opacity .6s .5s; }
.paper-fold-1 { top: 33.3%; } .paper-fold-2 { top: 66.6%; }
.paper-inner { position: relative; padding: 34px 34px 28px; color: #2a1f18; font-family: var(--serif); }
.paper-title { color: #3a1410; font-size: 22px; text-align: center; letter-spacing: .2em; margin: 0 0 18px; opacity: 0; transition: opacity .6s; }
.paper-line { margin: 0 0 14px; font-size: 16px; line-height: 2; text-indent: 2em; opacity: 0; transform: translateY(6px); transition: opacity .8s, transform .8s; }
.paper-sign { text-align: right; margin: 20px 0 0; font-size: 16px; opacity: 0; transition: opacity .8s; }
.paper-date { text-align: right; margin: 4px 0 0; font-family: var(--mono); font-size: 12px; color: #7a6a58; opacity: 0; transition: opacity .8s; }
.letter-hint { margin: 0; font-size: 13px; letter-spacing: .2em; color: var(--muted); min-height: 1.4em; animation: breathe 2.6s ease-in-out infinite; }
.letter-actions { display: flex; gap: 10px; opacity: .85; }
/* 拆信的每一步 */
.letter.is-crack .seal-l { transform: translate(-26px, 60px) rotate(-38deg); opacity: 0; }
.letter.is-crack .seal-r { transform: translate(26px, 70px) rotate(42deg); opacity: 0; }
.letter.is-crack .seal-mark { opacity: 0; }
.letter.is-crack .seal { pointer-events: none; outline: none; }
.letter.is-flap .env-flap { transform: rotateX(178deg); z-index: 0; transition: transform .6s ease-in-out, z-index 0s .3s; }
.letter.is-out .paper { transform: translateY(-62%); }
.letter.is-unfold .envelope { width: min(580px, 92vw); height: min(72vh, 640px); }
.letter.is-unfold .env-back, .letter.is-unfold .env-front, .letter.is-unfold .env-flap { opacity: 0; transform: translateY(24%); pointer-events: none; }
.letter.is-unfold .paper { top: 0; left: 0; right: 0; height: 100%; transform: none; overflow-y: auto; z-index: 6; animation: paperUnfoldSmooth .9s ease both; }
@keyframes paperUnfoldSmooth { 0% { clip-path: inset(0 0 66% 0); } 45% { clip-path: inset(0 0 33% 0); } 100% { clip-path: inset(0 0 0 0); } }
.letter.is-unfold .paper-fold { opacity: 0; }
.letter.is-open .paper-title, .letter.is-open .paper-sign, .letter.is-open .paper-date { opacity: 1; }
.letter.is-open .paper-line { opacity: 1; transform: none; }
.letter.is-open .letter-hint { display: none; }
.letter.is-done *, .letter.is-done { transition: none !important; animation: none !important; }
.letter.is-done .seal, .letter.is-done .env-back, .letter.is-done .env-front, .letter.is-done .env-flap { display: none; }
.letter.is-done .envelope { width: min(580px, 92vw); height: auto; }
.letter.is-done .paper { position: relative; inset: auto; left: 0; right: 0; top: 0; height: auto; transform: none; }
.letter.is-done .paper-fold { display: none; }
.letter.is-done .paper-title, .letter.is-done .paper-line, .letter.is-done .paper-sign, .letter.is-done .paper-date { opacity: 1; transform: none; }
body.has-letter, body.has-pact { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .letter * { transition-duration: .01s !important; animation: none !important; } }

/* ---------- 信箱 ---------- */
.mail-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mail-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .25s; }
.mail-item:hover { border-color: var(--red-2); }
.mail-item.is-new { border-left: 2px solid var(--red-2); }
.mail-env { position: relative; flex: none; width: 46px; height: 32px; border-radius: 3px; background: #4a2a22; overflow: hidden; }
.mail-env::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64%; background: #5a3229; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.mail-seal { position: absolute; left: 50%; top: 58%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #9b1f18; }
.mail-item:not(.is-new) .mail-seal { opacity: .3; }
.mail-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mail-kind { font-size: 11px; letter-spacing: .2em; color: var(--red-3); }
.mail-title { font-family: var(--serif); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-time { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- 主界面：存活确认、倒计时、投票 ---------- */
.hud-alive { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.alive-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.alive-ok b, .alive-note b { color: var(--red-3); font-family: var(--mono); }
.alive-broken { color: var(--red-3); letter-spacing: .1em; }
.hud-alive.is-just { animation: fadeIn .6s ease; }
.countdown { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--red); border-radius: var(--radius); background: linear-gradient(90deg, var(--red-dim), transparent 70%); }
.countdown-k { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; letter-spacing: .14em; color: var(--text-2); }
.countdown-v { font-family: var(--mono); font-size: 22px; letter-spacing: .12em; color: var(--red-3); text-shadow: 0 0 12px rgba(212, 71, 63, .5); }
.poll-mini-q { margin: 0 0 10px; font-family: var(--serif); font-size: 15px; }

/* ---------- 阅读进度、图鉴 ---------- */
.read-progress { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.read-progress-k { font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.read-bar { position: relative; flex: 1; min-width: 120px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; display: inline-block; }
.read-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red-2); box-shadow: 0 0 8px rgba(212, 71, 63, .6); transition: width .8s ease; }
.read-progress-v { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.chapter.is-read .chapter-title { color: var(--muted); }
.chapter-read { margin-left: auto; color: var(--red-3); font-size: 13px; }
.chapter a { display: flex; align-items: center; }
.dcard-progress { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin: 0; }
.dcard-progress .read-bar { max-width: 180px; }
.rcard-got { position: absolute; right: 8px; top: 8px; font-size: 11px; letter-spacing: .1em; color: #e6c27a; border: 1px solid #6b5527; background: rgba(10, 10, 11, .7); padding: 0 6px; border-radius: 3px; }
.rcard.is-unseen .rcard-media img { filter: grayscale(1) brightness(.7); }

/* ---------- 副本入场协议 ---------- */
.pact { --dark: .55; position: fixed; inset: 0; z-index: 135; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, var(--dark)); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeIn .4s ease both; overflow-y: auto; }
.pact[hidden] { display: none; }
.pact.is-leaving { opacity: 0; transition: opacity .7s; }
.pact-box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px 24px 20px; border: 1px solid var(--red-2); border-radius: 6px; background: linear-gradient(180deg, #1a1012, #111013 40%); box-shadow: 0 0 60px rgba(179, 48, 42, .25), 0 30px 80px rgba(0, 0, 0, .8); }
.pact.is-beat .pact-box { animation: pactBeat .35s ease-out; }
@keyframes pactBeat { 0% { box-shadow: 0 0 90px rgba(212, 71, 63, .55), 0 30px 80px rgba(0, 0, 0, .8); transform: scale(1.006); } 100% { box-shadow: 0 0 60px rgba(179, 48, 42, .25), 0 30px 80px rgba(0, 0, 0, .8); transform: none; } }
.pact-title { font-size: 26px; letter-spacing: .16em; margin: 6px 0 10px; }
.pact-lead { color: var(--text-2); font-size: 14px; margin: 0 0 10px; }
.pact-rules { margin: 0 0 18px; padding-left: 1.6em; color: var(--text); font-size: 14px; line-height: 1.9; }
.pact-rules-empty { color: var(--muted); font-size: 14px; }
.pact-hold { position: relative; display: block; width: 100%; min-height: 54px; overflow: hidden; border: 1px solid var(--red-2); border-radius: var(--radius); background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px; letter-spacing: .3em; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pact-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #6a120e, #b3302a); }
.pact-label { position: relative; }
.pact-foot { margin: 12px 0 0; text-align: center; font-size: 13px; }
.pact-foot a { color: var(--muted); }

/* ---------- 页面过场 ---------- */
.transit { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: #060607; animation: fadeIn .2s ease both; transition: opacity .6s; text-align: center; }
.transit.is-out { opacity: 0; pointer-events: none; }
.transit-k { margin: 0; font-family: var(--mono); font-size: 15px; letter-spacing: .3em; color: var(--red-3); }
.transit-tip { margin: 0; max-width: 520px; font-family: var(--serif); font-size: 14px; color: var(--muted); }
.transit-bar { width: min(260px, 60vw); height: 2px; background: var(--line); position: relative; overflow: hidden; }
.transit-bar::after { content: ""; position: absolute; inset: 0; background: var(--red-2); transform-origin: 0 50%; animation: transitBar .45s ease-out forwards; }
@keyframes transitBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 系统故障、午夜模式 ---------- */
.is-glitching { animation: glitchText 1.2s steps(3) 1; }
@keyframes glitchText {
  0% { transform: none; text-shadow: none; }
  20% { transform: skewX(-8deg) translateX(-2px); text-shadow: 3px 0 rgba(255, 40, 40, .7), -3px 0 rgba(40, 200, 255, .5); }
  40% { transform: skewX(6deg) translateX(2px); text-shadow: -2px 0 rgba(255, 40, 40, .7), 2px 0 rgba(40, 200, 255, .5); opacity: .7; }
  60% { transform: none; text-shadow: none; opacity: 1; }
  80% { transform: translateX(1px); text-shadow: 1px 0 rgba(255, 40, 40, .6); }
  100% { transform: none; text-shadow: none; }
}
.gtoast { position: fixed; right: 16px; bottom: 76px; z-index: 125; max-width: min(360px, calc(100vw - 32px)); padding: 12px 14px; border: 1px solid var(--red-2); border-left-width: 3px; border-radius: var(--radius); background: rgba(16, 10, 11, .96); color: var(--text); font-family: var(--mono); font-size: 13px; line-height: 1.6; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); animation: toastIn .35s ease-out both; transition: opacity .6s, transform .6s; }
.gtoast.is-out { opacity: 0; transform: translateY(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.is-midnight body { background: #050506; }
html.is-midnight .bgtext-home .bgw.is-lit { color: rgba(240, 70, 60, .8); text-shadow: 0 0 16px rgba(220, 40, 30, .8); }
html.is-midnight .bgtext-home .bgcol-inner { color: rgba(200, 120, 110, .07); }
html.is-midnight .sys-line { border-color: rgba(179, 48, 42, .6); color: #f0d0c8; }
html.is-midnight .hud { box-shadow: 0 0 40px rgba(179, 48, 42, .18); }
html.is-midnight .fx-scan { opacity: 1; }

/* ---------- 玩家身份牌、徽章 ---------- */
.idcard { position: relative; max-width: 560px; padding: 16px 18px; border: 1px solid #5a2a22; border-radius: 10px; background: linear-gradient(135deg, #1d1416, #121014 60%); box-shadow: inset 0 0 0 1px rgba(179, 48, 42, .25), 0 12px 30px rgba(0, 0, 0, .5); overflow: hidden; }
.idcard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 2px solid rgba(179, 48, 42, .18); }
.idcard-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; letter-spacing: .14em; margin-bottom: 12px; }
.idcard-org { color: var(--red-3); font-family: var(--serif); }
.idcard-no { font-family: var(--mono); color: var(--muted); }
.idcard-main { display: flex; gap: 16px; align-items: flex-start; }
.idcard-photo { width: 96px; height: 120px; object-fit: cover; border: 1px solid var(--red-2); border-radius: 3px; flex: none; }
.idcard-info { margin: 0; display: grid; gap: 4px; flex: 1; min-width: 0; }
.idcard-info div { display: grid; grid-template-columns: 5em 1fr; gap: 8px; font-size: 13px; }
.idcard-info dt { color: var(--muted); }
.idcard-info dd { margin: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idcard-name { font-family: var(--serif); font-size: 18px; letter-spacing: .1em; }
.idcard-code { height: 26px; margin-top: 12px; background: repeating-linear-gradient(90deg, rgba(232, 220, 196, .5) 0 2px, transparent 2px 5px, rgba(232, 220, 196, .5) 5px 6px, transparent 6px 10px); opacity: .6; }
.badge-grid { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bdg { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 10px 40px; position: relative; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--faint); }
.bdg-ico { position: absolute; left: 10px; top: 12px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); }
.bdg-name { font-size: 14px; }
.bdg-desc { font-size: 11px; }
.bdg.is-got { border-style: solid; border-color: #6b5527; background: rgba(214, 181, 106, .05); color: var(--text); }
.bdg.is-got .bdg-ico { border-color: #e6c27a; background: radial-gradient(circle, #e6c27a 0 30%, transparent 32%); box-shadow: 0 0 10px rgba(230, 194, 122, .4); }
.bdg.is-got .bdg-desc { color: var(--muted); }
.bdg.is-secret.is-got { border-color: var(--red-2); background: var(--red-dim); }
.title-form { align-items: flex-end; }

/* ---------- 关系图 ---------- */
.rg-wrap { max-width: 820px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; background: radial-gradient(circle at 50% 50%, #1b1316, #0c0b0d 70%); }
.rg { display: block; width: 100%; height: auto; max-height: calc(100vh - 150px); margin: 0 auto; }
.rg-edge path { fill: none; stroke: rgba(179, 48, 42, .45); stroke-width: 1.6; transition: stroke .25s, opacity .25s; }
.rg-edge rect { fill: #141215; stroke: rgba(179, 48, 42, .5); stroke-width: 1; }
.rg-edge text { fill: var(--text-2); font-size: 14px; text-anchor: middle; font-family: var(--sans); letter-spacing: .06em; }
.rg-ring { fill: #0d0c0f; stroke: var(--red-2); stroke-width: 2; transition: stroke .25s; }
.rg-name { fill: var(--text); font-size: 16px; text-anchor: middle; font-family: var(--serif); letter-spacing: .1em; }
.rg-node { cursor: pointer; transition: opacity .25s; }
.rg-node:hover .rg-ring, .rg-node.on .rg-ring { stroke: #ff6a5a; stroke-width: 3; }
.rg.is-focus .rg-edge:not(.on), .rg.is-focus .rg-node:not(.on) { opacity: .15; }
.rg.is-focus .rg-edge.on path { stroke: #ff6a5a; stroke-width: 2.4; }

/* ---------- 人气榜 ---------- */
.rank-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 34px 52px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rank-no { font-family: var(--mono); font-size: 18px; color: var(--muted); text-align: center; }
.rank-1 { color: #e6c27a; text-shadow: 0 0 10px rgba(230, 194, 122, .5); } .rank-2 { color: #d0cbc2; } .rank-3 { color: #c08a5a; }
.rank-img { width: 52px; height: 52px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line-2); }
.rank-img-wide { object-fit: cover; }
.rank-name { display: flex; flex-direction: column; text-decoration: none; color: var(--text); font-family: var(--serif); font-size: 17px; min-width: 0; }
.rank-name .muted { font-family: var(--sans); font-size: 12px; }
.rank-score { font-family: var(--mono); color: var(--red-3); font-size: 16px; }
.rank-n { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .rank-row { grid-template-columns: 28px 44px 1fr auto; } .rank-img { width: 44px; height: 44px; } .rank-n { grid-column: 3 / -1; } }

/* ---------- 投票 ---------- */
.poll-list { display: flex; flex-direction: column; gap: 14px; }
.poll-head { margin-bottom: 12px; }
.poll-q { font-size: 19px; margin: 0 0 6px; }
.poll-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; margin: 0; }
.poll-form, .poll-res { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.poll-opt { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; }
.poll-res .poll-opt { grid-template-columns: 1fr auto; cursor: default; }
.poll-opt.is-mine { border-color: var(--red-2); background: var(--red-dim); }
.poll-opt .poll-bar { grid-column: 1 / -1; position: relative; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.poll-pct { font-family: var(--mono); font-size: 12px; color: var(--text-2); justify-self: end; }
.poll-form .poll-pct { grid-column: 2; }
.poll-form .btn { align-self: flex-start; margin-top: 4px; }

/* ---------- 终端、隐藏档案 ---------- */
.is-terminal .page { max-width: 760px; }
.terminal { margin: 40px auto; padding: 22px; border: 1px solid #2c3a2c; border-radius: 6px; background: #070a07; color: #9fd29f; font-family: var(--mono); box-shadow: 0 0 40px rgba(60, 160, 60, .08), inset 0 0 60px rgba(0, 0, 0, .6); }
.terminal-head { margin: 0 0 10px; font-size: 12px; letter-spacing: .3em; color: #5e8f5e; }
.terminal-log { margin: 0 0 14px; white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.8; color: #9fd29f; }
.terminal-form { display: flex; align-items: center; gap: 8px; }
.terminal-prompt { color: #9fd29f; }
.terminal-form input { flex: 1; min-height: 40px !important; background: #050805 !important; border: 1px solid #2c3a2c !important; color: #c8f0c8 !important; font-family: var(--mono) !important; }
.terminal-err { color: #e08a80; font-size: 14px; }
.terminal-err a { color: #c8f0c8; }
.secret { max-width: 720px; margin: 0 auto; padding: 24px; border: 1px solid var(--red-2); border-radius: 6px; background: linear-gradient(180deg, #1a1012, var(--surface)); }
.secret h1 { letter-spacing: .14em; margin: 8px 0 16px; }

/* ---------- 分享卡预览 ---------- */
.share-box { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.share-preview { width: 100%; height: auto; border-radius: 4px; }
.share-actions { display: flex; gap: 10px; }
.pfile-share { margin: 0; }

/* ---------- 后台：数据统计 ---------- */
.daybars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 180px; padding-top: 10px; }
.daybar { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.daybar-cols { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.daybar-cols i { display: block; width: 28%; min-height: 2px; border-radius: 2px 2px 0 0; }
.db-a, .legend-a { background: #b3302a; } .db-b, .legend-b { background: #d9b46a; } .db-c, .legend-c { background: #5aa46c; }
.daybar-k { font-size: 10px; color: var(--muted); font-family: var(--mono); }
.legend { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.stat-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.stat-top { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.stat-top li span { margin-left: 8px; font-size: 12px; }
@media (max-width: 720px) { .daybars { gap: 2px; } .daybar-k { font-size: 8px; writing-mode: vertical-rl; } }
/* 关系图：手机版清单 */
@media (max-width: 720px) { .rg-list { display: grid; gap: 12px; } }
.rg-li { border: 1px solid var(--line); border-radius: 8px; background: var(--panel, #141215); padding: 12px 14px; }
.rg-li-head { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 17px; letter-spacing: .08em; }
.rg-li-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red-2); }
.rg-li-go { margin-left: auto; color: var(--muted); font-size: 22px; }
.rg-li-rel { list-style: none; margin: 10px 0 0; padding: 0 0 0 22px; border-left: 1px solid rgba(179, 48, 42, .45); margin-left: 22px; display: grid; gap: 8px; }
.rg-li-rel li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rg-li-tag { flex: none; padding: 2px 10px; border: 1px solid rgba(179, 48, 42, .5); border-radius: 12px; color: var(--text-2); font-size: 12px; }
.rg-li-rel a { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.rg-li-rel img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.rg-li-none { margin: 8px 0 0 58px; font-size: 13px; }
.side-h .muted { margin-left: 8px; font-family: var(--mono); font-size: .8em; }
.term-back { display: inline-block; margin-top: 14px; }
.mail-tabs .dot-count, .tab .dot-count { margin-left: 6px; }
/* 后台：系统播报 */
.bc-auto { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.bc-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.bc-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.bc-text { flex: 1; min-width: 0; }
.bc-list time { font: 12px var(--mono); white-space: nowrap; }
.bc-list form { margin: 0; }
@media (max-width: 720px) { .bc-list li { flex-wrap: wrap; } .bc-list time { order: 3; } }
/* 评论次数提示 */
.comment-quota { margin: 6px 0 0; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.comment-quota.is-out { color: var(--red-3); }
/* 手机：总部讨论群的输入框不被底部导航挡住 */
@media (max-width: 720px) { .hq-form { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); } }
/* 第13版：审核中 */
.held-note { margin: 0 0 16px; padding: 10px 14px; border: 1px dashed rgba(214, 181, 106, .55); border-radius: 6px; background: rgba(214, 181, 106, .07); color: #d6b56a; font-size: 14px; line-height: 1.7; }
.held-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid rgba(214, 181, 106, .6); border-radius: 3px; color: #d6b56a; font-size: 11px; line-height: 18px; vertical-align: 1px; letter-spacing: .05em; }
.is-held { opacity: .75; }
.is-held .comment-body, .is-held .bubble { border-style: dashed; }
.form-msg.is-held-msg { color: #d6b56a; }
.q-note { margin: 6px 0; font-size: 13px; color: var(--text-2); }
.q-state.q-ok { color: #8fcf9f; border-color: #2f5a3a; }
.q-state.q-held { color: #d6b56a; border-color: #6f5a2a; }
.q-state.q-del { color: var(--red-3); border-color: rgba(179, 48, 42, .5); }
/* 封号：淘汰画面 */
body.is-out { background: #050405; }
.out-scene { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; overflow: hidden; }
.out-noise { position: absolute; inset: -50%; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); animation: outScan 6s linear infinite; pointer-events: none; }
@keyframes outScan { to { transform: translateY(12%); } }
.out-k { margin: 0; font: 12px var(--mono); letter-spacing: .4em; color: rgba(179, 48, 42, .8); }
.out-title { position: relative; margin: 0; font-family: var(--serif); font-size: clamp(22px, 5vw, 44px); letter-spacing: .12em; color: #e04a3e; text-shadow: 0 0 18px rgba(220, 40, 30, .55); animation: outFlicker 4s infinite; }
.out-title::before, .out-title::after { content: attr(data-text); position: absolute; inset: 0; opacity: .6; pointer-events: none; }
.out-title::before { color: #5af; transform: translate(-2px, 0); clip-path: inset(0 0 60% 0); animation: outGlitch 2.6s infinite steps(2); }
.out-title::after { color: #f33; transform: translate(2px, 0); clip-path: inset(55% 0 0 0); animation: outGlitch 3.1s infinite steps(2) reverse; }
@keyframes outGlitch { 0%, 88%, 100% { transform: translate(0); opacity: 0; } 90% { transform: translate(-4px, 1px); opacity: .7; } 94% { transform: translate(3px, -1px); opacity: .7; } }
@keyframes outFlicker { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: .35; } 49% { opacity: 1; } 72% { opacity: .8; } }
.out-line { margin: 0; font: 13px var(--mono); color: var(--faint); letter-spacing: .3em; }
@media (prefers-reduced-motion: reduce) { .out-noise, .out-title, .out-title::before, .out-title::after { animation: none; } }
/* 第14版：关系的有效阶段 */
.rel-span { margin-left: 6px; font: 11px var(--mono); color: var(--muted); letter-spacing: .04em; }
.rel-span.is-past { text-decoration: line-through; opacity: .7; }
.rg-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.rg-tier { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 14px; letter-spacing: .08em; }
.rg-tier:hover { border-color: var(--red-2); color: var(--text); }
.rg-tier.is-active { border-color: var(--red-2); background: rgba(179, 48, 42, .18); color: #f0e2de; }
.rg-tier.is-locked { opacity: .45; cursor: not-allowed; }
.rg-tier.is-locked svg { width: 12px; height: 12px; }
@media (max-width: 720px) { .rg-tiers { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .rg-tier { flex: none; } }
/* 第14版：副本列表顶部的感情线 */
.arcs { margin: 0 0 26px; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, rgba(179, 48, 42, .07), rgba(0, 0, 0, 0)); }
.arcs-h { margin: 0 0 10px; font-family: var(--serif); font-size: 16px; letter-spacing: .3em; color: var(--text-2); }
.arcs-track { position: relative; display: flex; gap: 0; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; }
.arcs-line { position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: linear-gradient(90deg, rgba(179, 48, 42, .15), rgba(179, 48, 42, .7), rgba(179, 48, 42, .15)); }
.arc-node { position: relative; flex: 1 0 120px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 6px; border: 0; background: none; color: var(--text-2); cursor: pointer; font: inherit; text-align: center; }
.arc-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(179, 48, 42, .7); background: #120d0f; transition: transform .2s, background .2s, box-shadow .2s; }
.arc-dot svg { width: 12px; height: 12px; color: var(--muted); }
.arc-tier { font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.arc-title { font-family: var(--serif); font-size: 14px; color: var(--text-2); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-node:hover .arc-dot { transform: scale(1.1); }
.arc-node.is-active .arc-dot { background: var(--red-2); box-shadow: 0 0 0 4px rgba(179, 48, 42, .25), 0 0 18px rgba(220, 40, 30, .55); }
.arc-node.is-active .arc-tier, .arc-node.is-active .arc-title { color: #f0e2de; }
.arc-node.is-locked { cursor: not-allowed; opacity: .5; }
.arc-node.is-locked .arc-dot { border-style: dashed; }
.arc-panel { margin-top: 10px; padding: 14px 16px; border-left: 2px solid var(--red-2); background: rgba(0, 0, 0, .25); border-radius: 0 8px 8px 0; animation: fadeIn .3s ease; }
.arc-panel-k { margin: 0 0 6px; font-size: 12px; letter-spacing: .2em; color: var(--red-3); }
.arc-summary { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; color: var(--text); }
.arc-body { font-size: 15px; }
.arc-empty { margin-bottom: 20px; }
@media (max-width: 720px) { .arcs { padding: 14px 12px 14px; } .arc-node { flex-basis: 78px; padding: 0 2px; } .arc-title { max-width: 78px; font-size: 13px; } }

/* 第14版：在册诡异图鉴 */
.anomalies { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.anom-h { margin: 0; font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); letter-spacing: .08em; }
.anom-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.anom-tab { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; }
.anom-tab span { margin-left: 4px; font: 12px var(--mono); color: var(--muted); }
.anom-tab.is-active { border-color: var(--red-2); background: rgba(179, 48, 42, .18); color: #f0e2de; }
.acard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.acard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, #16121a, #0e0c10); color: var(--text); text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.acard::before { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(179, 48, 42, .25); border-radius: 4px; pointer-events: none; }
.acard:hover { transform: translateY(-3px); border-color: var(--red-2); box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 0 18px rgba(179, 48, 42, .25); }
.acard-media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; background: #0a090b; }
.acard-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: filter .3s; }
.acard:hover .acard-media img { filter: none; }
.acard-status { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border: 1px solid rgba(214, 181, 106, .7); border-radius: 2px; background: rgba(10, 8, 9, .75); color: #d6b56a; font-size: 12px; letter-spacing: .1em; transform: rotate(-4deg); }
.acard-no { margin-top: 6px; font: 11px var(--mono); color: var(--muted); letter-spacing: .06em; }
.acard-name { font-family: var(--serif); font-size: 18px; letter-spacing: .06em; }
.acard-alias { font-size: 12px; color: var(--red-3); }
.acard-meta { font-size: 12px; color: var(--muted); }
.acard.is-locked .acard-name { color: var(--muted); letter-spacing: 0; }
.acard[hidden] { display: none; }
.anom-alias { margin: -6px 0 10px; color: var(--red-3); letter-spacing: .08em; }
.specimen.anomaly .specimen-media { position: relative; }
@media (max-width: 720px) { .acard-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .acard-name { font-size: 16px; } }
