/* ─────────────────────────────────────────────────────────
   国钓4 · 样式
   原则：一个强调色 + 严格灰阶；颜色只用来表达状态，不做装饰。
   改配色只动下面的 token，不要在别处写死色值。
   ───────────────────────────────────────────────────────── */

/* 浅色（Apple 观感）：白卡片 + 极浅灰底 + 发丝线。全站只有这一套主题。 */
:root {
  --bg: #fbfbfd;
  --rail: #f5f5f7;
  --surface: #fff;
  --surface-2: #f5f5f7;
  --fill: rgba(0, 0, 0, .045);
  --fill-2: rgba(0, 0, 0, .085);
  --line: rgba(0, 0, 0, .09);
  --line-2: rgba(0, 0, 0, .18);
  --text: #1d1d1f;
  --muted: #5a5a5f;
  --dim: #6f6f74;
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, .1);
  --ok: #217f36;
  --warn: #b25000;
  --bad: #d70015;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06);
  --r: 12px;
  --r-sm: 8px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI",
    "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--fill-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ── shell ────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }

.rail {
  position: sticky; top: 0; align-self: start;
  height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--rail);
  display: flex; flex-direction: column;
  padding: 0 0 14px;
}
.brand { display: block; padding: 20px 18px 14px; cursor: pointer; }
.brand-mark { display: flex; align-items: baseline; gap: 8px; font-size: 20px; font-weight: 600; letter-spacing: -.2px; }
.brand-mark b { color: var(--text); font-weight: 600; }
.brand-sub { display: none; }
.rail nav { padding: 4px 10px 0; }
.nav-group { margin-top: 14px; }
.nav-group:first-child { margin-top: 0; }
.nav-label { display: none; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 10px; border-radius: var(--r-sm);
  color: var(--muted); font-size: 14px; position: relative;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: var(--fill); color: var(--text); }
.nav-item.on { background: var(--fill-2); color: var(--text); font-weight: 500; }
.nav-item.on::before { content: none; }
.nav-item .ico { width: 16px; text-align: center; color: var(--dim); font-size: 12px; }
.nav-item.on .ico { color: var(--muted); }
.nav-item .count { margin-left: auto; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.rail-foot {
  margin-top: auto; padding: 12px 18px 0; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--dim); line-height: 1.8;
}
.rail-foot b { color: var(--muted); font-weight: 500; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dim); min-width: 0; }
.crumb a:hover { color: var(--text); }
.crumb .sep { color: var(--line-2); }
.crumb .cur { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 防走失是全站的安全出口：域名一挂，用户要第一眼找得到，所以常驻顶栏而不是只躺在页脚。
   放在左上角（阅读起点），不是右上角——右上角在宽屏上离视线最远，反而最不容易被注意到。
   左边是安全出口，右边才是当前所在的位置（面包屑），两者用一道发丝线分开。 */
.topbar .crumb { flex: 1; padding-left: 14px; border-left: 1px solid var(--line); }
.topbar-backup {
  flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 11px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font-size: 12.5px; color: var(--muted); white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.topbar-backup:hover { color: var(--text); border-color: var(--muted); }
.topbar-backup.on { color: var(--text); background: var(--fill); }
.topbar-backup .short { display: none; }
kbd {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; background: var(--surface-2);
}

.view { padding: 34px 26px 96px; max-width: 1280px; width: 100%; }

/* ── page primitives ──────────────────────────────────── */
.page-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.page-head p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 68ch; }
.page-head .spacer { flex: 1; }
/* 标题行：H1 只放主体名，国服标签作为兄弟元素跟在后面（不进 H1，读屏/复制更干净） */
.h1-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.kicker {
  display: inline-block; font-size: 13px; color: var(--dim);
  margin-bottom: 6px; letter-spacing: 0;
}
a.kicker:hover { color: var(--accent); }
.hr { height: 1px; background: var(--line); margin: 24px 0; }

/* 助手条目：详情页最该点进去的东西，要读成入口而不是资料行。
   参照首页入口卡的做法：强调色标题 + 底部行动文字和箭头，触屏没有 hover 也看得出来能点。 */
.assist-body {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
}
.assist-body > .empty { grid-column: 1 / -1; }
.assist-item {
  display: flex; flex-direction: column;
  padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.assist-item:hover {
  border-color: var(--accent); background: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}
.assist-top { display: flex; align-items: baseline; gap: 10px; }
.assist-name { font-size: 15.5px; font-weight: 600; color: var(--accent); }
.assist-heat { margin-left: auto; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
/* 卡片底部的行动行：首页入口卡、服的助手、助手的服共用，
   没有 hover 的触屏也看得出来能点。 */
.go {
  margin-top: auto; padding-top: 12px;
  font-size: 13px; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
}
.go b { font-weight: 400; transition: transform .15s ease; }
a:hover > .go b { transform: translateX(2px); }

/* 更新记录：页脚级信息，靠留白和一条发丝线与列表分开，不做盒子 */
.records { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--line); }
.records-h { display: flex; align-items: baseline; gap: 10px; padding: 0 8px 6px; }
.records-h h2 { margin: 0; font-size: 13px; font-weight: 500; color: var(--dim); }
.records-h .hint { margin-left: auto; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.records-h .records-more { font-size: 12px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.records-list { font-size: 13.5px; }
.upd {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px;
  align-items: baseline; padding: 6px 8px; border-radius: 6px;
  font-size: 13.5px; color: var(--muted);
}
a.upd:hover { background: var(--fill); color: var(--text); }
.upd time { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.upd .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 详情页「最近变化」：dl 里的一行，不占卡片、不做分隔线，
   和状态同一张卡，日期用最轻的灰，条目多了也不撑高 */
.upd-list { display: grid; gap: 5px; font-size: 13.5px; color: var(--muted); }
.upd-list > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.upd-list time { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.upd-list a:hover { color: var(--accent); }

/* 数字条：只留发丝线，不做格子背景 */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.stat { padding: 14px 16px 16px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat .k { font-size: 12.5px; color: var(--dim); }
.stat .v {
  font-size: 26px; font-weight: 600; margin-top: 2px; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat .v small { font-size: 12.5px; color: var(--dim); font-weight: 400; margin-left: 4px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-h h2 { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.card-h .hint { margin-left: auto; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.card-h .card-link { font-size: 12.5px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.card-h .card-link b { font-weight: 400; transition: transform .15s ease; }
.card-h .card-link:hover b { transform: translateX(2px); }
.card-b { padding: 16px 18px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.input, .select {
  height: 34px; padding: 0 11px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--dim); }
.input.wide { min-width: 220px; flex: 1; max-width: 360px; }
.select { cursor: pointer; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--fill); border-color: var(--line-2); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; font-weight: 500; }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }

/* 分段控件 */
.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--r-sm); background: var(--fill); }
.seg a, .seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  font-size: 13.5px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; cursor: pointer;
}
.seg a + a, .seg button + button { border-left: 0; }
.seg .on { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: var(--shadow); }
.seg .n { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* 标签：一律中性底，颜色只留给状态 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 980px; font-size: 12.5px;
  border: 1px solid transparent; background: var(--fill); color: var(--muted);
}
a.chip:hover { background: var(--fill-2); color: var(--text); }
button.chip { cursor: pointer; font: inherit; -webkit-appearance: none; appearance: none; }
button.chip:hover { background: var(--fill-2); color: var(--text); }
/* 动作入口（去官网下载 / 加入 QQ 群 / 在 QQ 中搜索群）：同一个角色只有一种长相。
   它和静态标签的区别必须一眼看出，所以用强调色淡底 + 强调色字，末尾 ↗ 表示会离开本站。
   名字写结果（「在 QQ 中搜索」），不写机制。 */
.chip.act,
button.chip.qq {
  border: 0; font-weight: 500; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent);
  transition: background .15s ease, transform .1s ease;
}
.chip.act::after,
button.chip.qq::after { content: "↗"; font-size: 11px; opacity: .7; }
button.chip.qq.done::after { content: "✓"; }
.chip.act:hover,
button.chip.qq:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
/* 只有 QQ 需要「按下即离开」的反馈；普通链接点了会开新页，缩放反而多余 */
button.chip.qq:active { transform: scale(.97); }
.chip.act:focus-visible,
button.chip.qq:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.on { background: var(--fill-2); color: var(--text); font-weight: 500; }
.chip.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.chip.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.chip.acc { color: var(--accent); background: var(--accent-soft); }
/* 网盘提取码不是第二个入口，是链接的补充说明：文字长相连着写，点一下复制。
   给它胶囊就会和「百度网盘」并排成两个按钮，用户以为要点两次。 */
button.chip.code {
  border: 0; background: transparent; color: var(--muted);
  padding: 0; font-weight: 400; font-size: 12.5px; cursor: copy;
  text-decoration: underline dotted; text-underline-offset: 3px;
}
button.chip.code:hover { background: transparent; color: var(--accent); }

/* 徽章：类型只用一个中性样式；状态用胶囊 + 圆点 */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 500;
  border: 1px solid transparent;
}
.badge.neutral,
.badge.dim { color: var(--muted); background: var(--fill); }
.badge.acc { color: var(--text); background: var(--fill-2); }
.badge.sea,
.badge.fresh { color: var(--muted); background: var(--fill); }
.badge.on { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.badge.off { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }

.badge.status {
  border-radius: 980px; padding: 2px 9px 2px 7px; gap: 6px; font-weight: 400;
}
.badge.status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: none;
}
.badge.status.on { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: transparent; }
.badge.status.off { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: transparent; }
.badge.status.mid { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: transparent; }

/* ── tables ───────────────────────────────────────────── */
.tablewrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl thead th {
  position: sticky; top: 0; z-index: 2;
  text-align: left; font-weight: 500; font-size: 12.5px;
  color: var(--dim); white-space: nowrap; text-transform: none; letter-spacing: 0;
  background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 14px;
}
.tbl th.srt { cursor: pointer; user-select: none; }
.tbl th.srt:hover { color: var(--muted); }
.tbl th .arrow { color: var(--accent); margin-left: 4px; font-size: 10px; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--fill); }
.tbl tbody tr.sel { background: var(--accent-soft); }
.tbl tbody tr.link { cursor: pointer; }
.tbl .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* 一行里可能并排「胶囊 + 提取码」：默认的 align-items: stretch 会在窄列里
   把胶囊拉到和换行后的提取码一样高，980px 圆角就变成一颗圆球，所以顶部对齐。
   提取码允许折行会把「提取码 1fg6」拆成一列竖字，它必须保持单行。 */
.tbl .entrycell { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; max-width: 240px; }
.tbl .entrycell .chip:not(.act):not(.qq):not(.code) { max-width: 100%; white-space: normal; }
/* 地址不做一排胶囊按钮：表格里只保留文字链接，把视觉重量留给名称和状态。
   动作入口（.act / QQ）例外，见下一条。 */
.tbl .entrycell > *:not(.act):not(.qq) {
  padding: 0; border: 0; background: transparent;
  font-size: 13.5px; color: var(--dim);
}
.tbl .entrycell > *:not(.act):not(.qq):hover { color: var(--accent); background: transparent; }
/* 表格里动作入口不能跟着地址一起被压成灰字，否则同一行里「能点的按钮」和「一段说明」
   长得一模一样。形状跟着 App Store 列表右侧的「获取」走——小号着色胶囊，不抢名称和状态。
   官网 / Steam / GitHub 与 QQ 群共用这一套；同一格里有几个入口就几个胶囊，不分主次。 */
.tbl .entrycell > .act,
.tbl .entrycell > button.qq {
  padding: 3px 10px; border-radius: 980px; font-size: 12.5px;
  background: var(--accent-soft); color: var(--accent);
}
.tbl .entrycell > .act:hover,
.tbl .entrycell > button.qq:hover {
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.tbl .entrycell > button.chip.code { white-space: nowrap; }
.tbl .statuscell { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* 表头模式：名称占掉剩余宽度，右侧几列按内容收紧，
   别让状态列空出一大片（手机上另有行块布局，不受这条影响） */
@media (min-width: 621px) {
  .tbl.blk .r-status, .tbl.blk .r-addr { width: 1%; white-space: nowrap; }
  /* 圆点列按内容收紧，剩余宽度全部给名称 */
  .tbl.blk th.col-srv, .tbl.blk td.col-srv { width: 1%; }
  .tbl.blk .r-addr .entrycell { flex-wrap: nowrap; }
  .tbl.blk .r-addr .entrycell > * { white-space: nowrap; }
  /* 状态列不折行：否则带提示的服比别的行高一截，行高不齐看着就乱 */
  .tbl.blk .statuscell { flex-wrap: nowrap; }
}
.tbl .name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbl .name .nm { min-width: 0; }
.tbl .name .t {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-weight: 600; font-size: 15px;
}
.tbl .name .s {
  font-size: 12.5px; color: var(--dim); margin-top: 2px;
  white-space: normal; line-height: 1.45;
}
/* 副行里的热度：比特点再轻一档，只是补充信息，不是视觉重点 */
.tbl .name .s .sub-heat { color: var(--dim); opacity: .78; font-variant-numeric: tabular-nums; }
.tbl .muted { color: var(--dim); }
.tbl .nowrap { white-space: nowrap; }
.tbl .center { text-align: center; }

/* 可用服务器：宽屏是圆点矩阵（每个服一列），窄屏降级成文字。
   断点分两段：821+ 矩阵；621–820 文字列（表头还放得下）；≤620 行块。 */
.tbl.blk .r-meta { display: none; }
@media (min-width: 621px) and (max-width: 820px) {
  .tbl .col-srv { display: none; }
  .tbl.blk .r-meta { display: table-cell; width: auto; white-space: nowrap; }
}
@media (max-width: 820px) {
  .only-wide { display: none !important; }
}

/* 手机：三列并排会把地址挤成第三条腿，行块比压缩列宽可靠。
   行块 = 名称（左）+ 状态（右上）/ 可用服务器 / 地址，共用同一个白色面板，
   行与行之间只靠发丝线分隔。服务器表和助手表共用这一套，
   靠 td 上的 .r-name .r-status .r-meta .r-addr 标记位置。 */
@media (max-width: 620px) {
  .tablewrap.blk { overflow: visible; }
  .tbl.blk, .tbl.blk tbody { display: block; }
  .tbl.blk thead { display: none; }
  .tbl.blk tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name status" "meta meta" "addr addr";
    gap: 6px 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .tbl.blk tbody tr:last-child { border-bottom: 0; }
  .tbl.blk td { display: block; padding: 0; border: 0; width: auto; white-space: normal; }
  .tbl.blk td.col-srv { display: none; }
  .tbl.blk td[colspan] { grid-area: 1 / 1 / -1 / -1; }
  .tbl.blk .r-name { grid-area: name; }
  .tbl.blk .r-status { grid-area: status; align-self: start; }
  .tbl.blk .r-meta { grid-area: meta; display: block; }
  .tbl.blk .r-addr { grid-area: addr; margin-top: 2px; }
  .tbl.blk .r-meta:empty { display: none; }
  /* 状态竖排在右上角，两个胶囊不互相挤 */
  .tbl.blk .statuscell { flex-direction: column; align-items: flex-end; gap: 5px; }
  /* 副行最多两行；三行以上的副行在手机上没人读 */
  .tbl.blk .name .s {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;
  }
  /* 辅助列给一个灰色的字段名，行块里没有表头可以对照 */
  .tbl.blk .r-meta .k { color: var(--dim); font-size: 12.5px; margin-right: 6px; }
  /* 地址是手机上唯一可点的地方，给足竖直空间 */
  .tbl.blk .entrycell { max-width: none; gap: 16px; }
  .tbl.blk .entrycell > *:not(.act):not(.qq) { padding: 4px 0; font-size: 13px; }
  /* 动作入口在手机上仍是胶囊，不跟着地址一起被抹平成一行灰字 */
  .tbl.blk .entrycell > .act,
  .tbl.blk .entrycell > button.qq { padding: 4px 12px; border-radius: 980px; font-size: 12.5px; }
}

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.dot.ok { background: var(--ok); }
.dot.no { background: var(--fill-2); }
.tbl td .dot { display: block; margin: 0 auto; }

.thumb {
  width: 34px; height: 34px; border-radius: 7px; object-fit: contain;
  background: var(--fill); border: 1px solid var(--line); flex: none;
}
.thumb.lg { width: 100%; height: 180px; object-fit: contain; padding: 10px; }

.empty {
  padding: 48px 20px; text-align: center; color: var(--dim); font-size: 14px;
  border: 1px dashed var(--line-2); border-radius: var(--r);
}

/* ── grid layouts ─────────────────────────────────────── */
.grid { display: grid; gap: 12px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.grid.two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.grid.detail { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.grid.split { grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
@media (max-width: 1040px) {
  .grid.two, .grid.detail, .grid.split { grid-template-columns: 1fr; }
}

.item {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px; transition: border-color .15s ease, background .15s ease;
}
a.item:hover { border-color: var(--line-2); background: var(--surface-2); }
.item h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.item .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* 助手的「支持的服务器」条目：和服的「能用的助手」同款入口感，
   底部行动行 + 强调色标题，触屏没有 hover 也看得出来能点。 */
a.item.has-go {
  display: flex; flex-direction: column;
  border-color: var(--line-2);
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
a.item.has-go:hover {
  border-color: var(--accent); background: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}
a.item.has-go h3 { color: var(--accent); font-weight: 600; }

.lead { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--muted); }
/* 入口按钮下面的一行说明：先说清点下去会发生什么，再让人点。 */
.entry-hint { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--dim); }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 11px 18px; font-size: 14.5px; }
.kv dt { color: var(--dim); font-size: 13.5px; }
.kv dd { margin: 0; min-width: 0; }

.block + .block { margin-top: 20px; }
.block h3 { margin: 0 0 10px; font-size: 13px; color: var(--dim); font-weight: 500; }

.dl { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.dl li { position: relative; padding-left: 16px; margin-bottom: 7px; color: var(--muted); }
.dl li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.dl li b { color: var(--text); font-weight: 500; }
.dl.danger li::before { background: var(--bad); opacity: .6; }

/* 防走失页的地址清单：一行一个渠道，右侧只放一个动作（复制 / 打开）。
   和表格不同，这里没有「列」要比较，所以不做表头，靠左侧标签对齐。 */
.addr { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.addr-row {
  display: grid; grid-template-columns: 108px minmax(0, 1fr) auto; gap: 14px;
  align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 14.5px;
}
.addr-row:first-child { border-top: 0; }
.addr-row .k { color: var(--dim); font-size: 13.5px; }
.addr-row .v { min-width: 0; overflow-wrap: anywhere; }
.addr-row .v b { color: var(--text); font-weight: 500; }
.addr-row .v .s { display: block; margin-top: 3px; color: var(--dim); font-size: 12.5px; line-height: 1.5; }
.addr-row > .chip { justify-self: end; }
@media (max-width: 560px) {
  .addr-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; }
  .addr-row .k { grid-column: 1 / -1; }
}

.note {
  border-left: 2px solid var(--line-2); background: transparent;
  padding: 2px 0 2px 14px; border-radius: 0;
  font-size: 13.5px; color: var(--muted);
}
.note.warn { border-left-color: var(--warn); color: var(--muted); background: transparent; }
.note.danger { border-left-color: var(--bad); color: var(--muted); background: transparent; }

/* 消息里的投票：只展示公告本身，不代收投票。
   选项用序号而不是可点的 radio——本站没有后端，做成能选、能提交的样子就是骗点击。
   和正文同宽（74ch），避免投票卡比下面的说明文字宽出一截。 */
.poll {
  max-width: 74ch;
  margin: 0 0 28px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.poll-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.poll-top time { margin-left: auto; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.poll-q { margin: 14px 0 0; font-size: 19px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.poll-opts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.poll-opt {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2);
}
.poll-no {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.poll-txt { min-width: 0; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.poll-txt b { font-weight: 600; }
.poll-sub { display: block; margin-top: 3px; font-size: 13px; color: var(--dim); }
.poll-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.poll-meta {
  display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums;
}
.poll-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.poll-hint { font-size: 12.5px; color: var(--dim); line-height: 1.5; }
@media (max-width: 560px) {
  .poll { padding: 16px; }
  .poll-q { font-size: 17px; }
  .poll-top time { width: 100%; margin-left: 0; }
}

/* 提示条贴在页头下沿。瞬时提示从上方来（iOS 横幅、macOS 通知都是），
   底部浮条是 Material 的做法；这里的提示又都要用户立刻处理（QQ 没起来、
   剪贴板没写进去），必须落在视线本来就停留的位置，而不是让人往屏幕角落找。 */
.toast {
  position: fixed; left: 50%; top: 68px; z-index: 90;
  max-width: min(88vw, 440px);
  transform: translate(-50%, -8px);
  padding: 9px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 13.5px; line-height: 1.5; text-align: center;
  box-shadow: 0 8px 30px var(--fill-2), 0 1px 2px rgba(0, 0, 0, .08);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 980px) {
  .toast { top: 108px; }
}

/* 无 JS 时的兜底文案 */
noscript p { color: var(--text); }

/* ── maps ─────────────────────────────────────────────── */
.mapwrap { position: relative; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.mapwrap img { display: block; width: 100%; height: auto; }
/* 点位标记：地图上一个点，点开是这张点位卡片 */
.spot {
  position: absolute; z-index: 3; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent); color: #fff; border: 2px solid #fff;
  font-size: 11.5px; font-weight: 600; line-height: 1; text-decoration: none;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.spot:hover, .spot.on {
  transform: translate(-50%, -50%) scale(1.18); z-index: 5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.spot:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
/* 只有 1 条记录的点不写数字，缩成小圆点：整张图全是「1」反而看不出信息。
   别缩太小，触屏上还得点得到。 */
.spot.one { width: 16px; height: 16px; border-width: 2px; }
.spot-pop {
  position: absolute; z-index: 8; width: 320px; max-width: calc(100% - 20px);
  overflow: auto; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .2), 0 1px 3px rgba(0, 0, 0, .08);
}
.spot-pop[hidden] { display: none; }
.spot-pop .spot-card { border: 0; padding: 0; background: transparent; }
.spot-pop .spot-card-h { padding-right: 18px; }
.spot-pop-x {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 17px; line-height: 1;
  cursor: pointer;
}
.spot-pop-x:hover { background: var(--fill); color: var(--text); }
/* 点地图看坐标。读数跟着指针走——固定在地图一角时，指针在图上移动，
   眼睛根本不会往角上瞟。但读数要「贴而不压」：偏离指针 16px，
   靠边时自动翻到另一侧，永远不盖住指针正指的那一点。
   准线只负责对齐，针是点下去才留下的。 */
.mapwrap[data-water] { cursor: crosshair; }
.coord-cross { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.coord-cross[hidden] { display: none; }
.coord-cross i { position: absolute; background: var(--accent); opacity: .3; }
.coord-cross .cx-v { width: 1px; }
.coord-cross .cx-h { height: 1px; }
.coord-tip {
  position: absolute; top: 0; left: 0; z-index: 7;
  display: flex; align-items: baseline; gap: 6px;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border: 1px solid var(--line-2);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
  pointer-events: none; /* 只读刻度，不接鼠标 */
  /* 只动 transform：跟着指针高频更新，别触发重排 */
  will-change: transform;
}
.coord-tip[hidden] { display: none; }
.coord-tip b {
  font-size: 12.5px; font-weight: 600; letter-spacing: .2px;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.coord-tip span { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.coord-tip span:empty { display: none; }
/* 针：点一下记住这里。圆点可以拖动微调，点圆点取消，点数字复制。 */
.coord-mark { position: absolute; z-index: 6; width: 0; height: 0; }
.coord-mark[hidden] { display: none; }
.coord-mark-dot {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px;
  margin: -13px 0 0 -13px; padding: 0; border-radius: 50%;
  border: 2px solid #fff; background: var(--accent);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
  cursor: grab; touch-action: none;
}
.coord-mark-dot::after {
  content: ''; position: absolute; inset: 7px; border-radius: 50%;
  background: #fff; opacity: .92;
}
.coord-mark-dot:active { cursor: grabbing; }
.coord-mark-dot:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.coord-mark-l {
  position: absolute; display: flex; align-items: center; gap: 7px;
  padding: 4px 9px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
  font: inherit; color: var(--text); cursor: copy;
}
.coord-mark-l b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.coord-mark-l .c { font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.coord-mark-l .c:empty { display: none; }
.coord-mark-l .cp { font-size: 11.5px; color: var(--accent); }
/* 点位列表：地图下面的一份全文，窄屏和关掉 JS 时就是它 */
.spot-list { display: grid; gap: 10px; margin-top: 16px; }
.spot-card {
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
/* 标题行下面拉一条虚线，和记录之间、点位之间的分隔保持同一套：
   不然标题和正文粘在一起，弹层里（没有卡片边框）尤其分不清哪儿是头。 */
.spot-card-h {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-bottom: 10px; border-bottom: 1px dashed var(--line);
}
.spot-card-h + * { margin-top: 10px; }
.spot-coord {
  font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .2px;
  color: var(--text);
}
.spot-fish { font-size: 13px; color: var(--muted); }
.spot-body + .spot-body { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.spot-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: var(--text);
}
.spot-meta time { margin-left: auto; font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.chip.sm { padding: 1px 8px; font-size: 11.5px; }
.spot-kit { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; }
.spot-kit div { display: flex; gap: 5px; font-size: 12.5px; }
.spot-kit dt { color: var(--dim); }
.spot-kit dd { margin: 0; color: var(--text); }
.spot-note { margin: 8px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.spot-card.flash { animation: spotFlash 1.6s ease-out; }
@keyframes spotFlash {
  from { box-shadow: 0 0 0 3px var(--accent); }
  to { box-shadow: 0 0 0 0 transparent; }
}
@media (max-width: 620px) {
  .spot { width: 22px; height: 22px; font-size: 10.5px; }
  .spot.one { width: 15px; height: 15px; }
  .spot-card { padding: 10px 12px; }
}
.maplegend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); margin-top: 10px; }
.mapthumb { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mapthumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s ease; }
a.item:hover .mapthumb img { opacity: 1; }

/* ── 钓点图（玩家截图）───────────────────────────────── */
.figgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.figgrid figure { margin: 0; }
.figgrid .fig {
  display: block; border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden; background: var(--surface-2);
}
.figgrid .fig img {
  display: block; width: 100%; height: auto; transition: transform .2s ease;
}
.figgrid .fig:hover img { transform: scale(1.02); }
.figgrid figcaption {
  margin-top: 7px; font-size: 12.5px; line-height: 1.5; color: var(--dim);
}
.fig-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--dim); }
/* 顶栏是 sticky 的，锚点要留出它的高度，否则跳过去标题被盖住 */
#spots { scroll-margin-top: 72px; }

/* 攻略页的配图集：正文之后 */
.guide-gallery { margin-top: 32px; }
.guide-gallery h2 { font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.guide-gallery .figgrid .fig img { max-height: 240px; object-fit: contain; background: var(--surface-2); }
@media (max-width: 620px) {
  .figgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: sticky; top: 0; z-index: 40; height: 52px; flex-direction: row; align-items: center;
    padding: 0 14px; border-right: 0; border-bottom: 1px solid var(--line);
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
  .rail::-webkit-scrollbar { display: none; }
  .brand { border: 0; padding: 0 14px 0 2px; flex: none; }
  .brand-mark { font-size: 17px; line-height: 1; }
  .brand-mark b { font-size: 17px; }
  .brand-sub { display: none; }
  .rail nav { display: flex; align-items: center; padding: 0; gap: 2px; }
  .nav-group { display: flex; align-items: center; margin: 0; }
  .nav-item { height: 32px; padding: 0 10px; white-space: nowrap; font-size: 13.5px; border-radius: 7px; }
  .nav-item .count, .nav-item .ico { display: none; }
  .rail-foot { display: none; }
  .topbar { top: 52px; height: 46px; padding: 0 16px; gap: 12px; }
  .view { padding: 22px 16px 80px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 23px; }
  .page-head p { font-size: 14px; }
  .upd { grid-template-columns: 40px minmax(0, 1fr); font-size: 13.5px; }
  .upd .t { white-space: normal; }
  .tbl { font-size: 13.5px; }
  .tbl td, .tbl thead th { padding: 9px 11px; }
  .grid.detail, .grid.split { grid-template-columns: 1fr; }
  .stat:first-child { padding-left: 16px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 12px 14px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kv { grid-template-columns: 80px minmax(0, 1fr); gap: 9px 14px; }
  .crumb .up { display: none; }
  .topbar-backup .long { display: none; }
  .topbar-backup .short { display: inline; }
}

/* ── 静态站：正文与页脚 ──────────────────────────────────────────
   内容页需要一块能读长文的地方。.prose 只负责「一段话读起来舒服」，
   不参与卡片体系：攻略、详情页导语、首页说明都用它。 */
.prose { max-width: 74ch; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  margin: 34px 0 12px; font-size: 20px; line-height: 1.35;
  font-weight: 600; letter-spacing: -.01em; color: var(--text);
}
.prose h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 600; color: var(--text); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--line-2); }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; text-underline-offset: 2px; }
.prose b { color: var(--text); font-weight: 600; }
.prose code {
  font-family: var(--mono); font-size: .92em; padding: 1px 5px;
  border-radius: 5px; background: var(--fill); color: var(--text);
}
.prose blockquote {
  margin: 0 0 16px; padding: 2px 0 2px 14px;
  border-left: 2px solid var(--line-2); color: var(--dim);
}

/* 正文插图：点位图这类截图，点开看原图 */
.prose .mdfig { margin: 18px 0; }
.prose .mdfig a { display: block; }
.prose .mdfig img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
}
.prose .mdfig figcaption {
  margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--dim);
}

/* 导航分组标签：桌面端显示，手机端（横向滚动条）隐藏 */
.rail .nav-label {
  display: block; padding: 0 10px; margin: 16px 0 6px;
  font-size: 11px; letter-spacing: .06em; color: var(--dim); text-transform: uppercase;
}
.rail a.nav-label:hover { color: var(--text); }
.rail .nav-group:first-child .nav-label { margin-top: 4px; }

/* 地图是 1:1 的方图，缩略图不要裁 */
.mapthumb { aspect-ratio: 1 / 1; }

/* 页脚 */
.sitefoot {
  margin-top: auto; padding: 26px 26px 40px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--dim); line-height: 1.7;
}
.sitefoot .foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.sitefoot .foot-links a { color: var(--muted); }
.sitefoot .foot-links a:hover { color: var(--text); }
.sitefoot p { margin: 0; max-width: 80ch; }

/* 攻略翻页 */
.guide-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.guide-nav .item .k { font-size: 12px; color: var(--dim); }
.guide-nav .item h3 { margin-top: 4px; font-size: 15px; }

/* 首页「从这里开始」：入口卡要和下面的信息卡明显不同——
   强调色标题 + 计数 + 行动文字和箭头，触屏没有 hover 也看得出来能点。 */
.start-block { margin-bottom: 28px; }
.start-label {
  font-size: 13px; font-weight: 500; color: var(--muted);
  margin-bottom: 10px; letter-spacing: .01em;
}
.start-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
/* 核心只有两块（国服 / 助手），宽屏各占一半，不再均分三份。 */
.start-cards.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.start-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 18px 18px 16px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.start-card:hover {
  border-color: var(--accent); background: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}
.start-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.start-card h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--accent); }
.start-n {
  flex: none; font-size: 12.5px; color: var(--accent);
  background: var(--accent-soft); border-radius: 980px; padding: 2px 9px;
  font-variant-numeric: tabular-nums;
}
.start-card p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.start-go {
  margin-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
}
.start-go b { font-weight: 400; transition: transform .15s ease; }
.start-card:hover .start-go b { transform: translateX(2px); }
@media (max-width: 560px) {
  .start-card { padding: 16px; }
  .start-card h2 { font-size: 17px; }
}

/* 核心入口之后的一行配套入口：资料库不占卡片位，避免 403 条压过主业。 */
.start-more { margin: 14px 0 0; font-size: 13.5px; color: var(--dim); line-height: 1.6; }
.start-more a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.start-more a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* 首页「国服状态」每行末尾：这个服还能用几个助手——本站最核心的那层关系。 */
.srv-tools { margin-left: 6px; font-size: 12.5px; color: var(--dim); }

/* 行内主链接：可点但不抢视觉 */
.tbl .name .t a:hover { color: var(--accent); }
.tbl tbody tr.link a { color: inherit; }

@media (max-width: 980px) {
  .rail .nav-label { display: none; }
  .sitefoot { padding: 22px 16px 34px; }
  .guide-nav { grid-template-columns: 1fr; }
}

/* 窄屏隐藏次要列：表格宁可少一列，也不要在手机上横着拖 */
@media (max-width: 620px) {
  .hide-sm { display: none !important; }
}

@media (max-width: 820px) {
  .hide-md { display: none !important; }
}

/* ── 水域详情：人工导语 ──────────────────────────────────────── */
.water-note { margin-bottom: 24px; }
.water-note .lead-in {
  font-size: 16px; line-height: 1.65; color: var(--text);
  margin: 0 0 6px; padding-left: 14px; border-left: 2px solid var(--accent);
}

/* ── 站内搜索结果 ──────────────────────────────────────────── */
.sresults { display: flex; flex-direction: column; gap: 2px; }
.srow {
  display: grid; grid-template-columns: 46px minmax(0, auto) minmax(0, 1fr);
  align-items: baseline; gap: 4px 12px;
  padding: 10px 12px; border-radius: var(--r-sm);
  border-bottom: 1px solid var(--line);
}
.srow:hover { background: var(--fill); }
.srow .sg {
  font-size: 11px; color: var(--dim); text-align: center;
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 0;
}
.srow .st { font-size: 15px; font-weight: 500; color: var(--text); }
.srow .ss { font-size: 12.5px; color: var(--dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 620px) {
  .srow { grid-template-columns: 42px minmax(0, 1fr); }
  .srow .ss { grid-column: 2 / -1; white-space: normal; }
}

/* ── 移动端 ────────────────────────────────────────────────────
   触屏只有三件事和桌面不同：输入框不能触发 iOS 缩放、可点的东西要有
   足够大的热区、横向导航必须让人看见当前在哪一段。布局本身（表格行块、
   单列网格）已经在上面各断点处理过，这里只补触屏的交互尺寸。 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.shell { min-height: 100vh; min-height: 100dvh; }

@media (max-width: 820px) {
  /* iOS Safari 对 font-size < 16px 的输入框会在聚焦时放大整页；
     搜索框一放大，返回列表就错位，所以手机上统一 16px。 */
  .input, .select, .btn { height: 40px; font-size: 16px; }
  /* 分段控件与标签是手机上最常点的两样，热区补到 36 / 32px */
  .seg a, .seg button { height: 36px; padding: 0 9px; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg a, .seg button { flex: none; }
  .chip { min-height: 32px; padding: 4px 11px; }
  /* 可点的标签（水域、鱼种、入口）比静态标签再高一档，热区接近 44 */
  a.chip, button.chip { min-height: 36px; padding: 5px 11px; }
  /* 导航条是横向滚动的，当前栏目可能停在屏幕外（见 enhance.js） */
  .nav-item { height: 40px; }
  .toolbar { gap: 8px; }
  .toolbar .input.wide { flex: 1 1 100%; max-width: none; }
  .sitefoot .foot-links a { padding: 3px 0; }
}

/* 刘海屏 / 圆角屏：横向留白跟着安全区走，正文不贴边 */
@supports (padding: max(0px)) {
  @media (max-width: 820px) {
    .rail { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
    .topbar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .view, .sitefoot {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
    .view { padding-bottom: max(80px, calc(56px + env(safe-area-inset-bottom))); }
  }
}

/* ≤560px 时面包屑隐藏站名，别把前面的分隔线一个人留在行首 */
@media (max-width: 560px) {
  .crumb .up + .sep { display: none; }
}

/* 320px（iPhone SE）上鱼类图鉴的「水域类型」会挤到横向滚动，
   海／淡在详情页还能看到，这里先让出一列。 */
@media (max-width: 360px) {
  .hide-xs { display: none !important; }
}
