

:root {
  --mb-h: 46px;
  --mb-fg: #dff2ff;
  --mb-dim: rgba(190, 224, 255, 0.45);
  --mb-line: rgba(140, 200, 255, 0.16);
  --mb-accent: #7fe3ff;
  --mb-bg: rgba(4, 10, 20, 0.62);
}


.arche-menubar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: var(--mb-h);
  z-index: 100003;                 
  display: flex;
  align-items: center;
  justify-content: center;         
  gap: 22px;
  padding: 0 18px;
  box-sizing: border-box;
  background: none;                
  border: none;                    
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  color: var(--mb-fg);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
  user-select: none;
}

.arche-menubar.is-on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}




.arche-menubar > .arche-menubar__label { display: none; }

.arche-menubar__label b {
  color: var(--mb-accent);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(127, 227, 255, .55);
}



.arche-menubar__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-width: 0;
  max-width: 100%;
  /* ⚠️ 这里原来是 overflow-x:auto + overflow-y:hidden（窄屏横向滚动的兜底）。
     它把 hover 卡片整个裁掉了：卡片 .arche-menubar__item .desc 是这一条的**后代**，
     从条目底部往下弹（top: calc(100% + 10px)，高约 60px），而这条只有 46px 高 ——
     于是卡片被切掉 54px、只剩顶上 6px 露出来，看着像「被遮挡」（用户反馈的就是这个）。
     CSS 规范：只要有一条轴是 auto/hidden，另一条就不会是 visible，所以**没法只放开竖直方向**
     （实测把 overflow-y 单独改成 visible，计算值仍回落成 auto）。
     条目本来就是内容自适应宽、max-width:100%，实测 1512/1100/900 三个宽度下
     整条都放得下、没有横向溢出（documentElement.scrollWidth == clientWidth），
     所以这个横向滚动兜底在这些宽度上根本没被用到。 */
  overflow: visible;
  scrollbar-width: none;
  height: 100%;
}

.arche-menubar__items::-webkit-scrollbar { display: none; }


.arche-menubar__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 0;
  border: none;                    
  border-radius: 0;
  background: none;                
  color: var(--mb-fg);
  font: inherit;
  font-size: 12.5px;
  letter-spacing: .06em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.arche-menubar__item .idx {
  font-size: 10px;
  color: var(--mb-dim);
  letter-spacing: .1em;
}

.arche-menubar__item .nm {
  position: relative;
}


.arche-menubar__item:hover,
.arche-menubar__item:focus-visible {
  color: #fff;
  text-shadow: 0 0 16px rgba(127, 227, 255, .9);
  outline: none;
}

.arche-menubar__item .nm::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--mb-accent);
  box-shadow: 0 0 8px rgba(127, 227, 255, .9);
  transition: right .3s cubic-bezier(.22, .61, .36, 1);
}

.arche-menubar__item:hover .nm::after,
.arche-menubar__item:focus-visible .nm::after { right: 0; }


.arche-menubar__item[data-locked="1"] {
  color: var(--mb-dim);
  cursor: not-allowed;
}

.arche-menubar__item[data-locked="1"]:hover {
  color: rgba(255, 170, 170, .95);
  text-shadow: 0 0 14px rgba(255, 107, 107, .8);
}

.arche-menubar__item[data-locked="1"] .nm::after { background: #ff6b6b; box-shadow: 0 0 8px rgba(255, 107, 107, .9); }

.arche-menubar__item .lock {
  font-size: 10px;
  opacity: .8;
}


.arche-menubar__item .desc {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: max-content;
  max-width: 340px;
  padding: 9px 12px;
  border: 1px solid var(--mb-line);
  border-radius: 6px;
  background: rgba(6, 14, 26, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(214, 236, 255, .88);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: .02em;
  text-align: left;
  white-space: normal;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
  box-shadow: 0 12px 34px -12px rgba(0, 0, 0, .85);
}

.arche-menubar__item:hover .desc,
.arche-menubar__item:focus-visible .desc {
  opacity: 1;
  transform: translateY(0);
}


.arche-menubar__right {
  position: absolute;
  right: 22px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mb-dim);
  white-space: nowrap;
}

.arche-menubar__who {
  color: rgba(214, 236, 255, .8);
}

.arche-menubar__who i {
  font-style: normal;
  color: var(--mb-accent);
}

.arche-menubar__admin {
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(127, 227, 255, .35);
  border-radius: 4px;
  background: rgba(127, 227, 255, .08);
  color: var(--mb-accent);
  font: inherit;
  font-size: 11px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}

.arche-menubar__admin:hover {
  background: rgba(127, 227, 255, .18);
  box-shadow: 0 0 16px -4px rgba(127, 227, 255, .7);
}


/* ==========================================================================
   顶部导航条在资讯区（白底）里的配色 —— 和上面「资讯区里的左侧导航配色」
   是**同一套**，配色照抄，两处看起来才是一体的东西。
   --------------------------------------------------------------------------
   .arche-menubar 是站内顶部那条跳转导航（投票室 / 公告栏 / 聊天室 / …），
   配色写死是浅色的 --mb-fg，背景 transparent。而资讯区底下是模板的 mission
   白底（.archeZone--feed 的 `linear-gradient(180deg, #fff 10%, …)`）——
   浅字压白底基本读不出来。

   左侧导航早就有这一节的处理，但那条规则只点名了 .arche-nav__*，
   够不到顶部这条自建的 menubar —— 这里补上同样的处理：
     常态文字 rgba(13,26,43,.78)  ·  当前位置 / 悬停 #0e6ea8  ·  不发光

   判据用模板自己维护的 data-current_section，条件和左侧那条**完全一致**
   （mission_in + mission —— arche-zones.js 里资讯区的 trig 就是这两个），
   所以进/出资讯区两处一起生效，不会一个变了另一个没变。
   ========================================================================== */
body:is([data-current_section="mission_in"], [data-current_section="mission"]) .arche-menubar {
  /* 菜单项、序号、下划线全是从这三个变量取的，改这里整条就跟着走 */
  --mb-fg: rgba(13, 26, 43, 0.78);
  --mb-dim: rgba(13, 26, 43, 0.45);
  --mb-accent: #0e6ea8;
}

/* 右上角「ID 某某」——写死的浅色，单独压深 */
body:is([data-current_section="mission_in"], [data-current_section="mission"]) .arche-menubar__who {
  color: rgba(13, 26, 43, 0.82);
}

/* 「卡片管理」那个青色胶囊：白底上描边和底色都太浅 */
body:is([data-current_section="mission_in"], [data-current_section="mission"]) .arche-menubar__admin {
  border-color: rgba(14, 110, 168, 0.5);
  background: rgba(14, 110, 168, 0.1);
}

body:is([data-current_section="mission_in"], [data-current_section="mission"]) .arche-menubar__admin:hover {
  background: rgba(14, 110, 168, 0.22);
  box-shadow: none;
}

/* 悬停原本是「纯白 + 一圈青色辉光」，在白底上等于整条消失 */
body:is([data-current_section="mission_in"], [data-current_section="mission"])
  .arche-menubar__item:hover,
body:is([data-current_section="mission_in"], [data-current_section="mission"])
  .arche-menubar__item:focus-visible {
  color: #0e6ea8;
  text-shadow: none;
}



.arche-mbmodal {
  position: fixed; inset: 0; z-index: 100010;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .26s ease;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.arche-mbmodal.is-on { opacity: 1; }
.arche-mbmodal__box {
  max-width: 520px; padding: 34px 38px; border-radius: 8px;
  border: 1px solid rgba(127, 227, 255, .28); background: rgba(6, 14, 26, .95);
  box-shadow: 0 24px 70px -24px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(127, 227, 255, .06);
  transform: translateY(14px); transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.arche-mbmodal.is-on .arche-mbmodal__box { transform: translateY(0); }
.arche-mbmodal__box p {
  margin: 0 0 26px; color: #dff2ff; font-size: 14.5px; line-height: 1.85; text-align: center;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.arche-mbmodal__box button {
  display: block; margin: 0 auto; padding: 9px 34px;
  border: 1px solid rgba(127, 227, 255, .45); border-radius: 4px;
  background: rgba(127, 227, 255, .1); color: #7fe3ff;
  font: inherit; font-size: 12.5px; letter-spacing: .14em; cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}
.arche-mbmodal__box button:hover {
  background: rgba(127, 227, 255, .22); box-shadow: 0 0 22px -6px rgba(127, 227, 255, .8);
}


.arche-mbadmin {
  position: fixed; inset: 0; z-index: 100011;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.arche-mbadmin__box {
  /* 现在是「标签栏 + 面板区」上下两段，所以是 row → column */
  display: flex; flex-direction: column; width: 85%; max-width: 980px; height: 82vh;
  border: 1px solid rgba(127, 227, 255, .22); border-radius: 10px; overflow: hidden;
  background: rgba(8, 16, 30, .97); box-shadow: 0 30px 90px -30px rgba(0, 0, 0, .95);
}

/* ---- 标签栏 ---- */
.arche-mbadmin__tabs {
  flex: none; display: flex; gap: 2px; padding: 0 14px;
  border-bottom: 1px solid rgba(127, 227, 255, .14);
}
.arche-mbadmin__tab {
  border: none; background: none; font: inherit; cursor: pointer;
  padding: 13px 16px 11px; font-size: 12px; letter-spacing: .16em;
  color: rgba(190, 224, 255, .5);
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.arche-mbadmin__tab:hover { color: rgba(233, 245, 255, .85); }
.arche-mbadmin__tab.is-on {
  color: #7fe3ff; border-bottom-color: #7fe3ff;
  text-shadow: 0 0 18px rgba(127, 227, 255, .5);
}

/* ---- 面板区：同一时刻只显示一个 ---- */
.arche-mbadmin__panes { flex: 1; min-height: 0; display: flex; }
.arche-mbadmin__pane { flex: 1; min-width: 0; display: none; }
.arche-mbadmin__pane.is-on { display: flex; }

/* ---------------------------------------------------------------- 排行榜编辑 */
/* 编辑器那一栏内容多，给它自己一点上下留白和可滚动 */
.arche-mbadmin__form--rank { padding-bottom: 18px }

.rk-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; margin-bottom: 8px;
  border: 1px solid rgba(127, 227, 255, .14); border-radius: 3px;
  background: rgba(0, 0, 0, .22);
}
.rk-bar__t {
  font-size: 11px; letter-spacing: .2em; color: #7fe3ff;
  min-width: 30px;
}
.rk-bar select {
  flex: 1; min-width: 130px;
  padding: 6px 8px; font: inherit; font-size: 12px;
  color: #dff2ff; background: rgba(6, 14, 26, .9);
  border: 1px solid rgba(127, 227, 255, .25); border-radius: 3px;
}
.rk-mini {
  padding: 6px 10px; font: inherit; font-size: 11px; letter-spacing: .08em;
  color: rgba(214, 236, 255, .8); cursor: pointer;
  background: rgba(127, 227, 255, .08);
  border: 1px solid rgba(127, 227, 255, .22); border-radius: 3px;
  transition: background .18s, color .18s;
}
.rk-mini:hover { background: rgba(127, 227, 255, .2); color: #fff }
.rk-mini.is-danger {
  background: rgba(255, 90, 90, .1); border-color: rgba(255, 90, 90, .4); color: #ff9a9a;
}
.rk-mini.is-danger:hover { background: rgba(255, 90, 90, .22); color: #fff }

.rk-tip {
  margin: 4px 0 6px; font-size: 11px; line-height: 1.7;
  color: rgba(190, 224, 255, .42);
}

.rk-rows {
  flex: 1; min-height: 120px; overflow-y: auto;
  padding: 4px 6px;
  border: 1px solid rgba(127, 227, 255, .12); border-radius: 3px;
  background: rgba(0, 0, 0, .18);
}
.rk-row {
  display: grid;
  grid-template-columns: 26px 62px minmax(0, 1fr) minmax(0, .8fr) 30px 30px 30px;
  gap: 6px; align-items: center;
  padding: 3px 2px;
}
.rk-idx {
  font-size: 10px; color: rgba(190, 224, 255, .3);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.rk-i {
  width: 100%; padding: 6px 8px; font: inherit; font-size: 12px;
  color: #dff2ff; background: rgba(6, 14, 26, .9);
  border: 1px solid rgba(127, 227, 255, .18); border-radius: 2px;
}
.rk-i:focus { outline: none; border-color: rgba(127, 227, 255, .55) }
.rk-i--rank, .rk-i--score { font-family: ui-monospace, Menlo, Consolas, monospace }
.rk-row .rk-mini { padding: 5px 0; text-align: center }
.arche-mbadmin__list {
  width: 250px; flex: none; display: flex; flex-direction: column; padding: 18px;
  border-right: 1px solid rgba(127, 227, 255, .14); background: rgba(0, 0, 0, .25);
}
.arche-mbadmin__list h3 {
  margin: 0 0 12px; padding-bottom: 10px; color: #7fe3ff; font-size: 12px; letter-spacing: .16em;
  border-bottom: 1px solid rgba(127, 227, 255, .14);
}
.arche-mbadmin__list ul {
  flex: 1; margin: 0; padding: 0; list-style: none; overflow-y: auto;
}
.arche-mbadmin__list li {
  padding: 9px 10px; border-radius: 4px; color: rgba(214, 236, 255, .82);
  font-size: 12.5px; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.arche-mbadmin__list li:hover { background: rgba(127, 227, 255, .12); color: #fff; }
.arche-mbadmin__list .add {
  margin-top: 10px; padding: 10px; border: 1px solid rgba(127, 227, 255, .4); border-radius: 4px;
  background: rgba(127, 227, 255, .12); color: #7fe3ff; font: inherit; font-size: 12px; cursor: pointer;
}


.arche-mbadmin__list .orderhint {
  margin: 10px 0 0; color: rgba(190, 224, 255, .38); font-size: 10.5px; line-height: 1.5;
}
.arche-mbadmin__list .apply {
  margin-top: 8px; padding: 10px; border: 1px solid rgba(127, 227, 255, .28); border-radius: 4px;
  background: rgba(127, 227, 255, .06); color: rgba(190, 224, 255, .75);
  font: inherit; font-size: 12px; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.arche-mbadmin__list .apply.is-dirty {
  border-color: rgba(255, 210, 74, .6); background: rgba(255, 210, 74, .14); color: #ffd24a;
}
.arche-mbadmin__list .apply:hover { filter: brightness(1.2); }

.arche-mbadmin__row { display: flex; align-items: center; gap: 7px; padding: 7px 8px !important; }
.arche-mbadmin__row.is-editing { background: rgba(127, 227, 255, .14); color: #fff; }
.arche-mbadmin__idx {
  flex: none; min-width: 18px; color: rgba(127, 227, 255, .5);
  font-variant-numeric: tabular-nums; font-size: 11px;
}
.arche-mbadmin__nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arche-mbadmin__mv {
  flex: none; width: 20px; height: 20px; padding: 0; border: 1px solid rgba(127, 227, 255, .22);
  border-radius: 3px; background: rgba(127, 227, 255, .07); color: rgba(190, 224, 255, .8);
  font: inherit; font-size: 11px; line-height: 1; cursor: pointer;
}
.arche-mbadmin__mv:hover:not(:disabled) { background: rgba(127, 227, 255, .22); color: #fff; }
.arche-mbadmin__mv:disabled { opacity: .25; cursor: default; }
.arche-mbadmin__form {
  position: relative; flex: 1; padding: 26px 30px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}
.arche-mbadmin__form h2 { margin: 0 0 6px; color: #fff; font-size: 15px; letter-spacing: .1em; }
.arche-mbadmin__form .close {
  position: absolute; top: 16px; right: 20px; border: none; background: none;
  color: rgba(214, 236, 255, .7); font-size: 26px; line-height: 1; cursor: pointer;
}
.arche-mbadmin__form label {
  display: flex; flex-direction: column; gap: 6px;
  color: rgba(190, 224, 255, .6); font-size: 11px; letter-spacing: .06em;
}
.arche-mbadmin__form input, .arche-mbadmin__form textarea, .arche-mbadmin__form select {
  padding: 9px 10px; border: 1px solid rgba(127, 227, 255, .2); border-radius: 4px;
  background: rgba(0, 0, 0, .5); color: #dff2ff; font: inherit; font-size: 12.5px;
}
.arche-mbadmin__form input:focus, .arche-mbadmin__form textarea:focus, .arche-mbadmin__form select:focus {
  outline: none; border-color: rgba(127, 227, 255, .55); box-shadow: 0 0 0 1px rgba(127, 227, 255, .18);
}
.arche-mbadmin__form .row { display: flex; gap: 10px; margin-top: 8px; }
.arche-mbadmin__form .row button {
  padding: 10px 22px; border: 1px solid rgba(127, 227, 255, .35); border-radius: 4px;
  background: rgba(127, 227, 255, .1); color: #7fe3ff; font: inherit; font-size: 12px;
  letter-spacing: .08em; cursor: pointer;
}
.arche-mbadmin__form .row .save { background: rgba(60, 220, 150, .16); border-color: rgba(60, 220, 150, .5); color: #64e8ac; }
.arche-mbadmin__form .row .del { background: rgba(255, 90, 90, .12); border-color: rgba(255, 90, 90, .45); color: #ff8080; }
.arche-mbadmin__form .row button:hover { filter: brightness(1.25); }
.arche-mbadmin__form .hint { margin: 6px 0 0; color: rgba(190, 224, 255, .38); font-size: 11px; }

/* ---------------------------------------------------------------- 资讯管理 */
/* 列表比卡片那个宽：一行里要放下 ★ / 红标 / 时间 / 来源 / 标题 / 分数 六样 */
.arche-mbadmin__list--news { width: 430px; }

.nw-search {
  flex: none; margin: 0 0 8px; padding: 8px 10px;
  border: 1px solid rgba(127, 227, 255, .2); border-radius: 4px;
  background: rgba(0, 0, 0, .5); color: #dff2ff; font: inherit; font-size: 12px;
}
.nw-search:focus { outline: none; border-color: rgba(127, 227, 255, .5); }
.nw-count { flex: none; margin: 0 0 6px; color: rgba(190, 224, 255, .4); font-size: 10.5px; }

.nw-list { flex: 1; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.nw-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 7px !important; border-radius: 3px;
  font-size: 11.5px; line-height: 1.35;
  border-left: 2px solid transparent;
}
/* 置顶的那几条给一条淡红左边线，一眼能看出哪些被钉住了 */
.nw-item.is-pinned { border-left-color: rgba(255, 95, 122, .55); background: rgba(255, 95, 122, .05); }
.nw-item.is-editing { background: rgba(127, 227, 255, .14) !important; color: #fff; }

/* ★ 置顶开关 */
.nw-star {
  flex: none; width: 18px; padding: 0; border: none; background: none; cursor: pointer;
  font-size: 13px; line-height: 1; color: rgba(190, 224, 255, .3);
}
.nw-star:hover { color: #ffd24a; }
.nw-star.is-on { color: #ffd24a; text-shadow: 0 0 10px rgba(255, 210, 74, .6); }

/* 红色「置顶」标记 —— 同时是显示开关。关掉时只留一个很淡的轮廓 */
.nw-tag {
  flex: none; padding: 1px 5px; border-radius: 2px; cursor: pointer;
  font-size: 9.5px; letter-spacing: .1em; white-space: nowrap;
  border: 1px solid rgba(255, 95, 122, .18); color: rgba(255, 95, 122, .3);
}
.nw-tag:hover { border-color: rgba(255, 95, 122, .5); }
.nw-tag.is-on {
  border-color: rgba(255, 95, 122, .75); background: rgba(255, 95, 122, .16);
  color: #ff8a9e; text-shadow: 0 0 10px rgba(255, 95, 122, .45);
}

.nw-time { flex: none; color: rgba(190, 224, 255, .45); font-variant-numeric: tabular-nums; }
.nw-src {
  flex: none; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: rgba(127, 227, 255, .62);
}
.nw-title {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: rgba(214, 236, 255, .86);
}
/* 【已停用】资讯标题上那两个「管理员改过 / 手动录入」的徽章。
   原来这里有四条规则，一起给出的是标题前那个小上标：
     .nw-title.is-edited::before { content: "改" }     ← 管理员改过
     .nw-title.is-manual::before { content: "手" }     ← 手动录入
     .nw-title.is-edited::before, .nw-title.is-manual::before { …上标样式… }
     .nw-title.is-manual::before { …绿色底… }
   资讯区是**公开区域**，普通用户不该知道「这站有管理员」这件事 ——
   用户明确要求任何时候任何页面都不能露出管理员相关字样和提示。
   JS 那边已经不再加这两个类（见 menu-bar.js 的资讯列表渲染），
   这四条规则一并撤掉：留着既是死代码，也容易被后来的人再挂回去。 */

/* 分数沿用展示区的口径：正分偏红、负分偏绿（分数越高 = AI 推进得越猛） */
.nw-score {
  flex: none; min-width: 42px; text-align: right;
  font-variant-numeric: tabular-nums; color: #ff5f7a;
}
.nw-score.is-down { color: #58d68d; }

/* 表单：两列并排 */
.nw-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.nw-pins {
  display: flex; flex-direction: column; gap: 8px; margin-top: 2px; padding: 11px 12px;
  border: 1px solid rgba(127, 227, 255, .16); border-radius: 4px; background: rgba(0, 0, 0, .28);
}
.arche-mbadmin__form .nw-check {
  flex-direction: row; align-items: center; gap: 9px;
  margin: 0; cursor: pointer; color: rgba(214, 236, 255, .82); font-size: 12px; letter-spacing: 0;
}
/* ⚠️ 复选框必须**自绘**。上面那条 `.arche-mbadmin__form input` 的通用规则
   给所有 input 加了 background/border，Chrome 拿到带底色的 checkbox 就不画
   原生那个勾了 —— DOM 里 checked 明明是 true，看上去却是个空方框
   （实测踩到：断言全过、截图全是空的）。这里 appearance:none 之后自己画。 */
.arche-mbadmin__form .nw-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  position: relative; flex: none;
  width: 15px; height: 15px; margin: 0; padding: 0;
  border: 1px solid rgba(127, 227, 255, .38); border-radius: 3px;
  background: rgba(0, 0, 0, .5); cursor: pointer;
  transition: border-color .16s, background .16s;
}
.arche-mbadmin__form .nw-check input[type="checkbox"]:hover { border-color: rgba(127, 227, 255, .7); }
.arche-mbadmin__form .nw-check input[type="checkbox"]:checked {
  border-color: #7fe3ff; background: rgba(127, 227, 255, .18);
}
.arche-mbadmin__form .nw-check input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid #7fe3ff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.arche-mbadmin__form .nw-check input[type="checkbox"]:focus-visible {
  outline: none; box-shadow: 0 0 0 2px rgba(127, 227, 255, .28);
}

.arche-mbadmin__form--news textarea { resize: vertical; min-height: 120px; line-height: 1.55; }




.TopScrollIndicator__top_scroll_indicator {
  visibility: hidden !important;
  pointer-events: none !important;
}


.arche-nav {
  position: fixed;
  pointer-events: auto;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100004;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.arche-nav.is-on { opacity: 1; pointer-events: auto; }


.arche-nav::before {
  content: "";
  position: absolute;
  
  inset: -80px -130px -80px -20px;
}

.arche-nav__item, .arche-nav__card {
  display: flex;
  align-items: center;
  gap: 9px;
  
  position: relative;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.arche-nav__line, .arche-nav__tick {
  display: block;
  height: 1px;
  background: rgba(190, 224, 255, .38);
  transition: width .25s ease, background .2s ease, box-shadow .2s ease;
}
.arche-nav__line { width: 26px; }
.arche-nav__tick { width: 14px; }
.arche-nav__longline {
  display: block;
  width: 104px;              
  height: 1px;
  background: rgba(190, 224, 255, .5);
  transition: background .2s ease, box-shadow .2s ease;
}

.arche-nav__label, .arche-nav__cname {
  font-size: 10px;
  line-height: 1;
  letter-spacing: .14em;
  color: rgba(190, 224, 255, .55);
  white-space: nowrap;
  transition: color .2s ease, text-shadow .2s ease;
}
.arche-nav__label { letter-spacing: .22em; }


.arche-nav__item:hover .arche-nav__line,
.arche-nav__item:hover .arche-nav__longline,
.arche-nav__card:hover .arche-nav__tick,
.arche-nav__card.is-active .arche-nav__tick {
  background: #7fe3ff;
  box-shadow: 0 0 10px rgba(127, 227, 255, .85);
}
.arche-nav__card:hover .arche-nav__tick { width: 24px; }
.arche-nav__item:hover .arche-nav__label,
.arche-nav__card:hover .arche-nav__cname,
.arche-nav__card.is-active .arche-nav__cname {
  color: #7fe3ff;
  text-shadow: 0 0 10px rgba(127, 227, 255, .7);
}
.arche-nav__cards { display: flex; flex-direction: column; gap: 8px; padding-left: 2px; }


.arche-nav__item.is-active .arche-nav__line,
.arche-nav__item.is-active .arche-nav__longline {
  background: #7fe3ff;
  box-shadow: 0 0 10px rgba(127, 227, 255, .85);
}
.arche-nav__item.is-active .arche-nav__label {
  color: #7fe3ff;
  text-shadow: 0 0 10px rgba(127, 227, 255, .7);
}


html.arche-menu-gated,
html.arche-menu-gated body {
  overflow: hidden !important;
}


.TopScrollIndicator__subsection_item.arche-ind-item {
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}


.arche-ind-name {
  font-size: 10px;
  line-height: 1;
  letter-spacing: .08em;
  color: rgba(190, 224, 255, .5);
  white-space: nowrap;
  transition: color .2s ease, text-shadow .2s ease;
}


.TopScrollIndicator__subsection_item.arche-ind-item:hover .arche-ind-name,
.TopScrollIndicator__subsection_item[data-active="true"] .arche-ind-name {
  color: #7fe3ff;
  text-shadow: 0 0 10px rgba(127, 227, 255, .7);
}


.TopScrollIndicator__subsection_item.arche-ind-item:hover .TopScrollIndicator__subsection_line {
  background: #7fe3ff !important;
  box-shadow: 0 0 8px rgba(127, 227, 255, .9);
}


.arche-ind-clickable { pointer-events: auto !important; cursor: pointer; }


.arche-ind-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  pointer-events: auto;
  cursor: pointer;
}
.arche-ind-bottom-line {
  width: 96px;              
  height: 1px;
  background: rgba(190, 224, 255, .38);
  transition: background .2s ease, box-shadow .2s ease;
}
.arche-ind-bottom-text {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(190, 224, 255, .55);
  transition: color .2s ease, text-shadow .2s ease;
}
.arche-ind-bottom:hover .arche-ind-bottom-line {
  background: #7fe3ff;
  box-shadow: 0 0 10px rgba(127, 227, 255, .9);
}
.arche-ind-bottom:hover .arche-ind-bottom-text {
  color: #7fe3ff;
  text-shadow: 0 0 10px rgba(127, 227, 255, .7);
}


.arche-mbadmin__toast {
  position: fixed; left: 50%; top: 46px; transform: translateX(-50%);
  z-index: 100020; padding: 10px 20px; border-radius: 6px;
  border: 1px solid rgba(127, 227, 255, .4);
  background: rgba(6, 14, 26, .95); color: #7fe3ff;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .1em;
  box-shadow: 0 12px 34px -14px rgba(0, 0, 0, .9);
}


@media (max-width: 860px) {
  .arche-menubar__label { display: none; }
  .arche-menubar__right { display: none; }
}

/* --------------------------------------------------------------------------
   左侧导航：三个展示区分组（资讯 / 忘川 / 排行）
   中文标签走中文字体，和上面的 TOP / MENU / Arche 区分开
   -------------------------------------------------------------------------- */
.arche-nav__zone .arche-nav__label {
  font-family: "kozuka-gothic-pr6n", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
               "Yu Gothic Medium", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(190, 224, 255, .62);
}
.arche-nav__zone .arche-nav__line { width: 20px }
.arche-nav__zone.is-active .arche-nav__label,
.arche-nav__zone:hover .arche-nav__label { color: #7fe3ff }

/* ==========================================================================
   资讯区（白底）里的左侧导航配色
   --------------------------------------------------------------------------
   这一段底下是模板那个 mission 白底，导航原来那套浅蓝
   （rgba(190,224,255,.55) / 高亮 #7fe3ff）在白底上几乎读不出来。
   所以在这一节里把导航整体切成墨色，当前位置和悬停换成绿色。

   条件用 body 上模板自己维护的 data-current_section —— 它是模板在切分节时
   自己写的，所以进/出资讯区自动生效，不用额外监听滚动。

   选择器都用 :is() 收着写，而且比原来那几条（.arche-nav__item.is-active
   .arche-nav__label 之类，特指度 0,3,0）更高，能稳稳覆盖掉不肯让位的旧规则。
   ========================================================================== */
body:is([data-current_section="mission_in"], [data-current_section="mission"]) .arche-nav__label,
body:is([data-current_section="mission_in"], [data-current_section="mission"]) .arche-nav__cname {
  color: rgba(13, 26, 43, .78);
}
body:is([data-current_section="mission_in"], [data-current_section="mission"])
  :is(.arche-nav__line, .arche-nav__tick, .arche-nav__longline) {
  background: rgba(13, 26, 43, .34);
  box-shadow: none;                 /* 白底上不需要那圈青色辉光 */
}

/* 当前位置 + 悬停 → 绿 */
body:is([data-current_section="mission_in"], [data-current_section="mission"])
  :is(.arche-nav__item.is-active, .arche-nav__item:hover,
      .arche-nav__card.is-active, .arche-nav__card:hover,
      .arche-nav__zone.is-active, .arche-nav__zone:hover)
  :is(.arche-nav__label, .arche-nav__cname) {
  color: #0e6ea8;
  text-shadow: none;
}
body:is([data-current_section="mission_in"], [data-current_section="mission"])
  :is(.arche-nav__item.is-active, .arche-nav__item:hover,
      .arche-nav__card.is-active, .arche-nav__card:hover)
  :is(.arche-nav__line, .arche-nav__tick, .arche-nav__longline) {
  background: #0e6ea8;
  box-shadow: none;
}

/* 忘川区设置：最小值 / 最大值 并排一行 */
.z-range { display: flex; gap: 12px }
.z-range label { flex: 1 }

/* ---------------------------------------------------------------- 值的变化记录 */
.z-log-wrap { margin-top: 12px }
.z-log-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px; letter-spacing: .08em; color: rgba(190, 224, 255, .5);
}
.z-log {
  max-height: 200px; overflow-y: auto;
  padding: 4px 6px;
  border: 1px solid rgba(127, 227, 255, .14); border-radius: 3px;
  background: rgba(0, 0, 0, .22);
}
.z-log-row {
  display: grid;
  grid-template-columns: 92px 56px 50px 32px minmax(0, 1fr);
  gap: 6px; align-items: center;
  padding: 3px 2px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px; line-height: 1.5;
  color: rgba(214, 236, 255, .8);
}
.z-log-row.is-admin { color: #ffd76a }          /* 管理员手改的那几条单独染色 */
.z-log-row--dim { display: block; color: rgba(190, 224, 255, .35) }
.z-log-ts { color: rgba(190, 224, 255, .45) }
.z-log-v  { color: #7fe3ff }
.z-log-d  { text-align: right }
.z-log-s  { color: rgba(190, 224, 255, .45) }
.z-log-n  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
            color: rgba(190, 224, 255, .38) }

/* --------------------------------------------------------------------------
   右上角「管理员视角」开关 —— 和「卡片管理」按钮排在**同一行**
   --------------------------------------------------------------------------
   整块只对真管理员渲染；开关本身在关掉视角后依然保留（这时按钮会消失，
   开关要是也跟着没，就没有路切回管理员了）。
   .arche-menubar__right 本来就是 align-items:center 的 flex 行，直接排进去即可。
   -------------------------------------------------------------------------- */
.arche-mbswitch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 20px;
  padding: 0 9px 0 5px;
  border: 1px solid var(--mb-line);
  border-radius: 999px;
  background: var(--mb-bg);
  color: var(--mb-dim);
  font: inherit;
  font-size: 9px;
  letter-spacing: .18em;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.arche-mbswitch i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(190, 224, 255, .32);
  transition: background .2s ease, box-shadow .2s ease;
}
.arche-mbswitch:hover { border-color: rgba(127, 227, 255, .45); color: var(--mb-fg); }
/* 开着 = 当前用管理员身份看：青蓝点亮 */
.arche-mbswitch.is-on {
  border-color: rgba(127, 227, 255, .48);
  background: rgba(127, 227, 255, .10);
  color: var(--mb-accent);
}
.arche-mbswitch.is-on i {
  background: var(--mb-accent);
  box-shadow: 0 0 9px rgba(127, 227, 255, .85);
}
.arche-mbswitch:focus-visible { outline: 1px solid var(--mb-accent); outline-offset: 2px; }

/* ==========================================================================
   悬停气泡 —— 给左上角 logo 用（点下去 = 清空登录态，得先说清楚）
   纯 CSS：data-tip + ::after，不依赖任何 JS 提示组件。
   挂在 .Header__logo 上，气泡朝下弹。
   ========================================================================== */
.arche-tip-bubble { position: relative; }

.arche-tip-bubble::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  transform: translate(-50%, -5px);
  padding: 6px 11px;
  border: 1px solid rgba(127, 227, 255, .3);
  border-radius: 4px;
  background: rgba(6, 14, 26, .95);
  color: #dff2ff;
  font: 11px/1 ui-monospace, "IBM Plex Mono", Menlo, Consolas, monospace;
  letter-spacing: .1em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 26px -10px rgba(0, 0, 0, .9);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 100050;
}

.arche-tip-bubble:hover::after,
.arche-tip-bubble:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .arche-tip-bubble::after { transition: none; }
}

/* ==========================================================================
   主页右上角的「有新消息」小红点 —— 挂在「ID 某某」下面
   --------------------------------------------------------------------------
   .arche-menubar__right 是 position:absolute 的，所以它本身就是包含块。
   ⚠️ 不能再让它落在「用户名那一行的正下方」——那里（≈ y54）正好压住右侧 header 里
      的音乐开关（SoundToggle，y 40~80）。这里直接把它放到音乐开关**下面**。
   点红点去 chat 页，点右边那个 × 关掉（关掉后要等再来一条更新的消息才重现）。
   ========================================================================== */
.arche-unread {
  position: absolute;
  right: 0;
  /* 88px = 音乐开关底边(80) + 8px 间隙 —— 落在开关正下方，不跟它重叠 */
  top: 88px;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
  animation: arche-unread-in 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes arche-unread-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.arche-unread__go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 107, 0.55);
  background: rgba(255, 60, 60, 0.14);
  color: #ffbdbd;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  box-shadow: 0 0 18px -8px rgba(255, 80, 80, 0.9);
}

.arche-unread__go:hover {
  background: rgba(255, 60, 60, 0.24);
  border-color: rgba(255, 107, 107, 0.85);
  color: #ffe2e2;
  box-shadow: 0 0 24px -6px rgba(255, 80, 80, 1);
}

/* 那个小红点本体 */
.arche-unread__go i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.95);
  animation: arche-unread-pulse 1.6s ease-in-out infinite;
}

@keyframes arche-unread-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

.arche-unread__go b {
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}

.arche-unread__x {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 107, 0.4);
  background: rgba(255, 60, 60, 0.1);
  color: rgba(255, 190, 190, 0.85);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.arche-unread__x:hover {
  background: rgba(255, 60, 60, 0.26);
  border-color: rgba(255, 107, 107, 0.8);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .arche-unread,
  .arche-unread__go i { animation: none; }
}
