/* 胡翌霖 · 学术名片 · “壳 85”
   一台虚构的老电脑：电脑的“壳”（shell）是人与机器之间最新的一圈壳。
   色板只用 90 年代桌面系统的几种颜色；正文用宋体系的思源宋体，界面用像素字体。 */

@font-face {
  font-family: "Pix12";
  src: url("../fonts/pix12-hu.woff2?v=20261007c") format("woff2");
  font-display: swap;
}

:root {
  --desk: #008080;
  --desk-2: #006f6f;
  --face: #c0c0c0;
  --hi: #ffffff;
  --lite: #dfdfdf;
  --lo: #808080;
  --ink: #000000;
  --title-a: #000080;
  --title-b: #1084d0;
  --title-ia: #808080;
  --title-ib: #b5b5b5;
  --paper: #ffffff;
  --tip: #ffffe1;
  --sel: #000080;
  --link: #0000ee;
  --visited: #551a8b;
  --pix: "Pix12", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --song: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --bar-h: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.hu {
  margin: 0;
  min-height: 100vh;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--song);
  font-size: 17px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; }
a { color: var(--link); }
a:visited { color: var(--visited); }
.px { font-family: var(--pix); font-size: 12px; line-height: 16px; -webkit-font-smoothing: none; font-smooth: never; letter-spacing: 0; }
.px2 { font-family: var(--pix); font-size: 24px; line-height: 32px; -webkit-font-smoothing: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--tip); padding: 6px 10px; border: 1px solid var(--ink); }
.skip:focus { top: 8px; }
.ico { display: block; image-rendering: pixelated; flex: none; }
:focus-visible { outline: 1px dotted var(--ink); outline-offset: -4px; }
a:focus-visible { outline-offset: 2px; }

/* ---------- 桌面 ---------- */
.desk {
  position: fixed; inset: 0; z-index: -1;
  background-color: var(--desk);
  background-image: url("../img/hu/wallpaper.svg");
  background-repeat: no-repeat;
  background-position: right -8vmin bottom -6vmin;
  background-size: min(92vmin, 980px);
  image-rendering: pixelated;
}

/* ---------- 斜面（3D 边框） ---------- */
.raised { background: var(--face); box-shadow: inset -1px -1px var(--ink), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px var(--lite); }
.sunken { box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--lite), inset 2px 2px var(--ink); }
.field { background: var(--paper); box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--lite), inset 2px 2px var(--ink); }
.well { box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 26px; padding: 4px 12px;
  font-family: var(--pix); font-size: 12px; line-height: 16px; -webkit-font-smoothing: none;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  background: var(--face); border: 0; border-radius: 0; cursor: pointer;
  box-shadow: inset -1px -1px var(--ink), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px var(--lite);
}
.btn:visited { color: var(--ink); }
.btn:active, .btn[aria-pressed="true"], .btn.is-down {
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--ink), inset -2px -2px var(--lite), inset 2px 2px var(--lo);
  padding: 5px 11px 3px 13px;
}
.btn:focus-visible { outline: 1px dotted var(--ink); outline-offset: -5px; }
.btn[disabled] { color: var(--lo); text-shadow: 1px 1px var(--hi); cursor: default; }
.btn--big { min-height: 32px; padding: 6px 16px; }
.btn .ico { width: 16px; height: 16px; }

/* ---------- 窗口 ---------- */
.win {
  position: relative;
  background: var(--face);
  padding: 3px;
  box-shadow: inset -1px -1px var(--ink), inset 1px 1px var(--lite), inset -2px -2px var(--lo), inset 2px 2px var(--hi);
}
.tb {
  display: flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 2px 0 3px;
  background: linear-gradient(90deg, var(--title-a), var(--title-b));
  color: #fff;
}
.win.is-blur .tb { background: linear-gradient(90deg, var(--title-ia), var(--title-ib)); color: var(--face); }
.tb .ico { width: 16px; height: 16px; }
.tb__t { flex: 1; min-width: 0; font-family: var(--pix); font-size: 12px; line-height: 16px; font-weight: normal; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-font-smoothing: none; }
.tb__b { display: flex; gap: 2px; }
.tb__b span, .tb__b a, .tb__b button {
  width: 16px; height: 14px; padding: 0; border: 0; display: grid; place-items: center;
  background: var(--face); color: var(--ink); text-decoration: none; cursor: default;
  box-shadow: inset -1px -1px var(--ink), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px var(--lite);
}
.tb__b svg { width: 8px; height: 7px; display: block; }
.tb__b .gap { margin-left: 2px; }
.mb { display: flex; gap: 2px; padding: 2px 0 1px; }
.mb span, .mb a { padding: 1px 6px; color: var(--ink); text-decoration: none; }
.mb a:hover, .mb a:focus-visible { background: var(--sel); color: #fff; outline: none; }
.mb u { text-decoration: underline; text-underline-offset: 1px; }
.win__body { padding: 3px 1px 1px; }
.sb { display: flex; gap: 2px; margin-top: 2px; }
.sb > span { flex: 1; min-width: 0; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo); }
.sb > span:first-child { flex: 0 0 auto; }

/* 窗口打开时的线框动画 */
.zoom-ghost { position: fixed; z-index: 90; pointer-events: none; border: 2px solid #fff; mix-blend-mode: difference; }

/* ---------- 每一屏 ---------- */
.scr {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: 48px 4vw calc(var(--bar-h) + 40px);
  display: grid; align-content: center; justify-items: center;
  scroll-snap-align: start;
}
.stack { position: relative; width: min(1180px, 100%); }
.win--main { width: 100%; transform: translateX(var(--x, 0)); }
.split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 4px; align-items: stretch; }

/* 文档区：白纸、宋体 */
.doc { background: var(--paper); padding: 26px 32px 26px; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--lite), inset 2px 2px var(--ink); min-width: 0; }
.doc__n { margin: 0 0 10px; color: var(--lo); }
.doc h2 { font-family: var(--song); font-weight: 900; font-size: clamp(30px, 3.1vw, 42px); line-height: 1.22; margin: 0 0 18px; letter-spacing: 0.01em; }
.doc p { margin: 0 0 14px; max-width: 34em; }
.doc .lede { font-size: 17.5px; }
.q { margin: 20px 0 20px; padding: 12px 16px 12px 18px; background: var(--tip); border: 1px solid var(--ink); position: relative; max-width: 34em; }
.q p { margin: 0; font-weight: 700; font-size: 19px; line-height: 1.7; }
.q cite { display: block; margin-top: 6px; font-style: normal; font-size: 14px; color: #333; }
.q::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 6px; background: var(--sel); }
.ask { margin: 22px 0 6px; padding-top: 14px; border-top: 1px solid var(--lo); box-shadow: 0 -1px 0 var(--hi) inset; max-width: 34em; }
.ask__h { margin: 0 0 8px; color: var(--lo); }
.ask a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; padding: 7px 8px 7px 4px; text-decoration: none; color: var(--ink); }
.ask a:hover, .ask a:focus-visible { background: var(--sel); color: #fff; outline: none; }
.ask a:hover small, .ask a:focus-visible small { color: #cfd8ff; }
.ask a .ico { width: 16px; height: 16px; margin-top: 5px; }
.ask a b { font-weight: 700; font-size: 16.5px; line-height: 1.6; }
.ask a small { grid-column: 2; display: block; font-family: var(--pix); font-size: 12px; line-height: 16px; color: #555; }
.go { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }

/* 程序区：灰色，承载交互 */
.app { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.cap { margin: 0; padding: 6px 8px; background: var(--tip); border: 1px solid var(--ink); }
.fig { margin: 0; background: var(--ink); padding: 0; position: relative; }
.fig img, .pix-img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.fig figcaption { background: var(--face); padding: 4px 2px 0; color: #222; }
.credit { color: #333; }

/* 代表作小窗：像文件夹 */
.win--files { position: relative; width: min(372px, 46%); margin: -22px -14px 0 auto; z-index: 2; }
.win--files .win__body { background: var(--paper); margin: 2px 0 0; padding: 6px; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--lite), inset 2px 2px var(--ink); }
.files { list-style: none; margin: 0; padding: 0; }
.files a { display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; align-items: center; padding: 4px; text-decoration: none; color: var(--ink); }
.files a:hover, .files a:focus-visible { background: var(--sel); color: #fff; outline: 1px dotted #ff0; outline-offset: -1px; }
.files a:hover small, .files a:focus-visible small { color: #cfd8ff; }
.files .ico { width: 32px; height: 32px; }
.files b { font-family: var(--song); font-weight: 700; font-size: 15px; line-height: 1.4; }
.files small { display: block; font-family: var(--pix); font-size: 12px; line-height: 16px; color: #555; }

/* ---------- 第一屏：名片 ---------- */
.scr--home { align-content: center; }
.dicons { position: absolute; left: 14px; top: 56px; display: grid; gap: 16px; width: 84px; z-index: 1; }
.dicons a { display: grid; justify-items: center; gap: 4px; text-align: center; color: #fff; text-decoration: none; padding: 2px; }
.dicons a .ico { width: 32px; height: 32px; }
.dicons a span { padding: 1px 3px; }
.dicons a:hover span, .dicons a:focus-visible span { background: var(--sel); outline: 1px dotted #fff; }
.dicons a:focus-visible { outline: none; }
.dicons a:visited { color: #fff; }
.home { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 18px; align-items: start; width: min(1120px, 100%); margin-left: 72px; }
.id .win__body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 6px; }
.id__face { padding: 12px; display: grid; gap: 10px; align-content: start; }
.photo { margin: 0; padding: 3px; background: var(--face); box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--lite), inset 2px 2px var(--ink); }
.photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; image-rendering: pixelated; background: #222; }
.photo figcaption { padding: 4px 2px 0; color: #222; }
.id__main { background: var(--paper); padding: 22px 26px 20px; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--lite), inset 2px 2px var(--ink); min-width: 0; }
.name { margin: 0; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 18px; }
.name__zh { font-family: var(--pix); font-size: 72px; line-height: 72px; font-weight: normal; -webkit-font-smoothing: none; letter-spacing: 0; }
.name__en { font-family: var(--pix); font-size: 12px; line-height: 16px; color: var(--lo); padding-bottom: 6px; }
.role { margin: 10px 0 2px; font-size: 19px; font-weight: 700; }
.props { margin: 14px 0 0; display: grid; grid-template-columns: 5.2em minmax(0, 1fr); column-gap: 12px; row-gap: 6px; font-size: 15.5px; line-height: 1.7; }
.props dt { font-family: var(--pix); font-size: 12px; line-height: 16px; color: var(--lo); padding-top: 4px; }
.props dd { margin: 0; }
.shelf { margin: 16px 0 0; }
.shelf__h, .links__h { margin: 0 0 6px; color: var(--lo); }
.books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.books a { display: grid; grid-template-rows: 92px auto; gap: 4px; justify-items: center; text-align: center; color: var(--ink); text-decoration: none; padding: 4px 2px; }
.books a:hover .spine, .books a:focus-visible .spine { outline: 1px dotted var(--ink); outline-offset: 2px; }
.books a:focus-visible { outline: none; }
.books b { display: none; }
.books small { display: block; font-family: var(--pix); font-size: 12px; line-height: 14px; color: var(--lo); }
.spine { width: 34px; height: 92px; display: grid; place-items: center; color: #fff; font-family: var(--pix); font-size: 12px; line-height: 13px; writing-mode: vertical-rl; letter-spacing: 1px; padding: 6px 0; box-shadow: inset -2px -2px rgba(0,0,0,.45), inset 2px 2px rgba(255,255,255,.35); }
.books small { font-size: 12px; }
.links { margin: 14px 0 0; }
.links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pen { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pen b { font-family: var(--pix); font-size: 24px; line-height: 28px; font-weight: normal; }

/* 拆字 */
.chai { position: relative; height: 104px; margin: 8px 0 0; }
.chai__g { position: absolute; top: 0; left: 0; transform-origin: 0 0; font-family: var(--pix); font-size: 48px; line-height: 48px; width: 48px; height: 48px; text-align: center; transition: transform .7s steps(7), opacity .35s steps(3); -webkit-font-smoothing: none; }
.chai__note { position: absolute; left: 0; top: 84px; color: var(--lo); opacity: 0; transition: opacity .3s steps(3); white-space: nowrap; }
.chai.is-done .chai__note { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .chai__g, .chai__note { transition: none; } }

/* 成就窗口 */
.trophy .win__body { padding: 6px; }
.tro { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.tro li { position: relative; }
.tro button, .tro a { width: 100%; display: grid; justify-items: center; gap: 4px; padding: 8px 2px 6px; background: var(--face); border: 0; color: var(--ink); text-decoration: none; cursor: pointer; text-align: center; box-shadow: inset -1px -1px var(--ink), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px var(--lite); }
.tro .ico { width: 32px; height: 32px; }
.tro b { font-family: var(--pix); font-size: 12px; line-height: 14px; font-weight: normal; }
.tro small { font-family: var(--pix); font-size: 12px; line-height: 14px; color: #444; }
.tro .is-locked { color: var(--lo); }
.tro .is-locked .ico { filter: grayscale(1) contrast(.7); opacity: .7; }
.tro button[aria-expanded="true"] { box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--ink), inset -2px -2px var(--lite), inset 2px 2px var(--lo); }
.tro__tip { margin: 6px 0 0; min-height: 64px; padding: 6px 8px; background: var(--tip); border: 1px solid var(--ink); font-size: 14.5px; line-height: 1.6; }
.tro__tip a { color: var(--link); }

.hint { position: absolute; left: 50%; bottom: calc(var(--bar-h) + 12px); transform: translateX(-50%); color: #fff; text-shadow: 1px 1px #000; display: flex; gap: 8px; align-items: center; }
.hint i { display: inline-block; font-style: normal; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hint i { animation: none; } }

/* ---------- 任务栏与开始菜单 ---------- */
.tbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; gap: 4px; padding: 4px 4px 3px;
  background: var(--face); box-shadow: inset 0 1px var(--lite), inset 0 2px var(--hi);
}
.start { font-weight: 700; gap: 5px; padding-left: 6px; }
.start .ico { width: 20px; height: 20px; }
.tbar__sep { width: 2px; align-self: stretch; margin: 2px 2px; box-shadow: inset 1px 0 var(--lo), inset -1px 0 var(--hi); }
.ql { display: grid; place-items: center; width: 26px; height: 26px; color: var(--ink); }
.ql svg { width: 18px; height: 19px; }
.ql:hover { box-shadow: inset -1px -1px var(--lo), inset 1px 1px var(--hi); }
.tasks { flex: 1; min-width: 0; display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.tasks::-webkit-scrollbar { display: none; }
.task { flex: 0 1 132px; min-width: 64px; justify-content: flex-start; overflow: hidden; }
.task span { overflow: hidden; text-overflow: ellipsis; }
.task[aria-current="true"] { background: repeating-conic-gradient(var(--hi) 0 25%, var(--face) 0 50%) 0 0 / 2px 2px; font-weight: 700; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--ink), inset -2px -2px var(--lite), inset 2px 2px var(--lo); }
.tray { display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 10px; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo); }
.tray__y { min-width: 3.5em; text-align: right; }
.smenu {
  position: fixed; left: 2px; bottom: calc(var(--bar-h) - 2px); z-index: 60; width: 300px; max-height: calc(100vh - var(--bar-h) - 8px); overflow: auto;
  display: grid; grid-template-columns: 26px 1fr;
  background: var(--face); padding: 3px;
  box-shadow: inset -1px -1px var(--ink), inset 1px 1px var(--lite), inset -2px -2px var(--lo), inset 2px 2px var(--hi);
}
.smenu[hidden] { display: none; }
.smenu__bar { background: linear-gradient(0deg, var(--title-a), var(--title-b)); color: #fff; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: flex-end; padding: 8px 0 0; font-family: var(--pix); font-size: 24px; line-height: 26px; letter-spacing: 2px; }
.smenu__bar small { font-size: 12px; opacity: .8; margin-top: 8px; }
.smenu__list { display: grid; align-content: start; padding: 2px 0; }
.smenu__me { display: flex; align-items: center; gap: 10px; padding: 6px 8px 8px; border-bottom: 1px solid var(--lo); box-shadow: 0 1px var(--hi); margin-bottom: 3px; }
.smenu__me img { width: 40px; height: 40px; image-rendering: pixelated; box-shadow: inset 0 0 0 1px var(--ink); }
.smenu a { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 8px; color: var(--ink); text-decoration: none; }
.smenu a .ico { width: 24px; height: 24px; }
.smenu a:hover, .smenu a:focus-visible { background: var(--sel); color: #fff; outline: none; }
.smenu hr { border: 0; height: 2px; margin: 3px 2px; box-shadow: inset 0 1px var(--lo), inset 0 -1px var(--hi); }

/* ---------- 各个程序 ---------- */
/* 1 蜗牛壳 */
.shells { position: relative; background: #000; aspect-ratio: 4 / 3; overflow: hidden; }
.shells svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shells .ring { fill: none; stroke-width: 4; shape-rendering: crispEdges; opacity: 0; transition: opacity .25s steps(2); }
.shells .ring.on { opacity: 1; }
.shells .lab { font-family: var(--pix); font-size: 12px; fill: #fff; opacity: 0; transition: opacity .25s steps(2); }
.shells .lab.on { opacity: 1; }
.shells img { position: absolute; left: 50%; top: 50%; width: 26%; transform: translate(-50%, -50%); image-rendering: pixelated; }
.slider { display: flex; align-items: center; gap: 10px; padding: 4px 2px; }
.slider input { flex: 1; accent-color: var(--sel); }
.slider output { min-width: 2em; text-align: center; padding: 2px 4px; }

/* 2 媒体播放器 */
.player { background: #000; color: #0f0; position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.player .ico { width: 96px; height: 96px; }
.player__np { position: absolute; left: 8px; right: 8px; top: 6px; display: flex; justify-content: space-between; color: #0f0; }
.player__viz { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 34px; display: flex; align-items: flex-end; gap: 3px; }
.player__viz i { flex: 1; background: #0f0; height: 8%; transition: height .18s steps(3); }
.seek { height: 14px; padding: 3px; }
.seek b { display: block; height: 100%; width: 0; background: var(--sel); transition: width .3s linear; }
.pctl { display: flex; gap: 4px; }
.playlist { list-style: none; margin: 0; padding: 2px; background: var(--paper); max-height: 220px; overflow: auto; }
.playlist button { width: 100%; display: grid; grid-template-columns: 22px 20px 1fr auto; gap: 6px; align-items: center; text-align: left; padding: 3px 4px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-family: var(--pix); font-size: 12px; line-height: 16px; }
.playlist button .ico { width: 16px; height: 16px; }
.playlist button[aria-selected="true"] { background: var(--sel); color: #fff; }
.playlist small { color: inherit; opacity: .7; }

/* 3 回收站 */
.toolbar { display: flex; gap: 4px; flex-wrap: wrap; }
.list { width: 100%; border-collapse: collapse; background: var(--paper); font-family: var(--pix); font-size: 12px; line-height: 16px; }
.list th { text-align: left; font-weight: normal; padding: 2px 6px; background: var(--face); box-shadow: inset -1px -1px var(--lo), inset 1px 1px var(--hi); white-space: nowrap; }
.list td { padding: 3px 6px; vertical-align: middle; }
.list td:first-child { display: flex; align-items: center; gap: 6px; }
.list .ico { width: 16px; height: 16px; }
.list tr[aria-selected="true"] td { background: var(--sel); color: #fff; }
.list tbody tr { cursor: pointer; }
.tablewrap { overflow-x: auto; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--lite), inset 2px 2px var(--ink); padding: 2px; background: var(--paper); }

/* 对话框（类名用 mbox：dlg 留给全站共用的群聊窗口） */
.mbox { position: relative; z-index: 3; margin: 0; }
.mbox[hidden] { display: none; }
.mbox .win__body { padding: 10px 10px 8px; display: grid; gap: 10px; }
.mbox__row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
.mbox__row.no-img { grid-template-columns: 40px 1fr; }
.mbox__row img { width: 100%; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--ink); }
.mbox__row .ico { width: 32px; height: 32px; }
.mbox p { margin: 0 0 8px; font-size: 15px; line-height: 1.7; }
.mbox__btns { display: flex; justify-content: flex-end; gap: 6px; }

/* 4 钱包 */
.lcd { background: #0b1a0b; color: #9df29d; padding: 14px 12px; text-align: center; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--lite), inset 2px 2px var(--ink); }
.lcd b { display: block; font-family: var(--pix); font-size: 36px; line-height: 40px; font-weight: normal; -webkit-font-smoothing: none; }
.tabs { display: flex; gap: 2px; padding: 0 2px; margin-bottom: -2px; position: relative; z-index: 1; }
.tabs button { border: 0; background: var(--face); padding: 4px 10px; font-family: var(--pix); font-size: 12px; line-height: 16px; cursor: pointer; box-shadow: inset 1px 1px var(--hi), inset -1px 0 var(--ink), inset -2px 0 var(--lo); }
.tabs button[aria-selected="true"] { padding-bottom: 6px; margin-top: -2px; }
.tabpane { padding: 10px; box-shadow: inset -1px -1px var(--ink), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px var(--lite); display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; min-height: 130px; }
.tabpane p { margin: 0; font-size: 15px; line-height: 1.7; }
.tabpane img { width: 96px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--ink); }
.tabpane .ico { width: 64px; height: 64px; margin: 0 auto; }
.strata { position: relative; height: 150px; background: #000; overflow: hidden; }
.strata canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }

/* 5 科技树 */
.civ { background: #12213a; color: #f3e6b0; padding: 8px; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--lite), inset 2px 2px var(--ink); }
.civ__top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: #f3e6b0; }
.civ__bar { height: 10px; background: #000; border: 1px solid #f3e6b0; margin: 0 0 8px; }
.civ__bar b { display: block; height: 100%; width: 62%; background: repeating-linear-gradient(90deg, #f7c948 0 6px, #c99a1f 6px 8px); }
.tree { position: relative; }
.tree svg { width: 100%; height: auto; display: block; }
.tree .edge { stroke: #6b7fa8; stroke-width: 2; fill: none; shape-rendering: crispEdges; }
.tree .edge.on { stroke: #f7c948; }
.node rect { fill: #24375c; stroke: #8fa3cc; stroke-width: 2; shape-rendering: crispEdges; }
.node text { font-family: var(--pix); font-size: 12px; fill: #f3e6b0; }
.node .yr { fill: #8fa3cc; }
.node { cursor: pointer; }
.node:hover rect, .node:focus-visible rect { stroke: #fff; }
.node:focus { outline: none; }
.node.done rect { fill: #3b5d2e; stroke: #b8e38a; }
.node.locked rect { fill: #2a2a2a; stroke: #666; stroke-dasharray: 4 3; }
.node.locked text { fill: #999; }
.civ__msg { margin-top: 8px; min-height: 84px; padding: 8px 10px; background: #0b1424; border: 1px solid #f3e6b0; font-size: 15px; line-height: 1.7; color: #f3e6b0; }
.civ__msg b { color: #f7c948; }

/* 6 计算器 */
.calc { padding: 8px; display: grid; gap: 8px; }
.calc .lcd { text-align: right; min-height: 76px; display: grid; align-content: center; }
.calc .lcd b { font-size: 24px; line-height: 32px; word-break: break-all; }
.calc .lcd small { display: block; font-family: var(--song); font-size: 14px; line-height: 1.6; color: #c9f7c9; text-align: left; margin-top: 4px; }
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.keys .btn { min-height: 34px; font-size: 12px; }

/* 7 画图 */
.paint { display: grid; grid-template-columns: 44px 1fr; gap: 4px; }
.paint__tools { display: grid; grid-template-columns: repeat(2, 20px); gap: 0; align-content: start; padding: 2px; }
.paint__tools span { width: 20px; height: 20px; display: grid; place-items: center; font-family: var(--pix); font-size: 12px; box-shadow: inset -1px -1px var(--ink), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px var(--lite); }
.paint__canvas { background: var(--lo); padding: 6px; overflow: hidden; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--lite), inset 2px 2px var(--ink); position: relative; }
.paint__canvas img { display: block; width: 100%; image-rendering: pixelated; cursor: context-menu; }
.palette { display: grid; grid-template-columns: repeat(16, 1fr); gap: 1px; margin-top: 2px; }
.palette i { height: 14px; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo); }
.ctx { position: absolute; z-index: 5; min-width: 150px; padding: 2px; background: var(--face); box-shadow: inset -1px -1px var(--ink), inset 1px 1px var(--lite), inset -2px -2px var(--lo), inset 2px 2px var(--hi); }
.ctx[hidden] { display: none; }
.ctx button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 4px 20px; font-family: var(--pix); font-size: 12px; line-height: 16px; cursor: pointer; }
.ctx button:hover, .ctx button:focus-visible { background: var(--sel); color: #fff; outline: none; }
.ctx hr { border: 0; height: 2px; margin: 2px 1px; box-shadow: inset 0 1px var(--lo), inset 0 -1px var(--hi); }

/* 8 安装程序 */
.wiz { display: grid; grid-template-columns: 150px 1fr; gap: 0; background: var(--face); min-height: 340px; }
.wiz__side { background: #000; display: grid; align-content: end; overflow: hidden; }
.wiz__side img { width: 100%; image-rendering: pixelated; display: block; }
.wiz__main { padding: 14px 14px 10px; display: grid; grid-template-rows: 1fr auto; gap: 10px; min-width: 0; }
.wiz__main h3 { margin: 0; font-family: var(--song); font-weight: 900; font-size: 20px; line-height: 1.4; }
.wiz__main p { margin: 0 0 8px; font-size: 15px; line-height: 1.75; }
.wiz__step[hidden] { display: none; }
.wiz__opts { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.wiz__opts label { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.wiz__opts input { margin-top: 5px; accent-color: var(--sel); }
.prog { height: 20px; padding: 2px; background: var(--paper); }
.prog b { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--sel) 0 10px, transparent 10px 12px); transition: width .25s steps(4); }
.log { margin: 8px 0 0; padding: 6px 8px; height: 112px; overflow: hidden; background: #000; color: #c0c0c0; list-style: none; }
.wiz__btns { display: flex; justify-content: flex-end; gap: 6px; padding-top: 8px; border-top: 1px solid var(--lo); box-shadow: inset 0 1px var(--hi); flex-wrap: wrap; }

/* ---------- 关机 ---------- */
.scr--off { background: #000; color: #ff8a00; text-align: center; scroll-snap-align: start; }
.off { width: min(760px, 100%); }
.off h2 { font-family: var(--pix); font-weight: normal; font-size: 36px; line-height: 48px; margin: 0 0 28px; color: #ff8a00; -webkit-font-smoothing: none; }
.off__menu { display: grid; gap: 8px; justify-content: center; margin: 0 0 36px; padding: 0; list-style: none; }
.off__menu a { display: inline-flex; gap: 10px; align-items: center; color: #c0c0c0; text-decoration: none; padding: 4px 12px; font-family: var(--pix); font-size: 24px; line-height: 32px; -webkit-font-smoothing: none; }
.off__menu a .ico { width: 24px; height: 24px; }
.off__menu a:hover, .off__menu a:focus-visible { background: #c0c0c0; color: #000; outline: none; }
.off__menu a:hover .k, .off__menu a:focus-visible .k { color: #000; }
.off__note { color: #9a9a9a; font-family: var(--song); font-size: 14px; line-height: 1.8; text-align: left; max-width: 46em; margin: 0 auto; }
.off__note a { color: #c0c0c0; }
.off__note p { margin: 0 0 10px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .home { margin-left: 92px; grid-template-columns: minmax(0, 1fr); }
  .trophy { max-width: 620px; }
  .win--files { position: relative; right: auto; bottom: auto; width: min(560px, 100%); margin: 14px 0 0 auto; }
}
@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .win--main { transform: none; }
  .id .win__body { grid-template-columns: minmax(0, 1fr); }
  .id__face { grid-template-columns: 140px 1fr; align-items: center; }
  .books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --bar-h: 44px; }
  body.hu { font-size: 16px; }
  .scr { padding: 16px 10px calc(var(--bar-h) + 28px); align-content: start; min-height: auto; }
  .scr--home, .scr--off { min-height: 100vh; min-height: 100svh; }
  .dicons { position: static; display: flex; overflow-x: auto; width: 100%; gap: 6px; margin: 4px 0 12px; }
  .dicons a { flex: 0 0 72px; }
  .home { margin-left: 0; }
  .scr--home { align-content: start; }
  .doc { padding: 18px 16px 18px; }
  .id__main { padding: 16px 14px; }
  .name__zh { font-size: 48px; line-height: 48px; }
  .id__face { grid-template-columns: 112px 1fr; }
  .props { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .props dt { padding-top: 8px; }
  .tro { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .task { flex-basis: 44px; min-width: 44px; }
  .task span { display: none; }
  .tray { padding: 0 6px; }
  .hint { display: none; }
  .tabpane { grid-template-columns: 64px 1fr; }
  .tabpane img { width: 64px; }
  .wiz { grid-template-columns: 1fr; }
  .wiz__side { max-height: 120px; }
  .wiz__side img { object-fit: cover; height: 120px; }
  .off h2 { font-size: 24px; line-height: 32px; }
  .off__menu a { font-size: 12px; line-height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .player__viz i, .seek b, .prog b, .shells .ring, .shells .lab { transition: none; }
}
.shells__me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; }
.shells__me .ico { width: 96px; height: 96px; }

@media (max-width: 1180px) { .win--files { width: min(460px, 100%); margin: 12px 0 0 auto; } }
/* 追问署名里的关系标签：像被选中的文字 */
.ask .rel { display: inline-block; margin-right: 5px; padding: 0 3px; background: var(--sel); color: #fff; }

/* ---------- 群聊（对话录）：追问下面一排像素风的按钮，点开是多人群聊窗口（窗口在 dlg.css，这里只配色） ---------- */
.hu .talks { display: flex; flex-wrap: wrap; gap: 6px; max-width: 34em; margin: 14px 0 6px; }
.hu .talks .ask__h { flex: 0 0 100%; margin: 0 0 2px; }
.hu .av { display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--av-bg); color: var(--av-fg); flex: none;
  font-family: var(--pix); font-size: 12px; line-height: 1; font-style: normal; letter-spacing: 0; -webkit-font-smoothing: none; box-shadow: inset 0 0 0 1px var(--ink); }
.hu .talk, .hu .talk:visited { display: inline-grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; max-width: 100%;
  padding: 5px 12px 5px 6px; background: var(--face); color: var(--ink); text-decoration: none;
  box-shadow: inset -1px -1px var(--ink), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px var(--lite); }
.hu .talk:active { padding: 6px 11px 4px 7px; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--ink), inset -2px -2px var(--lite), inset 2px 2px var(--lo); }
.hu .talk:hover .talk__t { color: var(--sel); }
.hu .talk:focus-visible { outline: 1px dotted var(--ink); outline-offset: -5px; }
.hu .talk__av { grid-row: 1 / span 2; display: flex; align-items: center; }
.hu .talk__av .av { margin-left: -1px; }
.hu .talk__av .av:first-child { margin-left: 0; }
.hu .talk__av b { margin-left: 4px; font-family: var(--pix); font-size: 12px; line-height: 16px; font-weight: normal; color: #444; -webkit-font-smoothing: none; }
.hu .talk__t { font-weight: 700; font-size: 15px; line-height: 1.45; }
.hu .talk__n { font-family: var(--pix); font-size: 12px; line-height: 16px; color: #444; -webkit-font-smoothing: none; }
.hu .off__wm { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
/* 群聊窗口：一扇灰色的老窗口，白色的“输入框”是一条条发言 */
body.hu .dlg { --dlg-bg: #c0c0c0; --dlg-paper: #ffffff; --dlg-ink: #000000; --dlg-ink-2: #222222; --dlg-ink-3: #4a4a4a; --dlg-rule: #808080;
  --dlg-me: #000080; --dlg-me-ink: #ffffff; --dlg-acc: #000080; --dlg-mod: #dfdfdf; --dlg-font: var(--song); }
body.hu .dlg .av { font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; font-weight: 700; -webkit-font-smoothing: auto; }
body.hu .dlg__win { border-radius: 0; padding: 3px; box-shadow: inset -1px -1px var(--ink), inset 1px 1px var(--lite), inset -2px -2px var(--lo), inset 2px 2px var(--hi), 0 30px 80px rgba(0, 0, 0, .45); }
body.hu .msg__b { border-radius: 0; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--lite), inset 2px 2px var(--ink); }
body.hu .msg--me .msg__b { box-shadow: none; }
body.hu .dlg__x, body.hu .dlg__ctl button, body.hu .dlg__rel a { border: 0; border-radius: 0; background: var(--face); color: var(--ink);
  box-shadow: inset -1px -1px var(--ink), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px var(--lite); }
body.hu .dlg__x { top: 10px; right: 10px; width: 36px; height: 36px; }
body.hu .dlg__x:hover, body.hu .dlg__ctl button:hover, body.hu .dlg__rel a:hover { background: var(--face); color: var(--sel); }
body.hu .dlg__x:active, body.hu .dlg__ctl button:active, body.hu .dlg__rel a:active { box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--ink), inset -2px -2px var(--lite), inset 2px 2px var(--lo); }
