/* ============================================================
   槐安里：未寄出的全家福
   复古千禧网页 / 中式怪核 / ARG
   ============================================================ */

:root {
  --win-face: #c0c0c0;
  --win-light: #ffffff;
  --win-mid: #dfdfdf;
  --win-shadow: #808080;
  --win-dark: #404040;
  --desktop: #087272;
  --desktop-dark: #064f4f;
  --paper: #f4efe2;
  --paper-deep: #ebe3d1;
  --ink: #181716;
  --ink-soft: #4b4842;
  --link: #0000c8;
  --link-visited: #551a8b;
  --red: #9d0d0d;
  --red-bright: #c41616;
  --blue: #000080;
  --gold: #c6a15b;
  --green: #1f4d34;
  --mono: "Lucida Console", "Courier New", monospace;
  --song: "SimSun", "宋体", "Songti SC", serif;
  --hei: "SimHei", "黑体", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--desktop-dark);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--song);
  font-size: 14px;
  line-height: 1.75;
  background: var(--desktop);
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(255, 255, 255, 0.08), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #0a7a7a 0%, #086464 46%, #064b4b 100%);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:visited { color: var(--link-visited); }
a:hover { color: var(--red-bright); background: #fff7b0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 1px dotted #000;
  outline-offset: 2px;
}

img { max-width: 100%; }

::selection {
  background: var(--blue);
  color: #ffff00;
}

/* ---------- 老式桌面 ---------- */

.desktop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 28%, rgba(255,255,255,0.055) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,0.10) 0 1px, transparent 1px);
  background-size: 17px 17px, 23px 23px;
}

.desktop-watermark {
  position: absolute;
  right: 26px;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.30);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-align: right;
  line-height: 1.7;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

.desktop-watermark span {
  font-size: 9px;
  letter-spacing: 0.22em;
}

/* ---------- 浏览器窗口 ---------- */

.browser-window {
  width: min(1180px, calc(100vw - 48px));
  margin: 28px auto 32px;
  background: var(--win-face);
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.28),
    0 26px 80px rgba(0, 0, 0, 0.35);
  position: relative;
}

.titlebar {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px 2px 4px;
  color: #fff;
  background: linear-gradient(90deg, #000080 0%, #1084d0 62%, #58b8e8 100%);
  user-select: none;
}

.titlebar-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
}

.app-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1b64a8;
  border: 1px solid rgba(255,255,255,0.7);
  font-family: "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
  font-weight: bold;
  line-height: 1;
}

.titlebar-text {
  font-family: var(--hei);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.titlebar-buttons {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}

.titlebar-buttons button {
  width: 18px;
  height: 16px;
  padding: 0;
  border: 1px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: var(--win-face);
  color: #000;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: bold;
  line-height: 12px;
}

.titlebar-buttons button:active {
  border-color: #404040 #ffffff #ffffff #404040;
}

.menubar {
  display: flex;
  align-items: center;
  min-height: 22px;
  padding: 0 6px;
  border-top: 1px solid #f6f6f6;
  border-bottom: 1px solid #9b9b9b;
  background: var(--win-face);
  overflow: hidden;
}

.menubar button {
  border: 0;
  background: transparent;
  padding: 1px 7px;
  font-family: var(--song);
  font-size: 12px;
  color: #111;
  line-height: 18px;
}

.menubar button:hover,
.menubar button:focus-visible {
  background: #000080;
  color: #fff;
  outline: none;
}

.menubar-note {
  margin-left: auto;
  color: #555;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.toolbar {
  display: flex;
  align-items: stretch;
  gap: 1px;
  min-height: 38px;
  padding: 3px 5px;
  border-bottom: 1px solid #808080;
  background: linear-gradient(#d8d8d8, #bdbdbd);
  overflow-x: auto;
  scrollbar-width: none;
}

.toolbar::-webkit-scrollbar { display: none; }

.tb-btn {
  border: 1px solid transparent;
  background: transparent;
  min-width: 45px;
  padding: 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #111;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.tb-btn:hover {
  border-color: #fff #6b6b6b #6b6b6b #fff;
  background: #d1d1d1;
}

.tb-btn:active {
  border-color: #6b6b6b #fff #fff #6b6b6b;
}

.tb-glyph {
  font-family: "Arial Unicode MS", "Segoe UI Symbol", sans-serif;
  font-size: 16px;
  line-height: 1.05;
  color: #222;
}

.tb-label {
  font-family: var(--song);
  font-size: 10px;
}

.toolbar-sep {
  width: 1px;
  align-self: stretch;
  margin: 3px 4px;
  background: #8b8b8b;
  border-right: 1px solid #f2f2f2;
}

.toolbar-spacer { flex: 1; }

.maintenance-btn { opacity: 0.72; }
.maintenance-btn:hover { opacity: 1; }

.tb-btn.is-on .tb-glyph { color: #8b0000; }

.addressbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 4px;
  border-bottom: 1px solid #8b8b8b;
  background: var(--win-face);
}

.addressbar > label {
  color: #222;
  font-size: 11px;
  white-space: nowrap;
}

.address-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 22px;
  padding: 0 4px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #fff;
}

.address-icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  background: #1b64a8;
  color: #fff;
  font-family: "Times New Roman", serif;
  font-size: 11px;
  font-style: italic;
  line-height: 1;
}

.address-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #111;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -0.02em;
}

.go-btn,
.win-btn {
  min-width: 55px;
  padding: 2px 10px;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: var(--win-face);
  color: #111;
  font-size: 11px;
  line-height: 16px;
}

.go-btn:active,
.win-btn:active {
  border-color: #404040 #ffffff #ffffff #404040;
}

.win-btn.primary {
  font-weight: bold;
  box-shadow: inset 0 0 0 1px #f5d98d;
}

.browser-body {
  position: relative;
  background: #fff;
  border: 2px solid;
  border-color: #404040 #ffffff #ffffff #404040;
  margin: 0 2px;
  overflow: hidden;
}

.page-scroll {
  min-height: calc(100vh - 220px);
  background: var(--paper);
  outline: none;
  position: relative;
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 23px;
  margin-top: 2px;
  padding: 0 5px;
  border-top: 1px solid #9a9a9a;
  background: var(--win-face);
  color: #222;
  font-size: 11px;
  gap: 8px;
}

.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.status-left { overflow: hidden; }
.status-left > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.status-lock {
  color: #555;
  border-left: 1px solid #999;
  padding-left: 8px;
  white-space: nowrap;
  font-size: 10px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid;
  border-color: #7d7d7d #fff #fff #7d7d7d;
  background: #e4e4e4;
  padding: 1px 6px;
  font-size: 10px;
  color: #222;
  white-space: nowrap;
}

.status-chip:hover { background: #f3e7b1; }
.chip-dot, .zone-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f6b35;
  box-shadow: 0 0 3px #2f6b35;
  display: inline-block;
}
.chip-dot { background: #8b0000; box-shadow: 0 0 3px #8b0000; }
.status-zone { display: inline-flex; align-items: center; gap: 4px; color: #444; }
.status-clock {
  font-family: var(--mono);
  font-size: 10px;
  color: #333;
  white-space: nowrap;
}

/* ---------- 站点页面框架 ---------- */

.site-shell {
  position: relative;
  min-height: calc(100vh - 220px);
  background:
    linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)),
    repeating-linear-gradient(0deg, rgba(90,70,40,0.028) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 80% 0%, rgba(160, 128, 68, 0.11), transparent 32%),
    var(--paper);
}

.site-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(70,50,20,0.04) 50%, transparent 50.2%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(80,60,30,0.035) 119px 120px);
}

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 24px 14px;
  border-bottom: 3px double #8e1a1a;
  background:
    linear-gradient(90deg, rgba(255,252,236,0.96), rgba(244,235,209,0.88)),
    repeating-linear-gradient(45deg, rgba(110,70,20,0.05) 0 1px, transparent 1px 8px);
  overflow: hidden;
}

.site-header::before {
  content: "槐";
  position: absolute;
  right: 18px;
  top: -40px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 150px;
  line-height: 1;
  color: rgba(129, 18, 18, 0.055);
  pointer-events: none;
}

.brand-block { position: relative; z-index: 1; min-width: 0; }

.brand-kicker {
  margin: 0 0 2px;
  color: #6f4d24;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-title {
  margin: 0;
  color: #7d0c0c;
  font-family: "STKaiti", "KaiTi", "SimSun", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.08;
  text-shadow: 1px 1px 0 #e6d4ac, 2px 2px 0 rgba(80, 0, 0, 0.13);
}

.brand-title .brand-dot {
  color: #b18b45;
  font-size: 0.55em;
  vertical-align: middle;
  padding: 0 0.12em;
}

.brand-title a:hover {
  background: transparent;
  color: inherit;
}

.brand-sub {
  margin: 5px 0 0;
  color: #544733;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.header-side {
  position: relative;
  z-index: 1;
  text-align: right;
  font-size: 10px;
  color: #5d4b35;
  line-height: 1.65;
}

.header-side .seal {
  display: inline-block;
  padding: 4px 7px 5px;
  border: 2px solid #a11a1a;
  color: #a11a1a;
  font-family: "STKaiti", "KaiTi", serif;
  font-weight: bold;
  letter-spacing: 0.2em;
  transform: rotate(-3deg);
  background: rgba(255, 246, 228, 0.65);
}

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #b38c4a;
  border-bottom: 1px solid #b38c4a;
  background: #000066;
  color: #ffff66;
  font-family: var(--song);
  font-size: 12px;
  line-height: 24px;
  white-space: nowrap;
}

.marquee span {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  animation: marquee-scroll 26s linear infinite;
}

.marquee:hover span { animation-play-state: paused; }

@keyframes marquee-scroll {
  to { transform: translateX(-100%); }
}

.site-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px 26px;
}

.site-nav {
  align-self: start;
  border: 1px solid #b5a27e;
  background: rgba(252, 248, 237, 0.85);
  box-shadow: 2px 2px 0 rgba(92, 69, 31, 0.12);
}

.site-nav h2 {
  margin: 0;
  padding: 5px 8px;
  border-bottom: 1px solid #b5a27e;
  background: linear-gradient(90deg, #7c1313, #a83434);
  color: #fff5dd;
  font-family: var(--hei);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: normal;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.site-nav li { margin: 0; }

.site-nav a,
.site-nav button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: #17356b;
  text-align: left;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
}

.site-nav a::before,
.site-nav button::before {
  content: "■";
  color: #9b1b1b;
  font-size: 6px;
  transform: translateY(-1px);
}

.site-nav a:hover,
.site-nav button:hover {
  background: #e9ddc0;
  color: #8b0000;
}

.site-nav a.active {
  background: #ede3c9;
  color: #8b0000;
  font-weight: bold;
  box-shadow: inset 3px 0 0 #8b1a1a;
}

.nav-divider {
  height: 1px;
  margin: 5px 8px;
  background: #c8b995;
}

.nav-note {
  margin: 8px 8px 10px;
  padding: 6px;
  border: 1px dashed #b8a27b;
  color: #69563c;
  font-size: 10px;
  line-height: 1.55;
  background: #f9f4e7;
}

.nav-note b { color: #8b0f0f; }

.nav-badge {
  margin: 8px;
  padding: 5px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  color: #fff;
  background: #2c4a2e;
  border: 1px solid #1a2e1b;
  letter-spacing: 0.08em;
}

.site-content {
  min-width: 0;
  position: relative;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 12px 22px 18px;
  border-top: 2px solid #b09c73;
  background: rgba(238, 229, 207, 0.84);
  color: #62533c;
  text-align: center;
  font-size: 10px;
  line-height: 1.8;
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 5px;
}

.site-footer a { color: #5b4f3a; }
.site-footer a:hover { color: #8b0000; }

.footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 7px;
}

.web-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  border: 1px solid #111;
  color: #eee;
  background: #111;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  image-rendering: pixelated;
}

.web-badge:hover { color: #111; background: #ffec6e; }
.web-badge.red { background: #681111; color: #ffe7b0; border-color: #351010; }
.web-badge.blue { background: #0f2c62; color: #cfe6ff; border-color: #08183a; }
.web-badge.green { background: #1e4227; color: #ddffcf; border-color: #102514; }

.maintenance-link {
  border: 0;
  background: transparent;
  color: #73654e;
  font-size: 9px;
  text-decoration: underline;
  padding: 2px 4px;
  opacity: 0.7;
}
.maintenance-link:hover { color: #8b0000; opacity: 1; }

/* ---------- 通用内容组件 ---------- */

.content-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 0 0 7px;
  border-bottom: 1px solid #bdaa83;
}

.content-head h1 {
  margin: 0;
  color: #6f1010;
  font-family: var(--hei);
  font-size: clamp(19px, 2.3vw, 26px);
  font-weight: normal;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.content-head .page-meta {
  flex: 0 0 auto;
  color: #7c6b51;
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
  line-height: 1.6;
}

.content-head .page-meta .new-blink {
  color: #c00000;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.panel {
  border: 1px solid #b9a77f;
  background: rgba(255, 252, 242, 0.78);
  box-shadow: 2px 2px 0 rgba(103, 76, 32, 0.08);
  margin-bottom: 14px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 9px;
  border-bottom: 1px solid #b9a77f;
  background: linear-gradient(90deg, #e8dcc2, #f6efdf);
  color: #5b3914;
  font-family: var(--hei);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.panel-head small {
  font-family: var(--song);
  color: #7d6c50;
  font-size: 9px;
  letter-spacing: 0;
}

.panel-body { padding: 12px 14px; }
.panel-body.tight { padding: 8px 10px; }
.panel-body p:first-child { margin-top: 0; }
.panel-body p:last-child { margin-bottom: 0; }

.lead {
  color: #3d372d;
  font-size: 14px;
  line-height: 1.95;
}

.small { font-size: 11px; color: #665946; }
.mono { font-family: var(--mono); }
.red { color: var(--red); }
.muted { color: #7c705e; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.divider {
  border: 0;
  border-top: 1px dashed #c0ad88;
  margin: 14px 0;
}

.hr-double {
  border: 0;
  border-top: 3px double #b0976d;
  margin: 16px 0;
}

.old-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.34);
  font-size: 12px;
}

.old-table th,
.old-table td {
  border: 1px solid #c1b08e;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.old-table th {
  background: #e4d7bc;
  color: #4f3b1d;
  font-weight: normal;
  font-family: var(--hei);
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.old-table tr:nth-child(even) td { background: rgba(232, 221, 199, 0.35); }
.old-table td.time { color: #776850; font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.old-table .row-link { cursor: pointer; }
.old-table .row-link:hover td { background: #fff2bb; }

.tag {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid #9a8968;
  background: #f0e7d4;
  color: #56452c;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  white-space: nowrap;
}

.tag.hot { border-color: #9c1a1a; color: #9c1a1a; background: #fff2ea; }
.tag.dark { border-color: #111; color: #fff; background: #111; }

.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.text-link:hover { color: var(--red-bright); background: #fff7b0; }
.text-link.strong { color: #8b0000; font-weight: bold; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 14px;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: #d6d2c4;
  color: #151515;
  font-family: var(--hei);
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px #f3efe4;
}

.btn:hover { background: #fff3b9; color: #111; }
.btn:active { border-color: #404040 #fff #fff #404040; }
.btn.primary { background: #b31818; color: #fff8e7; border-color: #e7bdbd #4b0505 #4b0505 #e7bdbd; }
.btn.primary:hover { background: #cc2828; color: #fff; }
.btn.ghost { background: transparent; }
.btn.dark { background: #222; color: #eee; border-color: #777 #000 #000 #777; }
.btn.dark:hover { background: #421111; color: #fff; }
.btn.small { min-height: 22px; padding: 2px 8px; font-size: 11px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.inline-note {
  display: block;
  border-left: 3px solid #a32020;
  background: #f7ead2;
  padding: 7px 10px;
  margin: 10px 0;
  color: #5d3b22;
  font-size: 11px;
  line-height: 1.7;
}

.warning-strip {
  padding: 6px 10px;
  border: 1px solid #a33131;
  background:
    repeating-linear-gradient(45deg, rgba(150,20,20,0.07) 0 5px, transparent 5px 10px),
    #fff1de;
  color: #721010;
  font-size: 11px;
}

.stamp {
  display: inline-block;
  padding: 4px 8px;
  border: 2px solid #a51d1d;
  color: #a51d1d;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.18em;
  transform: rotate(-5deg);
  opacity: 0.85;
  background: rgba(255,255,255,0.25);
}

.stamp.blue { border-color: #1d3d78; color: #1d3d78; transform: rotate(3deg); }

.form-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.form-row label { color: #51442f; font-size: 11px; }

.retro-input,
.retro-textarea,
.retro-select {
  border: 2px solid;
  border-color: #7b7b7b #fff #fff #7b7b7b;
  background: #fffef7;
  color: #161616;
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  border-radius: 0;
}

.retro-input:focus,
.retro-textarea:focus,
.retro-select:focus {
  outline: 1px dotted #000;
  outline-offset: 1px;
  background: #ffffef;
}

.retro-textarea { width: 100%; min-height: 90px; resize: vertical; }
.retro-select { font-family: var(--song); }

input[type="text"], input[type="password"], input[type="search"] { border-radius: 0; }

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #4f4535;
  font-size: 11px;
  line-height: 1.55;
}
.checkline input { margin-top: 3px; }

/* ---------- 首页 ---------- */

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.85fr);
  gap: 14px;
}

.welcome-box {
  position: relative;
  padding: 14px 16px 12px;
  border: 1px solid #c0ad86;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,247,225,0.15)),
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(100,80,40,0.05) 21px 22px);
  margin-bottom: 14px;
}

.welcome-box p { margin: 0 0 8px; }
.welcome-box p:last-child { margin-bottom: 0; }

.lede-mark {
  float: left;
  margin: 2px 9px 0 0;
  color: #9c1616;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 42px;
  line-height: 1;
}

.missing-person {
  position: relative;
  border: 2px solid #8c1b1b;
  background: #fff8e9;
  padding: 10px;
  margin-bottom: 14px;
  box-shadow: 4px 4px 0 rgba(108, 30, 30, 0.12);
}

.missing-person::before {
  content: "寻 人 启 事";
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 2px 10px;
  background: #8c1b1b;
  color: #fff4d6;
  font-family: var(--hei);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.missing-inner {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.missing-photo {
  position: relative;
  height: 116px;
  overflow: hidden;
  border: 1px solid #b7a17a;
  background: #ded4bd;
  filter: grayscale(0.58) sepia(0.12) contrast(0.98);
}

.missing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.missing-photo::after {
  content: "档案翻拍";
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 1px 4px;
  background: rgba(17,17,17,0.68);
  color: #eee3ca;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.missing-info h3 {
  margin: 0 0 4px;
  color: #691111;
  font-family: var(--hei);
  font-size: 15px;
  font-weight: normal;
}

.missing-info p {
  margin: 0 0 4px;
  font-size: 11px;
  line-height: 1.65;
  color: #453b2d;
}

.missing-info .meta-line { color: #79684e; font-size: 10px; }

.home-side .side-box {
  border: 1px solid #b9a77f;
  background: rgba(255, 251, 239, 0.7);
  padding: 9px 11px;
  margin-bottom: 12px;
}

.home-side .side-box h3 {
  margin: 0 0 7px;
  padding-bottom: 3px;
  border-bottom: 1px dotted #b9a77f;
  color: #6d4615;
  font-family: var(--hei);
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.1em;
}

.weather-box {
  background: #dfeaf0 !important;
  border-color: #8ba3b1 !important;
  color: #263b45;
  font-size: 11px;
  text-align: center;
}

.weather-box .temp {
  display: block;
  color: #1c4053;
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1.25;
}

.online-box {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #3e5032;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3f8a42;
  box-shadow: 0 0 4px #3f8a42;
  flex: 0 0 auto;
}
.online-dot.off { background: #888; box-shadow: none; }

.counter-box {
  border: 1px solid #9f8b63;
  background: #1b1c17;
  padding: 7px 8px 6px;
  text-align: center;
}

.counter-label {
  color: #b8ac8e;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.counter-digits {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 3px;
}

.counter-digits span {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 21px;
  background: #090a07;
  color: #e6d083;
  border: 1px solid #4f4b3a;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
}

.progress-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-top: 5px;
}

.progress-strip span {
  height: 6px;
  background: #c6b899;
  border: 1px solid #a3926f;
}

.progress-strip span.on {
  background: #8d1717;
  border-color: #5d0a0a;
  box-shadow: 0 0 4px rgba(141, 23, 23, 0.4);
}

.unread-mail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #a78641;
  background: #fff4bf;
  color: #5b4308;
  font-size: 10px;
  line-height: 1.45;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.unread-mail:hover { background: #ffeaa0; }
.unread-mail .mail-icon {
  width: 20px;
  height: 14px;
  border: 1px solid #7e5d18;
  background: #f6e5a0;
  position: relative;
  flex: 0 0 auto;
}
.unread-mail .mail-icon::after {
  content: "";
  position: absolute;
  left: 1px; right: 1px; top: 1px;
  height: 6px;
  border-bottom: 1px solid #7e5d18;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

/* ---------- 公告 / 时间线 ---------- */

.notice-list { margin: 0; padding: 0; list-style: none; }
.notice-list li {
  padding: 9px 0;
  border-bottom: 1px dotted #c0ad86;
}
.notice-list li:last-child { border-bottom: 0; }
.notice-list .notice-date {
  display: inline-block;
  min-width: 82px;
  color: #7a694d;
  font-family: var(--mono);
  font-size: 10px;
}
.notice-list .notice-title { font-weight: bold; color: #253d66; }
.notice-list .new {
  margin-left: 4px;
  color: #b40000;
  font-family: var(--mono);
  font-size: 8px;
  vertical-align: 1px;
  animation: blink 1.4s steps(1) infinite;
}

.notice-detail h1 { color: #7e1010; }
.notice-detail .notice-number {
  font-family: var(--mono);
  color: #8a7657;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.official-doc {
  border: 1px solid #b5a27c;
  background: #fffdf3;
  padding: 22px 26px;
  box-shadow: inset 0 0 40px rgba(155, 130, 80, 0.08);
  position: relative;
}

.official-doc::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(160, 137, 88, 0.35);
  pointer-events: none;
}

.official-doc h2 {
  margin: 0 0 4px;
  text-align: center;
  font-family: "STKaiti", "KaiTi", var(--song);
  color: #8c1010;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.12em;
}

.official-doc .doc-sub {
  text-align: center;
  color: #7c6848;
  font-size: 10px;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

.official-doc .doc-body {
  font-size: 13px;
  line-height: 2.05;
  color: #2e2921;
}

.official-doc .doc-body p { margin: 0 0 10px; }

.doc-sign {
  margin-top: 22px;
  text-align: right;
  color: #4e4230;
  font-size: 11px;
  line-height: 1.8;
}

.doc-attachment {
  margin-top: 16px;
  padding: 10px;
  border: 1px dashed #a99062;
  background: #f4ecda;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.doc-attachment .file-name {
  font-family: var(--mono);
  font-size: 11px;
  color: #4a3a21;
}

/* ---------- 相册 ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 14px;
  padding: 4px 0;
}

.photo-card {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  font-family: inherit;
}

.photo-frame {
  position: relative;
  padding: 7px 7px 24px;
  background: #fdfbf1;
  border: 1px solid #c9b998;
  box-shadow: 2px 3px 0 rgba(90, 66, 27, 0.14), 0 5px 12px rgba(30, 20, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.photo-card:nth-child(2n) .photo-frame { transform: rotate(0.7deg); }
.photo-card:nth-child(3n) .photo-frame { transform: rotate(-0.6deg); }

.photo-card:hover .photo-frame,
.photo-card:focus-visible .photo-frame {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 3px 6px 0 rgba(90, 66, 27, 0.15), 0 10px 22px rgba(30, 20, 0, 0.12);
}

.photo-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #bbb19a;
  filter: saturate(0.72) sepia(0.13) contrast(0.97);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 7px 7px 24px;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 43%, rgba(255,255,255,0.11) 44%, transparent 46%),
    radial-gradient(circle at 70% 20%, transparent 0 55%, rgba(34,26,12,0.20) 100%);
}

.photo-caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 5px;
  color: #5f563f;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-caption .photo-no { color: #9b1b1b; }

.photo-card .photo-meta {
  display: block;
  margin: 4px 2px 0;
  color: #65583f;
  font-size: 10px;
  line-height: 1.35;
}

.photo-card .photo-meta b { font-weight: normal; color: #7e1010; }

.photo-card.locked .photo-img {
  filter: sepia(0.45) brightness(0.57) contrast(1.22) grayscale(0.22);
}
.photo-card.locked .photo-frame::before {
  content: "底片受损";
  position: absolute;
  z-index: 2;
  right: 7px;
  bottom: 24px;
  padding: 1px 5px;
  color: #f0d8c2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  background: rgba(104, 18, 18, 0.86);
  border: 1px solid rgba(230, 195, 160, 0.3);
}

.album-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 8px 10px;
  border: 1px solid #b9a77f;
  background: #f6efdd;
  font-size: 11px;
  color: #5e4a2d;
}

.album-note .note-mark {
  flex: 0 0 auto;
  color: #9c1a1a;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
}

/* ---------- BBS / 帖子 ---------- */

.board-table td { line-height: 1.55; }
.board-table .topic-title { color: #17356b; font-weight: bold; }
.board-table .topic-title .tag { margin-left: 5px; vertical-align: 1px; }
.board-table .author { color: #5c4a31; font-size: 11px; }

.thread { margin-bottom: 16px; }

.post {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  border: 1px solid #ad9a73;
  background: #fffdf5;
  margin-bottom: 10px;
}

.post-user {
  padding: 10px;
  border-right: 1px solid #c7b692;
  background: #f0e7d3;
  font-size: 11px;
  color: #56452c;
}

.post-user .avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  border: 1px solid #9d8a65;
  background: #2f3940;
  color: #d7cfb7;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 28px;
  overflow: hidden;
}

.post-user .avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(0.2); }
.post-user .username { display: block; text-align: center; font-weight: bold; color: #233c66; word-break: break-all; }
.post-user .usertitle { display: block; text-align: center; color: #8c1a1a; font-size: 9px; margin-top: 2px; }
.post-user .userstats { margin-top: 8px; padding-top: 6px; border-top: 1px dotted #b7a57f; font-size: 9px; line-height: 1.75; color: #75654c; }

.post-body {
  min-width: 0;
  padding: 10px 13px 12px;
  display: flex;
  flex-direction: column;
}

.post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px dotted #c8b996;
  margin-bottom: 8px;
  color: #776a56;
  font-size: 10px;
}

.post-head .floor { color: #9a1a1a; font-family: var(--mono); font-size: 9px; }
.post-text { flex: 1; color: #29251f; font-size: 13px; line-height: 1.9; }
.post-text p { margin: 0 0 9px; }
.post-text p:last-child { margin-bottom: 0; }
.post-signature { margin-top: 13px; padding-top: 5px; border-top: 1px dashed #c8b996; color: #87775d; font-size: 9px; line-height: 1.6; }

.post-attachment {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid #a58e64;
  background: #f5eedf;
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 10px;
  color: #5a4525;
  cursor: pointer;
}
.post-attachment:hover { background: #fff0b8; border-color: #8c6a2c; }
.post-attachment .paperclip { font-size: 13px; transform: rotate(-28deg); }

.post-notice {
  border: 1px solid #b8a378;
  background: #f9f1dc;
  padding: 8px 11px;
  font-size: 11px;
  color: #675133;
  margin-bottom: 12px;
}

.bbs-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- 留言本 ---------- */

.guestbook {
  border: 1px solid #b9a77f;
  background: #fffdf6;
}

.guest-entry {
  position: relative;
  padding: 12px 14px;
  border-bottom: 1px dashed #c7b795;
}

.guest-entry:last-child { border-bottom: 0; }
.guest-entry .guest-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.guest-entry .guest-name { color: #183c70; font-weight: bold; font-size: 12px; }
.guest-entry .guest-name .guest-no { color: #9a1b1b; font-family: var(--mono); font-size: 10px; margin-right: 5px; }
.guest-entry .guest-time { color: #837259; font-family: var(--mono); font-size: 9px; }
.guest-entry .guest-text { color: #332c23; font-size: 12px; line-height: 1.85; }
.guest-entry .guest-reply {
  margin-top: 7px;
  padding: 6px 9px;
  border-left: 2px solid #9c1b1b;
  background: #f7edd8;
  color: #695236;
  font-size: 10px;
  line-height: 1.7;
}

.guest-entry.ghost-entry {
  background: #f2e8d2;
  box-shadow: inset 3px 0 0 #8a1010;
}
.guest-entry.ghost-entry .guest-text { font-family: var(--mono); color: #4c1a1a; }

.guestbook-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  border-top: 1px solid #b9a77f;
  background: #efe4cc;
  font-size: 10px;
  color: #6c5a3f;
}

/* ---------- 小满主页 ---------- */

.diary-layout { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 14px; }

.diary-cover {
  position: relative;
  padding: 22px 24px 20px;
  border: 3px double #7c1a1a;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,0.7), transparent 45%),
    repeating-linear-gradient(0deg, rgba(120,100,60,0.045) 0 1px, transparent 1px 24px),
    #fbf2df;
  text-align: center;
  margin-bottom: 14px;
  overflow: hidden;
}

.diary-cover::before,
.diary-cover::after {
  content: "✿";
  position: absolute;
  color: rgba(140, 30, 30, 0.11);
  font-size: 80px;
  line-height: 1;
}
.diary-cover::before { left: -14px; bottom: -28px; }
.diary-cover::after { right: -8px; top: -30px; }

.diary-cover h1 {
  position: relative;
  margin: 0;
  color: #8c1616;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 38px;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-shadow: 2px 2px 0 #eed9ac;
}

.diary-cover .diary-sub {
  position: relative;
  margin: 4px 0 10px;
  color: #755f3e;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.diary-cover .diary-motto {
  position: relative;
  display: inline-block;
  padding: 4px 12px;
  border-top: 1px solid #b5965b;
  border-bottom: 1px solid #b5965b;
  color: #5e4e37;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.profile-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.profile-table th, .profile-table td { padding: 4px 6px; border-bottom: 1px dotted #c4b28e; text-align: left; vertical-align: top; }
.profile-table th { width: 66px; color: #79603c; font-weight: normal; white-space: nowrap; }
.profile-table td { color: #393126; }

.diary-entry {
  padding: 12px 0;
  border-bottom: 1px dashed #c6b48f;
}
.diary-entry:last-child { border-bottom: 0; }
.diary-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b1a1a;
  font-family: var(--mono);
  font-size: 10px;
  margin-bottom: 5px;
}
.diary-date::after { content: ""; flex: 1; height: 1px; background: #d5c5a2; }
.diary-entry .weather { color: #77654a; font-family: var(--song); font-size: 9px; }
.diary-text { color: #302a22; font-size: 12px; line-height: 1.9; }
.diary-text p { margin: 0 0 7px; }
.diary-text p:last-child { margin-bottom: 0; }
.diary-text .pencil { color: #6d5a3e; }
.diary-entry.secret-entry { background: linear-gradient(90deg, rgba(255,241,205,0.55), transparent); }

.folded-note {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px dashed #a98c56;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(160,130,75,0.14) 49%, transparent 51%),
    #fbf1d9;
  color: #59472d;
  text-align: left;
  font-size: 11px;
  font-family: var(--song);
  cursor: pointer;
}
.folded-note:hover { background-color: #fff0b9; color: #6a1b12; }
.folded-note::before { content: "▸ "; color: #9a1b1b; }

.diary-side .tinyvisitor {
  border: 1px solid #b7a37d;
  background: #f8f1df;
  padding: 8px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 10px;
  color: #6a593f;
}
.diary-side .tinyvisitor .counter-digits span { width: 13px; height: 18px; font-size: 12px; }
.diary-side .tinyvisitor .counter-digits { margin: 4px 0 3px; }

.quote-box {
  border-left: 3px solid #8d1a1a;
  background: #f6ecd5;
  padding: 7px 10px;
  margin: 10px 0;
  color: #5a4123;
  font-size: 11px;
  line-height: 1.7;
}

/* ---------- OICQ 聊天 ---------- */

.oicq-window {
  border: 2px solid;
  border-color: #fff #3b3b3b #3b3b3b #fff;
  background: #d6d2c4;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.oicq-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #0c4076, #2d7ab5);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 6px;
  letter-spacing: 0.03em;
}

.oicq-title .oicq-btns { display: flex; gap: 2px; }
.oicq-title .oicq-btns span {
  width: 14px; height: 13px; display: grid; place-items: center;
  border: 1px solid #fff; background: #c0c0c0; color: #000; font-size: 9px; line-height: 1;
}

.oicq-main { display: grid; grid-template-columns: 142px minmax(0, 1fr); min-height: 420px; }

.oicq-sidebar {
  border-right: 1px solid #8b8b8b;
  background: #e6e2d7;
  padding: 6px;
}

.oicq-sidebar .oicq-group-title {
  font-size: 9px;
  color: #6e624e;
  border-bottom: 1px dotted #b7a98b;
  padding: 2px 3px 3px;
  margin-bottom: 4px;
}

.oicq-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 3px;
  font-size: 10px;
  color: #444;
  border: 1px solid transparent;
}

.oicq-contact.active {
  border-color: #8ba5b6 #fff #fff #8ba5b6;
  background: #f7f1df;
  color: #1e2f48;
}

.oicq-avatar {
  width: 24px; height: 24px;
  border: 1px solid #716c5d;
  background: #fff;
  overflow: hidden;
  flex: 0 0 auto;
}
.oicq-avatar img { width: 100%; height: 100%; object-fit: cover; }

.oicq-contact .contact-status { margin-left: auto; font-size: 8px; color: #888; }
.oicq-contact.online .contact-status { color: #2c7a37; }

.oicq-chatpane { display: flex; flex-direction: column; min-width: 0; background: #fbfaf4; }

.oicq-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 6px;
  border-bottom: 1px solid #a5a5a5;
  background: #e6e2d7;
  font-size: 9px;
  color: #655b48;
}

.oicq-messages {
  flex: 1;
  min-height: 270px;
  max-height: 340px;
  overflow-y: auto;
  padding: 12px 14px;
  background:
    repeating-linear-gradient(0deg, rgba(100,80,50,0.025) 0 1px, transparent 1px 25px),
    #fffdf6;
  scrollbar-color: #aaa #e4e0d4;
}

.msg { margin-bottom: 10px; font-size: 11px; line-height: 1.7; }
.msg .msg-who { display: block; font-size: 9px; color: #7b6b55; margin-bottom: 1px; }
.msg .msg-bubble {
  display: inline-block;
  max-width: 85%;
  padding: 5px 9px;
  border: 1px solid #b7a98d;
  background: #f6efdf;
  color: #30291f;
  word-break: break-word;
}
.msg.self { text-align: right; }
.msg.self .msg-who { color: #4a5e80; }
.msg.self .msg-bubble { background: #dfeaf6; border-color: #99adc1; text-align: left; }
.msg.sys { text-align: center; color: #8a7a60; font-size: 9px; }
.msg.sys .msg-bubble { border: 0; background: transparent; padding: 0; color: #8a7a60; }
.msg.ghost .msg-who { color: #8a1717; }
.msg.ghost .msg-bubble { background: #f3e3e0; border-color: #b68686; color: #481616; }

.oicq-typing {
  padding: 0 14px 4px;
  min-height: 16px;
  color: #8c1a1a;
  font-size: 9px;
  font-family: var(--mono);
}

.oicq-compose {
  border-top: 1px solid #a5a5a5;
  padding: 6px;
  background: #e6e2d7;
}

.oicq-compose textarea {
  width: 100%;
  min-height: 54px;
  resize: vertical;
  border: 2px solid;
  border-color: #7b7b7b #fff #fff #7b7b7b;
  background: #fffef7;
  padding: 5px;
  font-family: var(--song);
  font-size: 11px;
  line-height: 1.6;
}

.oicq-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
}

.oicq-actions .quick-replies { display: flex; flex-wrap: wrap; gap: 4px; }
.quick-reply {
  border: 1px solid #9e9279;
  background: #f7f0df;
  color: #51422e;
  padding: 1px 6px;
  font-size: 9px;
  line-height: 1.55;
}
.quick-reply:hover { background: #fff1b8; color: #6d1a12; }

.oicq-send {
  min-width: 84px;
  padding: 5px 14px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #d7d2c3;
  color: #111;
  font-size: 11px;
}
.oicq-send:active { border-color: #404040 #fff #fff #404040; }

.oicq-statusbar {
  border-top: 1px solid #8f8f8f;
  background: #d6d2c4;
  padding: 2px 6px;
  color: #5b5344;
  font-size: 8px;
  font-family: var(--mono);
}

.chat-warning {
  max-width: 760px;
  margin: 0 auto 8px;
  padding: 5px 9px;
  border: 1px solid #b9a77f;
  background: #f9f0da;
  color: #6c5433;
  font-size: 10px;
  line-height: 1.6;
}

/* ---------- 搜索 / 旧闻 ---------- */

.search-box {
  display: flex;
  gap: 6px;
  padding: 10px;
  border: 1px solid #b9a77f;
  background: #f7f0df;
  margin-bottom: 12px;
}
.search-box input { flex: 1; min-width: 0; }

.search-results { margin-top: 14px; }
.search-result {
  padding: 8px 0;
  border-bottom: 1px dotted #c3b18c;
}
.search-result:last-child { border-bottom: 0; }
.search-result .result-title { color: #12377b; font-size: 13px; font-weight: bold; }
.search-result .result-url { color: #3e6f3a; font-family: var(--mono); font-size: 9px; margin: 1px 0 2px; }
.search-result .result-desc { color: #5c5140; font-size: 11px; line-height: 1.7; }

.newspaper {
  background:
    repeating-linear-gradient(0deg, rgba(90,70,30,0.045) 0 1px, transparent 1px 4px),
    #e9e1cb;
  border: 1px solid #a99a78;
  padding: 20px;
  box-shadow: inset 0 0 60px rgba(88, 67, 30, 0.13);
}
.newspaper .paper-name {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 4px double #3a352c;
  padding-bottom: 5px;
  margin-bottom: 5px;
  color: #302b23;
}
.newspaper .paper-name h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 34px;
  letter-spacing: 0.12em;
  line-height: 1;
}
.newspaper .paper-name .paper-info { text-align: right; font-family: var(--mono); font-size: 8px; line-height: 1.6; }
.newspaper .paper-date {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #7c7361;
  padding: 3px 0 5px;
  color: #514a3d;
  font-size: 9px;
  font-family: var(--mono);
}
.newspaper .headline {
  margin: 16px 0 6px;
  font-family: var(--hei);
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: #1e1c18;
  text-align: center;
}
.newspaper .subhead {
  text-align: center;
  font-size: 11px;
  color: #554d3f;
  margin-bottom: 14px;
}
.newspaper .article-cols {
  column-count: 2;
  column-gap: 24px;
  column-rule: 1px solid #a99a78;
  font-size: 11px;
  line-height: 1.9;
  color: #322d24;
  text-align: justify;
}
.newspaper .article-cols p { margin: 0 0 8px; break-inside: avoid; }
.newspaper .article-cols p:first-child::first-letter {
  float: left;
  font-size: 38px;
  line-height: 0.9;
  padding: 4px 6px 0 0;
  color: #5c0e0e;
  font-family: "STKaiti", "KaiTi", serif;
}
.newspaper .article-photo {
  float: right;
  width: 46%;
  margin: 3px 0 8px 12px;
  break-inside: avoid;
  border: 1px solid #8e8063;
  padding: 3px;
  background: #ded4bd;
}
.newspaper .article-photo img { display: block; filter: grayscale(1) sepia(0.3) contrast(1.1); }
.newspaper .article-photo figcaption { font-size: 8px; color: #5c5240; line-height: 1.5; padding-top: 3px; }
.newspaper .paper-foot {
  margin-top: 15px;
  padding-top: 6px;
  border-top: 1px solid #8d826d;
  font-size: 8px;
  color: #6d6250;
  display: flex;
  justify-content: space-between;
  gap: 9px;
  flex-wrap: wrap;
}

/* ---------- 地下室 ---------- */

.dark-page {
  min-height: calc(100vh - 220px);
  background:
    radial-gradient(ellipse at 50% 32%, rgba(92, 110, 79, 0.16), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px),
    #080a08;
  color: #b9c0ad;
  padding: 34px 22px 60px;
  font-family: var(--mono);
  position: relative;
  overflow: hidden;
}

.dark-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 24%, rgba(0,0,0,0.72) 88%);
}

.basement-wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.basement-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #283126;
  padding-bottom: 5px;
  color: #586450;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.basement-title {
  margin: 22px 0 6px;
  color: #9ca88e;
  font-family: var(--hei);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: normal;
  letter-spacing: 0.22em;
  text-align: center;
  text-shadow: 0 0 16px rgba(160, 188, 132, 0.13);
}

.basement-sub {
  text-align: center;
  color: #4f5b46;
  font-size: 9px;
  letter-spacing: 0.2em;
  margin-bottom: 26px;
}

.door-frame {
  width: min(360px, 86%);
  margin: 0 auto;
  border: 12px solid #1e211c;
  border-bottom-width: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 28px),
    linear-gradient(100deg, #343a2f, #1b211a 55%, #11150f);
  box-shadow: 0 0 0 2px #070907, 0 20px 60px rgba(0,0,0,0.65), inset 0 0 80px #000;
  padding: 30px 22px 24px;
  text-align: center;
  position: relative;
}

.door-frame::before {
  content: "防 空 地 下 室";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  color: #79806c;
  border: 1px solid #555c4c;
  padding: 1px 8px;
  font-size: 8px;
  letter-spacing: 0.22em;
  background: rgba(0,0,0,0.35);
  white-space: nowrap;
}

.door-lock {
  width: 74px;
  height: 105px;
  margin: 18px auto 12px;
  border: 2px solid #4b5143;
  background: linear-gradient(120deg, #333a2f, #171b15);
  box-shadow: inset 0 0 18px #000, 0 0 0 5px #11150f;
  position: relative;
}

.door-lock::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 25px;
  border: 2px solid #69715c;
  border-radius: 50%;
  background: #11150f;
  box-shadow: inset 0 0 8px #000;
}

.door-lock::after {
  content: "????";
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  color: #991d1d;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-align: center;
  opacity: 0.55;
}

.door-keypad {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 14px 0 8px;
  flex-wrap: wrap;
}

.door-keypad input {
  width: 120px;
  border: 1px solid #55604c;
  background: #0b0d0a;
  color: #b5c29f;
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.4em;
  text-align: center;
  outline: none;
}
.door-keypad input:focus { border-color: #8f9e80; box-shadow: 0 0 8px rgba(148, 170, 130, 0.23); }

.dark-btn {
  border: 1px solid #5a6450;
  background: #1a1f18;
  color: #aab59b;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.dark-btn:hover { background: #2b3326; color: #d0d9c2; border-color: #8c9a7e; }
.dark-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.door-hint {
  color: #5e6954;
  font-size: 9px;
  line-height: 1.75;
  margin-top: 10px;
}

.dark-log {
  margin: 24px auto 0;
  max-width: 560px;
  padding: 13px 15px;
  border-left: 1px solid #3c4635;
  background: rgba(255,255,255,0.012);
  color: #7d8971;
  font-size: 11px;
  line-height: 2;
}

.dark-log p { margin: 0 0 7px; }
.dark-log p:last-child { margin-bottom: 0; }
.dark-log .highlight { color: #aeb99f; }
.dark-log .danger { color: #9b4c4c; }

.corridor {
  max-width: 700px;
  margin: 22px auto 0;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.corridor-scene {
  position: relative;
  height: 260px;
  overflow: hidden;
  border: 1px solid #242a21;
  background:
    linear-gradient(90deg, #0c0f0b 0%, #1c211a 28%, #282e24 50%, #1c211a 72%, #0c0f0b 100%);
  perspective: 420px;
}

.corridor-scene::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 68px;
  height: 145px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(90deg, #070907, #20261d 40%, #20261d 60%, #070907),
    #0b0d0a;
  border: 1px solid #30372c;
  box-shadow: 0 0 0 6px #151a13, 0 0 45px rgba(0,0,0,0.9);
}

.corridor-scene::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 15%;
  width: 2px;
  height: 34px;
  background: #707765;
  box-shadow: 0 0 18px 6px rgba(157, 169, 135, 0.12);
  transform: translateX(-50%);
}

.corridor-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32%;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(100,110,86,0.1) 34px 35px),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 55%),
    #11140f;
  border-top: 1px solid #2b3226;
  transform: perspective(200px) rotateX(35deg);
  transform-origin: bottom;
}

.corridor-figure {
  position: absolute;
  left: 50%;
  bottom: 31%;
  width: 18px;
  height: 52px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #b9b7a3, #6b6c5c 70%, transparent);
  border-radius: 50% 50% 20% 20%;
  opacity: 0.58;
  filter: blur(1px);
  animation: figure-breathe 4.5s ease-in-out infinite;
}

@keyframes figure-breathe {
  0%, 100% { transform: translateX(-50%) scaleY(1); opacity: 0.48; }
  50% { transform: translateX(-50%) scaleY(1.04); opacity: 0.7; }
}

.corridor-stage {
  border: 1px solid #2c3428;
  border-top: 0;
  background: #0b0d0a;
  padding: 14px 16px;
  color: #8a967d;
  font-size: 11px;
  line-height: 1.9;
}

.corridor-stage p { margin: 0 0 8px; }
.corridor-stage .stage-kicker { color: #4c5744; font-size: 8px; letter-spacing: 0.18em; }

.basement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.name-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 5px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid #2b3227;
  background: rgba(255,255,255,0.02);
}

.name-wall span {
  color: #5e6954;
  font-size: 9px;
  border-bottom: 1px dotted #313a2e;
  padding: 1px 0;
}
.name-wall span.target { color: #b16a6a; border-color: #6b3a3a; }

.basement-photo-piece {
  display: block;
  width: min(280px, 90%);
  margin: 16px auto;
  border: 9px solid #d7d2c0;
  background: #d7d2c0;
  filter: sepia(0.3) brightness(0.85);
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
}
.basement-photo-piece:hover { filter: sepia(0.2) brightness(1); }

/* ---------- 线索本 / 修复页 / 结局 ---------- */

.notebook { max-width: 720px; }

.fragment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fragment-item {
  display: flex;
  gap: 9px;
  padding: 8px;
  border: 1px solid #c2b18d;
  background: #fbf5e6;
  font-size: 10px;
  line-height: 1.55;
}

.fragment-item.empty { opacity: 0.5; border-style: dashed; background: transparent; }
.fragment-thumb {
  flex: 0 0 58px;
  width: 58px;
  height: 42px;
  border: 1px solid #a69169;
  background: #ddd3bb;
  overflow: hidden;
}
.fragment-thumb img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.5) contrast(1.1); }
.fragment-thumb.empty {
  display: grid;
  place-items: center;
  color: #9a8b70;
  font-family: var(--mono);
  font-size: 8px;
  background: repeating-linear-gradient(45deg, #e6ddc8 0 4px, #eee6d3 4px 8px);
}
.fragment-thumb.empty img { filter: none; opacity: 0.82; }
.fragment-item h4 { margin: 0 0 2px; color: #6e4317; font-size: 11px; font-weight: bold; }
.fragment-item p { margin: 0; color: #62543e; }
.fragment-item .frag-id { color: #941818; font-family: var(--mono); font-size: 8px; }

.clue-list { list-style: none; margin: 0; padding: 0; }
.clue-list li {
  position: relative;
  padding: 7px 8px 7px 23px;
  border-bottom: 1px dotted #c5b38e;
  font-size: 11px;
  line-height: 1.7;
}
.clue-list li:last-child { border-bottom: 0; }
.clue-list li::before {
  content: "✓";
  position: absolute;
  left: 6px;
  top: 7px;
  color: #8a1818;
  font-family: var(--mono);
  font-size: 10px;
}
.clue-list li.empty { color: #998c76; }
.clue-list li.empty::before { content: "·"; color: #998c76; }
.clue-source { display: block; color: #8c7b5f; font-size: 8px; margin-top: 1px; }

.tabs {
  display: flex;
  gap: 3px;
  border-bottom: 1px solid #a58f65;
  margin-bottom: 10px;
}
.tab-btn {
  border: 1px solid #a58f65;
  border-bottom: 0;
  background: #e9dfc8;
  color: #5d4a2d;
  padding: 4px 12px;
  font-size: 10px;
  position: relative;
  top: 1px;
}
.tab-btn.active { background: #fffaf0; color: #811414; font-weight: bold; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.ritual-page {
  min-height: calc(100vh - 220px);
  background:
    radial-gradient(ellipse at 50% 17%, rgba(164, 103, 47, 0.25), transparent 41%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 4px),
    #15100d;
  color: #d3c4a9;
  padding: 26px 20px 50px;
}
.ritual-wrap { max-width: 820px; margin: 0 auto; }
.ritual-kicker {
  text-align: center;
  color: #8f7658;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
}
.ritual-title {
  margin: 6px 0 4px;
  color: #d7c5a7;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0.16em;
  text-align: center;
  text-shadow: 0 0 20px rgba(210, 163, 96, 0.14);
}
.ritual-sub {
  text-align: center;
  color: #80705a;
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.ritual-photo {
  position: relative;
  padding: 12px 12px 36px;
  background: #d7cfbd;
  border: 1px solid #7f725c;
  box-shadow: 0 16px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  width: min(620px, 90%);
  margin: 0 auto 20px;
  transform: rotate(-0.5deg);
}

.ritual-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(0.28) contrast(1.02) brightness(0.95);
}

.ritual-photo .ritual-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 11px;
  color: #5b4d38;
  font-family: var(--mono);
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.photo-assembly {
  position: absolute;
  inset: 12px 12px 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  pointer-events: none;
  gap: 1px;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.photo-assembly.show { opacity: 1; }
.photo-assembly span {
  background: rgba(255, 248, 224, 0.18);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.2);
}

.ritual-copy {
  max-width: 640px;
  margin: 0 auto 18px;
  color: #b4a58c;
  font-size: 12px;
  line-height: 2;
  text-align: center;
}
.ritual-copy p { margin: 0 0 10px; }

.ritual-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 740px;
  margin: 20px auto 0;
}

.choice-card {
  border: 1px solid #55483a;
  background: rgba(255,255,255,0.025);
  color: #b8a78d;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.choice-card:hover, .choice-card:focus-visible {
  background: rgba(160, 112, 58, 0.12);
  border-color: #9d835f;
}
.choice-card .choice-no { display: block; color: #6f5a41; font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; }
.choice-card h3 { margin: 2px 0 5px; color: #d3be9e; font-family: var(--hei); font-size: 13px; font-weight: normal; }
.choice-card p { margin: 0; color: #887963; font-size: 10px; line-height: 1.7; }
.choice-card.chosen { border-color: #b69363; background: rgba(179, 137, 82, 0.16); }

.ritual-form {
  max-width: 460px;
  margin: 16px auto 0;
  padding: 16px;
  border: 1px solid #584a3c;
  background: rgba(255,255,255,0.03);
  text-align: center;
}
.ritual-form label { display: block; color: #9c8668; font-size: 9px; letter-spacing: 0.1em; margin-bottom: 7px; }
.ritual-form input {
  width: 100%;
  border: 1px solid #63533f;
  background: #0f0c09;
  color: #ddcdb1;
  padding: 7px 10px;
  font-family: var(--song);
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.15em;
  outline: none;
}
.ritual-form input:focus { border-color: #b59464; box-shadow: 0 0 10px rgba(195, 160, 103, 0.15); }
.ritual-form .btn-row { justify-content: center; }

.ending-page {
  min-height: calc(100vh - 220px);
  padding: 44px 24px 64px;
  position: relative;
  overflow: hidden;
}

.ending-wrap {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ending-kicker {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.28em;
  text-align: center;
  opacity: 0.66;
  text-transform: uppercase;
}

.ending-title {
  margin: 10px 0 4px;
  text-align: center;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(34px, 6vw, 58px);
  font-weight: normal;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.ending-sub {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.62;
  margin-bottom: 28px;
}

.ending-body {
  max-width: 610px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 2.2;
}
.ending-body p { margin: 0 0 12px; }

.ending-meta {
  margin: 26px auto 0;
  max-width: 600px;
  border-top: 1px solid currentColor;
  border-color: rgba(128,128,128,0.36);
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;
  opacity: 0.62;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ending-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.ending-remember {
  background:
    radial-gradient(ellipse at 50% 6%, rgba(255, 246, 210, 0.95), transparent 55%),
    linear-gradient(180deg, #e9dcc0 0%, #c9b48e 55%, #84745c 100%);
  color: #372c1d;
}
.ending-remember .ending-title { color: #52251a; text-shadow: 0 2px 0 rgba(255,255,255,0.4); }
.ending-remember::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20%;
  width: 90%;
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,250,224,0.7), transparent 64%);
  pointer-events: none;
}
.ending-remember .ending-photo {
  max-width: 460px;
  margin: 20px auto 6px;
  padding: 10px 10px 28px;
  background: #f6eedc;
  border: 1px solid #ad9977;
  box-shadow: 0 12px 40px rgba(74,53,28,0.28);
  transform: rotate(1.2deg);
}
.ending-remember .ending-photo img { display: block; width: 100%; filter: sepia(0.12) brightness(1.05); }
.ending-remember .ending-photo figcaption {
  padding-top: 6px;
  text-align: center;
  color: #6e5840;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.ending-forget {
  background:
    radial-gradient(ellipse at 50% 50%, #171717 0%, #050505 68%),
    #030303;
  color: #a9a59b;
}
.ending-forget .ending-title { color: #c9c5bb; }
.ending-forget .ending-body { color: #99958b; }
.ending-forget .ending-actions .btn { background: #222; color: #ccc; border-color: #666 #000 #000 #666; }
.ending-forget .ending-actions .btn:hover { background: #3a1a1a; color: #fff; }

.ending-replace {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 30%, #581313 0%, #1b0808 52%, #050202 100%);
  color: #d2b2a3;
}
.ending-replace .ending-title { color: #e3c0ab; text-shadow: 0 0 25px rgba(200, 80, 50, 0.28); }
.ending-replace .ending-body { color: #bb9c8e; }
.ending-replace .registry {
  margin: 22px auto;
  max-width: 500px;
  border: 1px solid #79443c;
  background: rgba(0,0,0,0.3);
  padding: 13px 15px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 2;
  color: #c4a596;
}
.ending-replace .registry .row-new { color: #ef8f73; background: rgba(170,55,30,0.18); display: block; padding: 0 4px; }
.ending-replace .ending-actions .btn { background: #2b1111; color: #e0c0b1; border-color: #8b5c52 #190808 #190808 #8b5c52; }
.ending-replace .ending-actions .btn:hover { background: #501818; color: #fff; }

.ending-icon-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
}
.ending-icon {
  width: 92px;
  height: 58px;
  border: 1px solid rgba(120,110,95,0.6);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 8px;
  line-height: 1.5;
  color: currentColor;
  opacity: 0.48;
}
.ending-icon.unlocked { opacity: 1; border-color: #9d825e; background: rgba(255,255,255,0.05); }

/* ---------- 弹窗 ---------- */

#overlay-root { position: relative; z-index: 300; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 4, 4, 0.55);
  backdrop-filter: blur(1px);
}

.modal-window {
  width: min(590px, 96vw);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--win-face);
  border: 2px solid;
  border-color: #fff #3f3f3f #3f3f3f #fff;
  box-shadow: 5px 6px 0 rgba(0,0,0,0.35), 0 25px 70px rgba(0,0,0,0.4);
  animation: modal-pop 0.16s ease-out;
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-window.large { width: min(800px, 96vw); }
.modal-window.small { width: min(410px, 96vw); }
.modal-window.wide { width: min(960px, 97vw); }

.modal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 24px;
  padding: 2px 3px 2px 5px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-family: var(--hei);
  font-size: 11px;
  font-weight: bold;
  user-select: none;
}

.modal-titlebar .modal-close {
  width: 18px;
  height: 16px;
  border: 1px solid;
  border-color: #fff #404040 #404040 #fff;
  background: var(--win-face);
  color: #000;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 11px;
  padding: 0;
}

.modal-content {
  padding: 14px 16px 15px;
  overflow-y: auto;
  color: #1e1e1e;
  font-size: 12px;
  line-height: 1.8;
  background: var(--win-face);
}

.modal-content p { margin: 0 0 9px; }
.modal-content p:last-child { margin-bottom: 0; }
.modal-content h2 {
  margin: 0 0 8px;
  font-family: var(--hei);
  font-size: 15px;
  color: #303030;
  font-weight: normal;
}
.modal-content h3 {
  margin: 10px 0 5px;
  font-family: var(--hei);
  font-size: 12px;
  color: #4b3b24;
  font-weight: normal;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #9c9c9c;
}
.modal-statusbar {
  padding: 3px 7px;
  border-top: 1px solid #fff;
  color: #555;
  font-size: 9px;
  font-family: var(--mono);
  background: var(--win-face);
}

.email-fields {
  border: 1px solid #8f8f8f;
  background: #fff;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.85;
}
.email-fields .field-label { color: #555; display: inline-block; min-width: 54px; }
.email-fields .field-value { color: #111; }
.email-body {
  padding: 10px 12px;
  border: 1px solid #8f8f8f;
  background: #fffef7;
  color: #292929;
  font-size: 12px;
  line-height: 2;
}
.email-body p { margin: 0 0 9px; }
.email-body .sig { margin-top: 14px; color: #771313; font-family: "STKaiti", "KaiTi", serif; font-size: 15px; }

.lightbox-window {
  width: min(900px, 96vw);
  max-height: calc(100vh - 30px);
  background: #1b1b1b;
  border: 2px solid #eee;
  box-shadow: 0 20px 80px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
}
.lightbox-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  background: #d7d4ca;
  color: #222;
  font-family: var(--mono);
  font-size: 10px;
}
.lightbox-title .modal-close {
  border: 1px solid #777; background: #eee; height: 16px; width: 18px; font-size: 11px; line-height: 1;
}
.lightbox-img-wrap {
  background: #050505;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 10px;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 68vh;
  display: block;
  filter: sepia(0.1);
}
.lightbox-caption {
  padding: 8px 12px 10px;
  color: #bbb5a8;
  font-size: 10px;
  line-height: 1.75;
  background: #181818;
}
.lightbox-caption b { color: #e1cda8; font-weight: normal; }

/* 开发者工具 */
.dev-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 8px;
  border: 1px solid #999;
  background: #e4e4e4;
  margin-bottom: 10px;
}
.dev-toolbar .dev-path {
  flex: 1;
  min-width: 120px;
  color: #555;
  font-family: var(--mono);
  font-size: 9px;
}
.dev-section { margin-bottom: 13px; }
.dev-section h3 { margin: 0 0 5px; border-bottom: 1px solid #999; padding-bottom: 3px; color: #343434; }
.dev-route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-height: 210px;
  overflow-y: auto;
  border: 1px solid #999;
  padding: 5px;
  background: #f4f4f4;
}
.dev-route-item {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #bbb;
  background: #fff;
  text-align: left;
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  color: #1f3a64;
}
.dev-route-item:hover { background: #ffffca; color: #771010; border-color: #8d7a4a; }
.dev-route-item .dev-route-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-route-item .lock-mark { color: #a28a62; font-size: 8px; white-space: nowrap; }
.dev-route-item .lock-mark.open { color: #34703a; }
.dev-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.dev-box {
  border: 1px solid #9e9e9e;
  background: #f2f2f2;
  padding: 7px 8px;
}
.dev-box h4 { margin: 0 0 4px; font-size: 10px; color: #3e3e3e; }
.dev-box .btn-row { margin-top: 5px; gap: 4px; }
.dev-flag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9px;
  padding: 3px 0;
  border-bottom: 1px dotted #bbb;
}
.dev-flag-row:last-child { border-bottom: 0; }
.dev-password-row { display: flex; gap: 6px; margin-top: 10px; }
.dev-password-row input { flex: 1; }
.dev-hint { color: #6a6a6a; font-size: 10px; line-height: 1.6; }
.dev-state {
  max-height: 140px;
  overflow: auto;
  background: #0c0c0c;
  color: #99d68e;
  font-family: var(--mono);
  font-size: 9px;
  padding: 6px 8px;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid #333;
}
.dev-badge {
  display: inline-block;
  background: #111;
  color: #8cff70;
  font-family: var(--mono);
  font-size: 8px;
  padding: 0 4px;
  border: 1px solid #606060;
  letter-spacing: 0.05em;
}
.shake { animation: shake 0.25s linear 2; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* 笔记本 / 提示 / 确认 */
.notebook-tabs { margin-top: 3px; }
.notebook-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border: 1px solid #a5a5a5;
  background: #f6f2e7;
  font-size: 10px;
  color: #5e503b;
  margin-bottom: 8px;
}
.notebook-summary b { color: #8b1111; }

.confirm-line {
  padding: 8px 10px;
  border: 1px solid #a78e5d;
  background: #fff5d7;
  font-size: 11px;
  color: #5e4216;
  margin: 8px 0;
}

/* Toast */
#toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}
.toast {
  max-width: min(340px, 86vw);
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: var(--win-face);
  color: #1a1a1a;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
  padding: 7px 10px;
  font-size: 11px;
  line-height: 1.55;
  animation: toast-in 0.2s ease-out;
}
.toast .toast-title { display: block; font-family: var(--hei); font-size: 10px; color: #741414; margin-bottom: 1px; }
.toast.good { background: #e8f2dd; }
.toast.bad { background: #f7dede; }
.toast.clue { background: #fff2c4; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 启动屏幕 ---------- */

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(37, 88, 82, 0.28), transparent 47%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px),
    #040b0a;
  color: #b8c3ac;
  overflow: auto;
}

.boot-screen::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 36%, rgba(0,0,0,0.65) 100%);
}

.monitor {
  position: relative;
  z-index: 1;
  width: min(700px, 94vw);
}

.monitor-bezel {
  padding: 22px 22px 28px;
  background:
    linear-gradient(145deg, #c7c2b2 0%, #aaa698 28%, #8d897d 100%);
  border: 2px solid #e1ddd0;
  border-right-color: #6d695e;
  border-bottom-color: #5a574e;
  border-radius: 12px 12px 8px 8px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.65), inset 0 0 0 2px rgba(255,255,255,0.15);
}

.monitor-screen {
  position: relative;
  background: #07100d;
  border: 8px solid #1d211e;
  border-radius: 18px / 12px;
  box-shadow: inset 0 0 80px #000, 0 0 0 1px #5b5b50;
  padding: clamp(20px, 4vw, 34px) clamp(20px, 5vw, 44px);
  overflow: hidden;
  min-height: 410px;
}

.monitor-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(180,255,190,0.035) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 38%, rgba(91, 165, 143, 0.09), transparent 65%);
  pointer-events: none;
}

.monitor-screen::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 7%;
  height: 23%;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.monitor-screen > * { position: relative; z-index: 1; }

.boot-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #22342b;
  padding-bottom: 5px;
  color: #4e6c58;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.boot-logo {
  margin: 23px 0 2px;
  color: #b8c9ae;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(44px, 8vw, 76px);
  font-weight: bold;
  letter-spacing: 0.18em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 14px rgba(156, 196, 165, 0.16), 0 0 2px rgba(214, 234, 210, 0.3);
  animation: logo-flicker 8s infinite;
}

@keyframes logo-flicker {
  0%, 97%, 100% { opacity: 1; }
  97.4% { opacity: 0.74; }
  97.8% { opacity: 1; }
  98.2% { opacity: 0.82; }
  98.6% { opacity: 1; }
}

.boot-sub {
  margin: 5px 0 20px;
  color: #788f7b;
  font-family: var(--song);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-align: center;
}

.boot-rule {
  width: 76px;
  height: 1px;
  margin: 0 auto 15px;
  background: #617864;
}

.boot-log {
  width: min(420px, 100%);
  margin: 0 auto 17px;
  color: #607765;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.9;
}

.boot-log p { margin: 0; }
.boot-log .ok { color: #8fab87; }
.boot-log .warn { color: #a98463; }
.boot-log .bad { color: #9c5d5d; }

.boot-warning {
  width: min(470px, 100%);
  margin: 0 auto 14px;
  padding: 7px 10px;
  border: 1px solid #4b4033;
  background: rgba(125, 95, 55, 0.08);
  color: #927c5b;
  font-size: 9px;
  line-height: 1.75;
  text-align: center;
}

.boot-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.boot-start {
  min-width: 210px;
  padding: 8px 18px;
  border: 1px solid #7e927c;
  background: #15241b;
  color: #bed0b4;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  box-shadow: 0 0 0 1px #0a130d, 0 0 18px rgba(120, 160, 130, 0.08);
}

.boot-start:hover { background: #263d2c; color: #e3eedb; border-color: #b5c9ab; }
.boot-start:active { transform: translateY(1px); }

.boot-secondary {
  border: 0;
  background: transparent;
  color: #6f8570;
  font-family: var(--song);
  font-size: 10px;
  text-decoration: underline;
  padding: 2px 7px;
}
.boot-secondary:hover { color: #b3c1a9; background: transparent; }

.boot-checkline {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6e816c;
  font-size: 9px;
  font-family: var(--song);
}
.boot-checkline input { accent-color: #52694f; }

.boot-save {
  margin: 4px 0 6px;
  color: #8b9f84;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  text-align: center;
}
.boot-save .saved-route { color: #b7c8ac; }

.monitor-stand {
  width: 38%;
  height: 16px;
  margin: 0 auto;
  background: linear-gradient(180deg, #8a877b, #5e5c54);
  border: 1px solid #4b4942;
  border-top: 0;
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}
.monitor-base {
  width: 55%;
  height: 8px;
  margin: 0 auto;
  background: #6f6c61;
  border: 1px solid #46443e;
  border-top: 0;
}
.monitor-brand {
  margin-top: 8px;
  text-align: center;
  color: #444b43;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.28em;
}

/* ---------- CRT / 特效 ---------- */

.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0.34;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.crt-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,0.28) 100%),
    linear-gradient(90deg, rgba(255,0,0,0.014), rgba(0,255,0,0.008), rgba(0,0,255,0.014));
}

body.effects-on .crt-overlay { animation: crt-hum 9s infinite; }

@keyframes crt-hum {
  0%, 100% { opacity: 0.33; }
  47% { opacity: 0.34; }
  48% { opacity: 0.29; }
  49% { opacity: 0.35; }
}

body.effects-off .crt-overlay,
body.effects-off .site-shell::after { display: none; }

body.effects-off *,
body.effects-off *::before,
body.effects-off *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

.glitch-flash {
  position: fixed;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 5px),
    rgba(100, 0, 0, 0.44);
  animation: flash-out 0.55s steps(3) forwards;
}
@keyframes flash-out {
  0% { opacity: 1; filter: invert(0); }
  18% { opacity: 0.65; filter: invert(1) hue-rotate(80deg); }
  34% { opacity: 0.92; transform: translateX(-7px); }
  52% { opacity: 0.2; transform: translateX(5px); }
  72% { opacity: 0.7; transform: translateX(-2px); }
  100% { opacity: 0; transform: translateX(0); }
}

.jumpscare {
  position: fixed;
  inset: 0;
  z-index: 460;
  background: #000;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: scare 1.3s steps(2) forwards;
}
.jumpscare .scare-face {
  width: min(340px, 58vw);
  height: min(430px, 74vh);
  position: relative;
  filter: contrast(1.9) grayscale(1) brightness(0.8);
}
.jumpscare .scare-face::before {
  content: "";
  position: absolute;
  inset: 10% 22% 0;
  border-radius: 48% 48% 32% 32%;
  background:
    radial-gradient(circle at 37% 45%, #050505 0 5%, transparent 6%),
    radial-gradient(circle at 63% 45%, #050505 0 5%, transparent 6%),
    radial-gradient(ellipse at 50% 72%, #0a0a0a 0 9%, transparent 10%),
    linear-gradient(180deg, #c8c0ae, #777265 56%, #1d1c19);
  box-shadow: 0 0 80px rgba(255,255,255,0.16);
  animation: scare-shake 0.07s infinite;
}
.jumpscare .scare-face::after {
  content: "";
  position: absolute;
  left: 27%;
  right: 27%;
  top: 36%;
  height: 2px;
  background: #1a1a1a;
  box-shadow: 0 30px 0 #1a1a1a;
}
@keyframes scare { 0% { opacity: 0; } 7% { opacity: 1; } 76% { opacity: 1; } 100% { opacity: 0; } }
@keyframes scare-shake { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(3px,-2px) scale(1.012); } 100% { transform: translate(-2px,1px) scale(1); } }

.static-screen {
  position: fixed;
  inset: 0;
  z-index: 440;
  background:
    repeating-radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.14) 0 1px, transparent 1px 4px),
    #111;
  animation: static-fade 0.5s ease-out forwards;
  pointer-events: none;
}
@keyframes static-fade { from { opacity: 0.9; } to { opacity: 0; } }

/* 轻微页面故障 */
.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
.glitch-text::before { color: #8a0d0d; transform: translate(1px, 0); clip-path: inset(0 0 55% 0); opacity: 0.6; }
.glitch-text::after { color: #0a4b5e; transform: translate(-1px, 1px); clip-path: inset(58% 0 0 0); opacity: 0.45; }

/* ---------- 其他页面 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.about-avatar {
  border: 1px solid #b7a47c;
  background: #e6dcc4;
  padding: 5px;
}
.about-avatar img { display: block; width: 100%; filter: sepia(0.2) contrast(1.05); }
.about-avatar .caption { color: #746248; font-size: 9px; text-align: center; padding-top: 4px; line-height: 1.5; }

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.link-card {
  display: block;
  padding: 8px 10px;
  border: 1px solid #b9a77f;
  background: #fbf5e7;
  color: #4d3d27;
  text-decoration: none;
  font-size: 11px;
}
.link-card:hover { background: #fff0b8; color: #7b1610; }
.link-card b { display: block; color: #1e3e70; font-size: 12px; }
.link-card span { display: block; color: #7a6a54; font-size: 9px; margin-top: 2px; }

.error-page {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.15) 0 1px, transparent 1px 3px),
    #0c0c0c;
  color: #b9b5aa;
  text-align: center;
}
.error-inner { max-width: 560px; }
.error-code {
  color: #a9a69c;
  font-family: var(--mono);
  font-size: clamp(64px, 12vw, 120px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 3px 3px 0 #1c1c1c, 0 0 28px rgba(255,255,255,0.05);
}
.error-title { color: #d2cabb; font-family: var(--hei); font-size: 18px; font-weight: normal; letter-spacing: 0.15em; margin: 5px 0 10px; }
.error-desc { color: #7d7a72; font-size: 11px; line-height: 1.9; }
.error-desc code { color: #b4b09f; background: #191919; padding: 0 4px; }
.error-page .btn { border-color: #777 #111 #111 #777; background: #242424; color: #bbb; }
.error-page .btn:hover { background: #3b1b1b; color: #fff; }

.fake-ad {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 2px outset #a7a7a7;
  background:
    repeating-linear-gradient(45deg, #fff6c9 0 5px, #fff0b1 5px 10px);
  color: #641010;
  font-family: var(--hei);
  font-size: 11px;
  margin-bottom: 12px;
}
.fake-ad .ad-btn {
  border: 1px solid #7c5f1a;
  background: #e7cb68;
  color: #4e3606;
  padding: 2px 8px;
  font-size: 9px;
  white-space: nowrap;
}
.fake-ad .ad-btn:hover { background: #f6dc7b; }

.under-construction {
  height: 18px;
  border: 1px solid #7f725b;
  background:
    repeating-linear-gradient(45deg, #e3b22f 0 9px, #2c261c 9px 18px);
  position: relative;
  overflow: hidden;
  margin: 8px 0;
}
.under-construction::after {
  content: "本站正在建设中 · 请稍后再来";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(244,239,226,0.82);
  color: #4e4230;
  font-size: 8px;
  letter-spacing: 0.07em;
}

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .browser-window { width: calc(100vw - 20px); margin: 10px auto 18px; }
  .site-body { grid-template-columns: 158px minmax(0, 1fr); padding-left: 14px; padding-right: 14px; gap: 12px; }
  .home-grid { grid-template-columns: 1fr; }
  .home-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-side .side-box { margin-bottom: 0; }
  .diary-layout { grid-template-columns: 1fr; }
  .diary-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .diary-side .tinyvisitor { margin-bottom: 0; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newspaper .article-cols { column-count: 1; }
  .ritual-choices { grid-template-columns: 1fr; }
  .site-header { grid-template-columns: 1fr; gap: 8px; padding: 15px 18px 12px; }
  .header-side { text-align: left; }
  .header-side .seal { font-size: 10px; }
}

@media (max-width: 720px) {
  body { font-size: 13px; }
  .browser-window { width: 100vw; margin: 0; border-left: 0; border-right: 0; }
  .menubar-note { display: none; }
  .menubar button { padding: 1px 4px; font-size: 10px; }
  .toolbar { min-height: 34px; padding: 2px; }
  .tb-btn { min-width: 38px; padding: 2px 3px; }
  .tb-label { font-size: 8px; }
  .tb-glyph { font-size: 14px; }
  .addressbar > label { display: none; }
  .addressbar { padding: 3px; }
  .go-btn { min-width: 44px; padding: 2px 6px; }
  .status-lock, .status-zone { display: none; }
  .status-left > span:first-child { max-width: 150px; }
  .site-body { grid-template-columns: 1fr; padding: 10px 11px 20px; }
  .site-nav { order: 2; }
  .site-nav ul { display: flex; flex-wrap: wrap; padding: 4px; }
  .site-nav li { flex: 1 0 31%; }
  .site-nav a, .site-nav button { padding: 3px 5px; font-size: 11px; }
  .site-nav a::before, .site-nav button::before { font-size: 5px; }
  .site-nav h2 { display: none; }
  .nav-note, .nav-badge, .nav-divider { display: none; }
  .site-content { order: 1; }
  .home-side { grid-template-columns: 1fr; }
  .diary-side { grid-template-columns: 1fr; }
  .missing-inner { grid-template-columns: 78px minmax(0, 1fr); }
  .missing-photo { height: 100px; }
  .photo-grid { gap: 12px 9px; }
  .post { grid-template-columns: 86px minmax(0, 1fr); }
  .post-user { padding: 7px 5px; }
  .post-user .avatar { width: 42px; height: 42px; font-size: 21px; }
  .post-user .userstats { font-size: 8px; }
  .oicq-main { grid-template-columns: 90px minmax(0, 1fr); }
  .oicq-sidebar { padding: 4px; }
  .oicq-contact { font-size: 9px; }
  .oicq-avatar { width: 20px; height: 20px; }
  .oicq-messages { max-height: 300px; padding: 9px; }
  .oicq-actions { align-items: flex-start; }
  .newspaper { padding: 12px; }
  .newspaper .paper-name h1 { font-size: 25px; }
  .newspaper .article-photo { float: none; width: 100%; margin: 8px 0; }
  .fragment-list { grid-template-columns: 1fr; }
  .dev-route-list { grid-template-columns: 1fr; }
  .dev-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-avatar { width: 150px; }
  .links-grid { grid-template-columns: 1fr; }
  .site-header { padding: 12px 13px 9px; }
  .brand-title { font-size: 30px; }
  .brand-sub { font-size: 9px; }
  .site-footer { padding: 10px 12px 14px; }
  .ending-page { padding: 30px 16px 50px; }
  .ritual-photo { width: 100%; }
  .ritual-copy { font-size: 11px; }
  .monitor-bezel { padding: 13px 13px 17px; }
  .monitor-screen { padding: 20px 15px; min-height: 400px; }
  .modal-backdrop { padding: 8px; }
  .modal-window { max-height: calc(100vh - 16px); }
  .lightbox-img-wrap img { max-height: 58vh; }
}

@media (max-width: 430px) {
  .titlebar-text { font-size: 10px; }
  .menubar button { font-size: 9px; padding: 1px 2px; }
  .tb-btn { min-width: 32px; }
  .tb-label { display: none; }
  .status-clock { display: none; }
  .brand-title { font-size: 26px; letter-spacing: 0.08em; }
  .header-side { display: none; }
  .photo-grid { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .post-user { display: flex; align-items: center; gap: 7px; border-right: 0; border-bottom: 1px solid #c7b692; padding: 5px 8px; }
  .post-user .avatar { width: 26px; height: 26px; margin: 0; font-size: 15px; }
  .post-user .username { text-align: left; }
  .post-user .usertitle, .post-user .userstats { display: none; }
  .oicq-main { grid-template-columns: 1fr; }
  .oicq-sidebar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .marquee span { padding-left: 0; animation: none; white-space: normal; }
}
