/* ═══════════════════════════════════════════════════════════
   肖士刚个人简历与作品集 · v6 — 瑞士编辑派极简系统
   纸白 / 墨黑 / 单一朱砂强调色 · 细线网格 · 克制动效
   ═══════════════════════════════════════════════════════════ */
:root {
  --paper: #f4f3ef;
  --paper-2: #eceae4;
  --ink: #131313;
  --ink-2: #55534e;
  --ink-3: #8f8c85;
  --line: rgba(19, 19, 19, .16);
  --line-2: rgba(19, 19, 19, .55);
  --acc: #ff4d00;
  --white: #ffffff;
  --sans: "Helvetica Neue", "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Courier New", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--acc); color: #fff; }
.mono { font-family: var(--mono); }
button, input, textarea, select { font-family: inherit; }

/* ── 自定义光标（仅精确指针设备） ── */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, label { cursor: none; }
  .cur-dot, .cur-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; }
  .cur-dot { width: 8px; height: 8px; background: var(--ink); transform: translate(-50%, -50%); transition: background .2s; }
  .cur-ring {
    width: 34px; height: 34px; border: 1px solid var(--line-2);
    transform: translate(-50%, -50%);
    transition: width .25s var(--ease), height .25s var(--ease), border-color .25s, background-color .25s;
  }
  body.cur-on .cur-ring { width: 56px; height: 56px; border-color: var(--acc); }
  body.cur-press .cur-ring { width: 22px; height: 22px; background: rgba(255,77,0,.15); }
}
@media (hover: none) { .cur-dot, .cur-ring { display: none; } }

/* ── 顶部滚动细线 ── */
.sbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 400; background: transparent; }
.sbar i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .1s linear; }

/* ═══ POWER ON 开场 ═══ */
.loader {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: clip-path .75s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.out { clip-path: inset(0 0 100% 0); }
.ld-core {
  position: relative; z-index: 3; text-align: center;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.ld-core.gone { opacity: 0; transform: scale(.86); pointer-events: none; }
.ld-pow { width: 108px; height: 108px; display: block; margin: 0 auto; overflow: visible; }
.ld-pow .ld-ring, .ld-pow .ld-stem {
  fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  transition: stroke .3s;
}
.loader.ready .ld-pow .ld-ring { animation: draw 1.1s var(--ease) .15s forwards; }
.loader.ready .ld-pow .ld-stem { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s var(--ease) .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ld-core:hover .ld-ring, .ld-core:hover .ld-stem { stroke: var(--acc); }
.ld-core::after {
  content: ""; position: absolute; left: 50%; top: 46px; width: 108px; height: 108px;
  transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 77, 0, .35);
  animation: ldPulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes ldPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,77,0,.32); }
  70% { box-shadow: 0 0 0 34px rgba(255,77,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,0,0); }
}
.ld-label {
  margin-top: 30px; font-family: var(--mono); font-size: 13px;
  letter-spacing: .55em; text-indent: .55em; color: var(--ink);
}
.ld-hint { margin-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; color: var(--ink-3); animation: ldBlink 1.8s ease-in-out infinite; }
@keyframes ldBlink { 50% { opacity: .25; } }

.ld-expand {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--ink); transform: translate(-50%, -50%) scale(0);
  transition: transform .7s cubic-bezier(.7, 0, .3, 1);
}
.ld-expand.on { transform: translate(-50%, -50%) scale(40); }

.ld-boot {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; opacity: 0; pointer-events: none; transition: opacity .3s;
  color: var(--paper); padding: 0 8vw;
}
.loader.booting .ld-boot { opacity: 1; }
.ld-boot-row {
  width: min(460px, 84vw); display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .28em;
}
.ld-bar { width: min(460px, 84vw); height: 2px; background: rgba(244,243,239,.2); }
.ld-bar i { display: block; height: 100%; width: 0; background: var(--acc); }
.ld-boot-lines { font-size: 10.5px; letter-spacing: .3em; color: rgba(244,243,239,.55); width: min(460px, 84vw); }

/* ═══ 顶栏 ═══ */
.topbar, .hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 0 28px; height: 64px;
  background: rgba(244,243,239,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.tb-brand { display: flex; align-items: baseline; gap: 12px; font-weight: 700; letter-spacing: .12em; }
.tb-mono { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-3); font-weight: 400; }
.tb-nav { display: flex; gap: 26px; }
.tb-nav a, .hud-nav a {
  position: relative; font-size: 13.5px; letter-spacing: .18em; color: var(--ink-2);
  padding: 6px 0; transition: color .2s;
}
.tb-nav a::before, .hud-nav a::before {
  content: attr(data-n); font-family: var(--mono); font-size: 9px;
  color: var(--ink-3); margin-right: 6px; vertical-align: 2px;
}
.tb-nav a::after, .hud-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--acc); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.tb-nav a:hover, .hud-nav a:hover { color: var(--ink); }
.tb-nav a:hover::after, .hud-nav a:hover::after,
.tb-nav a.on::after, .hud-nav a.on::after { transform: scaleX(1); transform-origin: left; }
.tb-nav a.on, .hud-nav a.on { color: var(--ink); }
.tb-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: var(--ink-2);
}
.tb-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: ldBlink 2s infinite; }
.hud-left, .hud-right { display: flex; align-items: center; gap: 14px; }
.hud-lv { font-weight: 700; letter-spacing: .12em; }
.hud-right { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--ink-2); }
.online b { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin-right: 7px; animation: ldBlink 2s infinite; }
.pct { color: var(--ink); }
@media (max-width: 760px) {
  .topbar { padding: 0 16px; height: 56px; }
  .tb-status { display: none; }
  .tb-nav { gap: 16px; }
  .tb-nav a::before { display: none; }
}

/* ═══ 版式基座 ═══ */
main { position: relative; z-index: 1; }
section[id] { scroll-margin-top: 84px; }

/* 键盘可达性 */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--acc); outline-offset: 3px;
}
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .wrap { padding: 0 20px; } }

/* 揭示动画：行/块 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.on { opacity: 1; transform: none; }
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(110%); transition: transform .9s var(--ease); }
body.ready .hero .line-mask > span, .line-mask.on > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .line-mask > span { transform: none; }
}

/* 章节头：编号 + 标题 + 注释 + 细线 */
.sec { padding-top: 110px; padding-bottom: 40px; }
.sec-head {
  display: flex; align-items: baseline; gap: 22px;
  border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: 44px;
}
.snum { font-family: var(--mono); font-size: 13px; letter-spacing: .2em; color: var(--acc); }
.sec-title { font-size: clamp(26px, 3.6vw, 46px); font-weight: 700; letter-spacing: .04em; line-height: 1.15; }
.smeta { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .26em; color: var(--ink-3); text-align: right; }
@media (max-width: 700px) { .smeta { display: none; } }

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 140px; position: relative;
}
.hero-meta {
  display: flex; justify-content: space-between; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .26em; color: var(--ink-3);
  border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: clamp(30px, 6vh, 70px);
}
.hero-title {
  font-size: clamp(52px, 11vw, 172px);
  line-height: 1.16; font-weight: 800; letter-spacing: -.01em;
}
.hero-title .line-mask { padding-bottom: .06em; }
.hero-title .line-mask:nth-of-type(2) > span { transition-delay: .12s; }
.hero-title .en {
  display: block; margin-top: clamp(20px, 3vh, 40px);
  font-family: var(--mono); font-size: clamp(11px, 1.3vw, 15px);
  font-weight: 400; letter-spacing: .34em; color: var(--ink-2);
}
.hero-title .acc { color: var(--acc); }
.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  border-top: 1px solid var(--ink); margin-top: clamp(40px, 8vh, 90px); padding: 20px 0 34px;
  flex-wrap: wrap;
}
.hb-col { font-size: 14.5px; letter-spacing: .06em; color: var(--ink-2); max-width: 420px; }
.hb-col b { color: var(--ink); font-weight: 700; }
.hb-dom { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; }
.scroll-cue { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; color: var(--ink-3); }
.scroll-cue i { display: block; width: 46px; height: 1px; background: var(--ink-3); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--acc); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.hero-ip {
  position: absolute; right: 40px; bottom: 120px; width: clamp(72px, 9vw, 120px);
  filter: grayscale(1) contrast(1.05); opacity: .85;
  transition: filter .4s var(--ease), transform .4s var(--ease);
}
.hero-ip:hover { filter: none; transform: translateY(-6px); }
.hero-ip + .hip-cap {
  position: absolute; right: 40px; bottom: 96px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em; color: var(--ink-3);
}
@media (max-width: 700px) { .hero-ip, .hero-ip + .hip-cap { display: none; } }

/* ═══ 宣言区 ═══ */
.statement { padding-top: clamp(90px, 14vh, 160px); padding-bottom: clamp(90px, 14vh, 160px); border-top: 1px solid var(--line); }
.statement .st-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; color: var(--ink-3); margin-bottom: 34px; }
.statement h2 {
  font-size: clamp(30px, 5.4vw, 76px); font-weight: 800; line-height: 1.22; letter-spacing: .01em;
}
.statement h2 em { font-style: normal; color: var(--acc); }

/* ═══ 01 简介 ═══ */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.id-card { border: 1px solid var(--ink); background: var(--white); }
.id-card .id-img { border-bottom: 1px solid var(--ink); background: var(--paper-2); overflow: hidden; }
.id-card .id-img img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 24px; transition: transform .5s var(--ease); }
.id-card:hover .id-img img { transform: scale(1.05); }
.id-card .id-name { padding: 18px 20px 4px; font-size: 22px; font-weight: 700; letter-spacing: .1em; }
.id-card .id-role { padding: 0 20px 14px; font-size: 13px; color: var(--ink-2); letter-spacing: .06em; }
.id-mono {
  padding: 12px 20px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--acc);
}
.id-facts { list-style: none; border-top: 1px solid var(--line); }
.id-facts li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 11px 20px; font-size: 13px; border-bottom: 1px solid var(--line);
}
.id-facts li:last-child { border-bottom: 0; }
.id-facts .k { color: var(--ink-3); font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; padding-top: 2px; }

.about-body .bio { font-size: clamp(16px, 1.5vw, 19px); line-height: 2.05; letter-spacing: .02em; color: var(--ink); }
.about-body .bio .fade { color: var(--ink-3); }
.cap-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border: 1px solid var(--ink); background: var(--white); }
@media (max-width: 760px) { .cap-row { grid-template-columns: 1fr; } }
.cap {
  padding: 22px 20px 20px; border-right: 1px solid var(--line);
  transition: background .25s;
}
.cap:last-child { border-right: 0; }
@media (max-width: 760px) { .cap { border-right: 0; border-bottom: 1px solid var(--line); } .cap:last-child { border-bottom: 0; } }
.cap:hover { background: var(--paper-2); }
.cap b { display: block; font-size: 16px; letter-spacing: .06em; margin-bottom: 8px; }
.cap b i { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--acc); margin-right: 8px; }
.cap span { font-size: 13px; color: var(--ink-2); line-height: 1.8; }

.goal-line {
  margin-top: -1px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 16px 20px; font-size: 14.5px; letter-spacing: .08em;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.goal-line span { background: var(--acc); color: #fff; font-family: var(--mono); font-size: 10.5px; padding: 4px 10px; letter-spacing: .18em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); border-top: 0; background: var(--white); }
.stat { padding: 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: 800; font-family: var(--mono); }
.stat span { font-size: 11.5px; letter-spacing: .16em; color: var(--ink-3); }

.btn-line, .btn-main {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; letter-spacing: .2em; font-weight: 600;
  padding: 16px 34px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease);
  margin-top: 34px;
}
.btn-main { background: var(--ink); color: var(--paper); }
.btn-main:hover { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-line.s { padding: 13px 24px; margin-top: 0; }
.btn-mag { will-change: transform; }

/* ═══ 02 方法（过程截图） ═══ */
.method-note {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  color: var(--ink-2); margin: -22px 0 30px;
}
.method-note b { color: var(--acc); }
.pipe-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--ink); background: var(--white); }
@media (max-width: 1080px) { .pipe-row { grid-template-columns: repeat(2, 1fr); } .p-card:nth-child(odd) { border-left: 0; } }
@media (max-width: 620px) { .pipe-row { grid-template-columns: 1fr; } }
.p-card { border-left: 1px solid var(--line); min-width: 0; transition: background .25s; }
.p-card:first-child { border-left: 0; }
@media (max-width: 1080px) { .p-card { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); } }
.p-card:hover { background: var(--paper-2); }
.p-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.p-head b { font-family: var(--mono); font-size: 11px; color: var(--acc); letter-spacing: .12em; }
.p-head span { font-size: 14px; font-weight: 700; letter-spacing: .05em; }
.p-view { position: relative; height: 132px; overflow: hidden; background: var(--paper-2); }
.p-view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244,243,239,.6), transparent 10%, transparent 90%, rgba(244,243,239,.6)); pointer-events: none; }
.p-track { display: flex; gap: 8px; padding: 8px; width: max-content; animation: pRun 22s linear infinite; }
.p-card:hover .p-track { animation-play-state: paused; }
.p-track img { height: 116px; width: auto; border: 1px solid var(--line); background: #fff; }
@keyframes pRun { to { transform: translateX(-50%); } }
.p-cap { padding: 9px 14px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═══ 03 作品：分类行 + 画廊 ═══ */
.cat-rows { border-top: 1px solid var(--ink); margin-bottom: 46px; }
.cat-row {
  width: 100%; display: flex; align-items: center; gap: 22px;
  padding: 20px 6px; background: none; border: 0; border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 2.4vw, 30px); font-weight: 700; letter-spacing: .04em;
  color: var(--ink); text-align: left; position: relative; transition: padding .3s var(--ease);
}
.cat-row .cr-n { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-3); width: 34px; flex: none; }
.cat-row .cr-c { margin-left: auto; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-3); font-weight: 400; }
.cat-row .cr-arr { font-family: var(--mono); font-size: 16px; color: var(--ink-3); transition: transform .3s var(--ease), color .3s; }
.cat-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--acc); transition: width .3s var(--ease);
}
.cat-row:hover { padding-left: 22px; }
.cat-row:hover .cr-arr, .cat-row.on .cr-arr { transform: translateX(8px); color: var(--acc); }
.cat-row.on { color: var(--acc); }
.cat-row.on .cr-n, .cat-row.on .cr-c { color: var(--acc); }
.cat-row.on::before { width: 4px; }
.cat-row:hover { background: linear-gradient(90deg, rgba(255,77,0,.06), transparent 60%); }

.wk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; }
.work { display: block; }
.wk-img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); border: 1px solid var(--line); }
.wk-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s; }
.work:hover .wk-img img { transform: scale(1.05); }
.wk-n {
  position: absolute; left: 12px; top: 10px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .16em; color: var(--ink-2); background: rgba(244,243,239,.9);
  padding: 3px 8px; border: 1px solid var(--line);
}
.wk-tag {
  position: absolute; right: 12px; top: 10px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; background: var(--ink); color: var(--paper); padding: 3px 8px;
  transform: translateY(-6px); opacity: 0; transition: .35s var(--ease);
}
.work:hover .wk-tag { transform: none; opacity: 1; }
.wk-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--ink); padding-top: 10px; margin-top: 12px; }
.wk-meta h4 { font-size: 15.5px; font-weight: 700; letter-spacing: .03em; }
.wk-meta .m { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); white-space: nowrap; }
.work:hover .wk-meta h4 { color: var(--acc); }
.empty-tip { grid-column: 1 / -1; text-align: center; padding: 70px 0; color: var(--ink-3); font-family: var(--mono); font-size: 12px; letter-spacing: .2em; }

/* ═══ 04 留言 ═══ */
.board-form { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 26px; }
.fld-in { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 220px; }
.fld-in label { font-family: var(--mono); font-size: 10px; letter-spacing: .26em; color: var(--ink-3); }
.fld-in input {
  border: 0; border-bottom: 1px solid var(--line-2); background: transparent;
  font-size: 16px; padding: 8px 0; outline: none; color: var(--ink); transition: border-color .25s;
}
.fld-in input:focus { border-color: var(--acc); }
.msg-list { list-style: none; margin-top: 6px; }
.msg-list li { display: flex; gap: 22px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; transition: background .2s; }
.msg-list li:hover { background: linear-gradient(90deg, rgba(255,77,0,.05), transparent 70%); }
.msg-list li:hover .who { color: var(--acc); }
.msg-list .who { font-weight: 700; letter-spacing: .06em; min-width: 130px; }
.msg-list .when { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3); margin-left: auto; }
.msg-list .txt { flex: 1 1 300px; color: var(--ink-2); font-size: 14.5px; }

/* ═══ 页脚 ═══ */
footer { border-top: 1px solid var(--ink); margin-top: 120px; background: var(--ink); color: var(--paper); }
.foot-big {
  font-size: clamp(44px, 9vw, 130px); font-weight: 800; letter-spacing: .02em;
  line-height: 1; padding: clamp(50px, 8vh, 90px) 0 0; color: transparent;
  -webkit-text-stroke: 1px rgba(244,243,239,.6);
}
.foot-rows { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 44px 0 30px; border-top: 1px solid rgba(244,243,239,.2); margin-top: clamp(30px, 6vh, 60px); }
.foot-rows .fr { font-size: 14px; letter-spacing: .06em; color: rgba(244,243,239,.75); }
.foot-rows .fr b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .26em; color: rgba(244,243,239,.4); margin-bottom: 8px; font-weight: 400; }
.foot-rows .fr a { border-bottom: 1px solid rgba(244,243,239,.3); transition: color .2s, border-color .2s; }
.foot-rows .fr a:hover { color: var(--acc); border-color: var(--acc); }
.foot-tag { font-size: clamp(17px, 2.2vw, 26px); font-weight: 700; letter-spacing: .04em; padding-bottom: 40px; }
.foot-tag em { font-style: normal; color: var(--acc); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: rgba(244,243,239,.4); border-top: 1px solid rgba(244,243,239,.14); padding: 18px 0 24px; }
.foot-base a:hover { color: var(--acc); }
.to-top { transition: color .2s; }
.to-top:hover { color: var(--acc); }

/* ═══ 音频坞（极简） ═══ */
.audio-dock {
  position: fixed; right: 22px; bottom: 22px; z-index: 600;
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); padding: 9px 16px 9px 10px;
}
.audio-toggle {
  width: 34px; height: 34px; background: transparent; border: 1px solid rgba(244,243,239,.4);
  display: flex; align-items: center; justify-content: center; transition: border-color .25s, background .25s;
}
.audio-toggle:hover { border-color: var(--acc); }
.audio-toggle.off { opacity: .5; }
#eq { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
#eq i { width: 3px; height: 100%; background: var(--acc); animation: eqA .9s ease-in-out infinite; }
#eq i:nth-child(2) { animation-delay: .15s; } #eq i:nth-child(3) { animation-delay: .3s; } #eq i:nth-child(4) { animation-delay: .45s; }
.audio-toggle.off #eq i { animation-play-state: paused; height: 30% !important; background: rgba(244,243,239,.5); }
@keyframes eqA { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.audio-ctrl p { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: rgba(244,243,239,.6); }
.audio-ctrl p span { color: var(--acc); }
.audio-ctrl input[type=range] {
  -webkit-appearance: none; appearance: none; width: 96px; height: 2px; margin-top: 7px;
  background: rgba(244,243,239,.3); outline: none; cursor: pointer;
}
.audio-ctrl input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--acc);
}
@media (max-width: 600px) { .audio-ctrl { display: none; } }

/* ═══ Toast ═══ */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 700;
  background: var(--ink); color: var(--paper); font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .14em; padding: 13px 22px;
  opacity: 0; translate: 0 10px; transition: .3s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; translate: 0; }

/* ═══ 兼容旧模板的共享类 ═══ */
.crt { display: none; }
.panel { max-width: 1360px; margin: 0 auto; padding: 110px 40px 40px; position: relative; z-index: 1; }
.panel-title { font-size: clamp(22px, 3vw, 36px); font-weight: 700; letter-spacing: .04em; border-left: 3px solid var(--acc); padding-left: 16px; }
.btn-pixel {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; letter-spacing: .18em; font-weight: 600;
  padding: 14px 26px; background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); transition: background .25s, border-color .25s;
}
.btn-pixel:hover { background: var(--acc); border-color: var(--acc); color: #fff; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  padding: 9px 16px; background: transparent; color: var(--ink-2);
  border: 1px solid var(--line-2); transition: .2s;
}
.chip:hover { border-color: var(--acc); color: var(--acc); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.glass { background: var(--white); border: 1px solid var(--ink); backdrop-filter: none; box-shadow: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 34px 24px; }
.card { display: block; background: transparent; border: 0; }
.card .thumb { overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--paper-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .thumb img { transform: scale(1.05); }
.card .tag { position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 10px; background: var(--ink); color: var(--paper); padding: 3px 8px; }
.card .thumb { position: relative; }
.card .idx { position: absolute; right: 10px; bottom: 8px; font-family: var(--mono); font-size: 26px; color: rgba(19,19,19,.25); }
.card .meta { border-top: 1px solid var(--ink); margin-top: 10px; padding-top: 9px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card .meta h4 { font-size: 15px; font-weight: 700; }
.card .meta .views, .card .meta .go { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }

/* IP 名片头像（保留交互） */
.core-ip { width: 100%; height: 100%; object-fit: contain; padding: 24px; image-rendering: auto; -webkit-user-drag: none; }
.id-img:hover .core-ip { animation: ipDance .8s ease; }
@keyframes ipDance { 25% { transform: translateY(-8px) rotate(-5deg); } 75% { transform: translateY(-8px) rotate(5deg); } }

/* ═══════════════ 04 影像 · MOTION PICTURE ═══════════════ */
.film-wrap { border-top: 1px solid var(--line-2); }
.film-meta-row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-2);
}
.film-meta-row span:last-child { color: var(--ink-3); }
.film-player { background: var(--ink); margin-top: 28px; }
.film-player video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.film-info {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 28px; flex-wrap: wrap; padding: 22px 0 34px;
}
.film-desc { max-width: 640px; font-size: 15px; line-height: 1.85; color: var(--ink-2); margin: 0; }
.film-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.film-grid img {
  width: 100%; aspect-ratio: 1600 / 685; object-fit: cover;
  filter: saturate(.92); transition: filter .35s var(--ease), transform .5s var(--ease);
}
.film-grid img:hover { filter: saturate(1.08); transform: translateY(-3px); }
@media (max-width: 860px) {
  .film-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .film-grid { grid-template-columns: 1fr; }
}

/* 作品图集（首页手风琴 / 详情页共用） */
.detail-imgs { display: block; }
.detail-imgs img { width: 100%; display: block; border: 1px solid var(--line); background: #fff; }
.detail-imgs .img-sec {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  align-items: start; margin-top: 14px;
}
.detail-imgs .img-sec:first-child { margin-top: 0; }
.detail-imgs .img-sec.sec2 { grid-template-columns: repeat(2, 1fr); }
.detail-imgs[data-work="7"] .img-sec { grid-template-columns: repeat(4, 1fr); }
.detail-imgs[data-work="17"] .img-sec { grid-template-columns: repeat(4, 1fr); }
.detail-imgs[data-work="17"] .img-sec > img:nth-child(1),
.detail-imgs[data-work="17"] .img-sec > img:nth-child(2) { grid-column: span 2; }
.detail-imgs[data-work="17"] .img-sec > img:nth-child(7),
.detail-imgs[data-work="17"] .img-sec > img:nth-child(8) { grid-column: span 4; }
.detail-imgs[data-work="20"] .img-sec { grid-template-columns: 1fr; }
@media (max-width: 1000px) {
  .detail-imgs .img-sec, .detail-imgs .img-sec.sec2 { grid-template-columns: repeat(2, 1fr); }
  .detail-imgs[data-work="7"] .img-sec, .detail-imgs[data-work="17"] .img-sec { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .detail-imgs .img-sec, .detail-imgs .img-sec.sec2,
  .detail-imgs[data-work="7"] .img-sec, .detail-imgs[data-work="17"] .img-sec { grid-template-columns: 1fr; }
}

/* 分组标题（层级展示） */
.img-group { margin: 30px 0 0; grid-column: 1 / -1; }
.img-group.lv1 {
  margin-top: 34px; padding-top: 16px;
  border-top: 2px solid #131313;
  font-size: 21px; font-weight: 800; letter-spacing: .01em;
}
.img-group.lv2 {
  margin: 20px 0 0;
  font-family: var(--mono, "Courier New", monospace);
  font-size: 12px; font-weight: 600; letter-spacing: .2em;
  color: #6b6b66; text-transform: uppercase;
}
.img-group.lv2::before { content: "— "; color: #ff4d00; }
.img-group.lv1:first-child, .img-sec:first-child .img-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* 角色说明文字块（图+文配对） */
.img-note {
  grid-column: 1 / -1;
  white-space: pre-wrap;
  background: #f1efe9;
  border: 1px solid #ddd9cf;
  border-left: 4px solid #ff4d00;
  padding: 18px 22px 20px;
  font-size: 13.5px; line-height: 2.0;
  color: #2b2b28; letter-spacing: .01em;
}

/* 两列分组：图+文成对（一图一行两张） */
.img-cell { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.img-cell .img-note { grid-column: auto; margin-top: 0; }
.img-sec > .img-note { grid-column: 1 / -1; margin-top: 0; }

/* ═══════════════ 作品手风琴（单页展开，不跳详情页） ═══════════════ */
.acc-list { border-top: 1px solid var(--ink); }
.acc-list .acc { border-bottom: 1px solid var(--line-2); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 18px;
  padding: 22px 4px; background: none; border: 0; cursor: pointer;
  text-align: left; font: inherit; color: inherit;
}
.acc-head:hover .acc-t { color: var(--acc); }
.acc-n { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--acc); flex: none; }
.acc-t { flex: 1; font-size: clamp(16px, 2.2vw, 23px); font-weight: 700; letter-spacing: .02em; transition: color .25s; }
.acc-c { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-2); border: 1px solid var(--line-2); padding: 5px 10px; white-space: nowrap; }
.acc-v { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); white-space: nowrap; }
.acc-ic { flex: none; width: 26px; text-align: center; font-size: 17px; color: var(--acc); transition: transform .3s var(--ease); }
.acc.open .acc-ic { transform: rotate(180deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-desc {
  margin: 0; padding: 4px 4px 20px; max-width: 760px;
  font-size: 14.5px; line-height: 1.9; color: var(--ink-2); white-space: pre-wrap;
}
.acc-inner .detail-imgs { padding: 0 4px 40px; }
@media (max-width: 720px) {
  .acc-head { flex-wrap: wrap; gap: 10px 14px; padding: 18px 2px; }
  .acc-t { flex-basis: 100%; order: -1; }
  .acc-v { display: none; }
}

/* ═══ 图片保护：禁选中/禁拖拽 ═══ */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
