/* ============================================================
   《暗语百年》ARG 网页层 V3 · 浏览器形态样式
   紧凑外壳 / 底部线索栏 / 8 个独立网站风格
   ============================================================ */
:root {
  --bg: #1b1e23;
  --panel: #23272e;
  --line: #333a44;
  --txt: #e8ecf2;
  --dim: #8b96a8;
  --accent: #4cd6a4;
  --accent2: #6fb1ff;
  --warn: #ffb454;
  --danger: #ff6b6b;
  --mono: "Cascadia Code", Consolas, "Courier New", monospace;
  --serif: "Songti SC", "SimSun", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
/* 链接默认继承正文颜色(不标蓝、不一眼可辨),悬停才给出提示 —— 保持解谜神秘感 */
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
.hidden { display: none !important; }

/* ============ 紧凑浏览器外壳 ============ */
#browser-bar {
  background: #14161a;
  border-bottom: 1px solid var(--line);
  padding: 5px 10px;
  display: flex; align-items: center; gap: 6px;
  position: sticky; top: 0; z-index: 99;
}
#browser-bar .tab {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 10px; font-size: 12px; color: var(--dim); cursor: pointer;
  max-width: 170px; overflow: hidden; white-space: nowrap;
}
#browser-bar .tab.active { background: var(--bg); color: var(--txt); }
#browser-bar .tab .fav { font-size: 12px; }
#browser-bar .tab .close { color: var(--dim); font-size: 11px; padding: 0 2px; }
#browser-bar .tab .close:hover { color: var(--danger); }
#browser-bar .tab-new {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 5px; color: var(--dim);
  border: 1px dashed var(--line); cursor: pointer; font-size: 13px;
}
#browser-bar .tab-new:hover { color: var(--txt); border-color: var(--dim); }
#browser-bar .nav-btn {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; color: var(--dim); cursor: pointer;
  font-size: 13px; user-select: none; flex: none;
}
#browser-bar .nav-btn:hover { background: var(--panel); color: var(--txt); }
#addr-box {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 3px 12px; color: var(--txt); font-size: 12px;
  font-family: var(--mono); min-width: 160px; overflow: hidden;
}
#addr-box .lock { color: var(--accent); font-size: 11px; }
#addr-box .url { color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 底部线索栏(固定,不占内容空间) ============ */
#clue-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #14161a; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
  padding: 5px 14px; font-size: 12px; color: var(--dim);
  min-height: 30px;
}
#clue-bar .clue-btn {
  cursor: pointer; user-select: none; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
#clue-bar .clue-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
#clue-bar .clue-count { color: var(--txt); }
#clue-bar .clue-caret { font-size: 10px; }
#clue-bar .link-hint {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
#clue-bar .clue-list {
  display: none; position: absolute; bottom: 30px; left: 14px;
  background: #1c2129; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; max-width: 420px; flex-wrap: wrap; gap: 4px 12px;
  box-shadow: 0 -6px 24px rgba(0,0,0,.45);
}
#clue-bar .clue-list.open { display: flex; }
#clue-bar .clue-item { white-space: nowrap; color: #4a5568; }
#clue-bar .clue-item.on { color: var(--accent); }
/* 给固定线索栏留出底部空间,内容不被遮挡 */
#site { padding-bottom: 44px; }

/* ============ 通用卡片 ============ */
.page { max-width: 920px; margin: 0 auto; padding: 14px 18px 40px; width: 100%; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; margin: 14px 0;
}
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; margin-right: 6px; }
.tag.blue { background: rgba(111,177,255,.15); color: var(--accent2); }
.tag.green { background: rgba(76,214,164,.15); color: var(--accent); }
.tag.warn { background: rgba(255,180,84,.15); color: var(--warn); }
.tag.red { background: rgba(255,107,107,.15); color: var(--danger); }
.btn {
  display: inline-block; padding: 7px 16px; border-radius: 8px; cursor: pointer;
  background: var(--accent); color: #0e1116; font-weight: 600; border: none; font-size: 14px;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--txt); }
.btn.small { padding: 4px 12px; font-size: 13px; }
input[type=text], input[type=password], textarea {
  background: #0c0f14; border: 1px solid var(--line); color: var(--txt);
  padding: 8px 12px; border-radius: 8px; font-size: 14px; width: 260px;
}
input:focus, textarea:focus { outline: 1px solid var(--accent); }
.hint-box {
  background: rgba(76,214,164,.08); border: 1px dashed var(--accent);
  border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--accent); margin-top: 10px;
}
.solved-box {
  background: rgba(76,214,164,.12); border: 1px solid var(--accent);
  border-radius: 8px; padding: 12px 16px; margin-top: 14px; color: var(--accent);
}
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.center { text-align: center; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 16px 0; }

/* ============ ① 寻人启事网站 ============ */
.site-xr { background: #f6f7f9; color: #2a2e35; }
.site-xr .xr-header {
  background: #fff; border-bottom: 1px solid #e3e5ea;
  padding: 10px 22px; display: flex; align-items: center; gap: 14px;
}
.site-xr .xr-logo { font-size: 19px; font-weight: 800; color: #c0392b; letter-spacing: 2px; }
.site-xr .xr-nav a { color: #5a6270; font-size: 13px; margin-right: 16px; }
.site-xr .xr-nav a:hover { color: #c0392b; }
.site-xr .xr-banner {
  background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff;
  padding: 22px 22px; text-align: center;
}
.site-xr .xr-banner h1 { font-size: 24px; letter-spacing: 6px; }
.site-xr .xr-banner p { margin-top: 6px; font-size: 13px; opacity: .9; }
.site-xr .xr-paper { background: #fff; border: 1px solid #e3e5ea; border-radius: 8px; padding: 18px; }
.site-xr .xr-foot { border-top: 1px solid #e3e5ea; background: #fff; text-align: center; padding: 12px; font-size: 12px; color: #9aa1ad; }

/* ============ ② 修表铺博客 ============ */
.site-blog { background: #f4f1ea; color: #33302a; }
.site-blog .blog-header { background: #fffdf6; border-bottom: 1px solid #e2dccb; padding: 14px 24px; }
.site-blog .blog-title { font-family: var(--serif); font-size: 24px; letter-spacing: 4px; color: #4a4233; }
.site-blog .blog-sub { color: #8a8070; font-size: 13px; }
.site-blog .blog-post { background: #fffdf6; border: 1px solid #e8e1cf; border-radius: 8px; padding: 18px; margin: 14px 0; }
.site-blog .blog-post h2 { font-size: 17px; color: #4a4233; }
.site-blog .blog-meta { font-size: 12px; color: #a09582; margin: 4px 0 8px; }
.site-blog a { color: inherit; }
.site-blog a:hover { color: #8a5a00; }

/* ============ ③ 旧物整理档案 ============ */
.site-relic { background: #171310; }
.site-relic .relic-paper {
  background: #e8d9b0; color: #3a2d1c; font-family: var(--serif);
  box-shadow: 0 6px 24px rgba(0,0,0,.5); border-radius: 4px; position: relative;
}
.site-relic .relic-paper .wrinkle { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 30%, rgba(90,60,20,.12), transparent 60%),
              radial-gradient(ellipse at 80% 70%, rgba(90,60,20,.10), transparent 55%); }
.site-relic .relic-head { border-bottom: 2px solid #e8d9b0; padding: 10px 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-relic .relic-head .rh { font-family: var(--serif); letter-spacing: 4px; color: #e8d9b0; font-size: 17px; }
.site-relic .relic-head .rh-dim { color: #7a6a4e; font-size: 12px; }
.site-relic .relic-menu { display: flex; gap: 6px; flex-wrap: wrap; }
.site-relic .relic-menu a { color: #b8a98a; font-size: 12px; padding: 2px 10px; border: 1px solid #3d3324; border-radius: 999px; }
.site-relic .relic-menu a:hover { color: #e8d9b0; border-color: #e8d9b0; }

/* ============ ④ 档案馆(政务蓝白) ============ */
.site-arc { background: #eef2f7; color: #2b3240; }
.site-arc .arc-header { background: #1f4e8c; color: #fff; padding: 10px 22px; display: flex; align-items: center; gap: 14px; }
.site-arc .arc-logo { font-size: 17px; font-weight: 700; letter-spacing: 2px; }
.site-arc .arc-sub { font-size: 12px; opacity: .85; }
.site-arc .arc-search {
  background: #fff; border: 1px solid #d4dbe6; border-radius: 22px;
  display: flex; align-items: center; gap: 8px; padding: 8px 18px; max-width: 560px; margin: 14px auto 0;
}
.site-arc .arc-search input { flex: 1; border: none; background: none; color: #2b3240; font-size: 14px; outline: none; }
.site-arc .arc-card { background: #fff; border: 1px solid #d4dbe6; border-radius: 8px; padding: 16px; margin: 12px 0; }
.site-arc a { color: inherit; }
.site-arc a:hover { color: #1f4e8c; }
.site-arc .arc-foot { text-align: center; padding: 12px; color: #8a94a6; font-size: 12px; }

/* ============ ⑤ 火腿俱乐部(短波电台,墨绿) ============ */
.site-radio { background: #10160f; color: #cfe8c4; }
.site-radio .radio-header { background: #1d2b18; border-bottom: 2px solid #3d5a35; padding: 10px 22px; display: flex; align-items: center; gap: 12px; }
.site-radio .radio-logo { font-family: var(--mono); font-size: 16px; letter-spacing: 2px; color: #8ff07a; }
.site-radio .radio-sub { font-size: 12px; color: #7a9a6e; }
.site-radio .radio-panel { background: #162114; border: 1px solid #2c4526; border-radius: 8px; padding: 14px; margin: 12px 0; }
.site-radio a { color: inherit; }
.site-radio a:hover { color: #8ff07a; }
.site-radio .dial { font-family: var(--mono); color: #b8ffb0; text-shadow: 0 0 6px #7dff70; }

/* ============ ⑥ 江城茶话 BBS ============ */
.site-bbs { background: #000080; color: #c0c0ff; font-family: var(--mono); }
.site-bbs a { color: inherit; }
.site-bbs a:hover { color: #90e0ff; }
.site-bbs .post-link:hover { color: #90e0ff; text-decoration: underline; cursor: pointer; }
.site-bbs .bbs-panel { border: 1px solid #c0c0ff; padding: 10px; margin: 10px 0; background: #00006e; }
.site-bbs .bbs-title { background: #c0c0ff; color: #000080; padding: 2px 8px; font-weight: 700; }
.site-bbs .bbs-blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ ⑦ 永兴杂记 1996 ============ */
.site-oldweb { background: #ffffcc; color: #330066; font-family: "Comic Sans MS", "SimHei", cursive; }
.site-oldweb a { color: #cc00cc; text-decoration: underline; }
.site-oldweb .oldweb-border { border: 3px ridge #cc00cc; padding: 10px; margin: 12px 0; background: #fff7cc; }
.site-oldweb .marquee { overflow: hidden; white-space: nowrap; }
.site-oldweb .marquee span { display: inline-block; padding-left: 100%; animation: scroll 14s linear infinite; }
@keyframes scroll { to { transform: translateX(-100%); } }
.site-oldweb .crt { text-shadow: 0 0 2px rgba(51,0,102,.4); }

/* ============ ⑧ 声社茶话会论坛 ============ */
.site-forum { background: #eef0f4; color: #2a2e35; }
.site-forum .forum-header { background: #fff; border-bottom: 1px solid #dfe2e8; padding: 12px 22px; display: flex; align-items: center; gap: 14px; }
.site-forum .forum-logo { font-family: var(--serif); font-size: 18px; letter-spacing: 3px; color: #2c3e50; }
.site-forum .forum-card { background: #fff; border: 1px solid #dfe2e8; border-radius: 10px; padding: 14px; margin: 12px 0; }

/* 新标签页 · 浏览器起始页(云笺浏览器) */
.newtab-body { background: #1b1e23; }
.nt-wrap { max-width: 880px; margin: 0 auto; padding: 40px 20px 30px; }
.nt-brand { text-align: center; }
.nt-logo { display: inline-flex; }
.nt-name { font-size: 24px; font-weight: 700; color: var(--txt); margin-top: 10px; letter-spacing: 3px; }
.nt-ver { font-size: 12px; color: var(--dim); margin-top: 4px; letter-spacing: 1px; }
.nt-search {
  max-width: 560px; margin: 26px auto 34px; display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 10px 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.nt-search input { flex: 1; background: none; border: none; outline: none; color: var(--txt); font-size: 14px; }
.nt-s-ico { color: var(--dim); font-size: 14px; }
.nt-s-key { font-family: var(--mono); font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.nt-section-title { font-size: 12px; color: var(--dim); letter-spacing: 2px; margin: 0 4px 12px; }
.nt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;
}
.nt-grid .site-card {
  display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 12px; text-align: center; transition: .15s;
}
.nt-grid .site-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--txt); text-decoration: none; }
.nt-grid .site-card .ico { font-size: 26px; }
.nt-grid .site-card .nm { font-size: 13px; margin-top: 6px; color: var(--txt); }
.nt-grid .site-card .url { font-size: 11px; color: var(--dim); font-family: var(--mono); margin-top: 2px; }
.nt-empty { text-align: center; padding: 30px 0; color: var(--dim); font-size: 14px; border: 1px dashed var(--line); border-radius: 12px; }
.nt-foot { text-align: center; margin-top: 40px; font-size: 12px; color: #5a6270; }
.nt-foot .nt-sep { margin: 0 8px; color: #3a4250; }

/* 仿真搜索结果下拉 */
.nt-results {
  max-width: 560px; margin: -22px auto 0; background: var(--panel); border: 1px solid var(--line);
  border-top: none; border-radius: 0 0 14px 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.nt-res-item { display: block; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--txt); text-decoration: none; }
.nt-res-item:last-child { border-bottom: none; }
.nt-res-item:hover { background: #2a2f37; }
.nt-res-t { font-size: 14px; color: #e8d9b0; }
.nt-res-d { font-size: 12px; color: var(--dim); margin-top: 3px; }
.nt-res-item.dim { color: var(--dim); font-size: 13px; }

/* 电报机 */
.telegraph { background: #1c1f16; border: 4px solid #55543c; border-radius: 10px; padding: 14px; }
.telegraph .dial { font-family: var(--mono); color: #b8ffb0; text-shadow: 0 0 6px #7dff70; }

/* 源码窗口 */
.src-window { background: #1e1e1e; color: #dcdcaa; font-family: var(--mono); font-size: 13px;
  border: 1px solid #555; border-radius: 6px; overflow: hidden; margin-top: 14px; }
.src-bar { background: #333; color: #ccc; padding: 4px 10px; font-size: 12px; }
.src-body { padding: 10px 14px; line-height: 1.7; max-height: 320px; overflow: auto; }
.src-cmt { color: #6a9955; }
.src-tag { color: #569cd6; }
.src-str { color: #ce9178; }

/* ============ 恐怖视觉元素(理性恐怖:全部可解释为"系统故障/噪点/反光") ============ */

/* ① 全屏噪点闪帧(随机触发,模拟信号故障) */
#glitch-layer {
  position: fixed; inset: -4px; z-index: 999; pointer-events: none; opacity: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 30% 40%, rgba(200,30,30,.12), transparent 55%);
  mix-blend-mode: screen;
}
#glitch-layer.go { animation: glitchGo .22s steps(3) both; }
@keyframes glitchGo {
  0%   { opacity: .85; transform: translate(-2px, 1px) skewX(.6deg); }
  40%  { opacity: .5;  transform: translate(3px, -2px); }
  70%  { opacity: .7;  transform: translate(-1px, 2px) skewX(-.4deg); }
  100% { opacity: 0;   transform: translate(0,0); }
}
/* 局部文字错位(模拟损坏字节) */
.glitched { display: inline-block; animation: charJit .12s steps(2) infinite; }
@keyframes charJit { 50% { transform: translateY(-1px); } }

/* 论坛 · 在线跳动红点 */
.forum-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c0392b; margin-right: 4px; vertical-align: middle; box-shadow: 0 0 6px rgba(192,57,43,.7); animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.78); } }

/* 论坛 · 共鸣墙渐变 */
.forum-card.gradient-warm { background: linear-gradient(180deg, #faf7ed, #f4ecd8); border-left: 4px solid #c0392b; }

/* 分享卡片按钮 */
.share-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.share-bar .btn { font-size: 13px; }
.share-toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: rgba(20,22,26,.95); color: #d8cba8; padding: 10px 20px; border-radius: 8px; font-size: 14px; border: 1px solid #5a4f36; z-index: 999; opacity: 0; transition: opacity .3s; pointer-events: none; }
.share-toast.show { opacity: 1; }

/* 终章 · 分享裂变区 */
.fin-share { margin: 28px auto 0; max-width: 520px; padding: 22px 24px; background: rgba(216,203,168,.06); border: 1px solid #5a4f36; border-radius: 8px; text-align: left; }
.fin-share-title { font-family: var(--serif); color: #d8cba8; font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.fin-share-quote { color: #a8a194; font-family: var(--serif); font-size: 14px; font-style: italic; line-height: 1.9; margin-bottom: 14px; padding-left: 12px; border-left: 2px solid #5a4f36; }

/* ② 低红光脉动(模拟窗外霓虹/暖气管,适配旧物整理页) */
.heartbeat { animation: heartbeat 1.7s infinite; }
@keyframes heartbeat {
  0%,100% { box-shadow: 0 0 0 rgba(200,30,30,0); }
  12%     { box-shadow: 0 0 26px rgba(200,30,30,.30); }
  22%     { box-shadow: 0 0 4px rgba(200,30,30,.08); }
  34%     { box-shadow: 0 0 18px rgba(200,30,30,.22); }
  50%,90% { box-shadow: 0 0 0 rgba(200,30,30,0); }
}

/* ③ 照片中的人影(模拟反光/噪点算法误标) */
.fig-hint { position: absolute; opacity: .28; filter: blur(1px); pointer-events: none;
  background:
    radial-gradient(ellipse 40% 52% at 50% 38%, #000 0%, transparent 62%),
    radial-gradient(ellipse 30% 30% at 50% 30%, #000 0%, transparent 55%);
}
.fig-hint.on { animation: figBreath 4s ease-in-out infinite; }
@keyframes figBreath { 0%,100% { opacity: .20; } 50% { opacity: .38; } }

/* ④ 寻找"闪烁字"(视觉谜题用) */
.blink-char { color: #b33; animation: charBlink 1.9s infinite; }
@keyframes charBlink { 0%,100% { opacity: .22; } 50% { opacity: 1; text-shadow: 0 0 6px rgba(200,30,30,.6); } }

/* ⑤ 计数器抖动(模拟时钟抖动) */
.count-jitter { animation: countJit .09s steps(2) infinite; }
@keyframes countJit { 50% { transform: translateX(.5px); letter-spacing: 1px; } }

/* ⑥ 悬停异常文字 */
.weird-hover:hover { color: #c0392b; transform: skewX(-8deg) scale(1.05); transition: .12s; }
.weird-hover:hover::after { content: " ?"; font-size: .7em; vertical-align: super; }

/* ⑦ 深夜摩尔斯彩蛋(forum 用,闪烁的摩尔斯行) */
.morse-line { font-family: var(--mono); color: #6a9955; letter-spacing: 3px;
  animation: morseFlicker 2.4s steps(2) infinite; }
@keyframes morseFlicker { 50% { opacity: .35; } }

/* ⑧ 背景极淡噪点(老照片质感,全站可选) */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.grain.active { opacity: .06; animation: grainShift .8s steps(3) infinite; }
@keyframes grainShift { 50% { transform: translate(1px,-1px); } }

/* ============ ⑨ 声社档案馆·陈列室(终章:恐怖→感动) ============ */
.site-finale { background: #0a0a0c; color: #cfc9c0; }
.fin-wrap { max-width: 640px; margin: 0 auto; padding: 60px 22px 80px; }
.fin-act { animation: finFade .8s ease both; }
@keyframes finFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 第一幕 · 恐怖 */
.fin-red { color: #b33333; font-size: 19px; letter-spacing: 2px; text-shadow: 0 0 14px rgba(179,51,51,.55); }
.fin-red.big { font-size: 30px; margin-top: 14px; }
.fin-red.q { margin-top: 26px; font-size: 16px; opacity: .85; animation: finRedFlicker 2.2s steps(2) infinite; }
@keyframes finRedFlicker { 50% { opacity: .4; } }
.fin-log { margin-top: 34px; border-top: 1px solid #222; padding-top: 18px; min-height: 120px; }
.fin-log-line { font-family: var(--mono); font-size: 12px; color: #7a5a5a; line-height: 1.9; animation: finFade .5s both; }
.fin-morse-hint { font-size: 11px; color: #4a4a52; margin-top: 24px; letter-spacing: 2px; }

/* 磁带翻转 */
.fin-tape { font-size: 26px; letter-spacing: 6px; color: #e8d9b0; }
.fin-tape.dim-tape { font-size: 13px; letter-spacing: 3px; color: #8a7a5a; }
.fin-sub { color: #8a8a94; margin: 14px 0 20px; }

/* 第二幕 · 真相 */
.fin-truth { margin-top: 24px; }
.fin-truth-line { font-size: 15px; line-height: 2.1; color: #c9c2b4; animation: finFade .6s both; }
.fin-truth-line:nth-child(3), .fin-truth-line:nth-child(5), .fin-truth-line:nth-child(7) { color: #a8a194; }

/* 第三幕 · 录音(感动) */
.fin-radio { font-size: 12px; color: #7a7a6a; letter-spacing: 1px; margin-bottom: 20px; }
.fin-voice { min-height: 200px; }
.fin-voice-line {
  font-family: var(--serif); font-size: 17px; line-height: 2.2; color: #e8d9b0;
  text-shadow: 0 0 22px rgba(232,217,176,.15); animation: finFade 1s both;
}
.fin-voice-line:nth-child(3n) { color: #d9cba6; }

/* 尾声 */
.fin-end { font-size: 26px; letter-spacing: 4px; color: #e8d9b0; text-align: center; }
.fin-end.sub { font-size: 17px; margin-top: 10px; color: #c9b98c; }
.fin-sign { text-align: center; margin-top: 26px; color: #8a7a5a; letter-spacing: 3px; font-family: var(--serif); }
.fin-morse-line { font-family: var(--mono); font-size: 13px; color: #6a9a6a; margin-top: 14px; text-align: center; }
.fin-act .btn { display: inline-block; margin-top: 16px; }

/* ============ ⑩ 蓝书(社交平台) ============ */
.site-blue { background: #f5f6f9; color: #2a2e35; }
.site-blue .blue-header { background: #fff; border-bottom: 1px solid #e3e5ea; padding: 10px 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-blue .blue-logo { font-size: 20px; font-weight: 500; color: #185fa5; letter-spacing: 1px; }
.site-blue .blue-search { flex: 1; min-width: 220px; display: flex; gap: 6px; align-items: center; }
.site-blue .blue-search input { flex: 1; background: #f0f1f4; border: 1px solid transparent; border-radius: 16px; padding: 7px 14px; }
.site-blue .blue-nav a { color: #5a6270; font-size: 14px; margin-left: 14px; }
.site-blue .blue-nav a:hover { color: #185fa5; }
.site-blue .blue-card { background: #fff; border: 1px solid #e3e5ea; border-radius: 12px; padding: 16px; margin: 14px 0; }
.site-blue .blue-avatar { width: 38px; height: 38px; border-radius: 50%; background: #e6f1fb; color: #185fa5; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 15px; }
.site-blue .blue-card img { width: 100%; max-width: 520px; border-radius: 10px; border: 1px solid #e3e5ea; }

/* ⑪ 母亲日记(暖纸) */
.site-diary { background: #f7f3ea; color: #3a3428; }
.site-diary .diary-header { background: #fffdf6; border-bottom: 1px solid #e2dccb; padding: 18px 24px; }
.site-diary .diary-title { font-family: var(--serif); font-size: 24px; letter-spacing: 6px; color: #4a4233; }
.site-diary .diary-sub { color: #8a8070; font-size: 13px; margin-top: 4px; }
.site-diary .diary-entry { background: #fffdf6; border: 1px solid #e8e1cf; border-left: 3px solid #d8cba8; border-radius: 8px; padding: 18px 20px; margin: 16px 0; }
.site-diary .diary-date { font-size: 13px; color: #8a5a00; letter-spacing: 1px; margin-bottom: 8px; }
.site-diary a { color: inherit; }
.site-diary a:hover { color: #8a5a00; }

/* ⑫ 暗号百科(知识站) */
.site-wiki { background: #eef0f4; color: #2a2e35; }
.site-wiki .wiki-header { background: #fff; border-bottom: 1px solid #dfe2e8; padding: 14px 22px; }
.site-wiki .wiki-logo { font-family: var(--serif); font-size: 20px; letter-spacing: 6px; color: #2c3e50; }
.site-wiki .wiki-sub { font-size: 12px; color: #8a94a6; margin-top: 2px; }
.site-wiki .wiki-menu { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.site-wiki .wiki-card { background: #fff; border: 1px solid #dfe2e8; border-radius: 10px; padding: 20px; }
.site-wiki a { color: inherit; }
.site-wiki a:hover { color: #185fa5; }

/* ============ V3.7:底部线索栏浅色模式 + 搜索图标适配 ============ */
#clue-bar.light {
  background: rgba(255,255,255,.92); border-top: 1px solid #e3e5ea; color: #5a6270;
  backdrop-filter: blur(6px);
}
#clue-bar.light .clue-btn { color: #185fa5; }
#clue-bar.light .clue-dot { background: #185fa5; }
#clue-bar.light .clue-count { color: #2a2e35; }
#clue-bar.light .link-hint { color: #8a94a6; }
#clue-bar.light .clue-list { background: #fff; border-color: #dfe2e8; }
#clue-bar.light .clue-item.on { color: #185fa5; }
#clue-bar.light .clue-item { color: #c3c9d2; }

/* 搜索图标(内联 SVG 放大镜,融入各站配色) */
.search-ico { display: inline-flex; align-items: center; color: var(--dim); flex: none; }
.search-ico svg { display: block; }
.site-blue .search-ico { color: #185fa5; }
.site-xr .search-ico { color: #c0392b; }

/* ============ ⑬ 品泉居茶馆(民国茶馆) ============ */
.site-tea { background: #f4efe4; color: #3a3428; }
.site-tea .tea-header { background: #efe6d2; border-bottom: 3px double #8a7a5a; padding: 16px 24px; text-align: center; }
.site-tea .tea-logo { font-family: var(--serif); font-size: 26px; letter-spacing: 10px; color: #4a4233; }
.site-tea .tea-sub { color: #8a8070; font-size: 12px; margin-top: 4px; }
.site-tea .tea-card { background: #fffdf6; border: 1px solid #e8e1cf; border-left: 4px solid #8a7a5a; border-radius: 8px; padding: 16px 18px; margin: 14px 0; }
.site-tea .tea-h { font-size: 14px; color: #8a5a00; letter-spacing: 2px; margin-bottom: 6px; }
.site-tea a { color: inherit; }
.site-tea a:hover { color: #8a5a00; }

/* ⑭ 闲市(二手集市) */
.site-mkt { background: #f5f6f9; color: #2a2e35; }
.site-mkt .mkt-header { background: #fff; border-bottom: 1px solid #e3e5ea; padding: 10px 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-mkt .mkt-logo { font-size: 20px; font-weight: 500; color: #2a2e35; letter-spacing: 1px; }
.site-mkt .mkt-search { flex: 1; min-width: 220px; display: flex; gap: 6px; align-items: center; }
.site-mkt .mkt-search input { flex: 1; background: #f0f1f4; border: 1px solid transparent; border-radius: 16px; padding: 7px 14px; }
.site-mkt .mkt-tag { font-size: 12px; color: #8a94a6; }
.site-mkt .mkt-item { background: #fff; border: 1px solid #e3e5ea; border-radius: 12px; padding: 14px; margin: 12px 0; display: flex; gap: 14px; align-items: flex-start; }
.site-mkt .mkt-th { font-size: 30px; flex: none; }
.site-mkt .mkt-info { flex: 1; min-width: 0; }
.site-mkt .mkt-price { color: #e0562c; font-size: 15px; margin-top: 6px; }
.site-mkt .mkt-card { background: #fff; border: 1px solid #e3e5ea; border-radius: 12px; padding: 14px; margin: 12px 0; }
.site-mkt a { color: inherit; }
.site-mkt a:hover { color: #185fa5; }

/* ⑮ 声社名录(档案名录) */
.site-ledger { background: #eef0f4; color: #2a2e35; }
.site-ledger .ledger-header { background: #fff; border-bottom: 1px solid #dfe2e8; padding: 14px 22px; }
.site-ledger .ledger-logo { font-family: var(--serif); font-size: 20px; letter-spacing: 8px; color: #2c3e50; }
.site-ledger .ledger-sub { font-size: 12px; color: #8a94a6; margin-top: 2px; }
.site-ledger .ledger-note { background: #fff; border: 1px solid #dfe2e8; border-left: 4px solid #8a7a5a; border-radius: 8px; padding: 16px; margin: 14px 0; font-size: 14px; }
.site-ledger .ledger-table { background: #fff; border: 1px solid #dfe2e8; border-radius: 10px; overflow: hidden; }
.site-ledger .ledger-row { display: grid; grid-template-columns: 1.1fr 1.3fr 2fr 1.2fr; gap: 8px; padding: 9px 14px; font-size: 13px; border-bottom: 1px solid #eef0f4; }
.site-ledger .ledger-row.ledger-head { background: #f7f8fa; font-weight: 500; color: #5a6270; }
.site-ledger a { color: inherit; }
.site-ledger a:hover { color: #185fa5; }

/* ============ ⑯ 锦书无线电行(民国店铺) ============ */
.site-repair { background: #f0eadd; color: #3a3428; }
.site-repair .rep-header { background: #e6dbc3; border-bottom: 3px double #5f513a; padding: 14px 24px; text-align: center; }
.site-repair .rep-logo { font-family: var(--serif); font-size: 24px; letter-spacing: 8px; color: #4a4233; }
.site-repair .rep-sub { color: #8a8070; font-size: 12px; margin-top: 4px; }
.site-repair .rep-card { background: #fffdf6; border: 1px solid #e8e1cf; border-left: 4px solid #5f513a; border-radius: 8px; padding: 16px 18px; margin: 14px 0; }
.site-repair .rep-h { font-size: 14px; color: #7a5a1d; letter-spacing: 2px; margin-bottom: 6px; }
.site-repair .rep-receipt { background: #f5ecd6; border: 1px dashed #b8a88a; padding: 12px 16px; font-family: var(--serif); color: #3a3428; font-size: 14px; line-height: 2; }
.site-repair a { color: inherit; }
.site-repair a:hover { color: #7a5a1d; }

/* ⑰ 人民广播(宣传画红白) */
.site-bcast { background: #faf6ee; color: #33302a; }
.site-bcast .bcast-header { background: #c0392b; color: #fff; padding: 14px 24px; text-align: center; }
.site-bcast .bcast-logo { font-size: 22px; letter-spacing: 6px; font-weight: 500; }
.site-bcast .bcast-sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.site-bcast .bcast-card { background: #fffdf6; border: 1px solid #e8e1cf; border-left: 4px solid #c0392b; border-radius: 8px; padding: 16px 18px; margin: 14px 0; }
.site-bcast .bcast-h { font-size: 14px; color: #8a2a1a; letter-spacing: 2px; margin-bottom: 6px; }
.site-bcast a { color: inherit; }
.site-bcast a:hover { color: #c0392b; }

/* ⑱ 寻呼台博物馆(灰蓝档案) */
.site-pager { background: #eef0f4; color: #2a2e35; }
.site-pager .pager-header { background: #fff; border-bottom: 1px solid #dfe2e8; padding: 14px 22px; }
.site-pager .pager-logo { font-family: var(--serif); font-size: 20px; letter-spacing: 4px; color: #2c3e50; }
.site-pager .pager-sub { font-size: 12px; color: #8a94a6; margin-top: 2px; }
.site-pager .pager-card { background: #fff; border: 1px solid #dfe2e8; border-left: 4px solid #185fa5; border-radius: 8px; padding: 16px; margin: 14px 0; }
.site-pager .pager-h { font-size: 14px; color: #185fa5; letter-spacing: 2px; margin-bottom: 6px; }
.site-pager a { color: inherit; }
.site-pager a:hover { color: #185fa5; }

/* ============ V3.9:按钮主题化(浅色站点不再"绿不拉几") ============ */
/* 各浅色站点的主按钮颜色 — 与站点视觉一致 */
.site-xr .btn:not(.ghost) { background: #c0392b; color: #fff; }
.site-blue .btn:not(.ghost) { background: #185fa5; color: #fff; }
.site-blog .btn:not(.ghost) { background: #8a5a00; color: #fff; }
.site-diary .btn:not(.ghost) { background: #8a5a00; color: #fff; }
.site-arc .btn:not(.ghost) { background: #1f4e8c; color: #fff; }
.site-wiki .btn:not(.ghost) { background: #1f4e8c; color: #fff; }
.site-forum .btn:not(.ghost) { background: #2c3e50; color: #fff; }
.site-tea .btn:not(.ghost) { background: #7a5a1d; color: #fff; }
.site-repair .btn:not(.ghost) { background: #5f513a; color: #fff; }
.site-bcast .btn:not(.ghost) { background: #c0392b; color: #fff; }
.site-pager .btn:not(.ghost) { background: #185fa5; color: #fff; }
.site-mkt .btn:not(.ghost) { background: #e0562c; color: #fff; }
.site-ledger .btn:not(.ghost) { background: #2c3e50; color: #fff; }
.site-oldweb .btn:not(.ghost) { background: #cc00cc; color: #fff; }
/* 深色站(relic/bbs/radio)保留默认荧光绿,本就是它们的美学 */

/* ============ ⑲ 明德堂(医院档案灰) ============ */
.site-asylum { background: #eeeaE3; color: #2a2e35; }
.site-asylum .asy-header { background: #2a2e35; color: #cfc9c0; padding: 14px 24px; text-align: center; }
.site-asylum .asy-logo { font-family: var(--serif); font-size: 22px; letter-spacing: 6px; color: #cfc9c0; }
.site-asylum .asy-sub { font-size: 12px; opacity: .65; margin-top: 2px; }
.site-asylum .asy-card { background: #fffdf6; border: 1px solid #d8cba8; border-left: 4px solid #5f513a; border-radius: 8px; padding: 16px 18px; margin: 14px 0; }
.site-asylum .asy-h { font-size: 14px; color: #5f513a; letter-spacing: 2px; margin-bottom: 6px; }
.site-asylum .asy-note { background: #f5ecd6; border: 1px dashed #b8a88a; border-radius: 8px; padding: 14px; font-size: 13px; color: #4a4233; margin-bottom: 16px; }
.site-asylum a { color: inherit; }
.site-asylum a:hover { color: #5f513a; }

/* ⑳ 中国邮驿(邮政绿) */
.site-post { background: #f4efe4; color: #3a3428; }
.site-post .post-header { background: #2d5f3f; color: #fff7d0; padding: 14px 24px; text-align: center; }
.site-post .post-logo { font-family: var(--serif); font-size: 22px; letter-spacing: 6px; }
.site-post .post-sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.site-post .post-card { background: #fffdf6; border: 1px solid #e8e1cf; border-left: 4px solid #2d5f3f; border-radius: 8px; padding: 16px 18px; margin: 14px 0; }
.site-post .post-h { font-size: 14px; color: #2d5f3f; letter-spacing: 2px; margin-bottom: 6px; }
.site-post .post-letter { background: #f5ecd6; border: 1px solid #d8cba8; padding: 12px 16px; line-height: 1.8; }
.site-post a { color: inherit; }
.site-post a:hover { color: #2d5f3f; }

/* ㉑ 旧书店(暖棕) */
.site-books { background: #f6f1e6; color: #3a3428; }
.site-books .books-header { background: #5c4a2f; color: #f5ecd6; padding: 14px 24px; text-align: center; }
.site-books .books-logo { font-family: var(--serif); font-size: 22px; letter-spacing: 4px; }
.site-books .books-sub { font-size: 12px; opacity: .8; margin-top: 2px; }
.site-books .books-card { background: #fffdf6; border: 1px solid #e8e1cf; border-left: 4px solid #8a5a00; border-radius: 8px; padding: 16px 18px; margin: 14px 0; }
.site-books .books-h { font-size: 14px; color: #8a5a00; letter-spacing: 2px; margin-bottom: 6px; }
.site-books a { color: inherit; }
.site-books a:hover { color: #8a5a00; }

/* ㉒ 上海电报局(电报蓝米黄) */
.site-tg { background: #f5ecd6; color: #3a3428; }
.site-tg .tg-header { background: #1c3a5e; color: #f5ecd6; padding: 14px 24px; text-align: center; }
.site-tg .tg-logo { font-family: var(--serif); font-size: 22px; letter-spacing: 6px; }
.site-tg .tg-sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.site-tg .tg-card { background: #fffdf6; border: 1px solid #e8e1cf; border-left: 4px solid #1c3a5e; border-radius: 8px; padding: 16px 18px; margin: 14px 0; }
.site-tg .tg-h { font-size: 14px; color: #1c3a5e; letter-spacing: 2px; margin-bottom: 6px; }
.site-tg a { color: inherit; }
.site-tg a:hover { color: #1c3a5e; }

/* ============ V4.0:视觉恐怖升级(怎么恐怖怎么来,仍可"科学解释") ============ */
/* 暗红 vignette 一闪(解锁瞬间,像监视器画面暗了一下) */
#red-flash {
  position: fixed; inset: 0; z-index: 997; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(120,10,10,.55) 100%);
}
#red-flash.go { animation: redGo .5s ease-out both; }
@keyframes redGo { 0% { opacity: .9; } 100% { opacity: 0; } }

/* 随机人形黑影(一闪而过,200ms) */
#shadow-fig {
  position: fixed; z-index: 996; pointer-events: none; opacity: 0;
  width: 120px; height: 200px; left: 62%; top: 12%;
  background: radial-gradient(ellipse 42% 55% at 50% 42%, #000 0%, transparent 62%),
              radial-gradient(ellipse 30% 30% at 50% 28%, #000 0%, transparent 58%);
}
#shadow-fig.go { animation: shadowGo .22s steps(4) both; }
@keyframes shadowGo { 0% { opacity: .65; } 50% { opacity: .25; } 100% { opacity: 0; } }

/* 值班灯(明德堂/医院走廊长明灯,微弱呼吸) */
.asy-lamp { color: #a88; animation: lampBreath 3.5s ease-in-out infinite; }
@keyframes lampBreath { 0%,100% { opacity: .55; } 50% { opacity: 1; text-shadow: 0 0 10px rgba(170,90,90,.5); } }

/* 03:47 随机闪烁(终局/时间戳) */
.ts-blink { animation: tsBlink 1.2s steps(2) infinite; color: #b33; }
@keyframes tsBlink { 50% { opacity: .15; } }

/* ===== 深夜模式(23:00–03:47):死人频段显形层 ===== */
.night-only { display: none; }
body.night-mode .night-only {
  display: block;
  margin-top: 14px; padding: 14px 16px; border: 1px dashed #6a2f2f; border-radius: 8px;
  background: rgba(40,12,12,.35); color: #e8b0a0; font-family: var(--serif); font-size: 14px; line-height: 1.9;
  animation: nightFlicker 4s ease-in-out infinite;
}
@keyframes nightFlicker { 0%,100% { opacity: .82; } 47% { opacity: .55; } 50% { opacity: 1; } 53% { opacity: .6; } }
/* 深夜:极淡暗红 vignette(克制,不像信号灯闪烁那么廉价) */
body.night-mode #site::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .32;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(110,18,18,.26) 100%);
}
body.night-mode { background: #0c0a0a; }

/* 分享 toast 已有; 此处追加论坛 live 红点等(已存在) */

