/* ============================================================
   《暗语百年 II · 声社收发室》视觉系统 V1
   深夜档案风: 深青黑底 × 米白档案纸 × 暗金/青灰点缀 × 红戳
   像素 CRT 质感 · 克制恐怖
   ============================================================ */
:root {
  --bg: #0b0f14;          /* 深夜青黑 */
  --bg2: #10161d;
  --paper: #e8e4d6;       /* 档案纸米白 */
  --paper2: #f1eddf;
  --ink: #23272e;         /* 纸上墨色 */
  --ink2: #5c6470;
  --line: #2a323c;        /* 深色描边 */
  --line2: #c9c4b2;       /* 纸上描边 */
  --gold: #c8a05a;        /* 暗金 */
  --cyan: #9fb6c8;        /* 青灰 */
  --red: #b3473a;         /* 红戳 */
  --mono: "Cascadia Mono", "Consolas", "SimSun", monospace;
  --serif: "STZhongsong", "SimSun", "Songti SC", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: #c9d2da;
  font-family: var(--mono); font-size: 14px; line-height: 1.8;
  overflow-x: hidden;
}
#site { padding: 0 16px 52px; max-width: 780px; margin: 0 auto; }
a { color: inherit; }
.dim { color: #67707c; }
.small { font-size: 12px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- 浏览器外壳 ---------- */
#browser2 { position: sticky; top: 0; z-index: 90; background: var(--bg2); border-bottom: 1px solid var(--line); }
#browser2-bar {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px;
  font-size: 12px; max-width: 780px; margin: 0 auto;
}
.b2-tab { display: inline-flex; align-items: center; gap: 6px; background: #182028; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; color: var(--cyan); flex: none; }
.b2-tabt { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b2-x { color: #5a646f; cursor: pointer; margin-left: 2px; }
.b2-nav { color: #5a646f; cursor: pointer; padding: 2px 4px; user-select: none; }
.b2-nav:hover { color: var(--cyan); }
.b2-addr {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: #0d1218; border: 1px solid var(--line); border-radius: 12px; padding: 3px 12px; color: #8b95a1;
}
.b2-snd { cursor: pointer; color: #5a646f; flex: none; }

/* ---------- 底部线索栏 ---------- */
#bar2 {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #0d1218; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 6px 14px; font-size: 12px; color: #8b95a1;
}
.bar2-btn { color: var(--cyan); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.bar2-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); display: inline-block; }
.bar2-caret { font-size: 10px; }
.bar2-hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar2-list {
  display: none; position: fixed; bottom: 32px; left: 14px; z-index: 99;
  background: #182028; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; max-width: 380px; flex-wrap: wrap; gap: 4px 14px; font-size: 12px;
}
.bar2-list.open { display: flex; }
.bar2-list span { color: #67707c; }
.bar2-list span.on { color: var(--gold); }

/* ---------- 档案纸卡片 ---------- */
.paper {
  background: var(--paper); color: var(--ink);
  border-radius: 6px; padding: 22px 24px; margin: 18px 0;
  box-shadow: 0 10px 34px rgba(0,0,0,.55);
  position: relative;
}
.paper.dark { background: #141b23; color: #c9d2da; border: 1px solid var(--line); }
.paper h2 { font-family: var(--serif); font-size: 20px; letter-spacing: 3px; color: var(--ink); margin-bottom: 10px; }
.paper.dark h2 { color: var(--gold); }
.sep2 { border: none; border-top: 1px dashed var(--line2); margin: 14px 0; }
.sep2.dark { border-color: var(--line); }

/* 红戳(未归档) */
.stamp {
  display: inline-block; border: 2px solid var(--red); color: var(--red);
  padding: 2px 10px; font-size: 13px; letter-spacing: 4px; border-radius: 3px;
  transform: rotate(-6deg); opacity: .82; font-weight: 700;
  position: absolute; right: 16px; top: 14px;
}

/* ---------- 表格(档案列表) ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line2); }
.tbl th { color: var(--ink2); font-weight: 400; font-size: 12px; letter-spacing: 1px; }
.tbl tr.cur { background: #f3ecd2; }
.tbl tr.cur td { color: var(--red); font-weight: 700; }
.tbl a { color: inherit; text-decoration: underline dotted; }

/* ---------- 像素地图 ---------- */
.pixmap { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; max-width: 560px; margin: 14px auto; }
.pm-cell { aspect-ratio: 1; background: #1a2330; border-radius: 1px; }
.pm-cell.water { background: #16202e; }
.pm-cell.street { background: #232d3a; }
.pm-cell.spot { background: var(--red); box-shadow: 0 0 10px rgba(179,71,58,.8); }
.pm-cell.spot.gold { background: var(--gold); box-shadow: 0 0 10px rgba(200,160,90,.8); }
.pm-cell.spot.ok { background: #5a9e7a; box-shadow: 0 0 8px rgba(90,158,122,.7); }
.pm-legend { text-align: center; font-size: 12px; color: var(--ink2); margin-top: 10px; }
.pm-legend b { color: var(--ink); }
.pm-legend b.r { color: var(--red); }
.pm-legend b.g { color: #5a9e7a; }

/* ---------- 反色谜题(当票) ---------- */
#pawn-paper { transition: filter .8s ease; }
#pawn-paper.inverted { filter: invert(1) hue-rotate(180deg); }
/* 涂改复原(档案馆卷宗):铅灰覆盖层移除 */
#redact.revealed { color: #d9d2b8; background: transparent; }
.inv-btn {
  display: inline-block; border: 1px solid var(--ink2); color: var(--ink);
  padding: 5px 14px; border-radius: 4px; cursor: pointer; font-size: 12px; background: var(--paper2);
}
.inv-btn:hover { background: #dfd9c2; }
.inv-hidden { color: #d9d2b8; } /* 纸上"隐形"字:反色后显出 */
.inv-hidden b { color: #b8b09a; }

/* ---------- CRT/扫描线氛围 ---------- */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px);
}
#glitch2 {
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(120,180,220,.16) 0 2px, transparent 2px 7px);
  mix-blend-mode: screen;
}
#glitch2.go { animation: g2 .28s steps(3); }
@keyframes g2 { 0% { opacity: .9; transform: translateX(-6px); } 50% { opacity: .5; transform: translateX(5px); } 100% { opacity: 0; } }

/* 深夜暗红闪 */
#red2 { position: fixed; inset: 0; z-index: 998; pointer-events: none; background: radial-gradient(ellipse at center, transparent 40%, rgba(140,30,25,.5)); opacity: 0; }
body.night2 #red2.go { animation: r2 1s ease; }
@keyframes r2 { 0% { opacity: 1; } 100% { opacity: 0; } }

/* 打字机开场 */
.type-line { font-size: 15px; letter-spacing: 2px; color: #c9d2da; border-right: 1px solid var(--cyan); display: inline-block; animation: caret .8s steps(1) infinite; white-space: pre-wrap; }
@keyframes caret { 50% { border-color: transparent; } }

/* 通知信封 */
.env { max-width: 460px; margin: 40px auto; padding: 30px 28px; background: var(--paper); color: var(--ink); border-radius: 4px; box-shadow: 0 14px 44px rgba(0,0,0,.6); position: relative; }
.env .env-seal { position: absolute; right: 14px; top: -14px; background: var(--red); color: #f3ece0; padding: 4px 10px; font-size: 12px; letter-spacing: 3px; border-radius: 2px; }
.env h1 { font-family: var(--serif); font-size: 22px; letter-spacing: 4px; margin-bottom: 16px; }
.env .env-line { font-size: 14px; line-height: 2; }
.env .env-cta { margin-top: 22px; text-align: right; }
.btn2 {
  display: inline-block; background: var(--red); color: #f3ece0;
  padding: 9px 22px; border-radius: 4px; text-decoration: none; font-size: 14px; letter-spacing: 2px;
  transition: background .2s;
}
.btn2:hover { background: #c65a4a; }
.btn2.ghost { background: transparent; border: 1px solid var(--ink2); color: var(--ink); }
.btn2.ghost:hover { border-color: var(--ink); }

@media (max-width: 520px) {
  .paper { padding: 16px 14px; }
  .env { margin: 24px auto; padding: 22px 16px; }
  .b2-tabt { max-width: 80px; }
}

/* 浅色政务站:浏览器外壳 + 底部栏切浅色(整页纯浅色,真实政府站观感) */
body.light-shell { background: #f4f4f2; }
body.light-shell #browser2 { background: #f3f4f8; border-color: #d5dae2; }
body.light-shell #browser2-bar .b2-tab { background: #fff; color: #2b3240; border-color: #d5dae2; }
body.light-shell #browser2-bar .b2-tabt { color: #2b3240; }
body.light-shell .b2-x, body.light-shell .b2-nav { color: #8a94a6; }
body.light-shell .b2-nav:hover { color: #1f4e8c; }
body.light-shell .b2-addr { background: #fff; color: #56617a; border-color: #d5dae2; }
body.light-shell .b2-snd { color: #8a94a6; }
body.light-shell #bar2 { background: #f3f4f8; border-color: #d5dae2; color: #56617a; }
body.light-shell .bar2-btn { color: #1f4e8c; }
body.light-shell .bar2-dot { background: #1f4e8c; }
body.light-shell .bar2-list { background: #fff; border-color: #d5dae2; }
body.light-shell .bar2-list span { color: #8a94a6; }
body.light-shell .bar2-list span.on { color: #c0392b; }

/* ---- 时代印记:跑马灯 + 页脚维护信息(2000 年代老官网) ---- */
.sys-marquee {
  background: #fff8dc; border-bottom: 1px solid #cc9; color: #633;
  font-size: 12px; overflow: hidden; white-space: nowrap; position: relative;
}
.sys-marquee span { display: inline-block; padding-left: 100%; animation: marq 22s linear infinite; }
.sys-marquee b { color: #a33; }
@keyframes marq { to { transform: translateX(-100%); } }
.old-meta { display: block; margin-top: 4px; color: #777; }

/* ============================================================
   真实政务/机构站点组件(第二幕起)
   目标:像真的政府网站 —— 红顶白头 / 深蓝导航 / 细线表格
        面包屑 / 黄底公告 / 灰底备案页脚 / 红头文件
   ============================================================ */
body.site-gov  { background: #f4f4f2; color: #222; }
body.site-cctv { background: #f4f4f2; color: #222; }
body.site-radio2{ background: #f4f4f2; color: #222; }
body.site-paper2{ background: #e8e0cc; color: #33291a; }
body.site-bbs2 { background: #f4f2ea; color: #2c3138; }
body.site-book { background: #efe8d8; color: #3a2f1e; }
body.site-tel  { background: #f4f4f2; color: #222; }

/* ---- 老官网风(对标溪埕國小 2003 学校站):白底黑字/朴素/无圆角 ---- */
.gov-banner { background: #fff; border-bottom: 1px solid #999; padding: 8px 0; }
.gov-banner .gb-inner { max-width: 1080px; margin: 0 auto; padding: 0 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gov-logo { display: none !important; } /* 图标已取消 */
.gov-name-pdg { font-size: 20px; font-weight: 700; color: #000; letter-spacing: 1px; line-height: 1.3; }
.gov-name-pdg .gurl { display: block; font-size: 11px; font-weight: 400; letter-spacing: 1px; color: #555; margin-top: 1px; }
.gov-spirit { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 200px; justify-content: flex-end; flex-wrap: wrap; }
.gov-spirit .gs-txt { font-size: 12px; color: #333; line-height: 1.4; text-align: right; }
.gov-spirit .gs-txt b { display: block; font-size: 12px; letter-spacing: 1px; }
.gov-spirit .gs-txt small { color: #666; letter-spacing: 0; }

.gov-tools { background: #f4f4f4; border-bottom: 1px solid #bbb; padding: 5px 0; }
.gov-tools .gt-inner { max-width: 1080px; margin: 0 auto; padding: 0 14px; display: flex; align-items: center; gap: 10px; }
.gov-search { display: flex; align-items: center; background: #fff; border: 1px solid #999; flex: 1; max-width: 320px; }
.gov-search input { flex: 1; border: none; padding: 5px 8px; font-size: 13px; background: none; outline: none; min-width: 0; }
.gov-search span { padding: 0 6px; color: #333; cursor: pointer; }
.gov-tools .gov-link { font-size: 12px; color: #000; padding: 3px 8px; text-decoration: none; }
.gov-tools .gov-link:hover { background: #e4e4e4; }

/* 兼容旧式站点(无 banner) */
.gov-head { background: #fff; border-bottom: 1px solid #bbb; padding: 8px 0; }
.gov-head .gh-inner { max-width: 1080px; margin: 0 auto; padding: 0 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gov-name { font-size: 20px; font-weight: 700; color: #000; letter-spacing: 1px; }
.gov-name small { display: block; font-size: 11px; color: #555; font-weight: 400; letter-spacing: 1px; margin-top: 1px; }
.gov-sub { font-size: 12px; color: #555; }

/* 文字式导航(黑底反白 hover,老官网风) */
.gov-nav { background: #fff; border-bottom: 2px solid #333; }
.gov-nav .gn-inner { max-width: 1080px; margin: 0 auto; padding: 0 14px; display: flex; gap: 2px; flex-wrap: wrap; }
.gov-nav a { color: #000; font-size: 14px; padding: 8px 12px; white-space: nowrap; text-decoration: none; letter-spacing: 1px; }
.gov-nav a:hover, .gov-nav a.on { background: #333; color: #fff; }

/* 面包屑 + 主区(去圆角,细灰线) */
.breadcrumb { max-width: 1080px; margin: 8px auto 0; padding: 0 14px; font-size: 12px; color: #555; }
.breadcrumb b { color: #000; font-weight: 400; }
.gov-main { max-width: 1080px; margin: 0 auto; padding: 12px 14px 60px; }
.gov-card { background: #fff; border: 1px solid #bbb; border-radius: 0; padding: 14px 16px; margin: 10px 0; }
.gov-card h3 { font-size: 15px; color: #000; border-bottom: 1px solid #333; padding: 2px 0 6px; margin-bottom: 10px; }
.gov-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.gov-table th { background: #eee; color: #000; font-weight: 700; text-align: left; padding: 7px 10px; border: 1px solid #999; }
.gov-table td { padding: 7px 10px; border: 1px solid #ccc; }
.gov-table tr:nth-child(even) td { background: #fafbfd; }
.gov-table .warn { color: #c0392b; font-weight: 700; }

/* 黄底公告 */
.gov-notice { background: #fffbe6; border: 1px solid #f0df9a; color: #7a6a2a; padding: 10px 14px; font-size: 13px; border-radius: 3px; margin: 12px 0; }
.gov-notice b { color: #b3473a; }

/* 灰底备案页脚 */
.gov-foot { background: #e4e8ef; border-top: 1px solid #cfd5df; padding: 12px 16px; font-size: 11px; color: #7a8496; text-align: center; line-height: 1.9; }

/* 红头文件 */
.redhead { background: #fff; border: 1px solid #d5d5d5; padding: 26px 24px; margin: 14px 0; border-radius: 2px; }
.redhead .rh-top { text-align: center; color: #c0392b; font-size: 15px; letter-spacing: 4px; font-weight: 700; margin-bottom: 4px; }
.redhead .rh-no { text-align: center; color: #8a94a6; font-size: 11px; margin-bottom: 16px; }
.redhead hr { border: none; border-top: 1px solid #c0392b; margin: 0 0 14px; }
.redhead p { font-size: 14px; line-height: 2.1; text-indent: 2em; }

/* ---- 监控画面 ---- */
.cctv-box { background: #000; border: 1px solid #22303c; border-radius: 4px; overflow: hidden; margin: 12px 0; }
.cctv-screen { position: relative; background: #0e141b; aspect-ratio: 4/3; overflow: hidden; }
.cctv-screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(160,200,220,.05) 0 2px, transparent 2px 5px); }
.cctv-time { position: absolute; left: 8px; top: 6px; font-size: 12px; color: #7fd0a0; font-family: var(--mono); }
.cctv-ch { position: absolute; right: 8px; top: 6px; font-size: 12px; color: #7fd0a0; }
.cctv-rec { position: absolute; left: 8px; bottom: 8px; font-size: 12px; color: #ff5a4a; }
.cctv-rec i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff5a4a; animation: recblink 1s steps(2) infinite; margin-right: 4px; }
@keyframes recblink { 50% { opacity: .2; } }
.cctv-shadow { position: absolute; cursor: pointer; transition: transform .5s ease, filter .5s ease; }
.cctv-shadow:hover { transform: scale(1.08); filter: brightness(1.4); }
.cctv-meta { padding: 8px 12px; background: #0a0f14; border-top: 1px solid #22303c; font-size: 12px; color: #6e7b8a; }

/* ---- 音频档案(调频) ---- */
.wave { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin: 10px 0; }
.wave i { flex: 1; background: #6fae6a; border-radius: 1px; opacity: .7; animation: wv 1.2s ease-in-out infinite; }
@keyframes wv { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.player-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.player-btn { border: 1px solid #5a8a55; background: #162114; color: #cfe6c8; padding: 7px 18px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.player-btn:hover { background: #1d2b18; }
.player-btn.on { background: #2c4526; }
.freq-note { font-size: 13px; color: #9fc79a; margin-top: 8px; line-height: 1.9; }

/* ---- 报纸 ---- */
.newspaper { background: #eee5cf; border: 1px solid #c9bb97; padding: 22px; margin: 14px 0; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.np-mast { text-align: center; border-bottom: 2px solid #33291a; padding-bottom: 8px; }
.np-mast h1 { font-size: 34px; letter-spacing: 8px; font-weight: 900; }
.np-mast .np-date { font-size: 11px; color: #6b5f45; margin-top: 4px; letter-spacing: 1px; }
.np-cols { display: flex; gap: 18px; margin-top: 14px; }
.np-cols > div { flex: 1; }
.np-cols h2 { font-size: 20px; line-height: 1.5; margin-bottom: 8px; }
.np-cols p { font-size: 13px; line-height: 1.9; text-indent: 2em; margin-bottom: 8px; }
.np-cols .np-ad { border: 1px solid #a89a74; padding: 8px 10px; font-size: 12px; text-indent: 0; margin-top: 12px; color: #6b5f45; }
.np-sep { border: none; border-top: 1px solid #a89a74; margin: 10px 0; }
@media (max-width: 600px) { .np-cols { flex-direction: column; gap: 10px; } }

/* ---- 复古论坛 ---- */
.bbs2-list { background: #fff; border: 1px solid #dcd8c8; border-radius: 4px; }
.bbs2-head { background: #3c3f4a; color: #e8e6da; padding: 8px 14px; font-size: 13px; display: flex; gap: 18px; }
.bbs2-item { display: flex; gap: 12px; padding: 11px 14px; border-top: 1px solid #ece9da; font-size: 13px; align-items: baseline; flex-wrap: wrap; }
.bbs2-item .t { flex: 1; min-width: 160px; }
.bbs2-item .u { color: #8a8470; font-size: 12px; }
.bbs2-item .d { color: #a09a85; font-size: 12px; }
.bbs2-item.anom { background: #f6efe0; border-left: 4px solid #b3473a; }

/* ---- 旧书扫描件 ---- */
.scan { background: #e9dfc6; border: 1px solid #c9b988; padding: 26px 26px; margin: 14px 0; box-shadow: inset 0 0 60px rgba(120,90,40,.18), 0 8px 20px rgba(0,0,0,.3); position: relative; border-radius: 2px; }
.scan::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 18% 24%, rgba(90,60,20,.16), transparent 55%), radial-gradient(ellipse at 82% 78%, rgba(90,60,20,.13), transparent 50%); }
.scan .sc-ink { position: relative; font-family: var(--serif); font-size: 15px; line-height: 2.2; letter-spacing: 1px; color: #4a3a22; }
.scan .sc-ocr { position: relative; font-size: 11px; color: #8a7a55; margin-top: 8px; }
.scan .sc-burn { position: absolute; right: -8px; top: -8px; width: 70px; height: 70px; background: radial-gradient(circle, rgba(60,35,15,.5), transparent 65%); }

/* ---- 电信电话亭 ---- */
.tel-booth { background: #fff; border: 1px solid #cdd8e8; border-radius: 6px; padding: 20px; margin: 14px 0; }
.tel-panel { background: #1c2836; border-radius: 6px; padding: 14px 16px; max-width: 320px; }
.tel-screen { background: #0c141e; color: #8fd0a0; font-size: 14px; padding: 10px 12px; border-radius: 3px; min-height: 46px; font-family: var(--mono); letter-spacing: 1px; margin-bottom: 10px; }
.tel-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tel-keys span { background: #243447; color: #cfe0f2; text-align: center; padding: 8px 0; border-radius: 3px; cursor: pointer; font-size: 14px; user-select: none; }
.tel-keys span:hover { background: #2e4160; }

/* ============================================================
   站点差异化色调(不再千篇一律)+ 恐怖逃生氛围层
   ============================================================ */
/* 档案馆/影像 灰蓝 */
body.site-cctv .gov-banner { background: #f0f3f6; border-color: #9fb0c2; }
body.site-cctv .gov-name-pdg { color: #2b4a6e; }
body.site-cctv .gov-nav { border-bottom-color: #2b4a6e; }
body.site-cctv .gov-nav a.on { background: #2b4a6e; }
/* 广播/声学 深蓝夜 */
body.site-radio2 .gov-banner { background: #0e1620; border-color: #22303c; }
body.site-radio2 .gov-name-pdg { color: #9fb6c8; }
body.site-radio2 .gov-name-pdg .gurl { color: #5c6a7a; }
body.site-radio2 .gov-nav { border-bottom-color: #22303c; }
body.site-radio2 .gov-nav a { color: #9fb6c8; }
body.site-radio2 .gov-nav a.on { background: #22303c; color: #c8d8e8; }
body.site-radio2 .gov-tools { background: #f0f3f6; border-color: #c8d0da; }
/* 论坛 蓝灰 */
body.site-bbs2 .gov-banner { background: #eef1f4; border-color: #9aa4b2; }
body.site-bbs2 .gov-name-pdg { color: #3c4a5e; }
body.site-bbs2 .gov-nav { border-bottom-color: #3c4a5e; }
body.site-bbs2 .gov-nav a.on { background: #3c4a5e; }
/* 报纸/书店 米褐 */
body.site-paper2 .gov-nav { border-bottom-color: #4a3f2c; }
body.site-book  .gov-nav { border-bottom-color: #4a3a22; }
/* 明德堂医院 冷绿 */
body:has(.gov-nav a[href="asylum.html"]):not(:has(a.on[href="asylum-lab.html"])) .gov-banner { background: #eef3ee; border-color: #7a9a7a; }
body:has(.gov-nav a[href="asylum.html"]):not(:has(a.on[href="asylum-lab.html"])) .gov-name-pdg { color: #2c4a2c; }
body:has(.gov-nav a[href="asylum.html"]):not(:has(a.on[href="asylum-lab.html"])) .gov-name-pdg .gurl { color: #6a8a6a; }
body:has(.gov-nav a[href="asylum.html"]):not(:has(a.on[href="asylum-lab.html"])) .gov-nav { border-bottom-color: #3a5a3a; }
body:has(.gov-nav a[href="asylum.html"]):not(:has(a.on[href="asylum-lab.html"])) .gov-nav a.on { background: #3a5a3a; }
body:has(.gov-nav a[href="asylum.html"]):not(:has(a.on[href="asylum-lab.html"])) .gov-card h3 { color: #2c4a2c; border-bottom-color: #3a5a3a; }
/* 地下实验室 暗墨绿(逃生感最强) */
body:has(.gov-nav a[href="asylum-lab.html"]) { background: #0a0d0a; color: #cfe0c8; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-banner { background: #0e1410; border-color: #2c4526; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-name-pdg { color: #8ff07a; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-name-pdg .gurl { color: #6e8a64; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-tools { background: #101a10; border-color: #2c4526; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-nav { background: #0e1410; border-bottom-color: #3d5a35; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-nav a { color: #9fc79a; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-nav a.on { background: #2c4526; color: #cfe6c8; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-card { background: #101a14; border-color: #2c4526; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-card h3 { color: #8ff07a; border-bottom-color: #3d5a35; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-table th { background: #162114; color: #9fc79a; border-color: #2c4526; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-table td { border-color: #22301c; color: #c9d2da; }
body:has(.gov-nav a[href="asylum-lab.html"]) .breadcrumb b { color: #9fc79a; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-search input { color: #cfe6c8; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-search { background: #0d1410; border-color: #2c4526; }
body:has(.gov-nav a[href="asylum-lab.html"]) .gov-foot { background: #0d1410; border-color: #22301c; color: #6e8a64; }
body:has(.gov-nav a[href="asylum-lab.html"]) .dim { color: #7a9a6e; }
body:has(.gov-nav a[href="asylum-lab.html"]) #browser2, body:has(.gov-nav a[href="asylum-lab.html"]) #bar2 { background: #0d1210; border-color: #22301c; }
body:has(.gov-nav a[href="asylum-lab.html"]) #browser2-bar .b2-tab { background: #101a14; color: #9fc79a; border-color: #2c4526; }
body:has(.gov-nav a[href="asylum-lab.html"]) .b2-addr { background: #0d1410; color: #7a9a6e; border-color: #2c4526; }
body:has(.gov-nav a[href="asylum-lab.html"]) .b2-nav, body:has(.gov-nav a[href="asylum-lab.html"]) .b2-x, body:has(.gov-nav a[href="asylum-lab.html"]) .b2-snd { color: #7a9a6e; }
body:has(.gov-nav a[href="asylum-lab.html"]) .countdown, body:has(.gov-nav a[href="asylum-lab.html"]) .horror-note { color: #b06a5a; }
/* 物业 暖米 */
body:has(.gov-nav a[href="estate.html"]) .gov-banner { background: #f7f1e2; border-color: #c9b988; }
body:has(.gov-nav a[href="estate.html"]) .gov-name-pdg { color: #5a4526; }
body:has(.gov-nav a[href="estate.html"]) .gov-name-pdg .gurl { color: #8a7a55; }
body:has(.gov-nav a[href="estate.html"]) .gov-nav { border-bottom-color: #8a6a3a; }
body:has(.gov-nav a[href="estate.html"]) .gov-nav a.on { background: #8a6a3a; }
body:has(.gov-nav a[href="estate.html"]) .gov-card h3 { color: #5a4526; border-bottom-color: #8a6a3a; }

/* ---- 恐怖逃生氛围层 ---- */
.horror-vig { position: fixed; inset: 0; z-index: 995; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(26,5,5,.30) 100%); }
.horror-note { position: fixed; left: 14px; bottom: 46px; z-index: 994; font-size: 11px; color: #6a4040; letter-spacing: 1px; pointer-events: none; opacity: 0; transition: opacity 1.4s; }
.countdown { position: fixed; right: 14px; bottom: 46px; z-index: 994; font-size: 11px; color: #7a4a4a; letter-spacing: 1px; pointer-events: none; font-family: var(--mono); }
@keyframes txtjitter { 0% { transform: translate(0); } 25% { transform: translate(1px, -1px); } 50% { transform: translate(-1px, 1px); } 75% { transform: translate(1px, 1px); } 100% { transform: translate(0); } }
.jitter { animation: txtjitter .18s linear 2; }
.shadow-blink { position: fixed; width: 130px; height: 230px; z-index: 996; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,.78), transparent 70%); }

/* ---- 12+ 分级警告屏(恐怖营销体验入口) ---- */
.rating-screen { position: fixed; inset: 0; z-index: 2000; background: rgba(4, 5, 8, .96); display: flex; align-items: center; justify-content: center; }
.rs-box { max-width: 460px; margin: 0 18px; background: #10141c; border: 1px solid #3a2a2a; border-radius: 6px; padding: 34px 30px; text-align: center; position: relative; overflow: hidden; }
.rs-box::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(90, 10, 10, .35)); pointer-events: none; }
.rs-badge { width: 88px; height: 88px; margin: 0 auto 16px; border: 3px solid #c0392b; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; color: #c0392b; line-height: 1; }
.rs-badge span { font-size: 16px; align-self: flex-start; margin-top: 12px; }
.rs-title { font-size: 19px; letter-spacing: 4px; color: #e8e0d0; font-family: var(--serif); }
.rs-line { font-size: 13px; color: #9a8f80; line-height: 2; margin: 14px 0 22px; }
.rs-box .btn2 { font-size: 14px; padding: 10px 30px; }

/* ---- 视觉恐怖升级:整体微妙失稳 + 噪点 ---- */
body::before { content: ""; position: fixed; inset: 0; z-index: 997; pointer-events: none; opacity: .05;
  background: repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .4) 0 1px, transparent 1px 60px), repeating-linear-gradient(0deg, rgba(0,0,0,.5) 0 1px, transparent 1px 4px); }
@keyframes pgshake { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-2px, 1px); } 40% { transform: translate(2px, -1px); } 60% { transform: translate(-1px, -1px); } 80% { transform: translate(1px, 1px); } }
.shake { animation: pgshake .3s linear; }
@keyframes flicker { 0%, 100% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: .4; } 94% { opacity: 1; } 97% { opacity: .7; } 98% { opacity: 1; } }
.flicker { animation: flicker 3.7s infinite; }

/* ============ 2000s 年代感覆盖(压掉"AI 味") ============
   老中文站特征: 宋体正文 / 黑体标题 / 默认蓝紫链接 /
   灰色凸起按钮 / 细线表格蓝表头 / 无圆角无阴影 */
body { font-family: "SimSun", "PMingLiU", "Songti SC", "SimHei", serif; }
/* 老站链接:未访问蓝 / 已访问紫(考古浏览感) */
body.light-shell .gov-main a[href], body.light-shell .paper a[href] { color: #0000cc; text-decoration: underline; }
body.light-shell .gov-main a[href]:visited, body.light-shell .paper a[href]:visited { color: #800080; }
/* 老式卡片:无圆角无阴影;标题 = 灰色蓝字标题条(像老表格的 th 带) */
body.light-shell .gov-card { border-radius: 0; box-shadow: none; border-color: #a8b6c4; }
body.light-shell .gov-card h3 { background: #dce8f4; color: #10345f; border: none; border-bottom: 1px solid #8aa3c0;
  margin: -14px -16px 10px; padding: 6px 12px; font-size: 14px; font-weight: 700; font-family: "SimHei", "SimSun", sans-serif; letter-spacing: 1px; }
body.light-shell .gov-card h3:not(:first-child) { margin-top: 0; }
/* 老式表格:表头蓝底白字or深蓝字 */
body.light-shell .gov-table th { background: #c9daf0; color: #123; border-color: #7f9db9; font-family: "SimHei", sans-serif; }
body.light-shell .gov-table td { border-color: #b9c6d4; }
/* 老式按钮:灰底凸起(2px 明暗描边),无圆角 */
body.light-shell .btn2 { background: #efefef; color: #000; border: 1px solid #999; border-top-color: #fff; border-left-color: #fff; border-radius: 0; box-shadow: none; font-weight: 400; }
body.light-shell .btn2:hover { background: #dfdfdf; }
body.light-shell .btn2.ghost { background: #f4f4f4; color: #000; border: 1px solid #999; border-top-color: #fff; border-left-color: #fff; }
/* 导航:白底黑字居中,悬停变蓝下划线(老站文字导航) */
body.light-shell .gov-nav a { color: #000; }
body.light-shell .gov-nav a:hover, body.light-shell .gov-nav a.on { background: transparent; color: #0000cc; text-decoration: underline; }
body.light-shell .gov-nav { border-bottom-color: #666; }
/* 老站公告:黄底黑字无圆角 */
body.light-shell .gov-notice { border-radius: 0; box-shadow: none; }
/* 面包屑老灰 */
body.light-shell .breadcrumb { color: #555; }
/* 细明体正文行距收紧(老站密集排版) */
body.light-shell .gov-main p, body.light-shell .gov-card td { font-family: "SimSun", serif; }
/* 访客计数器(老式数字方格) */
.vis-counter { display: inline-block; background: #fff; border: 1px solid #999; padding: 0 3px; letter-spacing: 2px; font-family: "Courier New", monospace; color: #000; }

/* ============ 老式政府网站 UI(2000s) + 取消一切震动 ============ */
/* 1) 停掉所有晃动/抖动/闪帧(用户要求:不要震动) */
.jitter, .shake, .flicker { animation: none !important; transform: none !important; }
#glitch2, #glitch2.go { animation: none !important; opacity: 0 !important; }
/* 2) 老式站头:蓝渐变横幅 + 红底边 + 顶部小链接 + 右侧日期 */
.gov-banner { background: linear-gradient(180deg, #21589e 0%, #163a6a 100%); border-bottom: 3px solid #c0392b; padding: 10px 0 12px; }
.gov-banner::before { content: "加入收藏 | 联系我们 | 站点地图 | English"; display: block; max-width: 1080px; margin: 0 auto 6px; padding: 0 14px; font-size: 11px; color: #cfe0f2; }
.gov-name-pdg { color: #fff; font-size: 23px; letter-spacing: 2px; text-shadow: 1px 1px 0 #0b2547; }
.gov-name-pdg .gurl { color: #cfe0f2; }
.gov-spirit .gs-txt { color: #e8f0fa; }
.gov-spirit .gs-txt small { color: #b9cee8; }
.old-date { font-size: 12px; color: #dce8f5; margin-left: auto; font-family: "SimSun", serif; }
/* 3) 老式蓝条菜单(白字,悬停变红块) */
.gov-nav { background: linear-gradient(180deg, #2e6bb5, #1f4e8c); border-bottom: none; }
.gov-nav .gn-inner { justify-content: flex-start; }
.gov-nav a { color: #fff; letter-spacing: 1px; }
.gov-nav a:hover, .gov-nav a.on { background: #c0392b; color: #fff; text-decoration: none; }
body:has(.gov-nav a[href="asylum.html"]):not(:has(a.on[href="asylum-lab.html"])) .gov-nav { background: linear-gradient(180deg, #3f7a4a, #2c5a36); }
body:has(.gov-nav a[href="estate.html"]) .gov-nav { background: linear-gradient(180deg, #9a7a3a, #7a5a26); }
/* 4) 老站内页密度:12–13px 宋体、更紧的留白 */
body { font-size: 13px; line-height: 1.75; }
.gov-card { padding: 12px 14px; }
.gov-card h3 { font-size: 13px; }
.gov-main { padding-top: 8px; }
.breadcrumb { font-size: 12px; }
/* 5) 蓝条菜单(修正:覆盖此前的白底黑字导航,让菜单回到老政府站彩色条) */
body.light-shell .gov-nav { background: linear-gradient(180deg, #2e6bb5, #1f4e8c); border-bottom: none; }
body.light-shell .gov-nav .gn-inner { justify-content: flex-start; }
body.light-shell .gov-nav a { color: #fff; }
body.light-shell .gov-nav a:hover, body.light-shell .gov-nav a.on { background: #c0392b; color: #fff; text-decoration: none; }

/* ============ 统一老式蓝横幅 + 蓝条菜单(政府站标杆外观)
   站点差异改由"内容区 h3 标题色"体现;地下实验室(lab)排除,保持暗色逃生氛围 ============ */
body:not(:has(a.on[href="asylum-lab.html"])) .gov-banner { background: linear-gradient(180deg, #21589e 0%, #163a6a 100%) !important; border-bottom: 3px solid #c0392b !important; }
body:not(:has(a.on[href="asylum-lab.html"])) .gov-name-pdg { color: #fff !important; text-shadow: 1px 1px 0 #0b2547 !important; }
body:not(:has(a.on[href="asylum-lab.html"])) .gov-name-pdg .gurl { color: #cfe0f2 !important; }
body:not(:has(a.on[href="asylum-lab.html"])) .gov-spirit .gs-txt { color: #e8f0fa !important; }
body:not(:has(a.on[href="asylum-lab.html"])) .gov-spirit .gs-txt small { color: #b9cee8 !important; }
body:not(:has(a.on[href="asylum-lab.html"])) .gov-nav { background: linear-gradient(180deg, #2e6bb5, #1f4e8c) !important; border-bottom: none !important; }
body:not(:has(a.on[href="asylum-lab.html"])) .gov-nav a { color: #fff !important; }
body:not(:has(a.on[href="asylum-lab.html"])) .gov-nav a:hover,
body:not(:has(a.on[href="asylum-lab.html"])) .gov-nav a.on { background: #c0392b !important; color: #fff !important; text-decoration: none !important; }
body:not(:has(a.on[href="asylum-lab.html"])) .gov-tools { background: #eef1f6 !important; border-bottom-color: #c8d2e0 !important; }
body:not(:has(a.on[href="asylum-lab.html"])) .gov-tools .gov-link { color: #12386a !important; }
body.light-shell:not(:has(a.on[href="asylum-lab.html"])) .gov-card h3 { background: #dce8f4 !important; color: #10345f !important; }
body:has(.gov-nav a[href="asylum.html"]):not(:has(a.on[href="asylum-lab.html"])) .gov-card h3 { background: #e2f0e4 !important; color: #1e4a28 !important; }
body:has(.gov-nav a[href="estate.html"]) .gov-card h3 { background: #f6eeda !important; color: #5a4526 !important; }

/* ============================================================
   冷夜档案统一覆盖(对标《槐灯照骨》· 全站唯一视觉体系)
   墨黑 #0d0f0c × 骨白 #d8d2c0 × 琥珀 #d9a441 × 朱砂 #a83b2a
   此块位于文件末尾,以同特异性+顺序压掉此前一切浅色/蓝色样式
   ============================================================ */
body, body.light-shell { background: #0d0f0c !important; color: #d8d2c0 !important; }
/* 站头 → 档案编号条式(无横幅色块) */
.gov-banner, body.light-shell .gov-banner, body:not(:has(a.on[href="asylum-lab.html"])) .gov-banner { background: transparent !important; border: none !important; border-top: 1px solid #2c2e28 !important; border-bottom: 1px solid #2c2e28 !important; padding: 8px 0 9px !important; }
.gov-banner::before { content: "LOCAL ARCHIVE · 1999 — 2027" !important; color: #55584e !important; letter-spacing: 4px; font-family: Georgia, serif; font-size: 10px; }
.gov-name-pdg, body:not(:has(a.on[href="asylum-lab.html"])) .gov-name-pdg { color: #e6dec9 !important; text-shadow: none !important; font-weight: 400 !important; }
.gov-name-pdg .gurl, body:not(:has(a.on[href="asylum-lab.html"])) .gov-name-pdg .gurl { color: #6e7266 !important; }
.gov-spirit .gs-txt, body:not(:has(a.on[href="asylum-lab.html"])) .gov-spirit .gs-txt { color: #9a9585 !important; }
.gov-spirit .gs-txt b { color: #d9a441 !important; }
.gov-spirit .gs-txt small { color: #6e7266 !important; }
.old-date { color: #6e7266 !important; }
/* 工具栏/搜索 → 暗色 */
.gov-tools, body.light-shell .gov-tools, body:not(:has(a.on[href="asylum-lab.html"])) .gov-tools { background: transparent !important; border-bottom: 1px solid #23251f !important; }
.gov-search { background: #111310 !important; border-color: #33352e !important; }
.gov-search input { color: #d8d2c0 !important; }
.gov-search span { color: #6e7266 !important; }
.gov-tools .gov-link { color: #9a9585 !important; }
.gov-tools .gov-link:hover { background: #161812 !important; color: #d9a441 !important; }
/* 导航 → 细线文字链(琥珀悬停) */
.gov-nav, body.light-shell .gov-nav, body:not(:has(a.on[href="asylum-lab.html"])) .gov-nav { background: transparent !important; border-bottom: 1px solid #2c2e28 !important; }
.gov-nav a, body.light-shell .gov-nav a, body:not(:has(a.on[href="asylum-lab.html"])) .gov-nav a { color: #9a9585 !important; }
.gov-nav a:hover, .gov-nav a.on, body.light-shell .gov-nav a:hover, body.light-shell .gov-nav a.on,
body:not(:has(a.on[href="asylum-lab.html"])) .gov-nav a:hover, body:not(:has(a.on[href="asylum-lab.html"])) .gov-nav a.on { background: transparent !important; color: #d9a441 !important; text-decoration: none !important; }
/* 面包屑/主区 */
.breadcrumb { color: #6e7266 !important; }
.breadcrumb b { color: #d8d2c0 !important; }
.gov-main { color: #d8d2c0 !important; }
/* 卡片 → 暗色档案纸 */
.gov-card, body.light-shell .gov-card, body:not(:has(a.on[href="asylum-lab.html"])) .gov-card { background: #111310 !important; border: 1px solid #2c2e28 !important; color: #d8d2c0 !important; box-shadow: none !important; border-radius: 0 !important; }
.gov-card h3, body.light-shell .gov-card h3, body:not(:has(a.on[href="asylum-lab.html"])) .gov-card h3, body.light-shell:not(:has(a.on[href="asylum-lab.html"])) .gov-card h3, body:has(.gov-nav a[href="asylum.html"]) .gov-card h3, body:has(.gov-nav a[href="estate.html"]) .gov-card h3 { background: transparent !important; color: #d9a441 !important; border: none !important; border-bottom: 1px solid #2c2e28 !important; margin: -14px -16px 12px !important; padding: 8px 2px !important; }
.gov-card p, .gov-card div, .gov-card li { color: #b5ae9c !important; }
.gov-card b { color: #d8d2c0 !important; }
/* 表格 → 暗底骨白 */
.gov-table, body.light-shell .gov-table, body:not(:has(a.on[href="asylum-lab.html"])) .gov-table { background: transparent !important; }
.gov-table th, body.light-shell .gov-table th, body:not(:has(a.on[href="asylum-lab.html"])) .gov-table th { background: #161812 !important; color: #d9a441 !important; border-color: #2c2e28 !important; }
.gov-table td, body.light-shell .gov-table td, body:not(:has(a.on[href="asylum-lab.html"])) .gov-table td { background: transparent !important; color: #c5bfae !important; border-color: #23251f !important; }
.gov-table .warn, .gov-table td.warn { color: #d06a55 !important; }
/* 公告/红头 → 暗色 */
.gov-notice, body.light-shell .gov-notice { background: #15130c !important; border-color: #4a4030 !important; color: #c9b8a8 !important; }
.gov-notice b { color: #d9a441 !important; }
.redhead { background: #12140f !important; border-color: #2c2e28 !important; color: #d8d2c0 !important; }
.redhead .rh-top { color: #a83b2a !important; }
.redhead .rh-no { color: #6e7266 !important; }
.redhead p { color: #c5bfae !important; }
/* 页脚 */
.gov-foot, body.light-shell .gov-foot { background: transparent !important; border-top: 1px solid #2c2e28 !important; color: #6e7266 !important; }
.gov-foot .old-meta { color: #55584e !important; }
.vis-counter { background: #111310 !important; border-color: #33352e !important; color: #d9a441 !important; }
/* 按钮 → 描边琥珀 */
.btn2, body.light-shell .btn2 { background: transparent !important; border: 1px solid #6e5a34 !important; color: #d9a441 !important; border-radius: 0 !important; box-shadow: none !important; }
.btn2:hover { border-color: #d9a441 !important; color: #e6c87a !important; box-shadow: 0 0 26px rgba(217,164,65,.14) !important; }
.btn2.ghost { border-color: #4a4d44 !important; color: #9a9585 !important; }
.inv-btn { background: #111310 !important; border: 1px solid #4a4030 !important; color: #c9b8a8 !important; border-radius: 0 !important; }
/* 链接 */
.gov-main a, .paper a, .breadcrumb a { color: #d9a441 !important; text-decoration: none; }
.gov-main a:hover, .paper a:hover { color: #e6c87a !important; text-decoration: underline; }
/* 跑马灯 → 暗琥珀细条 */
.sys-marquee { background: #131108 !important; border-bottom-color: #3a2f18 !important; color: #9a8555 !important; }
.sys-marquee b { color: #d9a441 !important; }
/* 各站点 body 背景统一(除 lab 暗绿) */
body.site-gov, body.site-cctv, body.site-radio2, body.site-paper2, body.site-bbs2, body.site-book, body.site-tel, body.light-shell { background: #0d0f0c !important; }
body.site-bbs2 .bbs2-head { background: #161812 !important; color: #d9a441 !important; }
body.site-bbs2 .bbs2-item.anom { background: #171310 !important; border-left-color: #a83b2a !important; }
/* hint/hint-box 暗色 */
.hint-box, .gov-card .hint-box { background: rgba(217,164,65,.06) !important; border-color: #6e5a34 !important; color: #d9a441 !important; }
.solved-box { background: rgba(217,164,65,.08) !important; border-color: #6e5a34 !important; color: #d9a441 !important; }
.gov-notice b, .gov-notice strong { color: #d9a441 !important; }
#pawn-paper.inverted { filter: invert(1) hue-rotate(180deg); }
