/* styles.css —— 青鸟外壳、知了、候鸟、街坊
 * 容器恒为现代；年代感只住页面层与软件行为，不随「恐怖程度」调色。
 */

:root {
  --chrome: #edeff2;
  --chrome-deep: #e2e5ea;
  --line: #cdd2d9;
  --ink: #1d2024;
  --ink-2: #5d636b;
  --ink-3: #8b9199;
  --blue: #1b6ef3;
  --zl: #2f6fd0;
  --zl-seen: #74519f;
  --hn: #24539b;
  --pre: #0b39c4;
  --pre-seen: #551a8b;
  --jf-paper: #f4e9c8;
  --jf-gold: #c9a227;
  --ui: "Segoe UI", system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --song: "SimSun", "宋体", "Microsoft YaHei", serif;
  --kai: "KaiTi", "STKaiti", "楷体", serif;
  --mono: Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--ui);
  color: var(--ink);
  background: #fff;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; }
a { color: inherit; }

/* ================= 外壳 ================= */
.shell { height: 100%; display: flex; flex-direction: column; }

.tabbar {
  flex: 0 0 auto; display: flex; align-items: flex-end; gap: 3px;
  height: 42px; padding: 8px 10px 0;
  background: var(--chrome);
  user-select: none;
}
.tabs { display: flex; align-items: flex-end; gap: 3px; flex: 1 1 auto; overflow: hidden; }
.tab {
  display: flex; align-items: center; gap: 8px;
  height: 34px; min-width: 130px; max-width: 250px; flex: 0 1 190px;
  padding: 0 6px 0 12px;
  border-radius: 10px 10px 0 0;
  color: #4d535b; font-size: 12px; cursor: pointer;
  position: relative;
}
.tab:hover { background: rgba(255, 255, 255, .55); }
.tab.on { background: #fff; color: var(--ink); box-shadow: 0 -1px 3px rgba(16, 24, 40, .07); }
.tab-dot { width: 9px; height: 9px; border-radius: 3px; background: #aeb4bd; flex: 0 0 auto; }
.tab[data-site="zhiliao"] .tab-dot { background: #3f8f4f; border-radius: 50%; }
.tab[data-site="houniao"] .tab-dot { background: #4a7bb7; }
.tab[data-site="jiefang"] .tab-dot { background: #c9a227; }
.tab[data-site="qingniao"] .tab-dot { background: #8d939c; border-radius: 50%; }
.tab-name { flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tab-x {
  width: 18px; height: 18px; flex: 0 0 auto; border: 0; border-radius: 50%;
  background: transparent; color: #7b818a; cursor: pointer; line-height: 17px; font-size: 12px;
}
.tab-x:hover { background: rgba(16, 24, 40, .09); }
.tab-new {
  width: 30px; height: 30px; margin: 0 0 3px 3px; flex: 0 0 auto;
  border: 0; border-radius: 50%; background: transparent; color: #4d535b;
  font-size: 18px; cursor: pointer;
}
.tab-new:hover { background: rgba(255, 255, 255, .6); }

.toolbar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 3px;
  padding: 2px 10px 8px; background: var(--chrome);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 20;
}
.tbtn {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; color: #3f454d; font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.tbtn:hover { background: rgba(16, 24, 40, .07); }
.tbtn[disabled] { color: #b6bbc3; background: transparent; cursor: default; }
.tbtn-close { margin-left: 2px; }

.omnibox {
  flex: 1 1 auto; display: flex; align-items: center; gap: 7px;
  height: 32px; margin: 0 6px; padding: 0 12px;
  background: #fff; border-radius: 16px;
  box-shadow: inset 0 0 0 1px #d8dce2;
}
.omnibox:focus-within { box-shadow: inset 0 0 0 1px var(--blue), 0 1px 5px rgba(27, 110, 243, .22); }
.omnibox-lock { font-size: 11px; color: #7d838c; }
#urlInput {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 13px; color: #33383f;
}
#urlInput.bad { color: #c0392b; }

.menu {
  position: absolute; right: 10px; top: 82px; z-index: 60;
  width: 246px; padding: 6px; background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 34px rgba(16, 24, 40, .22), 0 0 0 1px rgba(16, 24, 40, .06);
}
.menu[hidden] { display: none; }
.menu button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 7px; background: transparent;
  font-size: 12.5px; color: #33383f; text-align: left; cursor: pointer;
}
.menu button:hover { background: #f1f3f6; }
.menu button span { width: 16px; color: #8b9199; text-align: center; }
.menu button em { font-style: normal; }
.menu-sep { height: 1px; margin: 5px 8px; background: #eceef1; }

.viewport {
  flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
  position: relative; outline: 0; background: #fff;
}
.viewport::-webkit-scrollbar { width: 12px; }
.viewport::-webkit-scrollbar-thumb { background: #c6cbd2; border: 3px solid #fff; border-radius: 6px; }
.loadbar {
  position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: var(--blue); opacity: 0; z-index: 30;
  transition: width .25s ease, opacity .18s ease;
}
.loadbar.on { opacity: 1; }
.page-enter { min-height: 100%; display: flex; flex-direction: column; animation: enter .2s ease-out both; }
.page-enter > * { flex: 1 0 auto; }
@keyframes enter { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* 首次启动的空白新标签页 */
.boot-blank {
  min-height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  background: #fbfbfc; color: #9aa0a6;
}
.bb-mark { font-family: var(--song); font-size: 40px; color: #c3c8cf; letter-spacing: 6px; }
.bb-ver { font-family: var(--mono); font-size: 11.5px; color: #c3c8cf; }
.boot-blank p { margin: 10px 0 0; font-size: 12.5px; color: #b3b8bf; }

/* ================= 搜索框（知了） ================= */
.sbox {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 4px 0 16px;
  background: #fff; border-radius: 21px;
  box-shadow: 0 1px 5px rgba(32, 33, 36, .2), inset 0 0 0 1px #e7eaee;
}
.sbox:focus-within { box-shadow: 0 2px 10px rgba(32, 33, 36, .22), inset 0 0 0 1px #d5dae1; }
.sbox-big { height: 48px; border-radius: 24px; }
.sbox-glass { font-size: 17px; color: #9aa0a6; }
.search-input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 15px; color: var(--ink); font-family: var(--ui);
}
.sbox-go {
  flex: 0 0 auto; height: 34px; padding: 0 16px; border: 0; border-radius: 17px;
  background: var(--zl); color: #fff; font-size: 13px; cursor: pointer;
}
.sbox-go:hover { background: #2a61b8; }
.sbox-lucky {
  flex: 0 0 auto; height: 34px; margin-right: 2px; padding: 0 12px;
  border: 0; border-radius: 17px; background: #f1f3f4; color: #3c4043;
  font-size: 13px; cursor: pointer;
}
.sbox-lucky:hover { background: #e5e8eb; }

.sug {
  position: absolute; z-index: 40; top: 52px; left: 0; right: 0;
  background: #fff; border-radius: 10px; padding: 5px 0;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .18), 0 0 0 1px rgba(16, 24, 40, .05);
}
.sug[hidden] { display: none; }
.sug-i {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 13.5px; color: #202124; cursor: pointer;
}
.sug-i span { color: #b0b4ba; font-size: 12px; }
.sug-i em { font-style: normal; color: var(--zl); }
.sug-i:hover, .sug-i.sel { background: #f1f3f4; }

/* ================= 新标签页 ================= */
.start { max-width: 680px; margin: 0 auto; padding: 110px 24px 40px; }
.start-search { margin-bottom: 30px; }
.start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.start-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 16px; border-radius: 10px; background: #f7f8fa;
  font-size: 13px; color: #33383f; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.start-tile:hover { background: #f1f3f6; border-color: #e4e8ec; }
.start-tile i { width: 9px; height: 9px; border-radius: 50%; }
.start-foot { margin-top: 46px; text-align: center; font-size: 11.5px; color: #9aa0a6; }

/* ================= 关于 ================= */
.about { max-width: 600px; margin: 0 auto; padding: 64px 24px; }
.about-mark { display: inline-block; font-size: 30px; letter-spacing: 6px; font-weight: 700; color: #2b3038; }
.about-ver { margin: 8px 0 4px; font-family: var(--mono); font-size: 12px; color: #8b9199; }
.about-user { margin-bottom: 26px; font-size: 12.5px; color: #5d636b; }
.about p { font-size: 13.5px; line-height: 1.95; color: #3c4043; margin: 0 0 11px; }
.about-assert {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 8px 12px;
  background: #f6f8f6; border: 1px solid #e4eae4; border-radius: 6px;
  font-family: var(--mono); font-size: 11.5px; color: #5b6b5e;
}
.about-assert::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4f9a5d; }

/* ================= 知了快照 ================= */
.snap { margin-top: 6px; }
.snap-bar {
  display: inline-block; margin-bottom: 12px; padding: 2px 8px;
  background: #f3f4f6; border: 1px solid #e4e7ea; border-radius: 4px;
  font-family: var(--mono); font-size: 10.5px; color: #7d838c;
}
.snap h3 { margin: 0 0 6px; font-size: 16px; font-weight: 500; color: #2b3038; }
.snap-url { margin-bottom: 12px; font-family: var(--mono); font-size: 11px; color: #8b9199; word-break: break-all; }
.snap p { margin: 0 0 10px; font-size: 13px; line-height: 1.95; color: #3c4043; }
.snap-note { color: #9aa0a6 !important; font-size: 11.5px !important; }

/* ================= 知了首页 ================= */
.zl-home { max-width: 720px; margin: 0 auto; padding: 86px 24px 0; text-align: center; }
.zl-mark { display: flex; justify-content: center; }
.zl-slogan { margin: 4px 0 28px; font-size: 13.5px; color: #5d636b; letter-spacing: 1px; }
.zl-doodle { margin-top: 24px; font-size: 12px; color: #7d838c; }
.zl-doodle a { color: var(--zl); text-decoration: none; cursor: pointer; margin-left: 4px; }
.zl-grey { margin-top: 12px; font-size: 12px; color: #a9aeb5; letter-spacing: .4px; }
.zl-foot {
  margin: 58px auto 0; padding: 14px 0 26px; max-width: 780px;
  border-top: 1px solid #eceef1; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  font-size: 12px; color: #5d636b;
}
.zl-foot a { color: var(--zl); text-decoration: none; cursor: pointer; }
.zl-icp { color: #9aa0a6; }
.zl-word { font-size: 23px; font-weight: 700; color: #3f8f4f; letter-spacing: 1px; text-decoration: none; cursor: pointer; flex: 0 0 auto; }

/* ================= Doodle ================= */
.doodle { max-width: 700px; margin: 0 auto; padding: 26px 24px 60px; }
.doodle-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #eceef1; font-size: 12.5px; color: #5d636b; }
.doodle h1 { font-size: 19px; font-weight: 500; margin: 22px 0 16px; }
.doodle-card { padding: 22px; border: 1px solid #e4e8ec; border-radius: 12px; background: #fbfcfd; }
.doodle-art { display: flex; justify-content: center; padding: 12px; background: #fff; border-radius: 8px; margin-bottom: 14px; }
.doodle-card h2 { font-size: 15px; margin: 0 0 8px; }
.doodle-card p { font-size: 13px; line-height: 1.8; color: #4d5156; margin: 0 0 8px; }
.doodle-note { color: #8b9199 !important; font-size: 12px !important; }

/* ================= 结果页 ================= */
.serp { max-width: 740px; margin: 0 auto; padding: 24px 24px 60px; }
.serp-top { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.serp-top .sbox { flex: 1 1 auto; height: 40px; border-radius: 20px; }
.serp-stat { font-size: 12px; color: #80868b; margin: 0 0 18px 2px; }
.serp-list { min-height: 200px; }
.res { position: relative; margin-bottom: 26px; }
.res h3 { margin: 0 0 3px; font-size: 17px; font-weight: 400; line-height: 1.45; }
.res-t { color: var(--zl); text-decoration: none; cursor: pointer; }
.res-t:hover { text-decoration: underline; }
.res-t.seen { color: var(--zl-seen); }
.res-url { margin-bottom: 5px; font-size: 12px; color: #5d636b; word-break: break-all; }
.res-url em { font-style: normal; color: #8b9199; }
.res-snap a { color: #5d636b; cursor: pointer; }
.res-s { margin: 0; font-size: 13.5px; line-height: 1.7; color: #4d5156; }
.ad-mark {
  position: absolute; right: 0; top: 3px;
  font-size: 10.5px; color: #8b9199; border: 1px solid #dcdfe3; border-radius: 3px; padding: 0 4px;
}
.rel { margin: 28px 0 18px; font-size: 13px; color: #5d636b; }
.rel span { margin-right: 10px; }
.rel a {
  display: inline-block; margin: 0 8px 8px 0; padding: 4px 12px;
  background: #f1f3f4; border-radius: 14px; font-size: 12.5px; color: #202124;
  text-decoration: none; cursor: pointer;
}
.rel a:hover { background: #e6e9ec; }
.pager { display: flex; align-items: center; gap: 12px; padding: 8px 0 22px; font-size: 13px; color: #5d636b; }
.pager a { color: var(--zl); text-decoration: none; cursor: pointer; }
.pager b { color: #202124; }
.pager-end { color: #9aa0a6; }
.serp-foot { border-top: 1px solid #eceef1; padding-top: 12px; font-size: 12px; color: #9aa0a6; }

/* ================= 知了知道 ================= */
.zd { max-width: 820px; margin: 0 auto; padding: 22px 24px 60px; }
.zd-top { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #eceef1; font-size: 12.5px; color: #5d636b; }
.zd h1 { font-size: 21px; font-weight: 500; margin: 20px 0 14px; }
.zd-cols { display: flex; gap: 28px; align-items: flex-start; }
.zd-main { flex: 1 1 auto; }
.zd-main p { font-size: 14px; line-height: 1.9; color: #333; margin: 0 0 12px; }
.zd-side { flex: 0 0 200px; }
.zd-box { border: 1px solid #eceef1; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.zd-box h4 { margin: 0; font-size: 12px; color: #5d636b; font-weight: 600; }
.zd-box ul { margin: 8px 0 0; padding-left: 16px; font-size: 12.5px; line-height: 1.8; }
.zd-box a { color: var(--zl); text-decoration: none; cursor: pointer; }
.zd-ad { position: relative; padding: 14px 12px; border: 1px dashed #dcdfe3; border-radius: 8px; font-size: 12.5px; color: #5d636b; }
.zd-foot { margin-top: 22px; padding-top: 12px; border-top: 1px solid #eceef1; font-size: 12px; color: #9aa0a6; }

/* ================= 浏览器错误页 ================= */
.err { max-width: 460px; margin: 0 auto; padding: 96px 24px; font-size: 13px; color: #5d636b; }
.err-face { font-size: 34px; color: #b6bbc3; margin-bottom: 8px; }
.err h1 { font-size: 20px; font-weight: 400; color: var(--ink); margin: 0 0 10px; }
.err p { line-height: 1.9; margin: 0 0 8px; }
.err-code { font-family: var(--mono); font-size: 12px; color: #8b9199; }
.err-btn { margin-top: 14px; height: 30px; padding: 0 16px; border: 1px solid #dcdfe3; border-radius: 4px; background: #f7f8fa; color: #3c4043; cursor: pointer; font-size: 12.5px; }

.nf { min-height: 100%; padding: 112px 32px 80px; font-family: var(--song); }
.nf > * { max-width: 540px; margin-left: auto; margin-right: auto; }
.nf-brand { font-size: 15px; margin-bottom: 14px; }
.nf-code { font-family: var(--ui); font-size: 52px; font-weight: 700; color: #c9ced4; line-height: 1; margin-bottom: 14px; letter-spacing: 2px; }
.nf-msg { font-size: 13.5px; line-height: 1.9; margin: 0 auto 8px; color: #333; }
.nf-url { font-family: var(--mono); font-size: 11.5px; color: #8b9199; word-break: break-all; }
.nf-back { display: block; margin: 18px auto 0; font-size: 12.5px; color: var(--pre); text-decoration: underline; cursor: pointer; }
.nf-jiefang {
  background: #f7f2e2;
  background-image: repeating-linear-gradient(45deg, rgba(201, 162, 39, .05) 0 2px, transparent 2px 7px);
}
.nf-jiefang > * { max-width: 560px; padding-left: 4px; padding-right: 4px; }
.nf-jiefang .nf-code { color: #d8cba6; }

/* ================= 候鸟社区 ================= */
.hn {
  min-height: 100%; padding: 0 0 40px;
  background: #e9eff5;
  font-family: var(--song); font-size: 13px; color: #222;
}
.hn a { color: var(--pre); text-decoration: underline; cursor: pointer; }
.hn a:hover { color: #c33; }
.hn-top {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 18px; background: linear-gradient(#f7fbff, #dbe7f2);
  border-bottom: 2px solid #b9cde0;
}
.hn-logo { font-family: "SimHei", "Microsoft YaHei", sans-serif; font-size: 20px; color: var(--hn); letter-spacing: 2px; }
.hn-tip { font-size: 11.5px; color: #6b7f96; }
.hn-arch { margin-left: auto; font-size: 11px; color: #8a6fae; }
.hn-crumb { width: 760px; margin: 10px auto 0; font-size: 11.5px; color: #6b7f96; }
.hn-title { width: 760px; margin: 8px auto 4px; font-size: 16px; color: #1c3f6e; }
.hn-info { width: 760px; margin: 0 auto 10px; font-size: 11px; color: #7b8ba0; }
.hn-table { width: 760px; margin: 0 auto; border-collapse: collapse; background: #fff; border: 1px solid #b9cde0; }
.hn-row td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid #dbe4ee; }
.hn-who { width: 150px; text-align: center; background: #f7fafd; border-right: 1px solid #e2ebf4; }
.hn-ava {
  width: 48px; height: 48px; margin: 0 auto 6px; border-radius: 3px;
  color: #fff; font-family: "SimHei", sans-serif; font-size: 22px; line-height: 48px;
}
.hn-ava.big { width: 78px; height: 78px; font-size: 34px; line-height: 78px; }
.hn-name { font-size: 12.5px; color: var(--hn); font-weight: 700; }
.hn-tag { display: inline-block; margin-top: 3px; padding: 0 5px; border: 1px solid #c3d6ea; background: #e8f0fa; color: var(--hn); font-size: 10.5px; }
.hn-lv { margin-top: 4px; font-size: 10.5px; color: #8a99ab; }
.hn-meta { margin-bottom: 6px; font-size: 10.5px; color: #8a99ab; }
.hn-meta b { color: var(--hn); }
.hn-body { font-size: 13.5px; line-height: 1.9; color: #1f2c3a; white-space: pre-wrap; }
.hn-sign { margin-top: 12px; padding-top: 8px; border-top: 1px dashed #dbe4ee; font-size: 11.5px; line-height: 1.8; color: #7b8ba0; }
.hn-sign-url { color: var(--hn); word-break: break-all; }
.hn-bar { width: 760px; margin: 12px auto 0; display: flex; align-items: center; gap: 12px; font-size: 11px; color: #8a99ab; }
.hn-btn {
  height: 28px; padding: 0 16px; border: 1px outset #cfd8e3; background: #f2f7fc;
  font-family: var(--song); font-size: 12.5px; color: #1c3f6e; cursor: pointer;
}
.hn-foot { width: 760px; margin: 18px auto 0; font-size: 10.5px; color: #8a99ab; }
.hn-user { width: 760px; margin: 12px auto; border-collapse: collapse; background: #fff; border: 1px solid #b9cde0; }
.hn-user td { padding: 14px; vertical-align: top; }
.hn-user-side { width: 170px; text-align: center; background: #f7fafd; border-right: 1px solid #e2ebf4; }
.hn-user-main p { margin: 0 0 6px; font-size: 12px; color: #43566b; }
.hn-user-main h3 { margin: 14px 0 6px; font-size: 12.5px; color: #1c3f6e; }
.hn-list { margin: 0 0 10px; padding-left: 18px; }
.hn-list li { margin-bottom: 5px; font-size: 12.5px; line-height: 1.8; }
.hn-list em { font-style: normal; color: #8a99ab; font-size: 11px; }

/* ================= 街坊（银杏巷） ================= */
.jf {
  min-height: 100%; padding: 20px 0 44px;
  background: var(--jf-paper);
  background-image: repeating-linear-gradient(45deg, rgba(201, 162, 39, .06) 0 2px, transparent 2px 7px);
  font-family: var(--song); font-size: 13px; color: #222;
}
.jf a { color: var(--pre); text-decoration: underline; cursor: pointer; }
.jf a:hover { color: #c33; }
.jf-frame {
  width: 760px; margin: 0 auto; padding: 16px 18px 12px;
  background: #fffdf4; border: 3px double var(--jf-gold);
  box-shadow: 0 0 0 4px #f9f2da, 0 3px 0 #d9c07a;
}
.jf-mars {
  padding: 2px 0 10px; text-align: center;
  font-family: "Microsoft YaHei", sans-serif; font-size: 21px; letter-spacing: 1px; color: #9b5de5;
  text-shadow: 0 0 7px rgba(155, 93, 229, .5), 0 0 1px #fff;
}
.jf-mars-plain { color: #8a6f21; text-shadow: none; font-size: 19px; }
.jf-marquee {
  overflow: hidden; white-space: nowrap;
  padding: 5px 0; margin-bottom: 12px;
  border-top: 1px dashed #e0c98a; border-bottom: 1px dashed #e0c98a;
  background: #fff3d6; font-size: 12px; color: #a3241b;
}
.jf-marquee span { display: inline-block; padding-left: 100%; animation: slide 18s linear infinite; }
@keyframes slide { to { transform: translateX(-100%); } }
.jf-table { width: 100%; border-collapse: collapse; }
.jf-table th {
  width: 116px; padding: 9px 10px; border: 1px solid #e6d9b4;
  background: #f9f1d8; color: #7a6421; font-size: 12.5px; font-weight: normal; text-align: center; white-space: nowrap;
}
.jf-table td { padding: 9px 10px; border: 1px solid #e6d9b4; font-size: 13px; line-height: 1.9; vertical-align: top; }
.jf-table p { margin: 0 0 4px; }
.jf-diary { margin: 0; padding: 0; list-style: none; }
.jf-diary li { margin-bottom: 6px; }
.jf-date { font-family: var(--mono); font-size: 11.5px; color: #a08b4f; }
.jf-ctr { margin-bottom: 8px; font-size: 12px; color: #6b5a2a; }
.ctr { display: inline-flex; gap: 2px; vertical-align: middle; padding: 1px; background: #d8ccae; }
.ctr i {
  display: inline-block; width: 15px; height: 21px; line-height: 21px; text-align: center;
  background: #23271f; border: 1px solid #46503c;
  color: #8df06a; font-family: "Courier New", var(--mono); font-size: 13px; font-style: normal;
  text-shadow: 0 0 4px rgba(141, 240, 106, .6);
}
.jf-song { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 12px; color: #6b5a2a; }
.jf-play {
  height: 22px; padding: 0 9px; border: 1px outset #cfc08c; background: #fbf3d9;
  font-family: var(--song); font-size: 11.5px; color: #6b5a2a; cursor: pointer;
}
.jf-song span { font-size: 11.5px; color: #8b7a4a; }
.jf-gb a { font-size: 13px; }
.jf-friends { margin: 0; padding-left: 18px; }
.jf-friends li { margin-bottom: 4px; }
.jf-foot { margin-top: 12px; padding-top: 8px; border-top: 1px dashed #e0c98a; text-align: center; font-size: 10.5px; color: #a08b4f; }

.gb-back { margin-bottom: 10px; font-size: 12px; }
.gb-table { width: 100%; border-collapse: collapse; }
.gb-row td { padding: 8px 6px; border-bottom: 1px solid #e6d9b4; font-size: 12.5px; line-height: 1.85; vertical-align: top; }
.gb-sticky td { background: #fff8e2; }
.gb-time { width: 126px; font-family: var(--mono); font-size: 11px; color: #a08b4f; white-space: nowrap; }
.gb-name { width: 92px; color: #7a6421; }
.gb-name i { display: inline-block; margin-left: 4px; padding: 0 3px; background: #fff8f6; border: 1px solid #d8a79f; font-size: 10px; font-style: normal; color: #a3241b; }
.gb-kai { font-family: var(--kai); font-size: 14.5px; color: #2f2a20; }
.gb-form { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.gb-form input { flex: 1 1 220px; height: 26px; padding: 0 8px; border: 1px solid #cfc08c; background: #fffef8; font-family: var(--song); font-size: 12px; }
.gb-form button { height: 26px; padding: 0 12px; border: 1px outset #cfc08c; background: #fbf3d9; font-family: var(--song); font-size: 12px; cursor: pointer; }
.gb-form span { font-size: 11px; color: #a08b4f; }

/* ================= 停服公告 ================= */
.gate {
  min-height: 100%; padding: 30px 24px 60px; background: #efe8d4;
  font-family: var(--song); font-size: 13.5px; color: #3a3527;
}
.gate-frame {
  max-width: 700px; margin: 0 auto; padding: 30px 34px 34px;
  background: #fbf7ea; border: 1px solid #d9c98f;
  box-shadow: 0 0 0 6px #f6efd8;
}
.gate-top { padding-bottom: 10px; border-bottom: 1px dashed #cdbd8b; font-size: 16px; color: #7a6421; }
.gate-box { margin: 18px 0; }
.gate-box h2 { display: inline-block; margin: 0 0 14px; padding: 2px 10px; font-size: 14px; font-weight: normal; color: #a3241b; border: 1px solid #d8b3ac; background: #fdf3f1; letter-spacing: 2px; }
.gate-box p { margin: 0 0 11px; line-height: 2.05; }
.gate-list h3 { margin: 16px 0 8px; font-size: 13px; font-weight: normal; color: #6b4d16; }
.gate-list ul { margin: 0 0 10px; padding-left: 20px; }
.gate-list li { margin-bottom: 5px; line-height: 1.8; }
.gate-dead { color: #8b8577 !important; text-decoration: line-through !important; cursor: pointer; }
.gate-alive { color: #a3241b !important; cursor: pointer; }
.gate-foot { margin-top: 18px; padding-top: 10px; border-top: 1px dashed #cdbd8b; font-size: 12px; color: #8b8577; }

/* ================= 时间线抽屉 ================= */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 396px; z-index: 70;
  display: flex; flex-direction: column;
  background: #fcfcfd; border-left: 1px solid #e4e7eb;
  box-shadow: -10px 0 30px rgba(16, 24, 40, .13);
  animation: drawerIn .18s ease-out both;
}
.drawer[hidden] { display: none; }
@keyframes drawerIn { from { transform: translateX(20px); opacity: .5; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 20px 12px; border-bottom: 1px solid #ebedf0; }
.drawer-head h2 { margin: 0 0 3px; font-size: 14px; letter-spacing: .5px; }
.drawer-head p { margin: 0; font-size: 11.5px; color: #8b9199; }
.drawer-x { margin-left: auto; border: 0; background: transparent; color: #6b717a; font-size: 17px; cursor: pointer; }
.drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 12px 20px 20px; }
.drawer-foot { display: flex; gap: 8px; padding: 10px 20px 14px; border-top: 1px solid #ebedf0; }
.drawer-foot button {
  height: 28px; padding: 0 12px; border: 1px solid #dcdfe3; border-radius: 6px;
  background: #fff; font-size: 12px; color: #3c4043; cursor: pointer;
}
.drawer-foot button:hover { background: #f2f4f6; }
.tl-note { margin: 2px 0 14px; font-size: 11.5px; line-height: 1.8; color: #9aa0a6; }
.tl-item { position: relative; padding: 2px 0 16px 16px; border-left: 2px solid #dfe3e8; }
.tl-item::before {
  content: ""; position: absolute; left: -5px; top: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; border: 2px solid #b9bfc7;
}
.tl-item.found::before { background: var(--zl-seen); border-color: var(--zl-seen); }
.tl-year { font-family: var(--mono); font-size: 11px; color: #8b9199; letter-spacing: .5px; }
.tl-text { margin: 3px 0 7px; font-size: 13px; line-height: 1.8; color: #2c2f33; }
.tl-item.locked { border-left-style: dashed; }
.tl-item.locked::before { background: #fff; border: 2px dashed #c8ccd3; }
.tl-item.locked .tl-text { color: #b0b4bb; letter-spacing: 1px; font-size: 12.5px; }
.tl-hint { margin: -3px 0 0; font-size: 11px; color: #c2c6cc; }
.tl-go { padding: 0; border: 0; background: transparent; font-size: 11.5px; color: var(--zl); text-decoration: underline; cursor: pointer; }

/* ================= 模态 ================= */
.veil {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(18, 20, 24, .44);
}
.veil[hidden] { display: none; }
.modal {
  width: 520px; max-width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 24px 26px; background: #fff; border-radius: 14px;
  box-shadow: 0 20px 56px rgba(16, 24, 40, .32);
  animation: modalIn .16s ease-out both;
}
.modal-wide { width: 720px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.995); } to { opacity: 1; transform: none; } }
.modal-title { margin: 0 0 12px; font-size: 16px; }
.modal-note { font-size: 13px; line-height: 1.9; color: #4d5156; margin: 0 0 4px; }
.modal-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn {
  height: 32px; padding: 0 16px; border: 1px solid #dcdfe3; border-radius: 7px;
  background: #fff; color: #3c4043; font-size: 13px; cursor: pointer;
}
.btn:hover { background: #f5f6f8; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #155fd6; }

/* 开场向导 */
.setup { font-size: 13px; color: #33383f; }
.setup-kicker { font-family: var(--mono); font-size: 11px; color: #9aa0a6; margin-bottom: 6px; }
.setup-title { margin: 0 0 14px; font-size: 17px; color: #1d2024; }
.setup p { margin: 0 0 10px; line-height: 1.95; }
.setup p.lead { font-size: 15px; color: #1d2024; }
.setup-hint { font-size: 11.5px; color: #9aa0a6; line-height: 1.8; margin-top: 8px; }
.setup-field { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; }
.setup-field label { width: 40px; font-size: 12.5px; color: #5d636b; }
.setup-field input {
  flex: 1 1 auto; height: 34px; padding: 0 12px; font-size: 14px;
  border: 1px solid #ccd1d8; border-radius: 6px; outline: 0;
}
.setup-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 110, 243, .13); }
.setup-field input.bad { border-color: #c0392b; }
.setup-bar { display: flex; gap: 6px; margin-top: 20px; }
.setup-bar i { flex: 1 1 auto; height: 3px; border-radius: 2px; background: #e6e9ed; }
.setup-bar i.on { background: var(--blue); }
.swatches { display: flex; gap: 10px; margin: 6px 0 2px 52px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; padding: 0;
}
.swatch.on { border-color: #1d2024; box-shadow: inset 0 0 0 2px #fff; }
.setup-backup .restore-line { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; font-size: 13px; color: #4d5156; }
.restore-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.restore-found { margin-top: 6px; }
.found-strong { font-size: 14px; color: #1d2024; }

/* 截图卡 */
.shot-wrap { margin: 14px 0 0; padding: 18px; background: #d8d3c6; border-radius: 10px; }
.shot-win {
  position: relative; overflow: hidden; background: #ece9d8;
  border: 1px solid #7f9db9; box-shadow: 0 3px 14px rgba(0, 0, 0, .25);
  font-family: var(--song); font-size: 12px; color: #000;
}
.shot-title {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 6px; background: linear-gradient(#0a5bc4, #2f7fe0);
  font-size: 11.5px; color: #fff;
}
.shot-ico { width: 12px; height: 12px; background: #d4e4f8; border: 1px solid #fff; }
.shot-x { margin-left: auto; width: 15px; height: 13px; background: #d9534f; color: #fff; text-align: center; line-height: 13px; font-size: 10px; }
.shot-addr { padding: 2px 6px; background: #fff; border-bottom: 1px solid #9aa; font-family: var(--mono); font-size: 10.5px; color: #333; }
.shot-body { position: relative; padding: 8px; background: #eef1f5; }
.shot-pane { padding: 8px; background: #fff; border: 1px solid #9bb3c9; }
.shot-crumb { padding-bottom: 4px; margin-bottom: 6px; border-bottom: 1px solid #dbe4ee; font-size: 11px; color: var(--hn); }
.shot-user { font-size: 11.5px; color: #333; }
.shot-user em { font-style: normal; color: #7b8ba0; font-size: 10.5px; }
.shot-blur { filter: blur(3px); color: #555; letter-spacing: 1px; }
.shot-text { margin: 6px 0 8px; font-size: 12.5px; line-height: 1.85; }
.shot-sign { padding-top: 5px; border-top: 1px dashed #dbe4ee; font-size: 11.5px; color: #555; }
.shot-cut { color: #999; }
.shot-fade {
  position: absolute; top: 0; right: 0; bottom: 0; width: 30px;
  background: linear-gradient(90deg, rgba(216, 211, 198, 0), rgba(216, 211, 198, .82) 55%, #d8d3c6 100%);
}
.shot-mark {
  position: absolute; right: 8px; bottom: 6px; padding: 1px 5px;
  background: rgba(0, 0, 0, .3); font-family: var(--mono); font-size: 10px; color: rgba(255, 255, 255, .85);
}
.shot-note { margin: 12px 0 0; font-size: 11.5px; color: #7d838c; line-height: 1.8; }

/* 章节收束 */
.chapter { text-align: left; }
.chapter-no { font-family: var(--mono); font-size: 11.5px; color: #9aa0a6; letter-spacing: 2px; }
.chapter h2 { margin: 4px 0 12px; font-size: 22px; font-weight: 500; }
.chapter p { font-size: 13.5px; line-height: 1.95; color: #3c4043; margin: 0 0 10px; }
.chapter-stat { margin: 14px 0; padding: 10px 12px; background: #f7f8fa; border-radius: 8px; font-size: 12px; color: #5d636b; }
.chapter-note { color: #8b9199 !important; font-size: 12.5px !important; }

/* 历史记录 */
.hist { margin: 0; padding: 0; list-style: none; max-height: 46vh; overflow-y: auto; }
.hist li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #f0f2f4; font-size: 12.5px; }
.hist li a { color: var(--zl); text-decoration: none; cursor: pointer; flex: 0 0 auto; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist li em { font-style: normal; color: #9aa0a6; font-family: var(--mono); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 关于（模态内） */
.about-inline p { margin: 0 0 9px; font-size: 13px; line-height: 1.9; color: #3c4043; }
.about-v { font-family: var(--mono); font-size: 11.5px !important; color: #8b9199 !important; }
.about-a { font-family: var(--mono); font-size: 11px !important; color: #9aa0a6 !important; }

/* ================= 提示条 ================= */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.toast {
  max-width: 330px; padding: 9px 14px; border-radius: 9px;
  background: rgba(28, 31, 36, .93); color: #fff;
  font-size: 12.5px; line-height: 1.65;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .26);
  animation: toastIn .16s ease-out both;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .24s ease-in both; }
@keyframes toastOut { to { opacity: 0; transform: translateY(4px); } }

/* 回读定位 */
.flash { animation: flash 2s ease-out 1; }
@keyframes flash {
  0% { outline: 2px solid rgba(27, 110, 243, .8); background-color: rgba(27, 110, 243, .09); }
  70% { outline-color: rgba(27, 110, 243, .3); background-color: rgba(27, 110, 243, .03); }
  100% { outline-color: transparent; background-color: transparent; }
}

/* ================= 窄屏 ================= */
.narrow {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 40px; background: #f2f3f5;
}
.narrow.on { display: flex; }
.narrow h1 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.narrow p { margin: 0; font-size: 13px; line-height: 1.85; color: #5d636b; max-width: 420px; }

/* ================= 窄窗口适配（老页固定宽度降级） ================= */
@media (max-width: 1280px) {
  .hn-table, .hn-user, .hn-bar, .hn-foot, .hn-title, .hn-info, .hn-crumb { width: auto; margin-left: 14px; margin-right: 14px; }
  .jf-frame { width: auto; margin-left: 14px; margin-right: 14px; }
}

/* ============================================================
   经典版式重制（依据 2009—2011 中文搜索站与 Discuz 论坛考据）
   目的：让「现在层」和「遗骸层」都像当年的真页面，而不是仿旧皮肤
   ============================================================ */

/* ---------- 知了首页（2009 门户式） ---------- */
.zl-home {
  max-width: none; margin: 0; padding: 0 0 40px; text-align: center;
  background: #fff; font-family: var(--song); color: #000;
}
.zl-mark { padding-top: 56px; }
.zl-mark svg { width: 238px; height: 108px; }
.zl-nav { margin: 16px 0 0; font-size: 13px; color: #0000cc; }
.zl-nav span, .zl-nav b { display: inline-block; margin: 0 9px; font-weight: 400; cursor: default; }
.zl-nav b { color: #000; font-weight: 700; }
.zl-form { width: 632px; margin: 12px auto 0; }
.zl-form .sbox {
  height: 32px; padding: 0 0 0 6px; border: 1px solid #7f9db9; border-radius: 0;
  box-shadow: none; background: #fff; gap: 4px;
}
.zl-form .sbox:focus-within { box-shadow: none; border-color: #7f9db9; }
.zl-form .sbox-glass { display: none; }
.zl-form .search-input { height: 28px; font-family: var(--song); font-size: 14px; color: #000; }
.zl-form .sbox-go {
  height: 28px; padding: 0 16px; border: 1px solid #7f9db9; border-left: none;
  border-radius: 0; background: #f0f0f0; color: #000;
  font-family: var(--song); font-size: 13px; box-shadow: none;
}
.zl-under { margin-top: 10px; font-size: 12px; color: #666; }
.zl-under a { color: #0000cc; text-decoration: underline; cursor: pointer; margin: 0 4px; }
.zl-under span { margin: 0 4px; }
.zl-bar { color: #ccc; }
.zl-doodle { margin-top: 22px; font-size: 12px; color: #666; }
.zl-doodle a { color: #0000cc; text-decoration: underline; cursor: pointer; margin-left: 4px; }
.zl-foot { margin: 96px auto 0; padding: 0; border: 0; display: block; font-size: 12px; color: #666; line-height: 2; }
.zl-foot p { margin: 0; }
.zl-foot a { color: #0000cc; text-decoration: underline; }
.zl-icp { color: #999 !important; }

/* ---------- 结果页（2009—2011 中文 SERP） ---------- */
.serp {
  max-width: 820px; margin: 0 auto; padding: 0 0 40px;
  font-family: var(--song); font-size: 13px; color: #000; text-align: left;
}
.serp-head { display: flex; align-items: center; gap: 14px; padding: 8px 0 4px; }
.serp-logo {
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 30px; font-weight: 700; color: #3f8f4f; letter-spacing: 1px;
  text-decoration: none; cursor: pointer; flex: 0 0 auto;
}
.serp-head .sbox {
  flex: 1 1 auto; height: 30px; padding: 0 0 0 6px; border: 1px solid #7f9db9;
  border-radius: 0; box-shadow: none; background: #fff; gap: 0;
}
.serp-head .sbox:focus-within { box-shadow: none; }
.serp-head .sbox-glass { display: none; }
.serp-head .search-input { height: 28px; font-family: var(--song); font-size: 14px; }
.serp-head .sbox-go {
  height: 28px; padding: 0 16px; border: 1px solid #7f9db9; border-left: none;
  border-radius: 0; background: #f0f0f0; color: #000; box-shadow: none;
  font-family: var(--song); font-size: 13px;
}
.serp-nav { padding: 6px 0 8px; font-size: 13px; color: #0000cc; border-bottom: 1px solid #e5e5e5; }
.serp-nav b { color: #000; margin-right: 16px; }
.serp-nav span { margin-right: 16px; }
.serp-nav .more { color: #666; }
.serp-stat { margin: 10px 0 14px; font-size: 13px; color: #666; }
.serp-ms { margin-left: 12px; color: #999; }
.serp-list { min-height: 120px; }
.res { position: relative; margin: 0 0 20px; }
.res h3 { margin: 0 0 2px; font-size: 16px; font-weight: 400; line-height: 1.5; }
.res-t { color: #0000cc; text-decoration: underline; cursor: pointer; }
.res-t:hover { color: #c00; }
.res-t.seen { color: #800080; }
.res-url { margin-bottom: 3px; font-size: 13px; color: #008000; word-break: break-all; }
.res-url .u-host { color: #008000; }
.res-url em { font-style: normal; color: #666; margin-left: 6px; }
.res-snap { color: #0000cc; text-decoration: underline; cursor: pointer; margin-left: 8px; font-size: 12px; }
.res-s { margin: 0; font-size: 13px; line-height: 1.65; color: #000; }
.res-s .kw, .res h3 .kw { color: #c00; font-style: normal; }
.ad-mark { position: static; float: right; margin-top: 4px; border: 0; padding: 0; color: #999; font-size: 12px; }
.res-ad .res-t { color: #0000cc; }
.rel { margin: 22px 0 14px; font-size: 13px; color: #000; }
.rel b { margin-right: 10px; font-weight: 400; color: #000; }
.rel a {
  display: inline; margin: 0 12px 0 0; padding: 0; background: none; border: 0; border-radius: 0;
  font-size: 13px; color: #0000cc; text-decoration: underline; cursor: pointer;
}
.pager { display: flex; align-items: center; gap: 10px; padding: 10px 0 18px; font-size: 13px; color: #333; }
.pager a { color: #0000cc; text-decoration: underline; cursor: pointer; }
.pager b { color: #000; font-weight: 700; }
.pager-all { margin-left: 8px; color: #999; }
.serp-foot {
  border-top: 1px solid #e5e5e5; padding-top: 10px; font-size: 12px; color: #999;
  display: flex; gap: 16px;
}
.serp-foot span { color: #666; }

/* ---------- 候鸟社区（Discuz 6 版式） ---------- */
.hn {
  min-height: 100%; padding: 0 0 24px; background: #fff;
  font-family: var(--song); font-size: 12px; color: #000;
}
.hn a { color: #0000cc; text-decoration: none; cursor: pointer; }
.hn a:hover { color: #c00; text-decoration: underline; }
.hn-topbar {
  display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px;
  background: #24539b; border-bottom: 1px solid #1a3f77;
}
.hn-logo { font-family: "SimHei", "Microsoft YaHei", sans-serif; font-size: 17px; color: #fff; letter-spacing: 1px; }
.hn-toplinks { margin-left: auto; font-size: 12px; color: #cfe0f7; }
.hn-toplinks a { color: #cfe0f7; margin-left: 12px; }
.hn-nav {
  padding: 5px 14px; background: #e8f0fa; border-bottom: 1px solid #b9cde0;
  font-size: 12px; color: #24539b;
}
.hn-nav b { margin-right: 14px; }
.hn-nav span { margin-right: 14px; cursor: default; }
.hn-wrap { max-width: 960px; margin: 0 auto; padding: 0 8px; }
.hn-crumb { padding: 8px 2px; font-size: 12px; color: #333; }
.hn-titlebar {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  background: #eef4fb; border: 1px solid #b9cde0; border-bottom: 1px solid #b9cde0;
}
.hn-titlebar h1 { margin: 0; font-size: 15px; font-weight: 700; color: #000; }
.hn-count { margin-left: auto; color: #666; font-size: 12px; }
.hn-table { width: 100%; margin: 0; border-collapse: collapse; border: 1px solid #b9cde0; border-top: 0; }
.hn-row td { padding: 10px; vertical-align: top; border-bottom: 1px solid #dbe4ee; }
.hn-who { width: 148px; text-align: center; background: #f7fafd; }
.hn-ava {
  width: 64px; height: 64px; margin: 0 auto 6px; border: 1px solid #c5d2e0;
  font-family: "SimHei", sans-serif; font-size: 26px; line-height: 64px; color: #fff;
}
.hn-ava.big { width: 88px; height: 88px; font-size: 34px; line-height: 88px; }
.hn-name { font-size: 12px; font-weight: 700; }
.hn-group { margin-top: 4px; font-size: 11px; color: #666; }
.hn-stat {
  width: 100px; margin: 8px auto 0; display: grid; grid-template-columns: auto auto;
  gap: 2px 6px; font-size: 11px; color: #666; text-align: left;
}
.hn-stat dt { margin: 0; }
.hn-stat dd { margin: 0; color: #333; }
.hn-say { font-size: 13px; line-height: 1.95; color: #000; }
.hn-meta {
  display: flex; gap: 12px; padding-bottom: 5px; margin-bottom: 9px;
  border-bottom: 1px dashed #ccc; font-size: 11.5px; color: #666;
}
.hn-meta b { margin-left: auto; color: #c00; font-weight: 400; }
.hn-body { white-space: pre-wrap; }
.hn-sign { margin-top: 16px; padding-top: 6px; border-top: 1px dashed #ccc; color: #666; font-size: 12px; line-height: 1.8; }
.hn-act { display: flex; gap: 12px; margin-top: 8px; font-size: 11px; color: #999; }
.hn-quick { margin-top: 10px; border: 1px solid #b9cde0; }
.hn-quick-bar { padding: 6px 10px; background: #eef4fb; border-bottom: 1px solid #b9cde0; color: #24539b; font-size: 12px; }
.hn-quick-box { padding: 18px 10px; background: #fff; color: #666; font-size: 12px; }
.hn-foot { padding: 14px 2px 0; margin-top: 12px; border-top: 1px solid #e2ebf4; font-size: 11px; color: #999; }
.hn-user { width: 100%; border: 1px solid #b9cde0; border-collapse: collapse; }
.hn-user td { padding: 12px; vertical-align: top; }
.hn-user-side { width: 170px; text-align: center; background: #f7fafd; border-right: 1px solid #dbe4ee; }
.hn-user-main { font-size: 13px; line-height: 1.9; }
.hn-user-main .hn-meta { border-bottom: 1px dashed #ccc; }
.hn-list { margin: 6px 0 10px; padding-left: 18px; font-size: 13px; line-height: 1.9; }
.hn-list em { color: #999; font-style: normal; font-size: 11px; margin-left: 6px; }

/* ---------- Doodle 存档（老站内页） ---------- */
.doodle { max-width: 760px; margin: 0 auto; padding: 18px 16px 60px; font-family: var(--song); color: #000; }
.doodle-head { display: flex; align-items: baseline; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #d9d9d9; font-size: 12px; color: #333; }
.doodle-head .zl-word { font-size: 20px; }
.doodle-head a { color: #0000cc; text-decoration: none; }
.doodle h1 { margin: 18px 0 12px; font-size: 16px; font-weight: 700; }
.doodle-card { padding: 0; border: 1px solid #d9d9d9; background: #fff; }
.doodle-art { display: block; padding: 14px; text-align: center; background: #fafafa; border-bottom: 1px solid #eee; }
.doodle-card h2 { margin: 14px 14px 8px; font-size: 14px; font-weight: 700; }
.doodle-card p { margin: 0 14px 8px; font-size: 13px; line-height: 1.9; color: #333; }
.doodle-note { color: #808080 !important; font-size: 12px !important; }
.doodle-grey { margin-top: 10px !important; padding-top: 8px; border-top: 1px dashed #ddd; color: #a6a6a6 !important; font-size: 12px !important; }
.doodle-foot { margin-top: 14px; font-size: 12px; color: #999; }
.doodle-foot a { color: #0000cc; text-decoration: underline; cursor: pointer; margin: 0 6px; }
.doodle-foot span { color: #ccc; }

/* ---------- 知了知道（老问答页） ---------- */
.zd { max-width: 900px; margin: 0 auto; padding: 0 16px 40px; font-family: var(--song); color: #000; }
.zd-top { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid #d9d9d9; font-size: 12px; color: #333; }
.zd-top .zl-word { font-size: 20px; }
.zd h1 { margin: 16px 0 12px; font-size: 18px; font-weight: 700; }
.zd-cols { display: block; }
.zd-main { max-width: 640px; }
.zd-main p { margin: 0 0 10px; font-size: 13px; line-height: 1.95; color: #000; }
.zd-side { float: right; width: 220px; margin-left: 24px; }
.zd-box { border: 1px solid #d9d9d9; border-radius: 0; padding: 8px 10px; margin-bottom: 10px; background: #fafafa; }
.zd-box h4 { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: #333; }
.zd-box ul { margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 2; }
.zd-box a { color: #0000cc; text-decoration: underline; }
.zd-ad { border: 1px dashed #ccc; border-radius: 0; padding: 10px; font-size: 12px; color: #666; background: #fff; }
.zd-foot { margin-top: 24px; padding-top: 10px; border-top: 1px solid #d9d9d9; font-size: 11px; color: #999; }

/* 首页撑满一屏，页脚落底（2009 门户的留白关系） */
.zl-home { min-height: 100%; display: flex; flex-direction: column; align-items: center; }
.zl-home > * { flex: 0 0 auto; }
.zl-foot { margin-top: auto !important; padding: 0 0 34px; text-align: center; }

/* Discuz 快速回复 */
.hn-quick-box textarea {
  display: block; width: 100%; height: 74px; box-sizing: border-box; padding: 6px;
  border: 1px solid #b9cde0; background: #fff; font-family: var(--song); font-size: 13px;
  resize: none; color: #333;
}
.hn-quick-act { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.hn-quick-act button {
  height: 26px; padding: 0 14px; border: 1px solid #7f9db9; background: #eef4fb;
  font-family: var(--song); font-size: 12px; color: #24539b; cursor: pointer;
}
.hn-quick-act span { font-size: 12px; color: #666; }

/* 关于页（浏览器自有页面，简洁克制） */
.about { max-width: 520px; margin: 0 auto; padding: 72px 24px; font-family: var(--song); color: #333; }
.about-mark { font-size: 26px; letter-spacing: 8px; color: #2b3038; font-weight: 700; }
.about-ver { margin: 6px 0 4px; font-family: var(--mono); font-size: 12px; color: #8b9199; }
.about-user { margin: 14px 0 26px; font-size: 12.5px; color: #5d636b; }
.about-rows { border-top: 1px solid #eceef1; }
.about-rows div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f2f3f5; font-size: 12.5px; }
.about-rows span { color: #8b9199; }
.about-rows b { font-weight: 400; color: #333; }
.about-acts { display: flex; gap: 10px; margin-top: 24px; }
.about-foot { margin-top: 40px; font-size: 11.5px; color: #b0b4bb; }

/* 论坛提示信息页（Discuz 风格） */
.hn-msgbox { margin-top: 14px; border: 1px solid #b9cde0; background: #fff; }
.hn-msgbar { padding: 8px 12px; background: #eef4fb; border-bottom: 1px solid #b9cde0; color: #24539b; font-weight: 700; }
.hn-msgbody { padding: 30px 12px; text-align: center; font-size: 13px; color: #333; }
.hn-msgact { padding: 10px 12px 18px; text-align: center; font-size: 12px; }
.hn-msgact a { color: #0000cc; text-decoration: underline; margin: 0 8px; cursor: pointer; }

/* 知了 404 上的搜索框 */
.nf-search { max-width: 460px; margin: 18px auto 0; }
.nf-search .sbox { height: 30px; border: 1px solid #7f9db9; border-radius: 0; box-shadow: none; padding-left: 6px; }
.nf-search .sbox-glass { display: none; }
.nf-search .search-input { height: 28px; font-family: var(--song); font-size: 14px; }
.nf-search .sbox-go { height: 28px; border-radius: 0; border: 1px solid #7f9db9; border-left: none; background: #f0f0f0; color: #000; box-shadow: none; font-family: var(--song); font-size: 13px; }
.nf-logo { display: block; margin-bottom: 18px; font-size: 30px; }


/* ============================================================
   心境：不弹提示、不显示数值，只用一层几乎看不见的余光
   0 平静 / 1 发紧 / 2 沉 / 3 空
   ============================================================ */
.moodveil {
  position: fixed; inset: 0; z-index: 45; pointer-events: none;
  opacity: 1; transition: background 1.4s ease;
  background: radial-gradient(130% 100% at 50% 32%, rgba(0, 0, 0, 0) 60%, rgba(48, 42, 33, 0) 100%);
}
html[data-mood="1"] .moodveil { background: radial-gradient(130% 100% at 50% 32%, rgba(0, 0, 0, 0) 52%, rgba(48, 42, 33, .055) 100%); }
html[data-mood="2"] .moodveil { background: radial-gradient(130% 100% at 50% 32%, rgba(0, 0, 0, 0) 46%, rgba(46, 40, 31, .085) 100%); }
html[data-mood="3"] .moodveil { background: radial-gradient(130% 100% at 50% 32%, rgba(0, 0, 0, 0) 40%, rgba(43, 37, 28, .125) 100%); }

html[data-mood="1"] .tabbar { background: #f0f1f0; }
html[data-mood="2"] .tabbar { background: #efeee9; }
html[data-mood="3"] .tabbar { background: #edeae3; }
html[data-mood="3"] .toolbar { background: #fbfaf6; }
html[data-mood="3"] .omnibox { background: #fdfcf9; }
html[data-mood="3"] .page-enter { animation-duration: .34s; }
html[data-mood="2"] .drawer { background: #fbf9f4; }
html[data-mood="3"] .drawer { background: #f7f3ea; }
html[data-mood="3"] .drawer-head, html[data-mood="3"] .drawer-foot { border-color: #e4ddcf; }

/* 新标签页的最近访问 */
.start-label { width: 640px; margin: 22px auto 8px; text-align: left; font-size: 11px; color: #9aa0a6; letter-spacing: .5px; }
.start-grid { margin-top: 0; }

/* 新标签页：收敛成 2009 年那种方角白卡，不要圆角磁贴 */
.start { max-width: 640px; padding: 76px 20px 40px; }
.start-search { margin-bottom: 24px; }
.start-search .sbox { height: 34px; border-radius: 2px; border: 1px solid #7f9db9; box-shadow: none; background: #fff; }
.start-search .sbox-big { height: 34px; border-radius: 2px; }
.start-search .sbox-glass { display: none; }
.start-search .sbox-go { height: 28px; top: 3px; border-radius: 1px; background: #e9ebee; color: #1f2328; border: 1px solid #a9b4bf; font-weight: 400; }
.start-search .sbox-go:hover { background: #dfe3e7; }
.start-search .sbox-lucky { height: 28px; top: 3px; border-radius: 1px; background: #e9ebee; border: 1px solid #a9b4bf; color: #1f2328; font-weight: 400; }
.start-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.start-tile {
  padding: 11px 12px; border-radius: 2px; background: #fff;
  border: 1px solid #dcdcdc; font-size: 12.5px; color: #1a1a1a;
}
.start-tile:hover { background: #fff; border-color: #9aa6b2; text-decoration: underline; }
.start-tile i { width: 8px; height: 8px; border-radius: 0; }
.start-label { max-width: 620px; margin: 20px auto 8px; font-size: 11px; color: #8a9096; }
.start-foot { margin-top: 38px; font-size: 11px; color: #9aa0a6; }

/* 搜索结果页在最低处时的那行灰字 */
.serp-note { margin: -6px 0 14px; font-size: 12px; color: #8a8f96; }

/* ============================================================
   这一轮：把心境压进画面本身，补上 2009 年的右键与记事本
   ============================================================ */
html[data-mood="1"] .moodveil { background: radial-gradient(130% 100% at 50% 32%, rgba(0,0,0,0) 50%, rgba(48,42,33,.07) 100%); }
html[data-mood="2"] .moodveil { background: radial-gradient(130% 100% at 50% 32%, rgba(0,0,0,0) 42%, rgba(46,40,31,.11) 100%); }
html[data-mood="3"] .moodveil { background: radial-gradient(130% 100% at 50% 32%, rgba(0,0,0,0) 34%, rgba(43,37,28,.16) 100%); }
html[data-mood="2"] .viewport { filter: saturate(.9); }
html[data-mood="3"] .viewport { filter: saturate(.72) contrast(.985); }

/* 右键菜单 */
.ctxmenu {
  position: fixed; z-index: 130; min-width: 170px; padding: 2px;
  background: #fff; border: 1px solid #8e8f91;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, .22);
}
.ctxmenu button {
  display: block; width: 100%; padding: 5px 18px; border: 0; background: none;
  text-align: left; font: 12px/1.4 "宋体", Tahoma, sans-serif; color: #000; cursor: default;
}
.ctxmenu button:hover:not(:disabled) { background: #316ac5; color: #fff; }
.ctxmenu button:disabled { color: #a0a0a0; }

/* 记事本（查看源文件） */
.np { width: min(780px, 88vw); background: #fff; border: 1px solid #6f6f6f; font-family: Tahoma, "宋体", sans-serif; }
.np-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 8px; color: #fff; font-size: 12px;
  background: linear-gradient(#0a246a, #3a6ea5);
}
.np-x {
  width: 18px; height: 16px; padding: 0; border: 1px solid #fff; border-radius: 2px;
  background: #c75050; color: #fff; font-size: 11px; line-height: 14px; cursor: pointer;
}
.np-menu {
  display: flex; gap: 16px; padding: 3px 10px; font-size: 12px; color: #000;
  background: #ece9d8; border-bottom: 1px solid #aca899;
}
.np-body {
  margin: 0; padding: 10px 12px; max-height: 62vh; overflow: auto;
  font: 12px/1.55 Consolas, "Courier New", "宋体", monospace;
  color: #000; background: #fff; white-space: pre;
}

/* ============================================================
   这一轮：把叙事搬出网页
   书签栏（还原自旧机器）/ D:\旧电脑备份 / 记事本里的信 / 汇款单
   ============================================================ */

/* ---------- 书签栏 ---------- */
.bmbar {
  flex: 0 0 auto; height: 27px; padding: 0 8px;
  display: flex; align-items: center;
  background: var(--chrome); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.bmbar[hidden] { display: none; }
.bm-list { display: flex; align-items: center; gap: 1px; min-width: 0; overflow: hidden; }
.bm {
  display: inline-flex; align-items: center; gap: 6px;
  height: 21px; padding: 0 7px; border: 0; border-radius: 3px;
  background: transparent; color: #3a3f46; font-size: 11.5px; cursor: default;
  white-space: nowrap;
}
.bm:hover { background: rgba(16, 24, 40, .07); }
.bm i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 1px; }
.bm-folder { color: #4d535b; }
.bm-folder i {
  width: 13px; height: 9px; border-radius: 1px;
  background: #d9b24a; box-shadow: inset 0 0 0 1px #b8933a;
  position: relative;
}
.bm-folder i::before {
  content: ""; position: absolute; left: 1px; top: -2px;
  width: 6px; height: 3px; background: #d9b24a; box-shadow: inset 0 0 0 1px #b8933a;
}
.bm-drop {
  position: fixed; z-index: 120; min-width: 232px; padding: 4px;
  background: #fff; border-radius: 6px;
  box-shadow: 0 8px 26px rgba(16, 24, 40, .22), 0 0 0 1px rgba(16, 24, 40, .09);
}
.bm-drop[hidden] { display: none; }
.bm-ditem {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 7px 10px; border: 0; border-radius: 4px; background: none;
  font-size: 12px; color: #33383f; text-align: left; cursor: default;
}
.bm-ditem:hover { background: #316ac5; color: #fff; }
.bm-ico { width: 12px; height: 12px; flex: 0 0 auto; position: relative; }
.bm-ico.file { background: #fff; box-shadow: inset 0 0 0 1px #9aa0a6; }
.bm-ico.file::after {
  content: ""; position: absolute; right: 1px; top: 1px;
  border: 3px solid transparent; border-top-color: #9aa0a6; border-right-color: #9aa0a6;
}
.bm-ico.disk { background: #e8e2cf; box-shadow: inset 0 0 0 1px #a9a08a; }
.bm-ico.disk::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 3px; background: #a9a08a;
}
.bm-ico.web { border-radius: 50%; background: #bfd2e6; box-shadow: inset 0 0 0 1px #7f96ad; }
#bmbar:not([hidden]) ~ .menu { top: 109px; }
html[data-mood="2"] .bmbar { background: #efeee9; }
html[data-mood="3"] .bmbar { background: #edeae3; border-bottom-color: #ded7c9; }
html[data-mood="3"] .bm { color: #55504a; }

/* ---------- XP 资源管理器窗口 ---------- */
.xp {
  position: relative; width: min(880px, 94vw);
  background: #ece9d8; border: 1px solid #6f6f6f;
  font-family: Tahoma, "宋体", sans-serif; font-size: 12px; color: #000;
}
.xp-bar {
  display: flex; align-items: center; gap: 7px; padding: 4px 6px 4px 8px;
  background: linear-gradient(#0a246a, #3a6ea5); color: #fff; font-size: 12px;
}
.xp-app {
  width: 14px; height: 12px; background: #f3d98a;
  box-shadow: inset 0 0 0 1px #a8892c;
}
.xp-x {
  margin-left: auto; width: 18px; height: 16px; padding: 0;
  border: 1px solid #fff; border-radius: 2px; background: #c75050;
  color: #fff; font-size: 11px; line-height: 14px; cursor: pointer;
}
.xp-menu {
  display: flex; gap: 15px; padding: 3px 10px;
  background: #ece9d8; border-bottom: 1px solid #aca899; color: #000;
}
.xp-tool { display: flex; align-items: center; gap: 3px; padding: 3px 6px; background: #ece9d8; }
.xp-tb {
  height: 21px; padding: 0 8px; border: 1px solid transparent; background: transparent;
  font-family: inherit; font-size: 11.5px; color: #000; cursor: default;
}
.xp-tb:hover { border-color: #aca899; background: #f5f3e8; }
.xp-vsep { width: 1px; height: 16px; background: #aca899; margin: 0 4px; }
.xp-addr { display: flex; align-items: center; gap: 6px; padding: 3px 6px 5px; background: #ece9d8; }
.xp-addr span { color: #333; }
.xp-addr input {
  flex: 1 1 auto; min-width: 0; height: 20px; padding: 0 5px;
  border: 1px solid #7f9db9; background: #fff; font-family: inherit; font-size: 12px; color: #000;
}
.xp-go {
  height: 20px; padding: 0 10px; border: 1px solid #7f9db9;
  background: #f5f3e8; font-family: inherit; font-size: 11.5px; cursor: default;
}
.xp-body { height: 258px; overflow: auto; background: #fff; border-top: 1px solid #aca899; }
.xp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.xp-table th {
  padding: 4px 8px; text-align: left; font-weight: 400; color: #333;
  background: #fff; border-bottom: 1px solid #dcdcdc; position: sticky; top: 0;
}
.xp-table td { padding: 4px 8px; white-space: nowrap; }
.xp-row { cursor: default; }
.xp-row:hover td { background: #316ac5; color: #fff; }
.xp-tdn { display: table-cell; }
.xp-fico {
  display: inline-block; width: 13px; height: 15px; margin-right: 7px; vertical-align: -2px;
  background: #fff; box-shadow: inset 0 0 0 1px #8d8d8d; position: relative;
}
.xp-fico::after {
  content: ""; position: absolute; right: 1px; top: 1px;
  border: 3px solid transparent; border-top-color: #8d8d8d; border-right-color: #8d8d8d;
}
.xp-row:hover .xp-fico { background: #fff; }
.xp-status {
  padding: 4px 8px; background: #ece9d8; border-top: 1px solid #aca899;
  font-size: 11px; color: #333;
}

/* XP 错误框 */
.xp-err {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .04);
  display: flex; align-items: center; justify-content: center;
}
.xp-err-box { width: 384px; background: #ece9d8; border: 1px solid #6f6f6f; box-shadow: 2px 2px 4px rgba(0,0,0,.25); }
.xp-err-bar {
  display: flex; align-items: center; padding: 4px 6px 4px 8px;
  background: linear-gradient(#0a246a, #3a6ea5); color: #fff; font-size: 12px;
}
.xp-err-body { display: flex; gap: 12px; padding: 16px 14px 12px; align-items: flex-start; }
.xp-err-ico {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: #c0392b; color: #fff; text-align: center; line-height: 26px; font-size: 15px;
}
.xp-err-body p { margin: 0; font-size: 12px; line-height: 1.75; white-space: pre-line; word-break: break-all; }
.xp-err-code { color: #8a3a30; }
.xp-err-act { padding: 0 14px 14px; text-align: right; }
.xp-err-act button {
  height: 22px; min-width: 68px; border: 1px solid #7f9db9; background: #f5f3e8;
  font-family: inherit; font-size: 12px; cursor: default;
}

/* ---------- 图片和传真查看器 ---------- */
.xpi {
  width: min(760px, 94vw); background: #4a4a4a; border: 1px solid #2f2f2f;
  font-family: Tahoma, "宋体", sans-serif; font-size: 12px;
}
.xpi-bar {
  display: flex; align-items: center; padding: 5px 6px 5px 8px;
  background: linear-gradient(#6f6f6f, #4a4a4a); color: #fff;
}
.xpi-tools {
  display: flex; align-items: center; gap: 16px; padding: 5px 12px;
  background: #3d3d3d; color: #dcdcdc; font-size: 11px; border-bottom: 1px solid #2b2b2b;
}
.xpi-tools span { cursor: default; }
.xpi-tools span:hover { color: #fff; }
.xpi-sep { width: 1px; height: 12px; background: #6a6a6a; }
.xpi-grey { color: #8a8a8a; }
.xpi-stage {
  padding: 16px; display: flex; justify-content: center; align-items: flex-start;
  max-height: 58vh; overflow: auto; background: #3a3a3a;
}
.xpi-status {
  display: flex; align-items: center; gap: 14px; padding: 4px 10px;
  background: #4a4a4a; color: #d0d0d0; font-size: 11px; border-top: 1px solid #2b2b2b;
}
.xpi-status b { font-weight: 400; color: #fff; }
.xpi-back {
  margin-left: auto; height: 19px; padding: 0 9px; border: 1px solid #8a8a8a;
  background: #565656; color: #eee; font-family: inherit; font-size: 11px; cursor: default;
}
.xpi-back:hover { background: #636363; }

/* 汇款单：一张被拍下来的纸 */
.rcpt {
  position: relative; width: 430px; flex: 0 0 auto;
  padding: 18px 20px 12px; background: #fbf9f1; color: #1b1b1b;
  font-family: "SimSun", "宋体", serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  transform: rotate(-.7deg);
}
.rcpt-head { text-align: center; padding-bottom: 8px; border-bottom: 2px solid #7a1f18; }
.rcpt-head b { display: block; font-size: 15px; letter-spacing: 3px; color: #7a1f18; }
.rcpt-head span { display: block; margin-top: 4px; font-size: 10.5px; color: #555; letter-spacing: 1px; }
.rcpt-rows { width: 100%; border-collapse: collapse; margin-top: 10px; }
.rcpt-rows th {
  width: 78px; padding: 5px 0; text-align: left; vertical-align: top;
  font-weight: 400; font-size: 11px; color: #5a5a5a;
}
.rcpt-rows td { padding: 5px 0; font-size: 12.5px; border-bottom: 1px dotted #bdb5a4; }
.rcpt-foot {
  display: flex; justify-content: space-between; margin-top: 12px; padding-top: 6px;
  border-top: 1px solid #b3ab99; font-size: 9.5px; color: #6a6558;
}
.rcpt-stamp {
  position: absolute; right: 20px; top: 62px; width: 66px; height: 66px;
  border: 2px solid #b3382c; border-radius: 50%; color: #b3382c;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: 1px; opacity: .68; transform: rotate(-15deg);
}

/* 记事本上的返回与状态行 */
.np-back {
  margin-left: auto; height: 18px; padding: 0 8px; border: 1px solid #aca899;
  background: #ece9d8; font-family: inherit; font-size: 11px; cursor: pointer;
}
.np-status {
  padding: 3px 10px; background: #ece9d8; border-top: 1px solid #aca899;
  font-family: Tahoma, "宋体", sans-serif; font-size: 11px; color: #333;
}

/* 装本机窗口的模态：不要白卡片，窗口自己带边框 */
.modal-raw {
  width: auto; max-width: 100%; max-height: 90vh;
  padding: 0; background: transparent; border-radius: 0;
  box-shadow: none; overflow: visible;
}
.modal-raw .np { width: min(780px, 86vw); }
.modal-raw .np-menu { padding-right: 6px; }
.modal-raw .np-back { flex: 0 0 auto; }

/* 文件类型：一眼能认出是图、是文本、还是压缩包 */
.xp-fico.pic::before {
  content: ""; position: absolute; left: 2px; right: 2px; top: 2px; bottom: 2px;
  background: #dbe7f3;
}
.xp-fico.txt::before {
  content: ""; position: absolute; left: 2px; right: 3px; top: 3px; height: 1px;
  background: #9aa0a6; box-shadow: 0 3px 0 #9aa0a6, 0 6px 0 #9aa0a6;
}
.xp-fico.zip::before {
  content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 3px; background: #c9a227;
}
.rcpt-stamp {
  width: 72px; height: 72px; right: 24px; top: 70px;
  font-size: 12.5px; opacity: .62; transform: rotate(-12deg);
}
.np-body { font-family: "NSimSun", "新宋体", SimSun, "宋体", monospace; }

/* 图标再调一次：13px 里太淡就只剩“复选框” */
.xp-fico { width: 11px; height: 13px; margin-right: 6px; box-shadow: inset 0 0 0 1px #7d7d7d; }
.xp-fico::after { border-width: 3px; }
.xp-fico.pic { background: #fff; }
.xp-fico.pic::before {
  left: 2px; right: 2px; top: 2px; bottom: 2px; background: #8fb8d8;
}
.xp-fico.txt::before {
  left: 2px; right: 2px; top: 3px; height: 1px;
  background: #5f5f5f; box-shadow: 0 3px 0 #5f5f5f, 0 6px 0 #5f5f5f;
}
.xp-fico.zip::before { left: 1px; right: 1px; top: 1px; height: 4px; background: #c9a227; }

/* 历史记录里的旧会话：日期在最前，不用“上次会话”这种提示语 */
.hist-old { margin-top: 18px; padding-top: 12px; border-top: 1px dashed #dcdcdf; }
.hist-old-t { margin-bottom: 4px; font-size: 11px; color: #9aa0a6; letter-spacing: .3px; }
.hist-faint li { border-bottom-color: #f6f7f8; color: #7b818a; font-size: 12px; }
.hist-faint li span { flex: 0 0 auto; font-family: var(--mono); font-size: 10.5px; color: #a9aeb4; }
.hist-faint li a { color: #7d93ad; font-size: 11.5px; }

/* ============================================================
   第 2 章：知了快照（四个抓取时间，差异只标不解释）
   ============================================================ */
.sx {
  width: min(980px, 94vw); background: #fff; border: 1px solid #9aa0a6;
  font-family: "SimSun", "宋体", serif; color: #000;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.sx-bar {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: #f4f6f3; border-bottom: 2px solid #3f8f4f;
}
.sx-logo { color: #3f8f4f; font-weight: 700; font-size: 15px; letter-spacing: 1px; font-family: var(--ui); }
.sx-n { padding-left: 8px; border-left: 1px solid #cdd2d9; font-size: 12px; color: #5d636b; font-family: var(--ui); }
.sx-u { margin-left: auto; font-family: var(--mono); font-size: 11px; color: #8b9199; }
.sx-x {
  width: 20px; height: 18px; padding: 0; border: 1px solid #b9bec4; border-radius: 2px;
  background: #fff; color: #555; font-size: 12px; line-height: 16px; cursor: pointer;
}
.sx-main { display: flex; max-height: 62vh; }
.sx-side { width: 182px; flex: 0 0 auto; padding: 8px 0; background: #fbfbf8; border-right: 1px solid #e0e2e0; overflow: auto; }
.sx-side-t { padding: 0 12px 6px; font-size: 11px; color: #8b9199; font-family: var(--ui); }
.sx-v {
  display: block; width: 100%; padding: 6px 12px; border: 0; background: none;
  font-family: inherit; font-size: 12px; color: #1a3fa0; text-align: left; cursor: default;
}
.sx-v b { font-weight: 400; }
.sx-v em { margin-left: 6px; font-style: normal; font-size: 11px; color: #8b9199; }
.sx-v span { display: block; height: 12px; font-size: 10px; color: #b0b4bb; }
.sx-v:hover { background: #f0f3f0; }
.sx-v.on { background: #eef4ee; box-shadow: inset 3px 0 0 #3f8f4f; }
.sx-v.on b { font-weight: 700; color: #1d2024; }
.sx-side-f { margin-top: 6px; padding: 8px 12px; border-top: 1px solid #eceee9; font-size: 10.5px; color: #b0b4bb; font-family: var(--ui); }
.sx-view { flex: 1 1 auto; overflow: auto; }
.sx-cache {
  padding: 5px 14px; background: #fffbe8; border-bottom: 1px solid #f0e2b0;
  font-size: 11px; color: #8a6f21; font-family: var(--ui);
}
.sx-diff { padding: 5px 14px; border-bottom: 1px dashed #e2e4e6; font-size: 11px; color: #5d636b; font-family: var(--ui); }
.sx-page { padding: 14px 18px 20px; }
.sx-title { margin: 6px 0 12px; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: 1px; color: #7c5aa6; }
.sx-about p { margin: 0 0 4px; font-size: 12.5px; line-height: 1.9; }
.sx-diary { margin-top: 12px; }
.sx-diary b, .sx-gb b { font-size: 12px; color: #8a6f21; }
.sx-diary ul { margin: 6px 0 0; padding: 0; list-style: none; }
.sx-row {
  display: flex; gap: 10px; padding: 3px 6px; border-left: 3px solid transparent;
  font-size: 12px; line-height: 1.8;
}
.sx-date { flex: 0 0 auto; color: #8b8f96; }
.sx-row.is-add { background: #eef6ee; border-left-color: #4a8f4a; }
.sx-row.is-add .sx-text { color: #1d3d1d; }
.sx-tag {
  align-self: center; padding: 0 4px; border: 1px solid #a8cca8; line-height: 14px;
  font-style: normal; font-size: 10px; color: #4a8f4a;
}
.sx-ctr {
  margin: 14px 0 4px; padding: 6px 8px; background: #faf6e8;
  border: 1px solid #e6dcc0; border-left: 3px solid transparent; font-size: 12.5px;
}
.sx-ctr.is-add { background: #fdf1e8; border-left-color: #c06a2c; }
.sx-ctr b { font-family: var(--mono); letter-spacing: 1px; }
.sx-ctr em { margin-left: 10px; font-style: normal; font-size: 11.5px; color: #8b8f96; }
.sx-ctr em.is-hot { color: #b3382c; }
.sx-was { margin-left: 8px; font-size: 10.5px; color: #b06a2c; }
.sx-gb { margin-top: 12px; }
.sx-gb table { width: 100%; margin-top: 6px; border-collapse: collapse; }
.sx-gb td { padding: 3px 6px; border-bottom: 1px dotted #e2ddcf; font-size: 11.5px; line-height: 1.7; vertical-align: top; }
.sx-gb-t { width: 84px; font-family: var(--mono); font-size: 10.5px; color: #8b8f96; }
.sx-gb-n { width: 78px; color: #5d636b; }
.sx-gb-row.is-add td { background: #eef6ee; }
.sx-gb-row.is-mod td { background: #fdf6e3; }
.sx-foot { margin-top: 14px; padding-top: 8px; border-top: 1px dashed #ddd; text-align: center; font-size: 10.5px; color: #9a9a9a; }
.sx-note { padding: 6px 12px; background: #fbfbf8; border-top: 1px solid #e0e2e0; font-size: 10.5px; color: #8b9199; font-family: var(--ui); }

/* ============================================================
   发行版 · 手机与窄窗
   外壳压缩，老页面从固定宽度改成纵向堆叠；弹窗底边贴齐。
   ============================================================ */

/* 计数器：手机上没有办法 hover，点一下展开 */
.jf-ctr { cursor: pointer; }
.jf-ctr-time { display: none; margin-top: 3px; font-family: var(--mono); font-size: 11px; color: #a08b4f; }
.jf-ctr.open .jf-ctr-time { display: block; }

button, .bm, .tab { touch-action: manipulation; -webkit-tap-highlight-color: rgba(0, 0, 0, .08); }

@media (max-width: 900px) {
  .jf-frame { width: auto; margin: 0 10px; padding: 12px 12px 10px; }
  .hn-table, .hn-user { width: auto; }
  .sx, .xp, .xpi { width: min(100%, 94vw); }
  .sx-main { max-height: 66vh; }
}

@media (max-width: 760px) {
  html, body { height: 100%; }
  body { overflow: hidden; }
  .shell { height: 100vh; }
  @supports (height: 100dvh) { .shell { height: 100dvh; } }

  /* 外壳 */
  .tabbar { height: 38px; padding: 6px 6px 0; gap: 2px; }
  .tabs { gap: 2px; }
  .tab { height: 32px; min-width: 92px; flex: 0 1 150px; padding: 0 4px 0 8px; border-radius: 8px 8px 0 0; font-size: 11.5px; gap: 5px; }
  .tab-dot { width: 7px; height: 7px; }
  .tab-x { width: 16px; height: 16px; font-size: 11px; line-height: 15px; }
  .tab-new { width: 26px; height: 26px; font-size: 16px; margin-bottom: 3px; }
  .toolbar { padding: 1px 6px 6px; gap: 0; }
  .tbtn { width: 28px; height: 28px; font-size: 14px; }
  .omnibox { height: 30px; margin: 0 3px; padding: 0 10px; border-radius: 15px; gap: 5px; }
  #urlInput { font-size: 12px; }
  .omnibox-lock { font-size: 10px; }
  .bmbar { height: 28px; padding: 0 4px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .bm-list { gap: 0; }
  .bm { height: 22px; padding: 0 6px; font-size: 11px; gap: 4px; }
  .bmbar::-webkit-scrollbar { display: none; }
  .menu { right: 6px; top: 96px; width: min(258px, calc(100vw - 12px)); }
  #bmbar:not([hidden]) ~ .menu { top: 102px; }

  /* 新标签页 */
  .start { max-width: none; padding: 44px 14px 30px; }
  .start-search { margin-bottom: 18px; }
  .start-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .start-tile { padding: 10px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .start-label { width: auto; margin: 16px 0 8px; }
  .start-foot { margin-top: 26px; }

  /* 知了首页 */
  .zl-mark { padding-top: 34px; }
  .zl-mark svg { width: 168px; height: 76px; }
  .zl-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin: 12px 14px 0; font-size: 12.5px; }
  /* 这些块在桌面靠 margin:auto 居中，进入 flex 后会被当成收缩宽度，撑出视口 */
  .serp, .zd, .start, .hn-wrap, .jf-wrap, .nf, .gate-frame, .boot-blank, .zl-wrap {
    width: 100%; max-width: 100%; margin-left: 0; margin-right: 0;
  }
  .zl-form { width: auto; margin: 12px 14px 0; padding: 0; }
  .zl-under { margin: 10px 0 0; font-size: 12px; }
  .zl-doodle { margin: 14px 14px 0; font-size: 12px; line-height: 1.8; }
  .zl-foot { padding: 0 16px 24px; font-size: 11.5px; line-height: 1.9; }
  .zl-icp { font-size: 10.5px; }
  .sbox-big { height: 38px; }
  .sbox-big .sbox-go, .sbox-big .sbox-lucky { height: 32px; }

  /* 结果页 */
  .serp { padding: 12px 12px 44px; }
  .serp-head { gap: 8px; }
  .serp-logo { font-size: 21px; }
  .serp-head .sbox { flex: 1 1 auto; min-width: 0; height: 32px; }
  .serp-head .sbox-go { height: 26px; font-size: 12px; padding: 0 8px; }
  .serp-nav { display: flex; gap: 10px; overflow-x: auto; white-space: nowrap; font-size: 12px; padding-bottom: 2px; }
  .serp-stat { font-size: 11.5px; }
  .res h3 { font-size: 15px; line-height: 1.55; }
  .res-s { font-size: 12.5px; line-height: 1.85; }
  .res-url { font-size: 11px; word-break: break-all; }
  .res-ad { padding: 10px 0; }
  .rel { font-size: 12px; }
  .rel a { margin: 0 8px 6px 0; }
  .pager { font-size: 13px; }
  .serp-foot { font-size: 10.5px; }

  /* 候鸟：表格改纵向 */
  .hn-wrap { padding: 0 6px; }
  .hn-topbar, .hn-nav { padding-left: 8px; padding-right: 8px; overflow-x: auto; white-space: nowrap; }
  .hn-toplinks { gap: 10px; }
  .hn-table, .hn-table tbody, .hn-table tr, .hn-table td { display: block; width: auto !important; }
  .hn-table { border: 0; }
  .hn-who { padding: 8px 10px !important; border: 1px solid #b9cde0; border-bottom: 0; text-align: left; }
  .hn-who .hn-ava { display: none; }
  .hn-name { display: inline-block; margin-right: 8px; }
  .hn-group { display: inline-block; margin: 0; }
  .hn-stat { display: none; }
  .hn-say { padding: 10px 10px 12px !important; border: 1px solid #b9cde0; margin-bottom: -1px; font-size: 13px; line-height: 1.85; }
  .hn-user, .hn-user tbody, .hn-user tr, .hn-user td { display: block; width: auto !important; }
  .hn-user-side { border-right: 0; border-bottom: 1px solid #dbe4ee; }
  .hn-user-main { padding: 10px !important; }
  .hn-quick-box textarea { height: 60px; }
  .hn-msgbox { margin: 10px 6px 0; }

  /* 街坊：表格改纵向，纸边收窄 */
  .jf-frame { width: auto; margin: 0 8px; padding: 10px 10px 8px; border-width: 2px; box-shadow: none; }
  .jf-mars { font-size: 17px; line-height: 1.5; word-break: break-all; }
  .jf-table, .jf-table tbody, .jf-table tr, .jf-table th, .jf-table td { display: block; width: auto; }
  .jf-table th { border-bottom: 0; padding: 6px 8px; text-align: left; }
  .jf-table td { border-top: 0; padding: 8px; font-size: 12.5px; }
  .jf-table tr { margin-bottom: 6px; }
  .jf-ctr { line-height: 2; }
  .ctr i { width: 13px; height: 18px; line-height: 18px; font-size: 12px; }
  .jf-friends, .jf-diary { padding-left: 16px; }
  .gb-table, .gb-table tbody, .gb-table tr, .gb-table td { display: block; width: auto !important; }
  .gb-row td { padding: 2px 4px; border: 0; }
  .gb-row { padding: 8px 4px; border-bottom: 1px solid #e6d9b4; display: block; }
  .gb-time, .gb-name { display: inline-block !important; width: auto !important; margin-right: 10px; font-size: 11px; }
  .gb-text { padding-top: 4px !important; }
  .gb-kai { font-size: 14px; }
  .gb-form input { flex: 1 1 100%; }
  .gate-frame { margin: 0 8px; padding: 12px; }
  .gate-box h2 { font-size: 15px; }

  /* 弹窗：从底部起来，占满宽 */
  .veil { padding: 0; align-items: flex-end; }
  .modal {
    width: 100% !important; max-width: 100%; max-height: 92vh; overflow-y: auto;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
  }
  .modal-raw { padding: 0; border-radius: 0; background: transparent; }
  .modal-title { font-size: 15px; }
  .setup-title { font-size: 16px; }
  .chapter h2 { font-size: 19px; }
  .modal-acts .btn { height: 36px; }

  /* 快照：版本列表横过来 */
  .sx { width: 100%; max-width: 100%; border-left: 0; border-right: 0; box-shadow: none; }
  .sx-bar { padding: 6px 8px; }
  .sx-u { display: none; }
  .sx-main { display: block; max-height: none; }
  .sx-side {
    display: flex; width: auto; padding: 6px; overflow-x: auto; overflow-y: hidden;
    border-right: 0; border-bottom: 1px solid #e0e2e0; -webkit-overflow-scrolling: touch;
  }
  .sx-side-t, .sx-side-f { display: none; }
  .sx-v { flex: 0 0 auto; width: auto; margin-right: 4px; padding: 5px 8px; border: 1px solid #e0e2e0; white-space: nowrap; }
  .sx-v span { display: none; }
  .sx-view { max-height: 62vh; overflow: auto; }
  .sx-page { padding: 10px 12px 16px; }
  .sx-ctr em { display: block; margin-left: 0; }
  .sx-was { display: block; margin-left: 0; }
  /* 快照里的留言板：日期+昵称一行，正文换行，别挤成三列 */
  .sx-gb table, .sx-gb tbody, .sx-gb tr, .sx-gb td { display: block; width: auto !important; }
  .sx-gb tr { padding: 4px 0; border-bottom: 1px dotted #e2ddcf; }
  .sx-gb td { display: inline; border: 0; padding: 0; }
  .sx-gb-t, .sx-gb-n { width: auto !important; margin-right: 8px; }
  .sx-gb td.sx-gb-x { display: block; padding: 1px 2px 0 !important; }
  .sx-note { font-size: 10px; }

  /* 本机窗口 */
  .xp, .xpi { width: 100%; max-width: 100%; border-left: 0; border-right: 0; }
  .xp-menu { gap: 12px; overflow-x: auto; white-space: nowrap; }
  .xp-body { height: 44vh; }
  .xp-table th:nth-child(3), .xp-table td:nth-child(3) { display: none; }
  .xp-table th, .xp-table td { padding: 6px; font-size: 11.5px; }
  .xpi-stage { padding: 10px; max-height: 62vh; }
  .rcpt { width: 100%; max-width: 340px; padding: 12px 12px 8px; transform: none; }
  .rcpt-rows th { width: 66px; font-size: 10px; }
  .rcpt-rows td { font-size: 11.5px; }
  .rcpt-stamp { width: 56px; height: 56px; right: 14px; top: 58px; font-size: 11px; }
  .np { width: 100%; max-width: 100%; border-left: 0; border-right: 0; }
  .np-body { max-height: 56vh; font-size: 13px; }
  .np-menu, .np-status, .xpi-status { font-size: 10.5px; }

  /* 抽屉 */
  .drawer { width: 100%; max-width: 100%; }
}

@media (max-width: 380px) {
  .tab { min-width: 74px; flex: 0 1 110px; }
  .tbtn { width: 26px; }
  .zl-nav { font-size: 11.5px; gap: 5px 9px; }
  .start-grid { grid-template-columns: 1fr; }
  .ctr i { width: 11px; height: 16px; line-height: 16px; font-size: 11px; }
}
