/* =========================================================
   Miku Archive Project — 经典复古论坛样式 (Vercel Node.js / HTML 版)
   ========================================================= */

:root {
  --miku:        #39C5BB;
  --miku-dark:   #1E7E78;
  --miku-deep:   #0E3835;
  --miku-bg:     #E8F6F5;
  --miku-light:  #F2FAF9;
  
  --bg-page:     #E4EEF0;
  --bg-box:      #FFFFFF;
  --bg-sub:      #F5F9FA;
  --bg-alt:      #EDF5F7;
  --border:      #B2D4D8;
  --border-dark: #6C9E9A;
  --border-light:#E0EEF0;

  --text-main:   #1C2D30;
  --text-dim:    #4D666A;
  --text-mute:   #7D989C;
  --text-link:   #0A6E75;
  --text-hover:  #FF4081;

  --danger:      #D92548;
  --danger-bg:   #FFF0F2;
  --danger-border:#EFA2AE;
  --terminal:    #00FF88;

  --font-sans:   'Segoe UI', -apple-system, BlinkMacSystemFont, 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono:   'SF Mono', 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-main);
  background: var(--bg-page) url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" fill="%23e4eef0"/><path d="M0 0h40v1H0z" fill="%23d8e5e8"/></svg>') repeat;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-link); text-decoration: none; cursor: pointer; }
a:hover { color: var(--text-hover); text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 10px; }

/* ---------------- 顶部精简条 ---------------- */
.topbar {
  background: var(--miku-deep);
  color: #BDE4E2;
  font-size: 11px;
  height: 28px;
  line-height: 28px;
  border-bottom: 1px solid var(--border-dark);
}
.topbar-in { display: flex; justify-content: space-between; align-items: center; }
.topbar-l { font-weight: bold; letter-spacing: 0.5px; }
.topbar-r { display: flex; align-items: center; gap: 10px; }
.topbar-time { font-family: var(--font-mono); color: #8FD5D0; font-size: 11px; }

.clearance {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: #154F4C;
  color: #B4E8E5;
  border: 1px solid #237873;
}
.clearance[data-state="root"] {
  background: var(--danger);
  color: #FFF;
  border-color: #A0102C;
}

/* ---------------- 站点主标头 ---------------- */
.masthead {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--miku-bg) 100%);
  border-bottom: 2px solid var(--miku);
  padding: 10px 0;
}
.masthead-in { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.brand-note {
  font-size: 24px;
  color: var(--miku);
  background: var(--miku-deep);
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 6px;
  font-family: serif;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.3);
}
.brand-txt b { display: block; font-size: 18px; color: var(--miku-dark); line-height: 1.15; }
.brand-txt i { display: block; font-size: 11px; color: var(--text-mute); font-style: normal; }

.masthead-meta { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 12px; }
.masthead-meta span b { color: var(--miku-dark); font-family: var(--font-mono); }
.version-tag {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
}
.version-tag:hover { background: #FFF; color: var(--text-main); }

/* ---------------- 导航栏 ---------------- */
.navbar {
  background: var(--miku-dark);
  border-bottom: 2px solid #135A55;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.navbar-in { display: flex; flex-wrap: wrap; }
.nav-link {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.15);
  border-left: 1px solid rgba(0,0,0,0.12);
  color: #E8F8F7;
  font-size: 12px;
  font-weight: bold;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-link:first-child { border-left: none; }
.nav-link:hover { background: #269690; color: #FFF; }
.nav-link.is-active {
  background: #FFF;
  color: var(--miku-dark);
  border-bottom: 2px solid #FFF;
  margin-bottom: -2px;
}
.nav-archive { background: transparent; color: #E8F8F7; }

/* ---------------- 面包屑 ---------------- */
.crumb {
  font-size: 11px;
  color: var(--text-mute);
  padding: 7px 10px;
  margin-bottom: 4px;
}

/* ---------------- 基础板块与框体 ---------------- */
.box {
  background: var(--bg-box);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.box-h {
  background: linear-gradient(180deg, #E6F5F4 0%, #D4EBE9 100%);
  color: var(--miku-deep);
  font-size: 12px;
  font-weight: bold;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.box-h-more { font-size: 11px; font-weight: normal; color: var(--text-link); cursor: pointer; }
.box-h-more:hover { text-decoration: underline; color: var(--text-hover); }
.box-h-btn {
  font-size: 11px;
  font-weight: normal;
  color: #FFF;
  background: var(--miku-dark);
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
}
.box-h-btn:hover { background: #269690; }

.box-b { padding: 12px; }
.box-f {
  background: var(--bg-sub);
  border-top: 1px solid var(--border-light);
  padding: 6px 12px;
  font-size: 11px;
  color: var(--text-mute);
}
.box-note { margin: 0 0 10px; color: var(--text-dim); font-size: 12px; }

/* ---------------- 页面视图 ---------------- */
.view { display: none; }
.view.is-active { display: block; }

/* ---------------- 首页两列布局 ---------------- */
.home-cols { display: grid; grid-template-columns: 1fr 280px; gap: 12px; }
.home-main, .home-side { display: flex; flex-direction: column; }

.welcome p { margin: 0 0 8px; font-size: 12.5px; color: var(--text-main); }
.welcome-sub { color: var(--text-dim); font-size: 11.5px; }
.welcome-btns { display: flex; gap: 8px; margin-top: 10px; }

.btn {
  font-family: inherit;
  font-size: 12px;
  padding: 5px 14px;
  border: 1px solid var(--border-dark);
  background: linear-gradient(180deg, #FFFFFF 0%, #E8F2F4 100%);
  color: var(--text-main);
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.btn:hover { background: #FFF; border-color: var(--miku); color: var(--text-link); }
.btn:active { background: #DEEDF0; }
.btn-primary {
  background: linear-gradient(180deg, #44CEC4 0%, #2FAFA6 100%);
  border-color: #208780;
  color: #FFF;
  font-weight: bold;
}
.btn-primary:hover { background: linear-gradient(180deg, #53D9D0 0%, #36BEB5 100%); color: #FFF; }

.notice { list-style: none; margin: 0; padding: 0; }
.notice li { font-size: 11.5px; padding: 4px 0; border-bottom: 1px dashed var(--border-light); color: var(--text-dim); }
.notice li:last-child { border-bottom: none; }
.notice i { font-family: var(--font-mono); font-style: normal; color: var(--miku-dark); margin-right: 6px; font-size: 10.5px; }
.notice-foot { margin: 8px 0 0; font-size: 10.5px; color: var(--text-mute); }

.mini-events { list-style: none; margin: 0; padding: 0; }
.mini-events li { font-size: 11.5px; padding: 5px 0; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.mini-events li:last-child { border-bottom: none; }
.mini-events i { font-family: var(--font-mono); font-style: normal; color: var(--text-mute); font-size: 10.5px; }
.mini-events b { font-size: 11.5px; color: var(--text-main); flex: 1; margin: 0 6px; }

.quote { font-style: italic; color: var(--miku-dark); font-size: 12px; margin: 0 0 6px; }
.quote-src { font-size: 10.5px; color: var(--text-mute); text-align: right; margin: 0; }

.pick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pick-card {
  border: 1px solid var(--border);
  background: var(--bg-sub);
  padding: 6px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.pick-card:hover { border-color: var(--miku); background: #FFF; transform: translateY(-2px); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.pick-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 2px; margin-bottom: 4px; display: block; background: #D5E5E8; }
.pick-title { font-size: 11.5px; font-weight: bold; color: var(--text-main); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-p { font-size: 10px; color: var(--text-mute); }

/* ---------------- 论坛表格 ---------------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th {
  background: #F0F6F7;
  color: var(--text-dim);
  font-weight: bold;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 11px;
}
.tbl td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.tbl tbody tr:hover td { background: var(--miku-light); }

.c-no { width: 35px; text-align: center; font-family: var(--font-mono); color: var(--text-mute); }
.c-cat { width: 85px; }
.c-au { width: 110px; }
.c-num { width: 65px; text-align: center; font-family: var(--font-mono); font-size: 11px; }
.c-time { width: 90px; font-family: var(--font-mono); color: var(--text-mute); font-size: 11px; }
.c-p { width: 130px; color: var(--text-dim); }
.c-y, .c-bpm { width: 55px; text-align: center; font-family: var(--font-mono); font-size: 11px; }
.c-tag { width: 65px; text-align: center; }

.tbl-row { cursor: pointer; }
.post-tit { font-size: 12.5px; font-weight: bold; color: var(--text-link); }
.post-tit:hover { color: var(--text-hover); }
.post-prev { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.post-user { font-weight: bold; color: var(--text-main); }
.post-badge-mini { font-size: 10px; color: var(--text-mute); }

.st {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: bold;
}
.st-myth { background: #D9F4F2; color: #157973; border: 1px solid #9BD8D4; }
.st-legend { background: #FFF1D6; color: #9E6400; border: 1px solid #F5D38A; }
.st-hall { background: #EDF3F5; color: #53757C; border: 1px solid #CADDE1; }
.st-live { background: #E4F7E6; color: #1F7A2A; border: 1px solid #A4E2AC; }
.st-soon { background: #FFF4E5; color: #A66509; border: 1px solid #F7D7A3; }
.st-past { background: #F0F0F0; color: #888; border: 1px solid #DDD; }

/* ---------------- 分类筛选栏 ---------------- */
.filter-b {
  background: var(--bg-sub);
  border-bottom: 1px solid var(--border-light);
  padding: 6px 12px;
  display: flex;
  align-items: center;
}
.filter-lbl { font-size: 11px; font-weight: bold; color: var(--text-dim); margin-right: 6px; }
.filter-set { display: flex; gap: 4px; flex-wrap: wrap; }
.tabx {
  background: #FFF;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
  cursor: pointer;
  color: var(--text-dim);
}
.tabx:hover { border-color: var(--miku); color: var(--text-link); }
.tabx.is-active { background: var(--miku-dark); border-color: var(--miku-dark); color: #FFF; font-weight: bold; }

/* ---------------- 在线成员列表 ---------------- */
.mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.mem {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-sub);
  padding: 4px 8px;
  border: 1px solid var(--border-light);
  border-radius: 2px;
}
.mem .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mem b { font-size: 11.5px; color: var(--text-main); }
.mem small { font-size: 10px; color: var(--text-mute); margin-left: auto; }

/* ---------------- 形象图鉴网格 ---------------- */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal-card {
  border: 1px solid var(--border);
  background: var(--bg-sub);
  padding: 8px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gal-card:hover { border-color: var(--miku); background: #FFF; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.gal-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: #DCECF0;
  border-radius: 2px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gal-thumb img { width: 100%; height: 100%; display: block; }
.gal-thumb img.gal-cover { object-fit: cover; }
.gal-thumb img.gal-contain { object-fit: contain; padding: 8px; }
.gal-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: bold;
  color: rgba(255,255,255,.85);
}
.gal-name { font-size: 12px; font-weight: bold; color: var(--text-main); margin-bottom: 2px; }
.gal-meta { font-size: 10.5px; color: var(--text-mute); }
.gal-colors { display: flex; gap: 2px; margin-top: 6px; height: 4px; }
.gal-colors span { flex: 1; border-radius: 1px; }

.gal-big {
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-alt);
  margin-bottom: 12px;
  overflow: hidden;
}
.gal-big img { width: 100%; max-height: 300px; display: block; }
.gal-big img.gal-cover { object-fit: cover; }
.gal-big img.gal-contain { object-fit: contain; padding: 14px; }

/* ---------------- 互动台 ---------------- */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.voice-btn {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  border-radius: 2px;
  cursor: pointer;
}
.voice-btn:hover { background: #FFF; border-color: var(--miku); }
.voice-btn b { display: block; font-size: 12px; color: var(--miku-dark); }
.voice-btn small { display: block; font-size: 10.5px; color: var(--text-mute); }

.leek-b { text-align: center; padding: 20px 10px; }
.leek-btn { background: none; border: none; cursor: pointer; padding: 0; transform-origin: bottom center; transition: transform 0.1s; }
.leek-btn:active { transform: scale(0.92) rotate(-8deg); }
.leek-count { font-size: 32px; font-family: var(--font-mono); font-weight: bold; color: var(--miku-dark); margin: 8px 0 2px; }
.leek-rank { font-size: 12px; color: var(--text-dim); }

/* ---------------- 表单与纪念票 ---------------- */
.form-tbl { width: 100%; max-width: 500px; border-collapse: collapse; font-size: 12px; }
.form-tbl th { width: 70px; text-align: right; padding: 6px 10px; color: var(--text-dim); }
.form-tbl td { padding: 6px 0; }
.form-tbl input, .form-tbl select, .form-tbl textarea {
  width: 100%;
  font-family: inherit;
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #FFF;
}
.form-tbl input:focus, .form-tbl select:focus, .form-tbl textarea:focus {
  outline: none;
  border-color: var(--miku);
  box-shadow: 0 0 0 2px rgba(57,197,187,0.2);
}

.ticket-box {
  margin-top: 15px;
  border: 2px dashed var(--miku);
  background: var(--miku-light);
  padding: 15px;
  border-radius: 4px;
  max-width: 460px;
}
.ticket-tit { font-size: 14px; font-weight: bold; color: var(--miku-dark); border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 8px; }
.ticket-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-dim); margin-bottom: 4px; }
.ticket-sn { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-mute); margin-top: 8px; text-align: right; }

/* ---------------- 弹窗与详情 ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 34, 38, 0.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
.overlay[hidden] {
  display: none !important;
}

.sheet {
  background: #FFF;
  border: 2px solid var(--miku-dark);
  border-radius: 3px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 16px 20px;
  position: relative;
}
.sheet-narrow { max-width: 480px; }
.sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 1px solid #CCC;
  border-radius: 2px;
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  color: #666;
}
.sheet-close:hover { background: #EEE; color: #000; }
.sheet-h { margin: 0 0 12px; font-size: 15px; color: var(--miku-deep); border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.form-msg { color: var(--danger); font-size: 11px; margin-top: 6px; }

/* 帖子详情 */
.post-detail-h { font-size: 16px; font-weight: bold; color: var(--miku-deep); margin: 0 0 6px; }
.post-detail-meta { font-size: 11px; color: var(--text-mute); border-bottom: 1px solid var(--border-light); padding-bottom: 8px; margin-bottom: 12px; }
.post-detail-body { font-size: 13px; line-height: 1.7; color: #222; margin-bottom: 16px; white-space: pre-wrap; }
.post-detail-bar { display: flex; align-items: center; justify-content: space-between; background: var(--bg-sub); padding: 6px 10px; border: 1px solid var(--border-light); margin-bottom: 15px; }

.cmt-sec-h { font-size: 12px; font-weight: bold; color: var(--text-dim); margin-bottom: 8px; }
.cmt-item { border-bottom: 1px dotted var(--border-light); padding: 8px 0; font-size: 12px; }
.cmt-item:last-child { border-bottom: none; }
.cmt-item-h { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-mute); margin-bottom: 2px; }
.cmt-item-h b { color: var(--text-main); }
.cmt-item-t { color: #333; }

.cmt-box { margin-top: 15px; }
.cmt-box textarea { width: 100%; padding: 6px; font-size: 12px; border: 1px solid var(--border); }
.cmt-box-btn { margin-top: 6px; text-align: right; }

/* 曲目详情 */
.song-view-grid { display: grid; grid-template-columns: 180px 1fr; gap: 15px; margin-bottom: 12px; }
.song-view-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 2px; border: 1px solid var(--border); background: #D5E5E8; }
.song-bili-btn {
  display: inline-block;
  background: #FB7299;
  color: #FFF !important;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: bold;
  border-radius: 3px;
  text-decoration: none !important;
  margin-top: 6px;
}
.song-bili-btn:hover { background: #FF85A7; }
.song-view-synth {
  display: inline-block;
  background: var(--miku-dark);
  color: #FFF;
  padding: 5px 12px;
  font-size: 11.5px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 6px;
}
.song-view-synth:hover { background: #269690; }

.lyric-box {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text-dim);
  border-left: 3px solid var(--miku);
  margin-top: 10px;
}

/* =========================================================
   隐藏线索文字：完全透明，只有被用户拖选时才显现并可点击
   ========================================================= */
.deepsea-anomaly {
  margin-top: 20px;
  font-size: 11px;
  line-height: 1.6;
  color: transparent;
  user-select: text;
  cursor: default;
}
.deepsea-anomaly::selection { background: var(--miku); color: var(--miku-deep); }
.deepsea-anomaly *::selection { background: var(--miku); color: var(--miku-deep); }
.deepsea-anomaly::-moz-selection { background: var(--miku); color: var(--miku-deep); }
.deepsea-anomaly *::-moz-selection { background: var(--miku); color: var(--miku-deep); }

.deepsea-anomaly a {
  color: transparent;
  text-decoration: none;
  cursor: default;
}
.deepsea-anomaly.is-revealed a {
  cursor: pointer;
}

/* ---------------- 旧导出控制台 ---------------- */
.overlay-term { background: rgba(0, 0, 0, 0.85); }
.terminal {
  width: min(640px, 100%);
  background: #0C1215;
  border: 1px solid #1E3A36;
  border-radius: 3px;
  font-family: var(--font-mono);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  color: #8FD8D0;
}
.term-bar {
  background: #142226;
  border-bottom: 1px solid #1E3A36;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.term-title { font-size: 11px; color: #588A83; }
.term-bar .sheet-close { border-color: #2D4C47; color: #588A83; }
.term-bar .sheet-close:hover { background: #223B37; color: #FFF; }

.term-body {
  height: 280px;
  overflow-y: auto;
  padding: 10px;
  font-size: 11.5px;
  line-height: 1.6;
}
.term-line { white-space: pre-wrap; word-break: break-all; }
.term-line.is-cmd { color: #E8FFF6; font-weight: bold; }
.term-line.is-dim { color: #436B65; }
.term-line.is-ok { color: var(--terminal); }
.term-line.is-err { color: #FF6680; }
.term-line.is-warn { color: #FFB347; }

.term-input {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #090E10;
  border-top: 1px solid #1E3A36;
  padding: 6px 10px;
}
.term-prompt { font-size: 11.5px; color: var(--terminal); }
.term-input input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #E8FFF6;
  caret-color: var(--terminal);
}
.term-input input:focus { outline: none; }

/* ---------------- 个人中心 ---------------- */
.uc-guest {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 6px 0 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
}
.uc-face {
  width: 52px; height: 52px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--text-dim);
}
.uc-name { margin: 0 0 3px; font-size: 15px; color: var(--text-main); }
.uc-note { margin: 0; font-size: 11.5px; color: var(--text-mute); }

.uc-card { display: flex; gap: 15px; }
.uc-avatar {
  width: 72px; height: 72px;
  flex-shrink: 0;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: bold;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.2;
}
.uc-title { margin: 0 0 3px; font-size: 15px; color: var(--miku-deep); }
.uc-group { margin: 0 0 8px; font-size: 11.5px; color: var(--text-mute); }
.uc-tbl { border-collapse: collapse; font-size: 11.5px; margin-bottom: 8px; }
.uc-tbl th { text-align: left; color: var(--text-mute); font-weight: normal; padding: 2px 8px 2px 0; }
.uc-tbl td { color: var(--text-main); padding: 2px 20px 2px 0; }
.uc-bio { margin: 0 0 6px; font-size: 12px; color: #333; white-space: pre-wrap; }
.uc-status { margin: 0; font-size: 11px; color: var(--text-mute); font-style: italic; }

.purge-fold summary { cursor: pointer; color: var(--text-mute); }
.purge-row { margin-top: 5px; padding: 3px 8px; background: var(--bg-alt); font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.purge-t { color: var(--text-mute); }

/* ---------------- 主题楼层 ---------------- */
.floor { border: 1px solid var(--border-light); margin-bottom: 10px; }
.floor-first { border-color: var(--border); }
.floor-h {
  background: var(--bg-sub);
  border-bottom: 1px solid var(--border-light);
  padding: 5px 10px;
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.floor-h b { color: var(--text-main); }
.floor-h small { color: var(--text-mute); font-size: 10.5px; margin-left: 4px; }
.floor-n { color: var(--text-mute); font-size: 10.5px; font-family: var(--font-mono); }
.floor-b { padding: 10px; font-size: 12.5px; color: #333; white-space: pre-wrap; line-height: 1.7; }

.thread-body { padding: 12px; font-size: 12.5px; line-height: 1.8; white-space: pre-wrap; color: #333; }
.thread-empty { min-height: 40px; }

.faint-body {
  background: #FFFFFF;
  color: transparent;
  min-height: 100px;
  user-select: text;
  cursor: text;
}
.faint-body::selection { background: var(--miku); color: var(--miku-deep); }
.faint-body *::selection { background: var(--miku); color: var(--miku-deep); }
.faint-body::-moz-selection { background: var(--miku); color: var(--miku-deep); }
.faint-body *::-moz-selection { background: var(--miku); color: var(--miku-deep); }

.mb-stealth-link { color: inherit; text-decoration: none; }
.mb-stealth-link:hover { color: inherit; text-decoration: none; }

.no-reply { padding: 10px; font-size: 11.5px; color: var(--text-mute); }
.locked-bar {
  margin-top: 12px;
  padding: 8px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  font-size: 11.5px;
  color: var(--text-mute);
  text-align: center;
}

/* ---------------- Toast 提示 ---------------- */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 45, 48, 0.92);
  color: #FFF;
  padding: 6px 16px;
  font-size: 12px;
  border-radius: 3px;
  border: 1px solid var(--miku);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 2000;
}
.toast.is-err { background: rgba(138, 18, 39, 0.92); border-color: var(--danger); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--miku-deep);
  color: #8FC9C5;
  border-top: 3px solid var(--miku);
  padding: 15px 0 20px;
  font-size: 11px;
  margin-top: 30px;
  text-align: center;
}
.site-footer p { margin: 0 0 4px; }
.footer-q { color: #629692; font-size: 10px; }

/* ---------------- 深度移动端适配 ---------------- */
@media (max-width: 768px) {
  .wrap { padding: 0 8px; }
  .topbar { height: auto; line-height: 1.4; padding: 4px 0; font-size: 10.5px; }
  .topbar-in { flex-wrap: wrap; gap: 4px; }
  .masthead { padding: 8px 0; }
  .masthead-in { flex-direction: column; align-items: flex-start; gap: 8px; }
  .masthead-meta { width: 100%; justify-content: space-between; font-size: 10.5px; padding-top: 4px; border-top: 1px dashed var(--border-light); }
  .brand-txt b { font-size: 16px; }

  .navbar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .navbar::-webkit-scrollbar { height: 0; display: none; }
  .navbar-in { flex-wrap: nowrap; white-space: nowrap; width: max-content; }
  .nav-link { padding: 9px 14px; font-size: 12px; min-height: 38px; display: inline-flex; align-items: center; }

  .home-cols { grid-template-columns: 1fr; gap: 10px; }
  .pick-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .song-view-grid { grid-template-columns: 1fr; gap: 10px; }
  .voice-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .voice-btn { padding: 8px 10px; min-height: 44px; }

  .filter-set { gap: 6px; }
  .tabx { padding: 5px 10px; font-size: 11.5px; min-height: 30px; display: inline-flex; align-items: center; }

  .tbl-forum th.c-cat, .tbl-forum td.c-cat,
  .tbl-forum th.c-time, .tbl-forum td.c-time { display: none; }
  .tbl-forum .c-num { width: 45px; font-size: 10.5px; }
  .tbl-forum .c-au { width: 85px; font-size: 11px; }

  .c-p, .c-y, .c-bpm { display: none; }
  .tbl-song th.c-p, .tbl-song th.c-y, .tbl-song th.c-bpm { display: none; }

  .overlay { padding: 10px; }
  .sheet { max-height: 90vh; padding: 14px 12px; width: 100%; border-radius: 4px; }
  .sheet-close { width: 28px; height: 28px; line-height: 26px; font-size: 16px; top: 8px; right: 8px; }
  
  .uc-card { flex-direction: column; gap: 10px; }
  .uc-avatar { width: 100%; height: 48px; }

  .form-tbl th { width: 50px; text-align: left; padding: 4px 0; }
  .form-tbl input, .form-tbl select, .form-tbl textarea { font-size: 14px; }
}

@media (max-width: 480px) {
  .pick-row { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: 1fr; }
  .mem-grid { grid-template-columns: 1fr; }

  .tbl-forum .c-au { display: none; }
  .tbl-forum th.c-au { display: none; }
  
  .post-detail-h { font-size: 15px; }
  .song-view-cover { aspect-ratio: 16/9; }
  
  .terminal { width: 100%; }
  .term-body { height: 220px; font-size: 11px; }
}
