/* ============================================================
   locker.css — 关于页「储物柜」

   背景沿用 3D 主页划到最下面那个 ABOUT 区（source/index.html 的 .ov-about）：
   亮灰底 #e9edf0 + 十字网格，一起把柜子当展品摆出来的意思。

   整页铺满：柜子不是嵌在文章流里的小窗，是占满视口的一个舞台，
   站点头尾为它让路（头改成亮色浮在上面，尾隐藏）。

   配色靠覆写主题变量实现 —— 下面所有组件都用 var(--ink) 之类，
   在 .locker / .lk-overlay 里把变量翻成亮色，整套控件就跟着翻过来，
   不用一处一处改颜色。
   ============================================================ */

/* 亮色版主题变量（只在这一页和浮层里生效） */
.locker,
.lk-overlay,
.lk-static {
  --bg: #e9edf0;
  --bg2: #f4f6f8;
  --panel: rgba(255, 255, 255, .74);
  --ink: #101418;
  --dim: rgba(16, 20, 24, .64);
  --faint: rgba(16, 20, 24, .38);
  --blue: #1b28d8;
  --line: rgba(16, 20, 24, .13);
  --line2: rgba(16, 20, 24, .26);
}

/* ── 整页舞台 ─────────────────────────────────────────── */
.locker {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

/* 十字网格：与 3D 主页 ABOUT 区同一个 SVG，同一个透明度 */
.locker::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .75;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M70 62v16M62 70h16' stroke='%239aa4ad' stroke-width='1'/%3E%3C/svg%3E");
}

/* ── 站点头尾让路 ─────────────────────────────────────── */
body.is-locker { overflow: hidden; background: #e9edf0; }
body.is-locker.has-fallback { overflow: auto; }
body.is-locker .site-head {
  position: fixed;
  left: 0; right: 0; top: 0;
  background: rgba(233, 237, 240, .74);
  border-bottom-color: rgba(16, 20, 24, .1);
  color: #101418;
}
body.is-locker .site-head .head-nav a { color: rgba(16, 20, 24, .6); }
body.is-locker .site-head .head-nav a::after { background: #101418; }
body.is-locker .site-head #burger i { background: #101418; }
body.is-locker .site-foot { display: none; }
body.is-locker main.wrap { padding: 0; }

/* ── 顶栏（浮在画面上，让开站点头）───────────────────── */
.lk-bar {
  --headH: 52px;
  position: absolute;
  left: 0; right: 0;
  top: var(--headH);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px clamp(12px, 2.4vw, 22px);
  background: rgba(233, 237, 240, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.lk-bar__lbl {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--blue);
  flex: 0 0 auto;
}
.lk-bar__nav { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.lk-navbtn {
  appearance: none;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .7);
  color: var(--dim);
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--mono);
  transition: color .25s, border-color .25s, background .25s;
}
.lk-navbtn em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}
.lk-navbtn span { font-family: var(--sans); font-size: 11px; }
.lk-navbtn:hover,
.lk-navbtn:focus-visible {
  color: var(--ink);
  border-color: var(--blue);
  background: rgba(27, 40, 216, .08);
  outline: none;
}
.lk-navbtn.is-on {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.lk-bar__tip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--faint);
  flex: 0 0 auto;
}

/* ── 舞台：铺满整个视口 ───────────────────────────────── */
.lk-stage { position: absolute; inset: 0; z-index: 1; }
.lk-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.locker.is-ready .lk-canvas { opacity: 1; }

/* 热点标签：投影到屏幕坐标的 HTML button，键盘可达 */
.lk-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.lk-hot {
  position: absolute;
  left: 0; top: 0;
  pointer-events: auto;
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  transition: opacity .25s;
}
.lk-hot__ring {
  width: 44px; height: 44px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  position: relative;
  transition: border-color .28s, transform .28s var(--ease), box-shadow .28s;
  background: rgba(255, 255, 255, .35);
}
.lk-hot__ring::after {
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(27, 40, 216, .5);
}
.lk-hot__txt {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .28s, transform .28s var(--ease);
}
.lk-hot:hover .lk-hot__ring,
.lk-hot:focus-visible .lk-hot__ring {
  border-color: var(--blue);
  transform: scale(1.16);
  box-shadow: 0 0 0 6px rgba(27, 40, 216, .12);
}
.lk-hot:hover .lk-hot__txt,
.lk-hot:focus-visible .lk-hot__txt { opacity: 1; transform: none; }

.lk-hint {
  position: absolute;
  left: 50%; bottom: 54px;
  transform: translate(-50%, 10px);
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--dim);
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  white-space: nowrap;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.lk-hint.is-on { opacity: 1; transform: translate(-50%, 0); }

.lk-fallback {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  max-width: 76%;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--dim);
}
.locker.is-fallback { position: relative; inset: auto; height: 62vh; }
.locker.is-fallback .lk-fallback { display: block; }
.locker.is-fallback .lk-canvas,
.locker.is-fallback .lk-hint,
.locker.is-fallback .lk-labels { display: none; }

/* ── 出处声明 ─────────────────────────────────────────── */
.lk-credit {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 8px clamp(12px, 2.4vw, 22px);
  background: rgba(233, 237, 240, .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--faint);
}
.lk-credit a { color: var(--blue); }
.lk-credit a:hover { text-decoration: underline; }

/* ── 静态清单（无 WebGL 时的兜底）───────────────────── */
.lk-static {
  display: none;
  position: relative;
  z-index: 4;
  margin: 0;
  padding: 26px clamp(14px, 4vw, 46px) 60px;
  background: #e9edf0;
}
body.has-fallback .lk-static { display: block; }
.lk-st {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
  background: var(--panel);
}
.lk-st__lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--blue);
}
.lk-st__t {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 6px 0 2px;
}
.lk-st__cn { font-size: 13px; color: var(--dim); margin-bottom: 12px; }
.lk-st__rows { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 6px 16px; font-size: 13.5px; }
.lk-st__rows dt { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .1em; }
.lk-st__rows dd { color: var(--ink); }
.lk-st__card { border-left: 2px solid var(--line2); padding-left: 12px; margin: 12px 0; }
.lk-st__card h3 { font-size: 15px; margin-bottom: 4px; }
.lk-st__card p { font-size: 13px; color: var(--dim); }
.lk-st__kv { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-top: 3px; }
.lk-st__kv em { font-style: normal; color: var(--faint); margin-right: 8px; }
.lk-st__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.lk-st__item em { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--blue); }
.lk-st__item b { font-size: 14px; }
.lk-st__item span { grid-column: 2; font-size: 12.5px; color: var(--dim); }
.lk-st__ch { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.lk-st__ch a {
  display: inline-flex; gap: 8px; align-items: baseline;
  border: 1px solid var(--line2); border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px;
}
.lk-st__ch em { font-family: var(--mono); font-style: normal; font-size: 10px; color: var(--faint); }

/* ============================================================
   浮层
   ============================================================ */
.lk-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 40px);
}
.lk-overlay[hidden] { display: none; }
.lk-ov__scrim {
  position: absolute;
  inset: 0;
  background: rgba(226, 232, 238, .84);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .38s var(--ease);
}
.lk-overlay.is-open .lk-ov__scrim { opacity: 1; }

.lk-panel {
  position: relative;
  width: min(940px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.lk-panel[hidden] { display: none; }
.lk-overlay.is-open .lk-panel { opacity: 1; transform: none; }

.lk-close {
  position: absolute;
  right: 10px; top: 10px;
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s, color .25s;
}
.lk-close:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: rotate(90deg);
}

/* ── ABOUT：工牌 ──────────────────────────────────────── */
.lk-card--id {
  position: relative;
  background: #fbfbf8;
  color: #14161a;
  border-radius: 12px;
  padding: clamp(22px, 3.4vw, 40px);
  box-shadow: 0 26px 70px rgba(24, 34, 48, .28);
}
.lk-card__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(20, 22, 26, .45);
}
.lk-card__head { border-bottom: 2px solid #14161a; padding-bottom: 14px; margin: 10px 0 18px; }
.lk-card__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: #1b28d8;
}
.lk-card__title {
  font-family: var(--mono);
  font-size: clamp(26px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.05;
  margin-top: 8px;
}
.lk-card__title span { display: block; }
.lk-card__cn { font-size: 14px; color: rgba(20, 22, 26, .6); margin-top: 6px; }
.lk-card__rows { display: grid; }
.lk-card__row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 8px 20px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(20, 22, 26, .12);
}
.lk-card__row dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(20, 22, 26, .46);
  align-self: center;
}
.lk-card__row dd { font-size: 16px; font-weight: 600; }
.lk-card__stamp {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(46px, 6vw, 60px);
  width: 104px; height: 104px;
  border: 3px solid rgba(224, 50, 42, .62);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(-11deg);
  color: rgba(224, 50, 42, .72);
  pointer-events: none;
}
.lk-card__stamp::before {
  content: "";
  position: absolute; inset: 7px;
  border: 1.5px solid rgba(224, 50, 42, .42);
  border-radius: 50%;
}
.lk-card__stamp .top { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; }
.lk-card__stamp .mid { font-size: 13px; font-weight: 700; }
.lk-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(20, 22, 26, .42);
  flex-wrap: wrap;
}

/* ── SKILLS / WORK：亮色内容页 ────────────────────────── */
.lk-sheet {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(22px, 3.4vw, 40px);
  box-shadow: 0 26px 70px rgba(24, 34, 48, .28);
}
.lk-sheet__hd { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 22px; }
.lk-sheet__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--blue);
}
.lk-sheet__t {
  font-family: var(--mono);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.08;
  margin-top: 8px;
}
.lk-sheet__t span { display: block; }
.lk-sheet__cn { font-size: 13.5px; color: var(--dim); margin-top: 6px; }

.lk-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lk-skill { border-radius: 10px; padding: 20px; }
.lk-skill__kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  opacity: .66;
}
.lk-skill__t { font-size: 20px; margin: 8px 0 6px; }
.lk-skill__d { font-size: 13px; line-height: 1.75; opacity: .82; }
.lk-skill__rows { margin-top: 14px; display: grid; gap: 6px; }
.lk-skill__row { display: grid; grid-template-columns: 78px 1fr; gap: 10px; font-family: var(--mono); font-size: 11.5px; }
.lk-skill__row dt { opacity: .58; letter-spacing: .1em; }
.lk-skill__row dd { opacity: .95; }

.lk-works { display: grid; gap: 10px; }
.lk-work {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .28s, background .28s, transform .28s var(--ease);
}
.lk-work:hover {
  border-color: var(--blue);
  background: rgba(27, 40, 216, .05);
  transform: translateX(4px);
}
.lk-work__no { font-family: var(--mono); font-size: 12px; color: var(--blue); letter-spacing: .1em; }
.lk-work__en { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--faint); }
.lk-work__cn { font-size: 17px; margin: 2px 0 4px; }
.lk-work__d { font-size: 13px; color: var(--dim); line-height: 1.7; }
.lk-work__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lk-work__go { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--faint); white-space: nowrap; }
.lk-work:hover .lk-work__go { color: var(--blue); }

/* ── CONTACT：软木板 ──────────────────────────────────── */
.lk-board {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(22px, 3.4vw, 40px);
  box-shadow: 0 26px 70px rgba(24, 34, 48, .28);
}
.lk-board__hd { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.lk-cork {
  position: relative;
  min-height: 300px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 30%, rgba(120, 88, 58, .5) 0 2px, transparent 2px),
    radial-gradient(circle at 60% 70%, rgba(120, 88, 58, .4) 0 2px, transparent 2px),
    linear-gradient(160deg, #6b4f34 0%, #4d3a26 100%);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .35);
}
.lk-note {
  position: absolute;
  width: clamp(130px, 34%, 190px);
  min-height: 92px;
  padding: 26px 13px 12px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: #2a2f38;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .38);
  user-select: none;
  outline: none;
  border-radius: 2px;
  transition: box-shadow .2s;
}
.lk-note:focus,
.lk-note:active { box-shadow: 0 12px 30px rgba(0, 0, 0, .5); z-index: 4; }
/* 顶部胶带 = 拖动把手。contenteditable 区域里按下就拖会和选字打架 */
.lk-note::before {
  content: "";
  position: absolute;
  left: 50%; top: 5px;
  width: 58px; height: 16px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 255, 255, .44);
  border: 1px solid rgba(0, 0, 0, .07);
  cursor: grab;
}
.lk-note:active::before { cursor: grabbing; }
.lk-note:empty::after {
  content: "写点什么…";
  color: rgba(42, 47, 56, .36);
}
.lk-note__tip {
  position: absolute;
  left: 12px; right: 12px; bottom: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: rgba(255, 246, 230, .55);
  text-align: center;
  pointer-events: none;
}
.lk-channels { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.lk-channels a {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color .25s, background .25s;
}
.lk-channels a:hover { border-color: var(--blue); background: rgba(27, 40, 216, .08); }
.lk-channels em { font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: .18em; color: var(--faint); }

/* ── 窄屏 ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .lk-bar { --headH: 48px; gap: 8px; padding-top: 7px; padding-bottom: 7px; }
  .lk-bar__tip { display: none; }
  .lk-bar__nav { order: 3; width: 100%; }
  .lk-hint { bottom: 46px; font-size: 9.5px; padding: 5px 12px; }
  .lk-card__row { grid-template-columns: 1fr; gap: 2px; }
  .lk-work { grid-template-columns: 34px 1fr; }
  .lk-work__go { display: none; }
  .lk-card__stamp { width: 78px; height: 78px; opacity: .8; }
  .lk-hot__txt { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lk-canvas, .lk-panel, .lk-ov__scrim, .lk-hint, .lk-hot__ring { transition-duration: .01ms; }
}
