/* 详情页与阅读页排版（继承 style.css 的变量） */

.doc { max-width: 760px; padding-top: 56px; padding-bottom: 90px; }
.reading { max-width: 660px; }

.back {
  display: inline-block; font-family: var(--mono); font-size: 12.5px;
  color: var(--fg-faint); margin-bottom: 30px; transition: color .18s;
}
.back:hover { color: var(--fg-dim); }

.doc-head { margin-bottom: 40px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.doc-head h1 {
  font-size: clamp(25px, 4vw, 33px); font-weight: 600;
  letter-spacing: -.025em; line-height: 1.32;
}
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--fg-faint);
  margin-bottom: 13px;
}
.doc-meta .tag {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  background: var(--accent-soft); padding: 3px 9px; border-radius: 6px;
}
.doc-lede { margin-top: 16px; color: var(--fg-dim); font-size: 15px; line-height: 1.75; }
.doc-intro {
  margin-top: 14px; color: var(--fg-dim); font-size: 15px;
  line-height: 1.85; white-space: pre-wrap;
}

/* ---------- 长文排版 ---------- */
.prose { font-size: 16.5px; line-height: 1.95; color: var(--fg); }
.reading .prose { font-size: 17px; line-height: 2.05; }
.prose p { margin: 0 0 1.25em; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-weight: 600; letter-spacing: -.01em; line-height: 1.42; margin: 2em 0 .7em;
}
.prose h1 { font-size: 1.5em; }
.prose h2 { font-size: 1.3em; }
.prose h3 { font-size: 1.12em; }
.prose h4 { font-size: 1em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.4em 0; padding-left: 1.1em;
  border-left: 2px solid var(--accent); color: var(--fg-dim);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.prose code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: .12em .4em; border-radius: 5px;
}
.prose pre {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px; overflow-x: auto; margin: 1.4em 0;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: .86em; line-height: 1.7; }
.prose img { max-width: 100%; border-radius: 10px; margin: 1.4em 0; }
.prose strong { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 500; }

/* ---------- 章节目录 ---------- */
.chapters { list-style: none; padding: 0; margin: 0; }
.chapters li { border-bottom: 1px solid var(--line); }
.chapters li:first-child { border-top: 1px solid var(--line); }
.chapters a {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 4px; transition: background .16s, padding .16s;
}
.chapters a:hover { background: var(--bg-soft); padding-left: 12px; padding-right: 12px; }
.chapters .cn { font-family: var(--mono); font-size: 12px; color: var(--fg-faint); width: 26px; flex-shrink: 0; }
.chapters .ct { flex: 1; font-size: 15.5px; }
.chapters .arr { color: var(--fg-faint); font-size: 13px; opacity: 0; transition: opacity .16s; }
.chapters a:hover .arr { opacity: 1; }

/* ---------- 上下章 ---------- */
.chnav {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line);
}
.chnav-btn {
  display: flex; flex-direction: column; gap: 5px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px;
  transition: border-color .18s, background .18s; min-width: 0;
}
.chnav-btn:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.chnav-btn .dir { font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint); }
.chnav-btn .ttl { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chnav-btn.next { text-align: right; align-items: flex-end; }
.chnav-btn.mid {
  justify-content: center; align-items: center;
  font-size: 13.5px; color: var(--fg-dim); padding-left: 22px; padding-right: 22px;
}
.chnav-btn.disabled { opacity: .4; }

.doc-empty { padding: 60px 0; text-align: center; color: var(--fg-faint); font-size: 14px; }
.ext { margin-top: 44px; font-family: var(--mono); font-size: 12.5px; }
.ext a { color: var(--accent); }

/* ---------- 封面 ---------- */
.project-cover {
  display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line); margin-bottom: 26px;
}

/* ---------- 阅读进度条 / 工具 ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 60; transition: width .12s linear;
}
.reader-tools {
  position: fixed; right: 22px; bottom: 24px; z-index: 40;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.reader-tools button {
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--line-strong); color: var(--fg-dim);
  font-family: var(--mono); font-size: 13px; line-height: 1;
  transition: border-color .16s, color .16s, opacity .22s;
}
.reader-tools button:hover { border-color: var(--fg-dim); color: var(--fg); }
.reader-tools .to-top { opacity: 0; pointer-events: none; }
.reader-tools .to-top.show { opacity: 1; pointer-events: auto; }

@media (max-width: 640px) {
  .reader-tools { right: 12px; bottom: 14px; }
  .reader-tools button { width: 34px; height: 34px; }
}

/* ---------- 字号档位 ---------- */
.reading .prose[data-size="s"] { font-size: 15.5px; line-height: 1.9; }
.reading .prose[data-size="m"] { font-size: 17px; line-height: 2.05; }
.reading .prose[data-size="l"] { font-size: 19px; line-height: 2.1; }

/* ---------- 继续阅读 ---------- */
.resume {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 26px; padding: 13px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 11px; background: var(--accent-soft);
  font-size: 14px; color: var(--fg-dim);
}
.resume a { color: var(--accent); font-weight: 500; }
.resume .x {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--fg-faint); font-size: 15px; line-height: 1; padding: 2px 4px;
}
.resume .x:hover { color: var(--fg-dim); }

/* ---------- 留言 ---------- */
.cmts { margin-top: 62px; padding-top: 30px; border-top: 1px solid var(--line); }
.cmts-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.cmts-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.cmts-head em { font-family: var(--mono); font-size: 12px; color: var(--fg-faint); font-style: normal; }
.cmts-tip { font-size: 12.5px; color: var(--fg-faint); margin-left: auto; }

.cmt-form { position: relative; margin-bottom: 30px; }
.cmt-form .hp {
  position: absolute; left: -9999px; top: 0;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.cmt-name {
  width: 210px; max-width: 100%; padding: 9px 12px; margin-bottom: 10px;
  background: var(--bg-soft); color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: 9px;
  font: 14px inherit; outline: none; transition: border-color .16s;
}
.cmt-form textarea {
  display: block; width: 100%; padding: 12px; resize: vertical;
  background: var(--bg-soft); color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: 10px;
  font: 14.5px/1.7 inherit; outline: none; transition: border-color .16s;
}
.cmt-name:focus, .cmt-form textarea:focus { border-color: var(--accent); }
.cmt-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 14px; margin-top: 10px;
}
.cmt-actions button {
  padding: 9px 22px; cursor: pointer; border: 0; border-radius: 9px;
  background: var(--accent); color: #04211a;
  font: 14px/1 inherit; font-weight: 600; transition: opacity .16s;
}
.cmt-actions button:hover { opacity: .88; }
.cmt-actions button:disabled { opacity: .45; cursor: default; }
.cmt-msg { font-size: 13px; color: var(--accent); }
.cmt-msg.bad { color: #f09595; }

.cmt-list { list-style: none; padding: 0; margin: 0; }
.cmt-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.cmt-meta { display: flex; gap: 12px; align-items: baseline; margin-bottom: 7px; }
.cmt-who { font-size: 13.5px; font-weight: 500; }
.cmt-time { font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint); }
.cmt-body {
  font-size: 14.5px; color: var(--fg-dim); line-height: 1.75;
  white-space: pre-wrap; word-break: break-word;
}
.cmt-empty { color: var(--fg-faint); font-size: 14px; text-align: center; padding: 34px 0; }

/* ---------- 双向链接 ---------- */
.prose a.wl {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding-bottom: 1px;
  transition: background .16s;
}
.prose a.wl:hover { background: var(--accent-soft); }
.prose .wl-dead {
  color: var(--fg-faint);
  border-bottom: 1px dashed var(--line-strong);
  cursor: help;
}

.backlinks { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); }
.backlinks h2 {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--fg-dim); margin-bottom: 12px;
}
.backlinks h2 em {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--fg-faint); font-style: normal;
}
.backlinks ul { list-style: none; padding: 0; margin: 0; }
.backlinks li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.backlinks li:last-child { border-bottom: 0; }
.backlinks a {
  font-size: 14px; color: var(--fg);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: color .16s;
}
.backlinks a:hover { color: var(--accent); }
.backlinks .from { font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint); }

/* ---------- 关系图 ---------- */
.doc.wide { max-width: 830px; }
.graph-box {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-soft); padding: 6px; overflow: hidden;
}
.graph-box svg { display: block; width: 100%; height: auto; }
.graph-box text { user-select: none; }

.dead-list { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.dead-list h2 {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--fg-dim); margin-bottom: 8px;
}
.dead-list h2 em {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--fg-faint); font-style: normal;
}
.dead-list .hint { font-size: 12.5px; color: var(--fg-faint); margin-bottom: 14px; }
.dead-list ul { list-style: none; padding: 0; margin: 0; }
.dead-list li {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--fg-faint); padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.dead-list li:last-child { border-bottom: 0; }
.dead-list .dt { color: #f09595; }

/* ---------- 人物档案 ---------- */
.person-head {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 34px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.person-head h1 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -.025em; }
.pavatar {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line-strong); flex-shrink: 0;
}
.pa-empty {
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-size: 30px; font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.pstat { margin-top: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--fg-faint); }
.pstat strong { color: var(--accent); font-weight: 500; }

.prels, .papps { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); }
.prels h2, .papps h2, .camp h2, .rellist h2 {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--fg-dim); margin-bottom: 12px;
}
.prels h2 em, .papps h2 em, .camp h2 em, .rellist h2 em {
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint); font-style: normal;
}
.prels ul, .papps ul, .rellist ul { list-style: none; padding: 0; margin: 0; }
.prels li, .papps li, .rellist li {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.prels li:last-child, .papps li:last-child, .rellist li:last-child { border-bottom: 0; }
.prels a, .papps a, .rellist a {
  font-size: 14px; color: var(--fg);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  transition: color .16s;
}
.prels a:hover, .papps a:hover, .rellist a:hover { color: var(--accent); }
.rel-label {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  background: var(--accent-soft); padding: 2px 8px; border-radius: 5px;
}
.rel-note { font-size: 12.5px; color: var(--fg-faint); }
.papps .cnt { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint); }
.rellist .arrow { color: var(--fg-faint); }
.hint { font-size: 13px; color: var(--fg-faint); }

/* 阵营与人物卡片 */
.camp { margin-top: 38px; }
.pcards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}
.pcard {
  display: flex; flex-direction: column; gap: 4px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg-soft);
  transition: border-color .16s, transform .16s;
}
.pcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pc-name { font-size: 14.5px; font-weight: 500; }
.pc-role { font-size: 12px; color: var(--fg-faint); line-height: 1.5; }
.pc-apps { margin-top: 2px; font-family: var(--mono); font-size: 11px; color: var(--accent); }

@media (max-width: 640px) {
  .doc { padding-top: 34px; padding-bottom: 60px; }
  .chnav { grid-template-columns: 1fr; }
  .chnav-btn.next { text-align: left; align-items: flex-start; }
  .chnav-btn.mid { order: -1; }
}

.doc-links {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px;
}
.doc-links a {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px;
  transition: background .16s;
}
.doc-links a:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* ---------- 人物关系图（可拖拽） ---------- */
.world-wrap {
  position: relative; margin-top: 6px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-soft); overflow: hidden;
}
.world-wrap svg {
  display: block; width: 100%; height: auto;
  touch-action: none; cursor: grab;
  background-image: radial-gradient(circle at 50% 45%, rgba(61, 220, 151, .05), transparent 62%);
}
.world-wrap svg:active { cursor: grabbing; }
.world-wrap text { user-select: none; }
.world-wrap svg circle { transform-box: fill-box; transform-origin: center; }

.world-ctrl {
  position: absolute; right: 12px; top: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.world-ctrl button {
  width: 32px; height: 32px; border-radius: 9px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line-strong);
  color: var(--fg-dim); font-size: 15px; line-height: 1;
  transition: border-color .16s, color .16s;
}
.world-ctrl button:hover { border-color: var(--fg-dim); color: var(--fg); }

.world-tip {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  transition: opacity .6s ease;
  pointer-events: none; white-space: nowrap;
}

@keyframes haloPulse {
  0%, 100% { opacity: .18; }
  50% { opacity: .62; }
}

@media (prefers-reduced-motion: reduce) {
  .world-wrap svg circle { animation: none !important; }
  .world-wrap svg path { animation: none !important; }
}

/* ---------- 人物关系图（可拖拽） ---------- */
.world-wrap {
  position: relative; margin-top: 6px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-soft); overflow: hidden;
}
.world-wrap svg {
  display: block; width: 100%; height: auto;
  touch-action: none; cursor: grab;
  background-image: radial-gradient(circle at 50% 45%, rgba(61, 220, 151, .05), transparent 62%);
}
.world-wrap svg:active { cursor: grabbing; }
.world-wrap text { user-select: none; }
.world-wrap svg circle { transform-box: fill-box; transform-origin: center; }

.world-ctrl {
  position: absolute; right: 12px; top: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.world-ctrl button {
  width: 32px; height: 32px; border-radius: 9px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line-strong);
  color: var(--fg-dim); font-size: 15px; line-height: 1;
  transition: border-color .16s, color .16s;
}
.world-ctrl button:hover { border-color: var(--fg-dim); color: var(--fg); }

.world-tip {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  transition: opacity .6s ease;
  pointer-events: none; white-space: nowrap;
}

@keyframes haloPulse {
  0%, 100% { opacity: .18; }
  50% { opacity: .62; }
}

@media (prefers-reduced-motion: reduce) {
  .world-wrap svg circle { animation: none !important; }
  .world-wrap svg path { animation: none !important; }
}

/* ---------- 时间线 ---------- */
.tl { list-style: none; padding: 0; margin: 6px 0 0; position: relative; }
.tl::before {
  content: ""; position: absolute; left: 100px; top: 12px; bottom: 12px;
  width: 1px; background: var(--line);
}
.tl-item {
  display: grid; grid-template-columns: 76px 24px 1fr; gap: 0 12px;
  padding-bottom: 32px; position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-era {
  text-align: right; font-family: var(--mono); font-size: 11.5px;
  color: var(--fg-faint); padding-top: 5px; letter-spacing: .04em;
}
.tl-dot { display: grid; place-items: center; padding-top: 5px; }
.tl-dot i {
  width: 9px; height: 9px; border-radius: 50%; display: block;
  background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-body h3 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.tl-text {
  margin-top: 7px; font-size: 14px; color: var(--fg-dim);
  line-height: 1.78; white-space: pre-wrap;
}
.tl-link {
  display: inline-block; margin-top: 9px;
  font-family: var(--mono); font-size: 11.5px; color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.tl-link:hover { opacity: .75; }

/* ---------- 世界观：分组与列表 ---------- */
.cx-sec { margin-top: 38px; }
.cx-sec h2 {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--fg-dim); margin-bottom: 14px;
}
.cx-sec h2 em {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--fg-faint); font-style: normal;
}

.exlist { display: flex; flex-direction: column; }
.exrow {
  display: flex; align-items: baseline; gap: 14px;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
  transition: padding-left .16s ease, background .16s;
}
.exrow:first-child { border-top: 1px solid var(--line); }
.exrow:hover { padding-left: 10px; background: var(--bg-soft); }
.ex-name { font-size: 14.5px; color: var(--fg); min-width: 92px; }
.ex-sum { font-size: 13px; color: var(--fg-faint); line-height: 1.6; }

/* ---------- 物品卡（品阶配色） ---------- */
.tk-common { --tk: #888780; --tk-bg: rgba(136, 135, 128, .09); }
.tk-rare   { --tk: #378ADD; --tk-bg: rgba(55, 138, 221, .10); }
.tk-epic   { --tk: #7F77DD; --tk-bg: rgba(127, 119, 221, .13); }
.tk-legend { --tk: #EF9F27; --tk-bg: rgba(239, 159, 39, .12); }

.items {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 12px;
}
.itemcard {
  position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tk) 42%, transparent);
  background: var(--tk-bg); border-radius: 13px;
  padding: 14px 16px 15px;
  transition: transform .18s ease, border-color .18s;
}
.itemcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% -10%,
    color-mix(in srgb, var(--tk) 22%, transparent), transparent 68%);
}
.itemcard:hover { transform: translateY(-3px); border-color: var(--tk); }
.ic-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.ic-tier {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--tk);
  border: 1px solid color-mix(in srgb, var(--tk) 45%, transparent);
  padding: 2px 7px; border-radius: 4px;
}
.ic-cat { font-family: var(--mono); font-size: 10.5px; color: var(--fg-faint); letter-spacing: .06em; }
.ic-name { font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; }
.ic-sum { margin-top: 7px; font-size: 12.5px; color: var(--fg-dim); line-height: 1.65; }
.ic-owner {
  margin-top: 10px; font-family: var(--mono); font-size: 11px;
  color: color-mix(in srgb, var(--tk) 85%, var(--fg-faint));
}

/* ---------- 物品详情大卡 ---------- */
.bigcard {
  position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tk) 45%, transparent);
  background: var(--tk-bg); border-radius: 18px;
  padding: 30px 32px; margin-bottom: 34px;
}
.bigcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% -20%,
    color-mix(in srgb, var(--tk) 26%, transparent), transparent 70%);
}
.bc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bc-name { font-size: clamp(24px, 4vw, 32px); font-weight: 600; letter-spacing: -.025em; }
.bc-sum { margin-top: 12px; font-size: 15px; color: var(--fg-dim); line-height: 1.75; }
.bc-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px 24px; margin-top: 22px; padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--tk) 25%, transparent);
}
.bc-stats > div { display: flex; align-items: baseline; gap: 10px; }
.bc-stats dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--fg-faint); min-width: 56px;
}
.bc-stats dd { margin: 0; font-size: 14px; color: var(--fg); }

/* ---------- 专栏页：设定入口卡 ---------- */
.doc-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-top: 20px;
}
.doccard {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 16px 14px;
  border: 1px solid var(--glass-brd); border-radius: 13px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: border-color .2s, transform .2s, background .2s;
}
.doccard:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--glass-hi);
  transform: translateY(-3px);
}
.doccard b {
  font-family: var(--mono); font-size: 22px; font-weight: 500;
  color: var(--accent); line-height: 1;
}
.doccard span {
  font-size: 12.5px; color: var(--fg-dim); letter-spacing: .02em;
}

/* ---------- 专栏页内嵌关系图 ---------- */
.mini-world { margin: 26px 0 6px; }
.mw-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.mw-head h2 { font-size: 14px; font-weight: 500; color: var(--fg-dim); }
.mw-head a {
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint);
  transition: color .16s;
}
.mw-head a:hover { color: var(--accent); }
.mw-box {
  border: 1px solid var(--glass-brd); border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  overflow: hidden;
}
.mw-box svg { display: block; width: 100%; height: auto; touch-action: none; }
.mw-box text { user-select: none; }
.mw-tip {
  margin-top: 9px; text-align: center;
  font-family: var(--mono); font-size: 11px; color: var(--fg-faint);
}

/* ---------- 专栏大图头部 ---------- */
.doc-hero {
  position: relative; isolation: isolate;
  min-height: 470px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px 0 42px;
  margin-bottom: 38px;
  overflow: hidden;
}
.dh-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 44%;
}
.doc-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 74%, transparent) 32%,
      transparent 74%),
    linear-gradient(to bottom,
      color-mix(in srgb, var(--bg) 52%, transparent) 0%,
      transparent 26%);
}
.dh-top { position: relative; z-index: 1; }
.dh-back {
  font-family: var(--mono); font-size: 12.5px;
  color: rgba(255, 255, 255, .75);
  transition: color .16s;
}
.dh-back:hover { color: #fff; }
.dh-inner { position: relative; z-index: 1; margin-top: auto; }
.dh-inner h1 {
  font-size: clamp(34px, 6vw, 54px); font-weight: 600;
  letter-spacing: -.035em; line-height: 1.1;
  color: #fff; text-shadow: 0 2px 34px rgba(0, 0, 0, .5);
}
.dh-lede {
  margin-top: 14px; max-width: 620px;
  font-size: 15.5px; line-height: 1.72;
  color: rgba(255, 255, 255, .84);
  text-shadow: 0 1px 18px rgba(0, 0, 0, .55);
}
.dh-stats {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px;
  font-family: var(--mono); font-size: 12px;
  color: rgba(255, 255, 255, .72); letter-spacing: .05em;
}
.doc-head--hero { border-bottom: 0; margin-bottom: 24px; padding-bottom: 0; }

@media (max-width: 640px) {
  .doc-hero { min-height: 360px; padding-bottom: 30px; }
  .doc-hero::after {
    background:
      linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 40%, transparent 80%),
      linear-gradient(to bottom, color-mix(in srgb, var(--bg) 60%, transparent) 0%, transparent 30%);
  }
}

/* 大图与内容的衔接：内容上移压住图片底部 */
.doc-hero { margin-bottom: 0; }
.doc-hero + main.doc {
  margin-top: -68px; position: relative; z-index: 2;
}
.doc-hero + main.doc .doc-head--hero { margin-bottom: 20px; }

/* 背景图缓慢推近（电影感） */
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.055); }
}
.dh-bg { animation: heroZoom 26s ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
  .dh-bg { animation: none; }
}

@media (max-width: 640px) {
  .doc-hero + main.doc { margin-top: -40px; }
}

/* ---------- 音乐页：黑胶 ---------- */
.music-stage {
  display: grid; grid-template-columns: 380px 1fr;
  gap: 60px; align-items: center;
  padding: 24px 0 50px;
}
.vinyl-wrap {
  position: relative; width: 100%; max-width: 380px;
  aspect-ratio: 1; margin: 0 auto;
}
.vinyl-glow {
  position: absolute; inset: -14%; z-index: 0;
  border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(108, 140, 255, .2), transparent 62%);
  transition: opacity .7s ease;
  pointer-events: none;
}
.vinyl-glow.on { opacity: 1; animation: glowBreath 6s ease-in-out infinite; }
@keyframes glowBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.vinyl-disc {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      #0c0f14 0 1.5px, #15191f 1.5px 3.5px);
  box-shadow:
    0 44px 90px -32px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 255, 255, .055),
    inset 0 0 90px rgba(0, 0, 0, .8);
  animation: vinylSpin 7s linear infinite;
  animation-play-state: paused;
}
.vinyl-disc.playing { animation-play-state: running; }
@keyframes vinylSpin { to { transform: rotate(360deg); } }

.vinyl-label {
  position: relative;
  width: 38%; height: 38%; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6c8cff 10%, #a78bfa 65%, #ff9f45 120%);
  box-shadow:
    inset 0 0 0 7px rgba(0, 0, 0, .3),
    0 0 34px rgba(108, 140, 255, .28);
}
.vinyl-label span {
  font-family: var(--mono); font-size: 30px; color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.vinyl-label::after {
  content: ""; position: absolute;
  width: 13px; height: 13px; border-radius: 50%;
  background: #0a0c10;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12);
}

.music-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ms-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; color: var(--fg-faint);
}
.ms-title {
  margin-top: 8px; font-size: 26px; font-weight: 600;
  letter-spacing: -.025em; line-height: 1.3;
}
.ms-artist { margin-top: 5px; font-size: 13px; color: var(--fg-faint); }

.ms-ctrl { display: flex; align-items: center; gap: 14px; }
.ms-ctrl button {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--line-strong);
  color: var(--fg-dim); font-size: 16px; line-height: 1;
  transition: color .16s, border-color .16s, transform .16s;
}
.ms-ctrl button:hover { color: var(--fg); border-color: var(--fg-faint); }
.ms-ctrl .m-main {
  width: 54px; height: 54px; font-size: 18px;
  background: var(--accent); border: 0; color: #05070c;
  box-shadow: 0 12px 30px -14px var(--accent);
}
.ms-ctrl .m-main:hover { transform: scale(1.05); }

.ms-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
  max-height: 320px; overflow-y: auto;
}
.ms-list li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 11px 6px; border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left .18s ease, background .18s;
}
.ms-list li:hover { padding-left: 14px; background: var(--bg-soft); }
.ms-list li.on { background: var(--accent-soft); }
.ms-list li.on .ml-t { color: var(--accent); }
.ml-i {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--fg-faint); width: 22px; flex-shrink: 0;
}
.ml-t { font-size: 14px; min-width: 0; }
.ml-a {
  margin-left: auto; font-size: 11.5px;
  color: var(--fg-faint); flex-shrink: 0;
}

@media (max-width: 780px) {
  .music-stage {
    grid-template-columns: 1fr; gap: 34px;
    padding-top: 8px;
  }
  .vinyl-wrap { max-width: 260px; }
  .ms-title { font-size: 21px; }
}
