/* ============================================================
 * 《归途网 · 第017号档案》
 * 皮肤一 skin-forum:2010 年代旧论坛(米白/灰蓝)
 * 皮肤二 skin-archive/skin-memory:黑底监控档案
 * 皮肤三 skin-void:终局纯黑
 * ============================================================ */

* { box-sizing: border-box; }
body { margin: 0; font-family: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { text-decoration: none; }
p { line-height: 1.9; }
.center { text-align: center; }
.small { font-size: 13px; }
.muted { color: #7d7a6c; }
.skin-archive .muted, .skin-memory .muted { color: #6f8a78; }
.creep { color: #d98a6a; }
::selection { background: rgba(176,58,46,.18); }

/* ================= 论坛主题 tokens ================= */
:root {
  --paper:       #f3f0e6;   /* 页面纸色 */
  --paper-deep:  #e9e5d8;
  --card:        #fcfaf3;   /* 卡片/表格 */
  --card-line:   #ddd7c3;
  --ink:         #34332c;   /* 主文字 */
  --ink-soft:    #6f6b5d;   /* 次要文字 */
  --navy:        #41506b;   /* 品牌蓝 */
  --navy-deep:   #33405a;
  --navy-hi:     #5a6a8d;
  --link:        #2f5b8e;
  --rust:        #b03a2e;   /* 锈红:置顶/警示/017 */
  --gold:        #b9913f;
  --shadow-sm:   0 1px 2px rgba(82,72,46,.06);
  --shadow-card: 0 1px 2px rgba(82,72,46,.05), 0 6px 18px rgba(82,72,46,.07);
  --radius:      7px;
}

/* ================= 论坛皮肤 ================= */
.skin-forum {
  color: var(--ink);
  font-size: 15px;
  background-color: #e6e2d4;
  background-image:
    radial-gradient(1100px 520px at 50% -240px, rgba(255,255,255,.65), transparent 62%),
    radial-gradient(900px 700px at 110% 110%, rgba(120,104,66,.06), transparent 60%),
    repeating-linear-gradient(0deg, rgba(110,100,70,.022) 0 2px, transparent 2px 5px);
  background-attachment: fixed;
}
.skin-forum a { color: var(--link); transition: color .15s ease; }
.skin-forum a:hover { text-decoration: underline; }

.page { max-width: 900px; margin: 0 auto; background: var(--paper); min-height: 100vh;
  border-left: 1px solid #d6d0bd; border-right: 1px solid #d6d0bd;
  box-shadow: 0 0 46px rgba(68,58,36,.13); }

.forum-top { position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, #4c5c7b, #39465f 62%, #35415a);
  border-bottom: 1px solid #2b3650;
  box-shadow: 0 3px 12px rgba(38,47,68,.28); }
.forum-bar { display: flex; align-items: center; gap: 14px; padding: 11px 20px; flex-wrap: wrap; }
.logo { font-size: 22px; font-weight: 700; letter-spacing: 3px; line-height: 1.1; }
.logo a { color: #f6f2e6; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.logo:hover a { text-decoration: none; }
.logo-sub { color: #a9b6cf; font-size: 11px; letter-spacing: 2px; }
.fnav { margin-left: auto; display: flex; gap: 5px; flex-wrap: wrap; }
.fnav a { color: #d6deee; font-size: 14px; padding: 5px 13px; border-radius: 999px;
  border: 1px solid transparent; transition: all .15s ease; }
.fnav a:hover { background: rgba(255,255,255,.12); text-decoration: none; border-color: rgba(255,255,255,.16); }
.fnav a.cur { background: #f4f1e6; color: var(--navy); font-weight: 600; border-color: #f4f1e6; }

.memstrip { background: #33405a; color: #a9b8d4; font-size: 12px; padding: 6px 20px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #2a3550; }
.mem-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #7d8aa6; background: transparent; }
.mem-dot.on { background: #d8a86a; box-shadow: 0 0 7px #d8a86a; border-color: #d8a86a; }
.memcount { margin-left: auto; }

/* 论坛内容容器 */
.bd { padding: 24px 26px 46px; }
.skin-forum h1 { font-size: 25px; letter-spacing: 2px; margin: 4px 0 18px; color: #2e2d26;
  padding-left: 12px; border-left: 5px solid var(--navy); line-height: 1.35; }
.forum-table { width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--card-line); border-radius: var(--radius); overflow: hidden;
  font-size: 14px; box-shadow: var(--shadow-sm); }
.forum-table th { background: linear-gradient(180deg, #ebe6d4, #e4dfcb); padding: 10px 12px;
  text-align: left; color: #555143; font-weight: 600; border-bottom: 1px solid #ccc6b0; }
.forum-table td { padding: 10px 12px; border-bottom: 1px solid #ece7d5; vertical-align: top; }
.forum-table tr:last-child td { border-bottom: none; }
.forum-table tbody tr:hover td, .forum-table tr:hover td { background: #f6f3e8; }
.pin { color: var(--rust); font-weight: 700; margin-right: 6px; }
.closed { color: #8a8778; }
.hl-tag { font-size: 12px; color: var(--rust); border: 1px solid rgba(176,58,46,.55); border-radius: 4px;
  padding: 0 5px; margin-left: 6px; background: rgba(176,58,46,.05); }
.muted { color: #86817a; }
.small { font-size: 13px; }

.panel { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 18px 20px; margin: 18px 0; box-shadow: var(--shadow-card); }
.skin-forum h2 { font-size: 18px; letter-spacing: 1px; margin: 0 0 12px; color: #32312a; }
.panel h2 { margin: 0 0 10px; }
.postbody { font-size: 15.5px; line-height: 2.05; }
.postbody blockquote { margin: 14px 0; padding: 8px 16px; border-left: 3px solid #c2bca6; color: #5b574a; background: #f5f2e6; }
.post-meta { color: #8b8778; font-size: 13px; margin-bottom: 14px; border-bottom: 1px dashed #cfc9b6; padding-bottom: 10px; }

.reply-item { border-top: 1px dashed #cfc9b6; margin-top: 18px; padding-top: 12px; }
.reply-head { font-size: 13px; color: #8b8778; }
.floor { color: var(--rust); font-weight: 700; margin-right: 8px; }

/* ================= 论坛生态:标签/死链/弹层/分页 ================= */
.tag-find { font-size:12px; color:#8a4a1e; border:1px solid #c08a4a; border-radius:4px; padding:0 5px; margin-right:6px; background:rgba(192,138,74,.06); }
.tag-thx  { font-size:12px; color:#3a6b45; border:1px solid #6fa17e; border-radius:4px; padding:0 5px; margin-right:6px; background:rgba(111,161,126,.07); }
.tag-chat { font-size:12px; color:#4d5d7a; border:1px solid #93a3bd; border-radius:4px; padding:0 5px; margin-right:6px; background:rgba(100,118,148,.06); }
.tag-err  { font-size:12px; color:#9a463a; border:1px solid #b98074; border-radius:4px; padding:0 5px; margin-right:6px; background:rgba(154,70,58,.06); }
.tag-clue { font-size:12px; color:#fff; background:#b03a2e; border-radius:4px; padding:0 5px; margin-right:6px;
  box-shadow:0 1px 3px rgba(176,58,46,.35); }
/* 看起来能点、点下去什么都不会发生的死链 */
.dead-link { color: var(--link); cursor: pointer; }
.dead-link:hover { text-decoration: underline; }
.dead-link.locked { color:#8f8b7d; }
.dead-link.dim { color:#96927f; }

/* 帖子详情弹层 */
.board-modal { position:fixed; inset:0; z-index:80; display:flex; align-items:center; justify-content:center;
  background:rgba(35,32,24,.55); padding:18px; }
.board-modal[hidden] { display:none; }
.bm-box { width:100%; max-width:600px; max-height:82vh; overflow-y:auto; background:var(--card);
  border:1px solid #b9b3a0; border-radius:10px; box-shadow:0 18px 60px rgba(30,26,16,.45); animation:bm-in .18s ease-out; }
@keyframes bm-in { from{opacity:0; transform:translateY(10px) scale(.99)} to{opacity:1; transform:none} }
.bm-head { display:flex; align-items:center; gap:10px;
  background: linear-gradient(180deg, #ebe6d4, #e4dfcb); padding:11px 16px;
  border-bottom:1px solid #c9c3af; border-radius:9px 9px 0 0; position:sticky; top:0; }
.bm-title { font-weight:700; font-size:15.5px; color:#3c382d; flex:1; }
.bm-tag { font-size:12px; color:#b03a2e; border:1px solid #b03a2e; border-radius:3px; padding:0 6px; flex:none; }
.bm-close { margin-left:auto; background:none; border:none; font-size:22px; line-height:1; color:#6b6558;
  cursor:pointer; padding:0 4px; }
.bm-close:hover { color:#b03a2e; }
.bm-body { padding:16px 18px 20px; font-size:14.5px; line-height:2; color:#3c382d; }
.bm-meta { color:#8b8778; font-size:12.5px; border-bottom:1px dashed #cfc9b6; padding-bottom:10px; margin-bottom:14px; }
.bm-body .reply-item { font-size:14px; }
.bm-hint { margin-top:16px; padding-top:10px; border-top:1px dashed #cfc9b6; color:#8a4a30; font-size:13px; }

/* 分页条 */
.pager-bar { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:16px 0 4px; font-size:13px; color:#8b8778; }
.pager-bar a, .pager-bar span { display:inline-block; min-width:30px; text-align:center; padding:4px 9px;
  border:1px solid #d3ccb8; border-radius:5px; background:var(--card); color:var(--link);
  box-shadow:var(--shadow-sm); }
.pager-bar a:hover { background:#f1ede0; }
.pager-bar span.cur { background:linear-gradient(180deg,#4d5e7d,#3c4964); color:#f5f1e4; border-color:#35405a; }

/* 版块双栏 */
.board-cols { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:22px; }
.board-cols .panel { margin:0; }
.mini-list { list-style:none; margin:0; padding:0; font-size:13.5px; line-height:2.15; }
.mini-list li { border-bottom:1px dashed #e2ddcc; display:flex; gap:8px; align-items:baseline; }
.mini-list li:last-child { border-bottom:none; }
.mini-list .ml-time { margin-left:auto; color:#a8a394; font-size:12px; white-space:nowrap; }
.ol-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#5a9a6b; margin-right:4px; }
.ol-dot.off { background:#c2bca6; }
@media (max-width:640px) { .board-cols { grid-template-columns:1fr; } }

/* 损坏的照片 */
.broken-img { background: #dedacb; border: 1px solid #c2bca6; border-radius: var(--radius); color: #8b8778;
  text-align: center; padding: 34px 10px; font-size: 13px; letter-spacing: 1px; }
.broken-img .x { font-size: 26px; color: #b3ad99; display: block; margin-bottom: 6px; }

/* 首页横幅 */
.hero-panel { position: relative; overflow: hidden; color: #f3efe2;
  background: linear-gradient(135deg, #43536f 0%, #37435c 55%, #303b52 100%);
  border: 1px solid #2f3a53; border-radius: 10px; padding: 28px 30px !important;
  box-shadow: 0 10px 30px rgba(45,55,78,.25); }
.hero-panel::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(216,168,106,.22), transparent 70%); pointer-events: none; }
.hero-panel h2 { color: #faf6ea !important; letter-spacing: 2px; }
.hero-panel .muted { color: #c2ccdd; }
.hero-panel .btn { background: rgba(246,242,231,.08); border-color: rgba(246,242,231,.55);
  color: #f3efe2; box-shadow: none; }
.hero-panel .btn:hover { background: rgba(246,242,231,.18); box-shadow: none; }
.hero-panel .btn:first-child { background: linear-gradient(180deg,#f7f0dc,#e6d9bd); color: #3a4761;
  border-color: #d6c8a2; box-shadow: 0 3px 10px rgba(20,26,40,.3); }
.hero-panel .btn:first-child:hover { background: linear-gradient(180deg,#fdf5e2,#ede0c4); }

/* 搜索(论坛态) */
.searchbox { display: flex; gap: 8px; margin: 18px 0; }
.searchbox input { flex: 1; padding: 11px 13px; border: 1px solid #c4bda8; border-radius: var(--radius);
  background: #fffef9; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.searchbox input:focus { outline: none; border-color: var(--navy-hi);
  box-shadow: 0 0 0 3px rgba(65,80,107,.14); }
button, .btn { font-family: inherit; cursor: pointer; }
.btn, .searchbox button { background: linear-gradient(180deg, #4d5e7d, #3c4964); color: #f6f2e7;
  border: 1px solid #35405a; padding: 10px 22px; font-size: 14px; letter-spacing: 1px;
  border-radius: var(--radius); box-shadow: 0 2px 5px rgba(45,55,78,.28);
  transition: transform .08s ease, box-shadow .12s ease, background .15s; display: inline-block; }
.btn:hover, .searchbox button:hover { background: linear-gradient(180deg, #5a6c8e, #44516c);
  text-decoration: none; box-shadow: 0 3px 9px rgba(45,55,78,.34); transform: translateY(-1px); }
.btn:active, .searchbox button:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(45,55,78,.3); }
.kw-none { color: #6b685c; }
.kw-sub { color: #9a958a; font-size: 13px; }
.kw-note { color: var(--rust); }
.kw-hit { color: var(--rust); font-weight: 600; }
.kw-go { font-size: 16px; }

/* 登记表单/卡 */
.reg-form { max-width: 460px; background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-card); }
.reg-form label { display: block; margin: 14px 0 4px; font-size: 14px; color: #565245; }
.reg-form input { width: 100%; padding: 10px 12px; border: 1px solid #c4bda8; border-radius: 5px;
  background: #fffef9; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.reg-form input:focus { outline: none; border-color: var(--navy-hi); box-shadow: 0 0 0 3px rgba(65,80,107,.14); }
.reg-form .warn { font-size: 12px; color: #9a7a2c; margin-top: 16px; }
.reg-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; }
.reg-table td { border: 1px solid #d4cfbf; padding: 10px 12px; font-size: 14px; }
.reg-table td:first-child { background: #e9e4d2; width: 110px; color: #5a564a; }
.card-title { font-weight: 700; font-size: 17px; margin: 0 0 12px; }
.card-creep { margin-top: 14px; border: 1px dashed var(--rust); border-radius: 5px;
  padding: 12px; color: #7a2b22; font-size: 14px; line-height: 2; background: rgba(176,58,46,.03); }
.card-creep.soft { border-color: #c99a4a; color: #8a6a2c; background: rgba(185,145,63,.04); }
.card-foot { font-size: 12px; color: #9a958a; margin-top: 12px; }
.linklike { background: none; border: none; color: var(--link); text-decoration: underline; padding: 0; font-size: 12px; }

.mono { font-family: Consolas, "Courier New", monospace; }

/* ================= 档案皮肤 ================= */
.skin-archive, .skin-memory {
  background: #0c0e10;
  color: #c7d2c9;
  font-size: 15px;
  position: relative;
}
.skin-archive::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
}
.skin-archive a, .skin-memory a { color: #7fe0a0; border-bottom: 1px dotted #3f6b4f; }
.skin-archive .page, .skin-memory .page { max-width: 860px; margin: 0 auto; min-height: 100vh;
  background: #0e1113; border-left: 1px solid #1d2420; border-right: 1px solid #1d2420; position: relative; z-index: 1; }

.arch-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: #0a0c0d; border-bottom: 1px solid #243028; padding: 8px 16px;
  font-family: Consolas, monospace; font-size: 12.5px; color: #6f8a78; }
.arch-id { color: #9fbfa9; }
.arch-warn { color: #d98a6a; }
.arch-back { margin-left: auto; color: #9fbfa9 !important; border: none !important; }

.bd { padding: 22px 26px 50px; }
.arch-title { font-family: Consolas, monospace; color: #7fe0a0; letter-spacing: 2px; font-size: 20px; margin: 6px 0 18px; }
.arch-title::before { content: '> '; color: #4d7a5d; }
.arch-panel { border: 1px solid #233029; background: #101512; padding: 16px 18px; margin: 16px 0; }
.arch-panel blockquote { border-left: 3px solid #385944; margin: 12px 0; padding: 4px 16px; color: #8faa96; }
.creep { color: #d98a6a; }
.creep-red { color: #e45b4f; }
.whisper { color: #6f8a78; font-size: 13.5px; }
.file-line { font-family: Consolas, monospace; color: #7d9786; font-size: 13px; }

/* 监控谜题 */
#cam-board { width: 100%; border-collapse: collapse; margin: 10px 0; }
#cam-board td { border: 1px solid #233029; padding: 10px; vertical-align: top; font-size: 13.5px; }
#cam-board .cam-pos { width: 96px; }
#cam-board .cam-time { width: 150px; color: #d98a6a; white-space: nowrap; }
#cam-board select { width: 88px; background: #0e1113; color: #9fbfa9; border: 1px solid #35493c; padding: 4px; }

/* 老城区协查地图 */
.clue-board { border: 1px solid #35493c; background: #0d1410; padding: 12px 16px; margin: 14px 0 4px; }
.clue-h { color: #d8a86a; font-size: 13px; letter-spacing: 2px; margin: 2px 0 8px; }
.clue-list { margin: 0; padding-left: 18px; }
.clue-list li { font-size: 13.5px; line-height: 1.9; color: #b9c9bd; margin: 4px 0; }
.clue-list a { color: #9fc4a8; }
.map-grid { margin: 6px 0 10px; }
.map-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 4px; }
.map-cell {
  min-height: 64px; padding: 6px 4px; font-size: 12px; line-height: 1.45;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px solid #2a3a2f; background: #101713; color: #a9bdad;
}
button.map-cell { cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s; }
button.map-cell:hover { border-color: #6f8a78; background: #162019; color: #d6f5df; }
.map-road { background: #0b0e0c; color: #4a574e; border-style: dashed; font-size: 11px; }
.map-miss { color: #8a998e; }
.map-near { border-color: #5a4a2e; background: #171410; color: #c9b58a; }
.map-target { border-color: #5a6a3a; }
.map-cell.is-goal { border-color: #d8a86a; background: #241d10; color: #f2d9a0; font-weight: bold; box-shadow: 0 0 10px rgba(216,168,106,.35); }
.map-cell.miss-flash { animation: mapflash .6s; }
@keyframes mapflash { 0%,100%{ } 30% { border-color: #b05a4a; background: #241412; color: #e0a090; } }
.map-legend { font-size: 12px; color: #6a7a6e; margin: 4px 0 10px; }
@media (max-width: 640px) {
  .map-row { grid-template-columns: repeat(3, 1fr); }
  .map-cell { min-height: 56px; font-size: 11px; }
}
.arch-btn { background: #13201a; color: #7fe0a0; border: 1px solid #385944; padding: 9px 22px; font-size: 14px;
  font-family: Consolas, monospace; letter-spacing: 1px; cursor: pointer; text-decoration: none; display: inline-block; }
.arch-btn:hover { background: #1a2b22; }

/* 卷四 · 账号处置抉择(流程化外观,两个选项同等不起眼) */
.disp { border: 1px solid #385944; padding: 18px 20px; margin-top: 18px; background: rgba(19,32,26,.5); }
.disp-title { color: #9fbfa9; font-family: Consolas, monospace; letter-spacing: 1px; margin: 0 0 10px; font-size: 13.5px; }
.disp-text { margin: 6px 0; font-size: 14px; line-height: 1.9; }
.disp-opts { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.disp-fine { color: #5f7a6a; font-size: 12px; margin: 4px 0 0; }
.disp-kept { color: #7fe0a0; font-size: 13.5px; margin-top: 14px; }
.puz-ok { color: #7fe0a0; }
.puz-ok.soft { color: #9fbfa9; }
.puz-err { color: #e45b4f; }
.why { color: #d98a6a; }
.why li { margin: 6px 0; }

/* 聊天 */
#chat-lines p { margin: 10px 0; font-size: 14.5px; }
.chat-mark { color: #6f8a78; font-family: Consolas, monospace; margin-right: 8px; }
.chat-sys .chat-mark { color:#999; }
.chat-mian { color:#8a7a6a; }
.chat-mian .chat-mark { color:#b08070; }
.answer-row { display: flex; gap: 8px; margin: 16px 0; align-items: center; }
.answer-row input { flex: 1; max-width: 300px; background: #0e1113; border: 1px solid #35493c; color: #d6f5df;
  padding: 9px 12px; font-size: 15px; letter-spacing: 2px; }

/* 病历 */
.med-row { display: flex; gap: 10px; align-items: flex-start; padding: 11px 10px; border: 1px solid #233029;
  margin: 8px 0; cursor: pointer; font-size: 14px; }
.med-row input { margin-top: 4px; }
.med-row.isbad { border-color: #5a3228; background: #1a120f; }

/* 诗 */
.poem-p { font-size: 15.5px; line-height: 2.2; margin: 12px 0; }
.poem-tag { color:#d8a86a; font-size:13px; font-family:serif; }
.poem-hide { border-bottom: 1px dotted #5a6a52; }

/* 登录日志 */
#log-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
#log-table td { border: 1px solid #233029; padding: 8px 10px; }
#log-table tr { cursor: pointer; }
#log-table tr.unk:hover td { background: #1a1510; }
#log-table tr.found td { background: #241a10; color: #e0b07a; }
#log-table tr.live td { background: #2a1210; color: #ffb4a8; animation: flick 1.2s infinite; border-color: #5a2a22; }
#log-table tr.wrong td { background: #201414; }
.log-note { color: #d98a6a; font-size: 12.5px; }
@keyframes flick { 50% { opacity: .55; } }

/* 记忆页(暖色暗调) */
.skin-memory .arch-id { color: #d8a86a; }
.skin-memory .arch-panel { border-color: #3a2f1c; background: #131009; }
.skin-memory { color: #d9cdb2; }
.mem-head { text-align: center; padding: 26px 0 6px; }
.mem-head .mem-tag { font-family: Consolas, monospace; color: #d8a86a; font-size: 12px; letter-spacing: 3px; }
.mem-head h1 { font-weight: 400; font-size: 30px; color: #ecd8ac; letter-spacing: 4px; margin: 10px 0; }
.memory-prose { font-size: 16.5px; line-height: 2.2; }
.memory-prose b { color: #e8c285; font-weight: 600; }
.his-note { border-left: 3px solid #8a6a3a; padding: 6px 18px; color: #b3a07c; font-size: 14.5px; margin: 18px 0; background: rgba(216,168,106,.05); }

/* ================= 终局皮肤 ================= */
.skin-void { background: #050505; color: #cfcfcf; font-family: "Songti SC","SimSun",serif; }
.skin-void .page { max-width: 720px; margin: 0 auto; min-height: 100vh; }
.void-bar { display: block; text-align: center; color: #444; font-size: 12px; padding: 14px; letter-spacing: 2px; font-family: Consolas,monospace; }
.void-main { padding: 60px 30px 80px; }
.void-main h1 { font-weight: 400; text-align: center; letter-spacing: 8px; font-size: 34px; color: #e8e4da; margin-bottom: 30px; }
.void-prose { font-size: 17px; line-height: 2.4; }
.void-prose p { margin: 18px 0; }
.choice-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 40px 0; }
.choice-btn { display: inline-block; border: 1px solid #555; color: #ddd; padding: 14px 30px; font-size: 16px; letter-spacing: 3px; background: none; }
.choice-btn:hover { border-color: #e8e4da; color: #fff; }
.choice-btn.dim:hover { border-color: #777; color: #bbb; }
.letter { border: 1px solid #333; padding: 30px 34px; margin: 30px 0; line-height: 2.3;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(216,168,106,.07) 31px 32px),
    radial-gradient(circle at 88% 6%, rgba(216,168,106,.06), transparent 30%),
    #0a0a0a;
  box-shadow: inset 0 0 50px rgba(0,0,0,.6), 0 6px 26px rgba(0,0,0,.5); }
.letter .sign { text-align: right; color: #d8a86a; margin-top: 22px; }
.final-update { color: #d8a86a; text-align: center; font-size: 18px; letter-spacing: 4px; }

/* 最终选择页 · 注销(坏结局入口,刻意做得像一条不起眼的例行链接) */
.bad-zone { text-align: center; margin: 30px 0 0; }
.bad-link { background: none; border: none; color: #565656; font-family: inherit; font-size: 12.5px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.bad-link:hover { color: #8a8a8a; }

/* 坏结局 · 系统删除记录 */
.delog { font-family: Consolas, "Courier New", monospace; color: #7a7a7a; font-size: 13.5px;
  line-height: 2.1; letter-spacing: .5px; border-left: 2px solid #333; padding-left: 14px; margin: 22px 0; }
.code-line { text-align: center; font-family: Consolas,monospace; color: #d8a86a; letter-spacing: 6px; font-size: 22px; margin: 26px 0; }

/* 锁 */
#lock-code { width: 220px; text-align: center; letter-spacing: 12px; font-size: 30px; background: #0e1113;
  border: 1px solid #4d4030; color: #e8c285; padding: 10px; display: block; margin: 0 auto; }

/* 权限墙 */
.wall-body { background: #0a0b0c; color: #8a948c; font-family: Consolas,monospace; }
.wall { max-width: 560px; margin: 18vh auto; text-align: center; padding: 30px; }
.wall-code { font-size: 64px; letter-spacing: 8px; color: #4d5a52; margin: 0 0 16px; }
.wall-sub { color: #5d6a62; font-size: 13px; margin: 18px 0 26px; }

/* 页脚 */
.pager { text-align: center; padding: 26px 16px 34px; color: #8b8778; font-size: 12.5px; display: block; }
.skin-archive .pager, .skin-memory .pager { color: #4d5a52; }
.skin-void .pager { color: #333; }
.skin-diary .pager { color: #9a8866; }
.pager-num { letter-spacing: 2px; display: block; }
.pager-note { display: block; margin-top: 6px; }

/* ================= 日记皮肤(陆迟的守夜日志 · 桌面实拍日记本) ================= */
.skin-diary {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255,240,210,.10), transparent 60%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, #6e5438, #5a442c 60%, #4c3824);
  color: #3a3128;
  font-family: "Kaiti SC","STKaiti","KaiTi","楷体","Xingkai SC","Songti SC","SimSun",serif;
}
.skin-diary .page {
  max-width: 740px; margin: 0 auto; min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(150,110,60,.07), transparent 22%),
    radial-gradient(circle at 88% 92%, rgba(150,110,60,.08), transparent 26%),
    radial-gradient(circle at 80% 6%, rgba(120,80,40,.05), transparent 18%),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(110,84,56,.13) 33px 34px),
    linear-gradient(180deg, #f6eeda, #f1e6cd 55%, #ede0c5);
  border-left: 1px solid rgba(0,0,0,.18); border-right: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 0 60px rgba(20,10,0,.5), inset 0 0 80px rgba(150,110,60,.08);
  position: relative;
  animation: paper-drop .7s ease-out;
}
@keyframes paper-drop { from { opacity: 0; transform: translateY(14px) rotate(.15deg); } to { opacity: 1; transform: none; } }
/* 纸张内侧的装订红线与打孔边 */
.skin-diary .page::before { content: ''; position: absolute; left: 46px; top: 0; bottom: 0; width: 1px;
  background: rgba(176,60,50,.30); pointer-events: none; }
.skin-diary .page::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 26px; pointer-events: none;
  background:
    radial-gradient(circle at 13px 60px, #b9a884 0 4.5px, rgba(0,0,0,.28) 5px, transparent 6px),
    radial-gradient(circle at 13px 180px, #b9a884 0 4.5px, rgba(0,0,0,.28) 5px, transparent 6px),
    radial-gradient(circle at 13px 300px, #b9a884 0 4.5px, rgba(0,0,0,.28) 5px, transparent 6px),
    linear-gradient(90deg, rgba(90,60,30,.16), transparent); }

.diary-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 24px 12px 44px; border-bottom: 1px solid #d3c39c;
  font-size: 12.5px; color: #8a7656; font-family: "PingFang SC",sans-serif;
  background: linear-gradient(180deg, rgba(255,252,240,.75), rgba(255,250,238,.35));
  position: sticky; top: 0; z-index: 4; backdrop-filter: blur(2px); }
.diary-bar-id { letter-spacing: 1px; }
.diary-back { color: #8a7656 !important; border: none !important; margin-left: auto; }
.diary-back + .diary-back { margin-left: 0; }

.diary-main { padding: 44px 56px 64px 66px; position: relative; }
.diary-date { color: #a04a3e; font-size: 14.5px; letter-spacing: 2px; font-family: "PingFang SC",sans-serif;
  background: linear-gradient(100deg, rgba(255,243,190,.55), rgba(255,243,190,.82) 45%, rgba(255,243,190,.4));
  padding: 4px 18px; display: inline-block; transform: rotate(-.7deg);
  box-shadow: 0 1px 3px rgba(120,90,40,.18); border-left: 1px dashed rgba(176,150,90,.5); border-right: 1px dashed rgba(176,150,90,.5); }
.diary-weather { color: #9a8866; font-size: 13px; margin-left: 12px; font-family: "PingFang SC",sans-serif; }
.diary-main h1 { font-weight: 400; font-size: 30px; color: #33281d; margin: 14px 0 28px; letter-spacing: 4px;
  position: relative; display: inline-block; }
.diary-main h1::after { content: ''; position: absolute; left: 2%; right: -4%; bottom: -8px; height: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='7' viewBox='0 0 120 7'%3E%3Cpath d='M1 5 Q 15 1 30 4 T 60 4 T 90 4 T 119 4' fill='none' stroke='%23a04a3e' stroke-opacity='.45' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x; }
.diary-main h2 { font-weight: 400; font-size: 20px; color: #6b5436; margin: 26px 0 10px; }
.diary-prose { font-size: 17.5px; line-height: 34px; color: #3d332a; }
.diary-prose p { margin: 0 0 15px; text-indent: 2em; }
.diary-prose p.noindent { text-indent: 0; }
.diary-sign { text-align: right; color: #7a5a36; margin-top: 28px; font-size: 16.5px;
  transform: rotate(-.6deg); transform-origin: right center; }
.diary-sign a { color: #a04a3e !important; border-bottom: 1px dotted #a04a3e !important; }
.diary-stain { margin: 30px auto; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(150,100,50,.14), rgba(150,100,50,0) 70%); }
/* 日记里的拍立得照片贴片 */
.polaroid { background: #fdfaf1; padding: 10px 10px 38px; width: 250px; margin: 24px auto;
  box-shadow: 0 6px 18px rgba(70,50,20,.28); transform: rotate(-1.4deg); position: relative; }
.polaroid.alt { transform: rotate(1.6deg); }
.polaroid img, .polaroid .polaroid-ph { width: 100%; height: 200px; object-fit: cover; display: block;
  background: linear-gradient(135deg, #d8c9a4, #b3a17e); filter: sepia(.25); }
.polaroid .caption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-size: 14px; color: #6b5436; }

/* 日志目录(日记本扉页) */
.loglist { list-style: none; padding: 0; margin: 20px 0; }
.loglist li { border-bottom: 1px dashed #c2b08a; }
.loglist a, .loglist .locked { display: flex; gap: 16px; align-items: baseline; padding: 15px 6px; font-size: 17px; color: #3a3128; }
.loglist a:hover { background: rgba(255,250,238,.7); text-decoration: none; }
.loglist .log-num { color: #a04a3e; font-family: Consolas,monospace; font-size: 13px; min-width: 74px; }
.loglist .log-day { color: #6b5436; font-size: 13.5px; min-width: 110px; font-family: "PingFang SC",sans-serif; }
.loglist .locked { color: #a89878; cursor: not-allowed; }
.loglist .locked .log-day { color: #b3a180; }
.lockicon { margin-left: auto; font-size: 13px; color: #a89878; font-family: "PingFang SC",sans-serif; }
.loglist a .lockicon { color: #a04a3e; }
.log-intro { background: rgba(255,252,240,.6); border: 1px solid #d8c8a4; padding: 18px 22px; font-size: 15.5px; line-height: 2; color: #5b4c36;
  box-shadow: inset 0 0 30px rgba(180,140,80,.07); }

/* 糖纸戒指翻转 */
.ring-stage { perspective: 1000px; width: 230px; height: 230px; margin: 30px auto; }
.ring-flip { position: relative; width: 100%; height: 100%; transition: transform .9s; transform-style: preserve-3d; cursor: pointer; }
.ring-stage.flipped .ring-flip { transform: rotateY(180deg); }
.ring-face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; border-radius: 50%; }
.ring-front { background: radial-gradient(circle at 38% 32%, #f7e3b0, #d8a86a 55%, #9a6f38);
  box-shadow: inset 0 0 30px rgba(120,70,20,.4), 0 8px 30px rgba(90,60,20,.35); }
.ring-front .ring-hole { width: 96px; height: 96px; border-radius: 50%; background: #ece1c9;
  box-shadow: inset 0 0 14px rgba(90,60,20,.5); display: grid; place-items: center; color: #8a6a3a; font-size: 12px; }
.ring-back { transform: rotateY(180deg); background: radial-gradient(circle at 40% 35%, #f3e8cc, #cfa96c 60%, #8a6232);
  box-shadow: inset 0 0 30px rgba(120,70,20,.45), 0 8px 30px rgba(90,60,20,.35); padding: 26px; text-align: center; }
.ring-back .ring-inner-text { font-size: 14px; line-height: 2; color: #4a3418; }
.ring-hint { text-align: center; color: #9a8866; font-size: 13.5px; font-family: "PingFang SC",sans-serif; }

/* ================= 拼照片谜题(mem1 · 记忆显影) ================= */
.photo-puzzle-wrap { margin: 22px auto; max-width: 440px; }
.photo-puzzle { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; width: 100%; aspect-ratio: 1;
  background: #0a0d0b; padding: 6px; border: 1px solid #3a2f1c; box-shadow: 0 0 30px rgba(0,0,0,.6);
  touch-action: manipulation; }
.pz-cell { cursor: pointer; background-size: 300% 300%; background-repeat: no-repeat; position: relative;
  filter: grayscale(.9) brightness(.62) contrast(1.05); transition: filter .5s, transform .12s, box-shadow .15s; }
.pz-cell.sel { outline: 2px solid #d8a86a; outline-offset: -1px; z-index: 2; transform: scale(1.03);
  box-shadow: 0 0 14px rgba(216,168,106,.55); }
.pz-cell.swap-flash { animation: pzflash .35s; }
@keyframes pzflash { 0% { filter: grayscale(.9) brightness(1.6); } 100% {} }
.photo-puzzle.solved .pz-cell { filter: none; animation: pzdevelop 1.6s ease-out; }
@keyframes pzdevelop {
  0% { filter: grayscale(1) brightness(.5); }
  55% { filter: grayscale(.45) brightness(.85) sepia(.25); }
  100% { filter: none; }
}
.photo-puzzle.solved { border-color: #8a6a3a; box-shadow: 0 0 46px rgba(216,168,106,.28); }
.pz-hint { text-align: center; color: #b3a07c; font-size: 13.5px; margin-top: 12px; }
.pz-caption { text-align: center; color: #d8a86a; font-size: 14px; letter-spacing: 2px; margin-top: 10px; min-height: 20px; }
.pz-skip { display: block; margin: 10px auto 0; background: none; border: none; color: #6f8a78;
  font-size: 12.5px; text-decoration: underline; cursor: pointer; font-family: Consolas,monospace; }

/* ================= 机械转盘锁(lock) ================= */
.padlock { width: 150px; margin: 6px auto 22px; position: relative; height: 168px; }
.pl-shackle { position: absolute; left: 50%; top: 0; width: 84px; height: 88px; margin-left: -42px;
  border: 11px solid #b8923f; border-bottom: none; border-radius: 46px 46px 0 0;
  transform-origin: 42px 80px; transition: transform .7s cubic-bezier(.34,1.56,.64,1); z-index: 1;
  background: transparent; box-sizing: border-box; }
.padlock.open .pl-shackle { transform: rotate(-26deg) translateX(-7px); }
.pl-body { position: absolute; left: 0; right: 0; bottom: 0; height: 104px; border-radius: 14px;
  background: linear-gradient(180deg, #e3b85e 0%, #c8963f 45%, #9a6f2c 100%);
  box-shadow: inset 0 2px 4px rgba(255,240,190,.6), inset 0 -8px 16px rgba(80,50,10,.45), 0 10px 26px rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; }
.pl-keyhole { position: absolute; bottom: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: #5d4220; opacity: .0; transition: opacity .4s; }
.padlock.open .pl-keyhole { opacity: .55; }
.lock-dials { display: flex; gap: 10px; justify-content: center; margin: 0 auto 18px; }
.dial { width: 58px; text-align: center; user-select: none; }
.dial-btn { display: block; width: 100%; padding: 2px 0; background: #1a241e; border: 1px solid #385944; color: #7fe0a0;
  font-size: 13px; cursor: pointer; line-height: 1.6; }
.dial-btn:hover { background: #24372c; }
.dial-window { height: 60px; overflow: hidden; position: relative; border-left: 1px solid #35493c; border-right: 1px solid #35493c;
  background: linear-gradient(180deg, #0a0d0b, #131a15 45%, #0a0d0b); }
.dial-window::before, .dial-window::after { content: ''; position: absolute; left: 0; right: 0; height: 18px; z-index: 2; pointer-events: none; }
.dial-window::before { top: 0; background: linear-gradient(180deg, rgba(10,13,11,.95), transparent); }
.dial-window::after { bottom: 0; background: linear-gradient(0deg, rgba(10,13,11,.95), transparent); }
.dial-midline { position: absolute; left: 0; right: 0; top: 50%; height: 26px; margin-top: -13px; z-index: 1;
  border-top: 1px solid rgba(216,168,106,.4); border-bottom: 1px solid rgba(216,168,106,.4);
  background: rgba(216,168,106,.06); pointer-events: none; }
.dial-strip { position: absolute; left: 0; right: 0; top: 50%; transition: transform .26s cubic-bezier(.2,.8,.3,1); will-change: transform; }
.dial-strip span { display: block; height: 26px; line-height: 26px; font-size: 21px; color: #9fbfa9;
  font-family: Consolas, "Courier New", monospace; margin-top: -13px; }
.dial-strip span.cur { color: #e8c285; text-shadow: 0 0 10px rgba(216,168,106,.5); }
#lock-code { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

/* 眠账号 */
.mian-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#e45b4f; box-shadow:0 0 8px #e45b4f; margin-right:6px; animation:flick 1.4s infinite; }
.draft-row { border-left: 3px solid #3a4a40; padding: 8px 16px; margin: 14px 0; color:#9fbfa9; font-size:14.5px; line-height:2; }
.draft-row .dt { color:#6f8a78; font-family:Consolas,monospace; font-size:12.5px; display:block; margin-bottom:2px; }
.draft-row.live { border-left-color:#e45b4f; color:#ffb4a8; }

/* ================= 眠 · 主页故障恐怖层 ================= */
.err-bar { font-family: Consolas,monospace; font-size:12.5px; letter-spacing:1px; line-height:1.7;
  color:#ff7a6b; background:rgba(72,12,8,.5); border:1px solid #6e2b23; padding:7px 12px; margin:0 0 14px; }
.eb-cur { animation:flick 1s steps(1) infinite; margin-right:8px; }
.corrupt-line { font-family:Consolas,monospace; font-size:12.5px; letter-spacing:1px; color:#c45243;
  margin:14px 0 0; padding-top:10px; border-top:1px dashed #4a2a24; }
.garbling { color:#ff6b5e !important; }
.mian-avatar { background:#1a1410 !important; border-color:#5a2a22 !important; color:#c45243 !important;
  vertical-align:middle; animation:avatar-flick 3.7s steps(1) infinite; }
.mian-avatar .x { color:#7a3329 !important; }
.mian-avatar span:not(.x) { font-family:Consolas,monospace; font-size:11px; }
@keyframes avatar-flick { 0%,90%,100%{opacity:1} 91%{opacity:.25} 92%{opacity:.9} 94%{opacity:.35} 95%{opacity:1} }

/* 名字 RGB 撕裂 */
.glitch { position:relative; display:inline-block; }
.glitch::before, .glitch::after { content:attr(data-text); position:absolute; left:0; top:0; width:100%;
  opacity:0; pointer-events:none; }
.glitch::before { color:#ff2d44; animation:glitch-a 2.9s infinite steps(1); }
.glitch::after { color:#35d6e8; animation:glitch-b 3.4s infinite steps(1); }
@keyframes glitch-a {
  0%,84%,100% { opacity:0; transform:none; clip-path:inset(0); }
  85% { opacity:.85; transform:translate(-3px,-1px); clip-path:inset(8% 0 62% 0); }
  89% { opacity:.85; transform:translate(3px,1px);  clip-path:inset(58% 0 6% 0); }
  93% { opacity:.7;  transform:translate(-2px,0);   clip-path:inset(32% 0 38% 0); }
  97% { opacity:0; }
}
@keyframes glitch-b {
  0%,78%,100% { opacity:0; transform:none; clip-path:inset(0); }
  79% { opacity:.8; transform:translate(3px,1px);  clip-path:inset(64% 0 4% 0); }
  84% { opacity:.8; transform:translate(-3px,0);   clip-path:inset(12% 0 55% 0); }
  88% { opacity:.6; transform:translate(2px,-1px); clip-path:inset(40% 0 26% 0); }
  92% { opacity:0; }
}

/* CRT 扫描线 / 暗角 / 红色故障闪屏 / 抖动 */
.mian-crt { position:fixed; inset:0; z-index:60; pointer-events:none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 4px),
    radial-gradient(130% 100% at 50% 45%, transparent 52%, rgba(0,0,0,.62) 100%);
  animation:crt-flick 6s steps(1) infinite; }
@keyframes crt-flick {
  0%,100% { opacity:.9 } 11% { opacity:.7 } 12% { opacity:.95 }
  47% { opacity:.85 } 48% { opacity:.5 } 49% { opacity:.95 }
  73% { opacity:.9 } 74% { opacity:.6 } 75% { opacity:.9 }
}
.mian-flash { position:fixed; inset:0; z-index:61; pointer-events:none; opacity:0;
  background:rgba(190,20,10,.13); }
body.mian-glitch .mian-flash { animation:mian-burst .24s steps(1); }
@keyframes mian-burst { 0%{opacity:0} 20%{opacity:1} 35%{opacity:.2} 55%{opacity:.85} 100%{opacity:0} }
body.mian-glitch .page { animation:mian-shake .22s; }
@keyframes mian-shake {
  0%{transform:translate(0,0)} 25%{transform:translate(-3px,1px)}
  50%{transform:translate(3px,-1px)} 75%{transform:translate(-2px,0)} 100%{transform:translate(0,0)}
}

/* 随机错误弹窗 */
.err-pop { position:fixed; z-index:70; pointer-events:none; max-width:280px;
  font-family:Consolas,monospace; font-size:12px; line-height:1.7; letter-spacing:1px;
  color:#ff9a8c; background:#170605; border:1px solid #7a2a22; padding:22px 13px 10px;
  box-shadow:0 0 26px rgba(200,40,30,.35); white-space:pre-line; }
.err-pop .pop-bar { position:absolute; left:0; top:0; right:0; padding:2px 10px;
  background:#2a0d0a; border-bottom:1px solid #4a1c16; color:#ff6b5e; font-size:11px; }
.err-pop.pop-in { animation:pop-in .18s steps(2); }
@keyframes pop-in { from{opacity:0; transform:translateY(4px)} to{opacity:1; transform:none} }
.ghost-row td { animation:flick 1.1s steps(1) infinite; }

/* —— 呼吸暗角:页面四周像活物一样缓慢收缩 —— */
.mian-breathe { position:fixed; inset:0; z-index:59; pointer-events:none; opacity:.3;
  background:radial-gradient(125% 105% at 50% 50%, transparent 54%, rgba(86,8,4,.42) 100%);
  animation:breathe 7.5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity:.18 } 50% { opacity:.68 } }

/* —— 横向信号撕裂条 —— */
.mian-tear { position:fixed; left:-4%; right:-4%; height:16px; top:40%; z-index:62;
  pointer-events:none; opacity:0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, transparent, rgba(255,45,68,.22) 30%, rgba(53,214,232,.18) 62%, transparent);
  border-top:1px solid rgba(255,80,70,.35); border-bottom:1px solid rgba(53,214,232,.22);
  box-shadow:0 0 26px rgba(200,30,20,.22); }
body.tear-on .mian-tear { animation:tear-run .5s steps(6); }
@keyframes tear-run {
  0% { opacity:0; transform:translateY(0) skewX(0) }
  12% { opacity:.95 }
  45% { transform:translateY(26vh) skewX(-1.6deg) }
  78% { opacity:.6; transform:translateY(-10vh) skewX(1.2deg) }
  100% { opacity:0; transform:translateY(4vh) }
}

/* —— 人影闪帧(图片地址由 JS 载入成功后注入 --mian-fig) —— */
.mian-figure { position:fixed; inset:0; z-index:63; pointer-events:none; opacity:0;
  background-image:var(--mian-fig, none); background-size:cover; background-position:center;
  filter:grayscale(.55) contrast(1.3) brightness(.55); }
body.figure-on .mian-figure { animation:figure-flash .13s steps(2); }
@keyframes figure-flash { 0% { opacity:0 } 35% { opacity:.9 } 100% { opacity:0 } }
.mian-avatar { position:relative; overflow:hidden; }
.mian-avatar::after { content:''; position:absolute; inset:0; opacity:0;
  background-image:var(--mian-fig, none); background-size:cover; background-position:center 18%;
  filter:brightness(.28) blur(1.2px) contrast(1.35); }
.mian-avatar.face-on::after { animation:figure-flash .15s steps(2); }

/* —— 「对方正在输入…」 —— */
.typing-mini { display:inline-block; margin-left:10px; font-family:Consolas,monospace;
  font-size:12px; color:#d06357; letter-spacing:0; }
.typing-mini .tdot { display:inline-block; animation:tdots 1s steps(4) infinite; }
@keyframes tdots { 0%{content:''} 25%{content:'·'} 50%{content:'··'} 75%,100%{content:'…'} }

/* —— 页面底部自己打出来的一句话 —— */
.mian-whisper { position:fixed; left:0; right:0; bottom:8vh; z-index:71; pointer-events:none;
  text-align:center; font-family:"Kaiti SC","KaiTi","楷体",serif; color:#e86558;
  font-size:19px; letter-spacing:5px; opacity:0; transition:opacity 1.1s ease;
  text-shadow:0 0 14px rgba(228,91,79,.75), 0 1px 2px #000; }
.mian-whisper.show { opacity:1; }
.mian-whisper .w-cursor { display:inline-block; width:1px; height:18px; background:#e86558;
  vertical-align:-2px; margin-left:3px; animation:flick 1s steps(1) infinite; }

@media (prefers-reduced-motion: reduce) {
  .mian-crt, .mian-avatar, .glitch::before, .glitch::after, .ghost-row td, .eb-cur,
  .mian-breathe, .mian-tear, .mian-figure, .mian-whisper, .typing-mini .tdot { animation: none !important; }
  .mian-breathe, .mian-tear, .mian-figure, .mian-whisper { display:none !important; }
  .glitch::before, .glitch::after { opacity: 0 !important; }
}

/* ============================================================
 * 重新开始确认弹窗
 * ============================================================ */
.rst-curtain { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center;
  justify-content: center; padding: 20px; background: rgba(8,10,14,.72);
  opacity: 0; transition: opacity .28s ease; }
.rst-curtain.in { opacity: 1; }
.rst-card { max-width: 440px; width: 100%; background: #f7f3e8; color: var(--ink);
  border-top: 4px solid var(--rust); border-radius: 8px; padding: 26px 28px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  transform: translateY(10px) scale(.98); transition: transform .28s ease; }
.rst-curtain.in .rst-card { transform: none; }
.rst-card h3 { margin: 0 0 12px; font-size: 19px; }
.rst-card p { margin: 8px 0; font-size: 14px; line-height: 1.8; }
.rst-sub { font-size: 12.5px !important; color: var(--ink-soft); }
.rst-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 18px 0 0 !important; }
.rst-actions button { font-family: inherit; font-size: 14px; padding: 9px 18px;
  border-radius: 6px; cursor: pointer; }
.rst-cancel { border: 1px solid #b3a98d; background: transparent; color: var(--ink-soft); }
.rst-cancel:hover { border-color: var(--navy); color: var(--navy); }
.rst-confirm { border: none; background: var(--rust); color: #fdf8ee; }
.rst-confirm:hover { background: #993025; }

/* 结局页的重新开始入口 */
.restart-row { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  text-align: center; font-size: 13px; color: #777; }
.restart-row .rst-link { color: #b06a5a; cursor: pointer; text-decoration: underline; }
.restart-row .rst-link:hover { color: #d88a78; }

/* ============================================================
 * 结局终章 · 那张照片
 * ============================================================ */
.fin-stage { max-width: 520px; margin: 46px auto 0; }
.fin-lead { font-size: 16px; line-height: 2.3; color: #b9b3a4; }
.fin-hint {
  text-align: center; font-size: 13px; letter-spacing: 4px; color: #8a8070;
  margin: 22px 0 14px; animation: finpulse 2.4s ease-in-out infinite;
}
@keyframes finpulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.ph-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.ph-frame {
  position: absolute; inset: 0;
  background: #e6d9bc; padding: 14px 14px 44px;
  border-radius: 4px;
  transform: rotate(-1.4deg);
  box-shadow: 0 18px 50px rgba(0,0,0,.6), inset 0 0 0 1px rgba(120,90,50,.35);
}
.ph-frame svg { width: 100%; height: 100%; display: block; border-radius: 2px; }
.ph-caption {
  position: absolute; left: 0; right: 0; bottom: 10px;
  text-align: center; font-family: "Songti SC","STSong",serif;
  color: #6f5a3c; font-size: 13px; letter-spacing: 3px;
}
#dust {
  position: absolute; top: 14px; left: 14px; right: 14px; bottom: 44px;
  border-radius: 2px; cursor: crosshair; touch-action: none;
}
.fin-after {
  display: none; margin-top: 30px;
}
.fin-after.show { display: block; animation: finfade 1.6s ease both; }
@keyframes finfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fin-after .fin-line { font-size: 16.5px; line-height: 2.4; color: #c9c2b0; margin: 14px 0; }
.fin-self {
  text-align: center; font-family: "Songti SC","STSong",serif;
  font-size: 32px; letter-spacing: 12px; color: #e3bd7e;
  margin: 34px 0 8px; text-indent: 12px;
  text-shadow: 0 0 24px rgba(227,189,126,.35);
}
.fin-keep {
  display: block; margin: 26px auto 0;
  background: transparent; border: 1px solid #4a5260; color: #9fb0c0;
  font-size: 13.5px; letter-spacing: 4px; padding: 12px 30px; border-radius: 999px;
  cursor: pointer;
}
.fin-keep:hover { border-color: #d8a86a; color: #e3bd7e; }
.fin-pocket { transition: transform 1.6s ease, opacity 1.6s ease; }
.fin-pocket.away { transform: translateY(120px) scale(.4) rotate(-8deg); opacity: 0; }

/* 坏结局 · 落叶 */
.bad-stage {
  position: relative; max-width: 640px; height: 520px; margin: 40px auto 0;
  overflow: hidden;
}
.bad-pair {
  position: absolute; left: 50%; top: 30px; width: 64%; margin-left: -32%;
  opacity: .5; filter: blur(.4px);
}
.bad-pair svg { width: 100%; display: block; }
#bad-him { transition: opacity 1.2s ease; }
#bad-canvas { position: absolute; inset: 0; pointer-events: none; }
.bad-handphoto {
  position: absolute; left: 50%; bottom: -6px; width: 170px; margin-left: -85px;
  transform: rotate(-3deg);
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.7));
}
.bad-handphoto svg { width: 100%; display: block; }
.falling-leaf {
  position: absolute; left: 50%; top: -110px; width: 74px; margin-left: -37px;
  opacity: 0; z-index: 6;
}
.falling-leaf.fall {
  animation: leaffall 3s cubic-bezier(.4,.05,.6,1) forwards;
}
@keyframes leaffall {
  0%   { opacity: 0; transform: translateY(0) translateX(0) rotate(0deg); }
  12%  { opacity: 1; }
  40%  { transform: translateY(160px) translateX(-46px) rotate(-130deg); }
  70%  { transform: translateY(330px) translateX(26px) rotate(-240deg); }
  100% { opacity: 1; transform: translateY(412px) translateX(0) rotate(-330deg) scale(.9); }
}
/* 大叶盖屏:fixed 覆盖整个视口,叶子轮廓要看得出来 */
.leaf-cover {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 44%, #6a4c28 0%, #4a341d 62%, #34250f 100%);
  opacity: 0; visibility: hidden;
  transition: opacity .95s ease, visibility 0s linear .95s;
}
.leaf-cover.cover {
  opacity: .985; visibility: visible;
  transition: opacity .95s ease, visibility 0s;
}
.leaf-cover svg {
  width: 126vmin; max-width: none;
  transform: rotate(-7deg) scale(.88);
  filter: drop-shadow(0 10px 60px rgba(0,0,0,.45));
}
.leaf-cover.cover svg { animation: leafbreathe 4.6s ease-in-out .5s infinite; }
@keyframes leafbreathe {
  0%,100% { transform: rotate(-7deg) scale(.985); }
  50%     { transform: rotate(-4.5deg) scale(1.02); }
}
/* 风把叶子掀走:偏转、滑出、变淡 */
.leaf-cover.recede {
  opacity: 0;
  transition: opacity 1.8s ease, transform 1.8s cubic-bezier(.5,0,.75,.25), visibility 0s linear 1.8s;
  transform: translate(44%, 22%) rotate(13deg);
}
.leaf-cover.recede svg { animation: none; }
.bad-after { display: none; position: relative; z-index: 8; }
.bad-after.show { display: block; animation: finfade 1.8s ease both; }
.bad-after .fin-line { font-size: 15.5px; line-height: 2.3; color: #8f8a7e; margin: 12px 0; }
.bad-after .fin-line.dim { color: #6b675c; }
@media (prefers-reduced-motion: reduce) {
  .fin-hint, .fin-after.show, .bad-after.show { animation: none; }
}

/* ============================================================
 * 开头引子 · 首访幕布
 * ============================================================ */
body.intro-lock { overflow: hidden; }
.intro-curtain { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center;
  align-items: flex-start; overflow-y: auto; padding: 5vh 16px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(65,80,107,.28), transparent 60%),
    #10131a;
  opacity: 0; transition: opacity .45s ease; }
.intro-curtain.in { opacity: 1; }
.intro-card { max-width: 640px; width: 100%; margin: auto 0;
  background: linear-gradient(180deg,#f7f3e8,#efe9d8);
  border: 1px solid rgba(185,145,63,.5); border-top: 4px solid var(--rust);
  border-radius: 8px; padding: 38px 42px 30px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4);
  color: var(--ink); transform: translateY(14px); transition: transform .45s ease; }
.intro-curtain.in .intro-card { transform: translateY(0); }
.intro-eyebrow { margin: 0; text-align: center; font-size: 12px; letter-spacing: 4px;
  color: var(--ink-soft); font-family: Georgia, "Songti SC", serif; }
.intro-title { margin: 10px 0 0; text-align: center; font-size: 46px; letter-spacing: 14px;
  text-indent: 14px; font-weight: 700; color: #23211a; }
.intro-no { margin: 6px 0 0; text-align: center; font-size: 15px; letter-spacing: 8px;
  text-indent: 8px; color: var(--rust); font-family: "Kaiti SC","KaiTi",serif; }
.intro-sec { margin-top: 22px; }
.intro-sec p { margin: 8px 0; font-size: 14.5px; line-height: 1.85; }
.intro-lead { font-family: "Kaiti SC","KaiTi",serif; font-size: 16px !important; color: #3a362b; }
.intro-h { font-size: 13px !important; letter-spacing: 3px; color: var(--navy-deep);
  font-weight: 700; margin-bottom: 6px !important; }
.intro-h::before { content: '◆ '; color: var(--gold); font-size: 10px; }
.intro-list { margin: 6px 0 0; padding-left: 20px; }
.intro-list li { margin: 7px 0; font-size: 14px; line-height: 1.8; }
.intro-list a { color: var(--link); text-decoration: underline; cursor: default; }
.intro-prog { display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; font-size: 12px; color: var(--ink-soft); }
.intro-dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #a89a78;
  background: transparent; display: inline-block; }
.intro-note { background: rgba(176,58,46,.06); border-left: 3px solid rgba(176,58,46,.55);
  padding: 10px 16px 6px; border-radius: 0 6px 6px 0; }
.intro-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin: 26px 0 10px; }
.intro-btn-primary { font-family: inherit; font-size: 15px; letter-spacing: 2px;
  padding: 11px 30px; border: none; border-radius: 6px;
  background: var(--rust); color: #fdf8ee; box-shadow: 0 3px 12px rgba(176,58,46,.35); }
.intro-btn-primary:hover { background: #993025; }
.intro-btn-ghost { font-family: inherit; font-size: 14px; padding: 11px 22px;
  border: 1px solid #b3a98d; border-radius: 6px; background: transparent; color: var(--ink-soft); }
.intro-btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.intro-fine { text-align: center; font-size: 12px; color: #96907e; margin: 6px 0 0; }

@media (max-width: 640px) {
  .intro-card { padding: 28px 22px 22px; }
  .intro-title { font-size: 34px; letter-spacing: 10px; text-indent: 10px; }
  .intro-eyebrow { letter-spacing: 2px; }
  .forum-bar { gap: 8px; }
  .fnav { width: 100%; }
  .skin-diary .page::before { left: 30px; }
  .skin-diary .page::after { width: 18px;
    background:
      radial-gradient(circle at 9px 60px, #b9a884 0 3.5px, rgba(0,0,0,.28) 4px, transparent 5px),
      radial-gradient(circle at 9px 180px, #b9a884 0 3.5px, rgba(0,0,0,.28) 4px, transparent 5px),
      radial-gradient(circle at 9px 300px, #b9a884 0 3.5px, rgba(0,0,0,.28) 4px, transparent 5px),
      linear-gradient(90deg, rgba(90,60,30,.16), transparent); }
  .diary-main { padding: 30px 22px 44px 40px; }
  .diary-bar { padding-left: 30px; }
  .loglist .log-day { display: none; }
  .bd { padding: 14px; }
  .hero-panel { padding: 20px !important; }
  .forum-top { position: static; }
  #cam-board .cam-time { width: auto; }
  .void-main { padding: 40px 18px; }
  .void-main h1 { letter-spacing: 4px; font-size: 27px; }
  .dial { width: 50px; }
  .err-pop { max-width: 70vw; }
}
