/* ==========================================================================
   我的起源 · 猎物追踪 —— 前台设计系统
   纯 CSS，无构建工具。改完刷新即生效（引用处带 ?v= 版本号）。
   命名沿用旧类名（card/tag/btn/acc/prey-*），保证 mine.js 无需改动即可套上新皮肤。
   ========================================================================== */

:root {
  /* 色板 */
  --bg: #f4f6fb;
  --bg-2: #eef1f8;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #7c8798;
  --line: #e5e9f2;
  --line-2: #eef1f7;

  --brand: #4f46e5;
  --brand-2: #4338ca;
  --brand-3: #6366f1;
  --brand-soft: #eef2ff;
  --brand-ink: #3730a3;

  --ok: #0f9d6b;
  --ok-soft: #e8f8f1;
  --warn: #b45309;
  --warn-soft: #fef5e7;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --rare: #b45309;
  --cyan: #0891b2;

  /* 形状 */
  --r-xs: 6px;
  --r-sm: 9px;
  --r: 13px;
  --r-lg: 18px;
  --r-xl: 26px;

  /* 阴影 */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --sh-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --sh: 0 2px 6px rgba(15, 23, 42, .05), 0 12px 28px -12px rgba(15, 23, 42, .12);
  --sh-lg: 0 24px 60px -24px rgba(15, 23, 42, .28);

  --sidebar-w: 244px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 手机基础（2026-11-04 v3.47）
   - text-size-adjust：iOS 横屏 / 部分安卓浏览器会把字号「优化」放大，正文忽大忽小
   - tap-highlight：点按钮时那层灰蓝色方块跟设计不搭，统一去掉
   - overflow-wrap：邮箱、UID、长链接在窄屏必须能断行，否则整页被撑出横向滚动 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; overflow-wrap: break-word; }
img, svg, video, canvas { max-width: 100%; }

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-2); }

h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 650; line-height: 1.32;
                 letter-spacing: -.012em; color: var(--ink); }
h1 { font-size: 24px; }
h2 { font-size: 16.5px; }
h3 { font-size: 14.5px; }

code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--bg-2); padding: 1px 5px; border-radius: 5px; color: var(--brand-ink); }

::selection { background: #ddd6fe; color: #312e81; }

/* ---------------------------------------------------------------- 滚动条 */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: #cbd5e1; border-radius: 99px; border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ==========================================================================
   1. 应用外壳（登录后）
   ========================================================================== */

.shell { display: flex; min-height: 100vh; min-height: 100dvh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--sidebar-w);
  z-index: 40;
  display: flex; flex-direction: column;
  padding: 20px 14px 16px;
  color: #cbd5e1;
  background:
    radial-gradient(600px 320px at 0% 0%, rgba(99, 102, 241, .28), transparent 62%),
    radial-gradient(420px 300px at 100% 100%, rgba(8, 145, 178, .16), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0e1526 100%);
  border-right: 1px solid rgba(148, 163, 184, .12);
}

.sidebar .brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 20px;
  color: #fff; font-weight: 650; font-size: 15px; letter-spacing: -.01em;
}
.sidebar .brand:hover { color: #fff; }
.sidebar .brand .logo {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .9);
  color: #fff; font-size: 15px;
}
.sidebar .brand small {
  display: block; font-size: 11px; font-weight: 500; color: #94a3b8;
  letter-spacing: .02em; margin-top: 1px;
}

.side-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.side-nav .group {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; color: #64748b;
  padding: 14px 10px 6px; text-transform: uppercase;
}
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 10px;
  color: #b6c2d4; font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s;
}
.side-nav a svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .85; }
.side-nav a:hover { background: rgba(148, 163, 184, .1); color: #fff; }
.side-nav a.on {
  background: linear-gradient(90deg, rgba(99, 102, 241, .28), rgba(99, 102, 241, .12));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .35);
}
.side-nav a.on svg { opacity: 1; color: #a5b4fc; }

.side-foot { margin-top: auto; padding-top: 14px; }
.side-user {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 12px;
  background: rgba(148, 163, 184, .09);
  border: 1px solid rgba(148, 163, 184, .12);
}
.side-user .avatar {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: rgba(129, 140, 248, .22); color: #c7d2fe;
  font-weight: 650; font-size: 12.5px;
}
.side-user .who { min-width: 0; flex: 1; }
.side-user .who b {
  display: block; color: #e2e8f0; font-size: 12.8px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side-user .who span { font-size: 11.5px; color: #8fa0b8; }
.side-user .out {
  border: 0; background: transparent; color: #94a3b8; cursor: pointer;
  padding: 4px; border-radius: 7px; line-height: 0;
}
.side-user .out:hover { background: rgba(148, 163, 184, .16); color: #fff; }

.main {
  flex: 1; min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex; flex-direction: column;
}
.main-head {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  background: rgba(244, 246, 251, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.main-head .hamburger {
  display: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: 9px; padding: 6px 9px; cursor: pointer; color: var(--ink-2);
}
.main-head h1 { font-size: 17px; margin: 0; }
.main-head .crumb { color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.main-head .head-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.main-body { padding: 22px 28px 64px; max-width: 1240px; width: 100%; }

.section { display: none; }
.section.on { display: block; animation: fadeUp .28s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.section-head {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 17px; }
.section-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 12.8px; }
.section-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ==========================================================================
   2. 公共组件
   ========================================================================== */

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 460px; margin: 0 auto; padding: 0 20px; }

.muted { color: var(--ink-3); }
.small { font-size: 12.4px; }
.sub { color: var(--ink-2); font-size: 13px; }
.hide { display: none !important; }

/* ---- 卡片 ---- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.card.flat { box-shadow: none; }
.card-hd {
  display: flex; align-items: center; gap: 10px;
  margin: -20px -22px 16px; padding: 13px 22px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, #fff, var(--surface-2));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.card-hd h2 { margin: 0; font-size: 15px; }
.card-hd .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---- KPI ---- */

.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.kpi {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 15px;
  box-shadow: var(--sh-xs);
  position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; right: -22px; top: -22px;
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft), transparent 70%);
}
.kpi .k { color: var(--ink-3); font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.kpi .v {
  font-size: 25px; font-weight: 680; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
.kpi .v small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.kpi .d { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.kpi.brand .v { color: var(--brand); }
.kpi.ok .v { color: var(--ok); }
.kpi.warn .v { color: var(--warn); }

/* ---- 按钮 ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.2px; font-family: inherit; font-weight: 550;
  cursor: pointer; white-space: nowrap;
  box-shadow: var(--sh-xs);
  transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.btn:hover { background: var(--surface-2); border-color: #d3dae6; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brand-3); outline-offset: 1px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-3), var(--brand));
  border-color: var(--brand-2); color: #fff;
  box-shadow: 0 6px 14px -8px rgba(79, 70, 229, .85), inset 0 1px 0 rgba(255,255,255,.16);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #6d70f3, var(--brand-2));
  border-color: var(--brand-2); color: #fff;
}
.btn-danger { color: var(--danger); border-color: #f3c9c9; background: #fff; }
.btn-danger:hover { background: var(--danger-soft); border-color: #e9a9a9; color: #b91c1c; }
.btn-ok { color: #fff; background: var(--ok); border-color: #0b7f57; }
.btn-ok:hover { background: #0b7f57; color: #fff; }

.btn-sm { padding: 5px 10px; font-size: 12.4px; border-radius: 8px; }
.btn-lg { padding: 11px 22px; font-size: 14.2px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--brand-soft); border-color: transparent; }

.icon-btn {
  border: 1px solid var(--line); background: var(--surface); border-radius: 9px;
  width: 32px; height: 32px; display: grid; place-items: center;
  cursor: pointer; color: var(--ink-3);
}
.icon-btn:hover { color: var(--ink); border-color: #d3dae6; }

/* ---- 表单 ---- */

label.field { display: block; margin-bottom: 15px; }
label.field > span {
  display: block; margin-bottom: 6px; font-size: 12.8px; color: var(--ink-2);
  font-weight: 550;
}
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13.8px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.65; }
input:hover, select:hover, textarea:hover { border-color: #d3dae6; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-3);
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, .13);
}
input::placeholder, textarea::placeholder { color: #a8b3c4; }
input:disabled, select:disabled { background: var(--bg-2); color: var(--ink-3); }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.row-tight { gap: 8px; }

/* ---- 开关（toggle） ----
   2026-11-01：原来「启用 XX」用的是原生 checkbox，方块小、和整体风格不搭；
   而且只有定时退登有显式开关、免打扰靠「时间留空」隐式关闭，两套心智模型。
   现在统一成 .sw 开关：每个开关自带说明，关掉后下面的时间输入直接置灰。 */
.opt {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  padding: 14px 16px;
  transition: border-color .15s, background .15s;
}
.opt + .opt { margin-top: 10px; }
.opt:hover { border-color: #d8dfec; }

.opt > .opt-body {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  transition: opacity .16s;
}
.opt.is-off > .opt-body { opacity: .45; }
.opt > .opt-body label.field:last-child { margin-bottom: 0; }

label.sw {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
label.sw > input[type=checkbox] {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0; padding: 0;
  opacity: 0;
  pointer-events: none;
}
.sw-track {
  flex: 0 0 auto;
  position: relative;
  width: 42px; height: 24px;
  margin-top: 1px;
  border-radius: 999px;
  background: #cfd6e4;
  transition: background .18s ease;
}
.sw-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .3);
  transition: transform .18s cubic-bezier(.4, 0, .2, 1);
}
label.sw > input[type=checkbox]:checked + .sw-track { background: var(--brand); }
label.sw > input[type=checkbox]:checked + .sw-track::after { transform: translateX(18px); }
label.sw > input[type=checkbox]:focus-visible + .sw-track {
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, .22);
}
label.sw:hover > input[type=checkbox]:not(:checked) + .sw-track { background: #c1c9da; }

.sw-text { min-width: 0; }
.sw-t {
  display: block;
  font-size: 13.6px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.sw-d {
  display: block;
  margin-top: 3px;
  font-size: 12.2px;
  line-height: 1.55;
  color: var(--ink-3);
}

.opt-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 560px) {
  .opt { padding: 12px 13px; }
  .sw-track { width: 38px; height: 22px; }
  .sw-track::after { width: 16px; height: 16px; }
  label.sw > input[type=checkbox]:checked + .sw-track::after { transform: translateX(16px); }
}

.captcha-row { display: flex; gap: 10px; align-items: flex-start; }
.captcha-row input { flex: 1; }
.captcha-img {
  height: 42px; width: 132px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; display: block; background: var(--bg-2);
  object-fit: cover;
}

/* ---- 提示条 ---- */

.alert {
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 12.9px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  display: none;
  line-height: 1.6;
}
.alert.show { display: block; }
.alert-err { background: var(--danger-soft); color: #991b1b; border-color: #f5c2c2; }
.alert-ok { background: var(--ok-soft); color: #065f46; border-color: #b3e6d0; }
.alert-info { background: var(--brand-soft); color: var(--brand-ink); border-color: #d6d9fb; }
.alert-warn { background: var(--warn-soft); color: #92400e; border-color: #f3ddb3; }

/* ---- 徽标 ---- */

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 8px; border-radius: 999px;
  font-size: 11.4px; font-weight: 600; line-height: 1.85;
  background: var(--bg-2); color: var(--ink-2);
  white-space: nowrap;
}
.tag-ok { background: var(--ok-soft); color: #067a52; }
.tag-warn { background: var(--warn-soft); color: #96560b; }
.tag-danger { background: var(--danger-soft); color: #b91c1c; }
.tag-brand { background: var(--brand-soft); color: var(--brand-2); }
.tag-rare { background: #fdf1dc; color: var(--rare); box-shadow: inset 0 0 0 1px #f0dcae; }
.tag-key { background: #fdeae4; color: #b03a1e; box-shadow: inset 0 0 0 1px #f2c2b2; }
.tag-fixed { background: #eef1f6; color: #52606d; border: 1px dashed #b8c2cc; }
.tag-off { background: #eef0f4; color: #8a94a6; }

/* ---- 表格 ---- */

.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
th, td { padding: 10px 9px; text-align: left; border-bottom: 1px solid var(--line-2); }
th {
  font-weight: 600; color: var(--ink-3); font-size: 11.6px;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--surface-2); position: sticky; top: 0; z-index: 1;
}
tbody tr { transition: background .12s; }
tbody tr:hover { background: #f8faff; }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .mono, td.mono { font-size: 12.4px; }

/* ---- 分割/网格 ---- */

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.hr { height: 1px; background: var(--line-2); margin: 16px 0; border: 0; }

/* ---- 空状态 ---- */

.empty { text-align: center; padding: 44px 20px; color: var(--ink-3); }
.empty .big { font-size: 14.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.empty .ico {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}

/* ---- 加载 ---- */

.spinner {
  display: inline-block; width: 13px; height: 13px;
  border: 2px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: -2px;
}
.spinner.dark { border-color: rgba(79, 70, 229, .22); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

.progress { height: 5px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 9px; }
.progress > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand-3), #22d3ee);
  border-radius: 99px; transition: width .35s ease;
}

.skeleton {
  background: linear-gradient(90deg, var(--line-2) 25%, #f6f8fc 37%, var(--line-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: 8px; height: 14px;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---- 标签页 ---- */

.tabs {
  display: flex; gap: 3px; border-bottom: 1px solid var(--line);
  margin-bottom: 18px; overflow-x: auto;
}
.tabs button {
  padding: 9px 14px; border: none; background: none; cursor: pointer;
  font-size: 13.4px; font-family: inherit; font-weight: 550; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }

/* ---- toast ---- */

#toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-14px);
  background: #111827; color: #fff;
  padding: 11px 18px; border-radius: 11px;
  font-size: 13.2px; z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  max-width: min(90vw, 520px);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .55);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: #b91c1c; }
#toast.ok { background: #047857; }

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

.modal-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--r-lg);
  width: 100%; max-width: 700px; max-height: 86vh; overflow: auto;
  padding: 22px; box-shadow: var(--sh-lg);
  animation: pop .2s ease both;
}
@keyframes pop { from { opacity: 0; transform: scale(.98) translateY(6px); } to { opacity: 1; transform: none; } }
.modal h3 { margin: 0 0 2px; }
.modal .modal-sub { color: var(--ink-3); font-size: 12.5px; margin-bottom: 16px; }
.modal-ft {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2);
}
.modal-close {
  float: right; border: 0; background: none; font-size: 20px; line-height: 1;
  color: var(--ink-3); cursor: pointer; padding: 0 2px;
}
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 7px 12px; font-size: 13px; }
.kv .k { color: var(--ink-3); }

/* ==========================================================================
   3. 前台公开页（落地页 / 登录页 / 文档）
   ========================================================================== */

.pub-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(229, 233, 242, .9);
}
.pub-nav .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.pub-nav .brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 650; font-size: 15px; color: var(--ink);
}
.pub-nav .brand .logo {
  width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; color: #fff; font-size: 14px;
  background: linear-gradient(135deg, var(--brand-3), #22d3ee);
  box-shadow: 0 6px 14px -7px rgba(79, 70, 229, .9);
}
.pub-nav nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pub-nav nav a {
  padding: 7px 11px; border-radius: 9px; color: var(--ink-2);
  font-size: 13.4px; font-weight: 520;
}
.pub-nav nav a:hover { background: var(--bg-2); color: var(--ink); }

.announce {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; margin-bottom: 16px;
  border-radius: 11px; font-size: 12.9px;
  background: var(--brand-soft); color: var(--brand-ink);
  border: 1px solid #dcdcfb;
}
.announce.warn { background: var(--warn-soft); color: #92400e; border-color: #f3ddb3; }
.announce.success { background: var(--ok-soft); color: #065f46; border-color: #b3e6d0; }
.announce b { font-weight: 650; }
.announce .x { margin-left: auto; cursor: pointer; opacity: .6; border: 0; background: none; font-size: 16px; }

/* ---- 落地页 ---- */

.hero {
  position: relative; overflow: hidden;
  padding: 66px 0 58px;
  background:
    radial-gradient(800px 420px at 12% -8%, #ede9fe 0%, transparent 62%),
    radial-gradient(700px 380px at 92% 8%, #cffafe 0%, transparent 58%),
    linear-gradient(180deg, #fbfcff, var(--bg));
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(79, 70, 229, .1) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.06fr .94fr;
              gap: 46px; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border-radius: 999px;
  background: #fff; border: 1px solid #dcdcfb; color: var(--brand-2);
  font-size: 12px; font-weight: 600; box-shadow: var(--sh-xs);
}
.hero h1 {
  font-size: clamp(28px, 4.1vw, 42px); line-height: 1.18;
  letter-spacing: -.035em; margin: 16px 0 14px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand), #0891b2 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 15.2px; color: var(--ink-2); max-width: 520px; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero .cta .note { color: var(--ink-3); font-size: 12.4px; }

.hero-card {
  position: relative;
  background: rgba(255, 255, 255, .86);
  border: 1px solid #e3e7f5;
  border-radius: 20px;
  box-shadow: 0 34px 70px -32px rgba(30, 41, 59, .4);
  padding: 16px;
  backdrop-filter: blur(6px);
}
.hero-card .hc-hd {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--ink-3);
}
.hero-card .hc-hd .live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(15, 157, 107, .16);
}
.hero-card .hc-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px dashed var(--line-2); font-size: 13px;
}
.hero-card .hc-row:last-child { border-bottom: 0; }
.hero-card .hc-row .nm { font-weight: 600; }
.hero-card .hc-row .map { color: var(--ink-3); font-size: 11.8px; margin-left: auto; }
.hero-card .hc-foot {
  margin-top: 10px; padding: 10px 12px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand-ink); font-size: 12px;
}

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px; margin-top: 8px;
}
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-xs);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.feature .ico {
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.feature h3 { margin-bottom: 6px; font-size: 14.6px; }
.feature p { margin: 0; color: var(--ink-3); font-size: 12.9px; line-height: 1.72; }

.steps-lite { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.step-lite {
  position: relative; padding: 18px 18px 18px 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-xs);
}
.step-lite .no {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  color: var(--brand); letter-spacing: .08em;
}
.step-lite h3 { margin: 6px 0 5px; font-size: 14px; }
.step-lite p { margin: 0; color: var(--ink-3); font-size: 12.8px; line-height: 1.7; }

/* 上手卡的底栏：原「现在做什么」的入口与采样说明并到这里，不再单占一张卡 */
.start-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2);
}
.start-bar > .muted { flex: 1; min-width: 240px; line-height: 1.72; }

.cta-band {
  margin: 40px 0 10px;
  padding: 34px 30px;
  border-radius: var(--r-xl);
  color: #e0e7ff;
  background:
    radial-gradient(600px 300px at 82% 0%, rgba(34, 211, 238, .28), transparent 62%),
    linear-gradient(120deg, #1e1b4b, #312e81 55%, #0e7490);
  box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; }
.cta-band p { margin: 0; color: #c7d2fe; font-size: 13.2px; }
.cta-band .right { margin-left: auto; }
.cta-band .btn { background: #fff; color: #312e81; border-color: #fff; box-shadow: none; }
.cta-band .btn:hover { background: #eef2ff; }

.pub-foot {
  border-top: 1px solid var(--line);
  margin-top: 30px; padding: 26px 0 40px;
  color: var(--ink-3); font-size: 12.6px;
}
.pub-foot .wrap { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.pub-foot a { color: var(--ink-2); }
.pub-foot .right { margin-left: auto; display: flex; gap: 14px; }

/* ---- 登录 / 注册（左右分栏） ---- */

.auth-split {
  min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.02fr .98fr;
}
.auth-aside {
  position: relative; overflow: hidden;
  padding: 52px 46px;
  color: #e2e8f0;
  display: flex; flex-direction: column;
  background:
    radial-gradient(700px 420px at 8% 0%, rgba(99, 102, 241, .35), transparent 60%),
    radial-gradient(560px 400px at 96% 100%, rgba(34, 211, 238, .22), transparent 58%),
    linear-gradient(160deg, #0b1220, #111c3a 60%, #0b1220);
}
.auth-aside .brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 650; font-size: 15px;
}
.auth-aside .brand .logo {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #22d3ee); font-size: 15px;
}
.auth-aside h2 {
  color: #fff; font-size: 26px; line-height: 1.3; letter-spacing: -.03em;
  margin: auto 0 12px; max-width: 420px;
}
.auth-aside .desc { color: #a5b4c8; font-size: 13.6px; max-width: 400px; line-height: 1.8; }
.auth-aside ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-aside li { display: flex; gap: 9px; font-size: 13px; color: #c7d2e4; align-items: flex-start; }
.auth-aside li svg { width: 16px; height: 16px; color: #34d399; flex: 0 0 auto; margin-top: 2px; }
.auth-aside .quote {
  margin-top: auto; font-size: 12px; color: #7c8da8;
  border-top: 1px solid rgba(148, 163, 184, .16); padding-top: 16px;
}

.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: var(--bg);
}
.auth-box {
  width: 100%; max-width: 386px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 28px 26px;
}
.auth-box .logo { display: none; }
.auth-box .sub { color: var(--ink-3); font-size: 13px; margin-bottom: 20px; }
.auth-box h2 { font-size: 19px; margin-bottom: 4px; }
.auth-foot {
  margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line-2);
  font-size: 12.8px; color: var(--ink-3); text-align: center;
}

/* ---- 文档页 ---- */

.doc { line-height: 1.9; }
.doc h2 { margin-top: 26px; font-size: 16px; }
.doc p, .doc li { color: var(--ink-2); font-size: 13.4px; }

/* ==========================================================================
   4. 业务组件（mine.js 渲染的区块）
   ========================================================================== */

/* ---- 概览 · 实时监控（每个角色一张卡） ---- */

.mon-grid {
  display: grid; gap: 14px; align-items: start;
  /* min() 兜住窄屏：容器不足 320 时退回 100%，否则最小列会顶破屏幕。
     320 保证常见桌面宽度下是三列；卡头那一行靠缩小字号与间距压进 370px 的卡里。 */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.mon-empty {
  grid-column: 1 / -1;
  padding: 34px 20px; text-align: center;
  color: var(--ink-3); font-size: 12.9px; line-height: 1.75;
  border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface);
}
.mon-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-xs);
}
/* 一行装三件事：地图线路（最重要，黑体）→ 区服 → 角色名（小字灰，仅用于对号），数量靠右。
   用 grid 两列而不是 flex-wrap：中文名一长就换行时，数量不会被甩到第二行右侧悬挂。
   字号与间距是按「370px 的卡（三列）里塞下整行」反推的，比常规卡头紧一档。 */
.mon-hd {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px; align-items: center;
  padding: 11px 12px 10px; border-bottom: 1px solid var(--line-2);
}
.mon-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
/* 区服与角色名各带一条细竖线：三组信息靠着排也不会读成一串 */
.mon-svr, .mon-role { border-left: 1px solid var(--line); padding-left: 6px; }
.mon-map {
  color: var(--ink); font-weight: 650; font-size: 12.6px; letter-spacing: -.01em;
  /* 中文默认可在任意字间断行，这里禁掉，窄屏宁可截断也不要「旧日平原 / 1598年（2线）」拆两行 */
  white-space: nowrap; min-width: 0; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
}
.mon-svr { color: var(--ink-2); font-size: 11.2px; white-space: nowrap; }
.mon-role { color: var(--ink-3); font-size: 10.6px; white-space: nowrap; }
.mon-hd .tag { padding: 0 5px; font-size: 10px; line-height: 1.6; }
.mon-n { color: var(--ink-2); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 高度固定：怪物多的图不会把整块拉得很长，卡内滚动 */
.mon-pets {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 12px 14px 14px; max-height: 208px; overflow-y: auto;
}
.mon-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 99px;
  background: var(--bg-2); color: var(--ink-2);
  font-size: 12.2px; border: 1px solid transparent; white-space: nowrap;
}
.mon-chip b { font-weight: 550; }
.mon-chip i { font-style: normal; font-size: 9.5px; color: var(--ink-3); letter-spacing: -.02em; }
.mon-chip.rare { background: #fdf1dc; color: #8a5a08; box-shadow: inset 0 0 0 1px #f0dcae; }
.mon-chip.rare i { color: #b58130; }
.mon-chip.key { background: #fdeae4; color: #a2371c; box-shadow: inset 0 0 0 1px #f2c2b2; }
.mon-chip.key i { color: #c2603a; }
/* 这一轮才出现的（上一轮没有）闪一下，方便盯新刷的怪 */
.mon-chip.is-new { animation: chipIn 1.4s ease-out; }
@keyframes chipIn {
  0% { transform: scale(.94); box-shadow: 0 0 0 3px rgba(79, 70, 229, .25); }
  100% { transform: none; }
}
.mon-none { color: var(--ink-3); font-size: 12.4px; }

/* ---- 概览 · 全图播报（首领降临，按区服一张卡） ---- */

.mon-notices {
  display: grid; gap: 12px; align-items: start; margin-bottom: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.mon-notice { border-left: 3px solid #d97757; }
.mn-list { display: flex; flex-direction: column; gap: 7px; padding: 11px 13px 13px; }
.mn-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.mn-kind {
  flex: none; padding: 1px 7px; border-radius: 99px; font-size: 10.4px;
  background: var(--bg-2); color: var(--ink-3); white-space: nowrap;
}
.mn-kind.on { background: #fdeae4; color: #a2371c; box-shadow: inset 0 0 0 1px #f2c2b2; }
.mn-text {
  flex: 1; min-width: 0; color: var(--ink); font-size: 12.4px; line-height: 1.55;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mn-at { flex: none; color: var(--ink-3); font-size: 10.6px; font-variant-numeric: tabular-nums; }
/* 播报内容变动时闪一下（飞书推送同一时刻发出） */
.mon-notice.is-flash { animation: noticeIn 1.8s ease-out; }
@keyframes noticeIn {
  0% { box-shadow: 0 0 0 3px rgba(217, 119, 87, .3); }
  100% { box-shadow: var(--sh-xs); }
}

/* ---- 状态条 ---- */

.statusbar {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-xs);
  margin-bottom: 16px; font-size: 12.9px;
}
.statusbar .item { display: flex; align-items: center; gap: 6px; }
.statusbar .k { color: var(--ink-3); }
.statusbar .v { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---- 账号卡 ---- */

.acc {
  border: 1px solid var(--line); border-radius: var(--r);
  margin-bottom: 13px; overflow: hidden; background: var(--surface);
  box-shadow: var(--sh-xs);
  transition: box-shadow .18s;
}
.acc:hover { box-shadow: var(--sh-sm); }
.acc-hd {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px;
  background: linear-gradient(180deg, #fff, var(--surface-2));
  border-bottom: 1px solid var(--line-2);
}
.acc-hd .phone { font-weight: 650; font-size: 14.2px; letter-spacing: -.01em; }
.acc-hd .right { margin-left: auto; display: flex; gap: 7px; align-items: center; }
.acc-bd { padding: 8px 16px 14px; }

.role-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px dashed var(--line-2);
}
.role-row:last-child { border-bottom: none; }
.role-row .rname { font-weight: 600; min-width: 96px; }
.role-row .right { margin-left: auto; display: flex; gap: 7px; align-items: center; }

.role-panel {
  margin-top: 10px; padding: 14px 15px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 11px; display: none;
}
.role-panel.show { display: block; }

/* ---- 猎物列表 ---- */

.prey-grid { display: grid; gap: 8px; }
.prey-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 11px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.prey-item:hover { border-color: #cfd8ee; box-shadow: var(--sh-xs); }
.prey-item.rare {
  border-color: #f0dcae;
  background: linear-gradient(90deg, #fffdf7, #fff 60%);
}
.prey-item.key {
  border-color: #f2c2b2;
  background: linear-gradient(90deg, #fff7f4, #fff 60%);
  box-shadow: inset 3px 0 0 #d4552f;
}
.prey-item.is-new { animation: flashIn 1s ease-out; border-color: var(--brand-3); }
@keyframes flashIn {
  0% { background: #e8ecff; }
  100% { background: #fff; }
}
.prey-name { font-weight: 600; flex: 1; min-width: 0; }
.prey-meta { color: var(--ink-3); font-size: 11.8px; white-space: nowrap; }
.prey-note { margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }
.prey-empty {
  padding: 28px; text-align: center; color: var(--ink-3); font-size: 12.8px;
  border: 1px dashed var(--line); border-radius: 11px;
}

/* ---- 区服选择 ---- */

.srv-list {
  display: flex; flex-direction: column; gap: 7px; margin-top: 10px;
  max-height: 384px; overflow-y: auto; padding-right: 2px;
}
.srv-more { margin-top: 8px; font-size: 12px; line-height: 1.6; }
.srv-more a { color: var(--brand); }
.srv-filter { margin-top: 12px; }
.srv-filter input { max-width: 340px; }

.srv-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.srv-item:hover { border-color: #cfd8ee; background: #fbfcff; }
.srv-item.on {
  border-color: var(--brand-3); background: #f5f6ff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}
.srv-item .srv-id {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12.6px;
  color: var(--brand); min-width: 48px;
}
.srv-item .srv-name { font-size: 13.2px; min-width: 110px; }
.srv-item .srv-role { color: var(--ink-2); font-size: 12.8px; }
.srv-item .srv-right { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.srv-item .srv-state { color: var(--ink-3); font-size: 12.2px; }
.srv-item.is-empty { background: #fcfcfe; }
.srv-item.is-empty .srv-id, .srv-item.is-empty .srv-name { opacity: .5; }
.srv-item.is-hit { border-left: 3px solid var(--ok); padding-left: 11px; }
.srv-item.is-off { background: #fafafa; cursor: not-allowed; }
.srv-item.is-off .srv-id, .srv-item.is-off .srv-name { opacity: .45; }

.probe-roles { margin-top: 14px; }
.role-chip {
  font: inherit; font-size: 12.8px; cursor: pointer;
  padding: 6px 13px; margin: 0 8px 8px 0;
  color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .12s, color .12s, background .12s;
}
.role-chip:hover { border-color: #cfd8ee; color: var(--brand); }
.role-chip.on {
  color: var(--brand-2); background: var(--brand-soft);
  border-color: #c7cbf7; font-weight: 600;
}

/* ---- 步骤条 ---- */

.steps { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 12.8px; color: var(--ink-3); }
.steps .step { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.steps .step i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  font-style: normal; font-size: 11.4px; font-weight: 700; color: var(--ink-3);
  transition: all .15s;
}
.steps .step.on { color: var(--brand-2); font-weight: 650; }
.steps .step.on i { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps .step.done { color: #0b7f57; }
.steps .step.done i { background: var(--ok-soft); border-color: #b3e6d0; color: #0b7f57; }
.steps .ln { flex: 0 0 34px; height: 1px; background: var(--line); }
.bind-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.probe-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.probe-hd .sub { flex: 1; min-width: 0; }
.srv-hint { margin-top: 10px; }
#bind-card.is-selecting .alert-info { display: none; }

/* ---- 套餐 ---- */

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 14px; }
.plan-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 17px; background: var(--surface); box-shadow: var(--sh-xs);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.plan-card.on { border-color: var(--brand-3); box-shadow: 0 0 0 3px var(--brand-soft), var(--sh-sm); }
.plan-flag {
  position: absolute; top: -9px; right: 14px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand));
  color: #fff; font-size: 10.8px; font-weight: 650; line-height: 19px;
  padding: 0 9px; border-radius: 999px;
  box-shadow: 0 6px 14px -8px rgba(79, 70, 229, .9);
}
.plan-name { font-weight: 650; font-size: 14.5px; }
.plan-price { font-size: 27px; font-weight: 700; margin: 4px 0 14px; letter-spacing: -.035em; }
.plan-price .cur { font-size: 14px; font-weight: 600; }
.plan-price .per { font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.plan-rows { border-top: 1px solid var(--line-2); padding-top: 11px; display: flex; flex-direction: column; gap: 7px; }
.plan-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.plan-act { margin-top: 15px; }
.plan-act .btn { width: 100%; justify-content: center; }
.plan-cur { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan-cur-name { font-size: 17px; font-weight: 650; }

.meters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px 22px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.meter-hd { display: flex; justify-content: space-between; font-size: 12.4px; margin-bottom: 6px; }
.meter { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.meter-fill { height: 100%; background: linear-gradient(90deg, var(--brand-3), var(--brand)); border-radius: 99px; transition: width .3s ease; }
.meter-fill.warn { background: var(--warn); }
.meter-fill.danger { background: var(--danger); }

/* ---- 绑定码 ---- */

.bind-code {
  font-family: var(--mono); font-size: 23px; letter-spacing: 4px; font-weight: 700;
  padding: 9px 16px; border-radius: 10px; display: inline-block;
  background: var(--brand-soft); color: var(--brand-2);
  border: 1px dashed #c7cbf7;
}
.chan-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 11px; margin-bottom: 8px;
  transition: border-color .15s;
}
.chan-item:hover { border-color: #cfd8ee; }
.chan-item .body { flex: 1; min-width: 0; }
.chan-item .acts { display: flex; gap: 6px; flex: 0 0 auto; }
.bind-box {
  border: 1px dashed #cfd6e0; border-radius: 12px; padding: 14px;
  background: var(--surface-2);
}

/* ---- 折叠框 ---- */

details.box {
  border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 14px; margin-bottom: 10px; background: var(--surface-2);
}
details.box > summary { cursor: pointer; font-weight: 550; font-size: 13.2px; color: var(--ink-2); list-style: none; }
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::before { content: "▸"; display: inline-block; margin-right: 7px; color: var(--ink-3); transition: transform .15s; }
details.box[open] > summary::before { transform: rotate(90deg); }
details.box > div { margin-top: 12px; }

/* ==========================================================================
   5. 响应式
   ========================================================================== */

@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { max-width: 520px; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* ---- 以下两条（≤860）是「触屏设备」这一层，手机和平板共用 ----
   这一层解决的是**手指操作**问题，与具体版式无关：
   点击目标太小、iOS 聚焦输入框自动放大、直角贴边、抽屉占满屏。 */

@media (max-width: 860px) {
  .sidebar {
    /* 抽屉按视口收缩：244px 在 320px 的小屏上会占掉 3/4，
       且藏起来的那部分不能有阴影残留（otherwise 打开瞬间会闪一下） */
    width: min(86vw, 300px);
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0);
    /* 手机横屏 / 小屏时菜单比屏幕高，抽屉必须能自己滚，否则底部「服务条款」
       和用户条直接被切掉，还没有滚动条可拉 */
    overflow-y: auto; overscroll-behavior: contain;
  }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(15, 23, 42, .45); }
  /* 抽屉里底部的用户条要给 iPhone 的 Home 指示条让位，否则头像被压住 */
  .sidebar { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .main { margin-left: 0; }
  .main-head {
    padding: 10px 14px;
    /* 刘海屏：顶栏贴到状态栏下面，否则标题被盖住 */
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    gap: 11px;
  }
  .main-head .hamburger {
    display: grid; place-items: center;
    width: 40px; height: 40px; padding: 0;      /* 32px 高的按钮手指按不准 */
    border-radius: 10px;
  }
  .main-head h1 { font-size: 16.5px; }
  .main-body {
    padding: 14px 14px calc(40px + env(safe-area-inset-bottom, 0px));
  }

  /* iOS（Safari / WKWebView）在输入框字号 <16px 时会在聚焦瞬间把整页放大，
     用户必须手工缩回去 —— 这是手机上「页面突然变大」的头号原因。
     所有可输入控件在这一层统一 16px；视觉上只大一点点，换来不再乱缩放。 */
  input[type=text], input[type=email], input[type=password], input[type=number],
  input[type=tel], input[type=date], input[type=datetime-local], input[type=search],
  input[type=url], select, textarea {
    font-size: 16px;
  }
  /* 触摸目标：桌面 28px 的 sm 按钮在手指下大约只有一半命中率 */
  .btn { min-height: 40px; }
  .btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
  .icon-btn { width: 38px; height: 38px; }
  /* 触屏没有真 hover：保留 hover 底色会让「点过的按钮」看起来一直是按下的 */
  .btn:active { transform: none; }

  /* 行内文字链接（页脚条款、登录页「立即注册 / 忘记密码」、注册页的协议链接）
     原本点击区只有文字高度 16~20px，手指很难点中。用纵向内边距把命中区抬到
     32 左右，再用等价负 margin 抵消，行距与视觉位置都不变。 */
  .pub-foot a, .auth-foot a, label.small a { display: inline-block; padding: 8px 3px; margin: -5px 0; }
  label.small a { padding: 5px 2px; margin: 0; }
  /* 顶栏品牌是 flex 行（logo + 文字），只能加 padding，不能改 inline-block */
  .pub-nav .brand { padding: 8px 3px; margin: -5px 0; }
}

@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 15px; }
  .card { padding: 15px; border-radius: var(--r); }
  .card-hd { margin: -15px -15px 13px; padding: 11px 15px; }
  /* ---- KPI：桌面用的 auto-fit(168px) 在 360~370 的屏上刚好卡在「单列」，
     四张卡各占一整行、首屏除四块白板什么都没有。手机固定两列 ——
     指标都是「4 个 / 4 / 4 / 25 条」这种短值，一栏 150px 完全够。 ---- */
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
  .kpi { padding: 12px 13px; }
  .kpi .v { font-size: 22px; }
  .kpi .v small { font-size: 12px; }
  .kpi .d { font-size: 11px; }
  .row { flex-direction: column; gap: 0; }
  /* 例外：免打扰 / 定时退登的时间对（23:30 · 07:00）只有 5 个字符，
     两列并排正好，拆成两行只是白占一屏高度 */
  .opt-body .row { flex-direction: row; gap: 10px; }
  .role-row { align-items: flex-start; }
  .role-row .right { margin-left: 0; width: 100%; }
  /* 分节标题右侧的工具条：手机上一行放不下「全部抓取 / 退登 / 登录」，
     让它独占一行并允许换行，否则会顶出屏幕（按钮被裁掉一半） */
  .section-head .right { margin-left: 0; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  /* 实时监控那一行只有「更新于 xx:xx」，不需要独占一行，留在标题右侧更紧凑 */
  #sec-overview .section-head .right { margin-left: auto; width: auto; }
  table { font-size: 12.4px; }
  th, td { padding: 9px 6px; }
  .steps { gap: 5px; font-size: 11.8px; }
  .steps .ln { flex-basis: 14px; }
  .srv-list { max-height: 320px; }
  .srv-item { flex-wrap: wrap; gap: 4px 10px; }
  .srv-item .srv-role { width: 100%; }
  .hero { padding: 40px 0 34px; }
  /* 三步引导在手机上竖排，18px 内边距 × 3 张卡会让「概览」首屏全是它。
     收紧到 13px，并把说明文字的行高压低一点，一屏就能看完三步。 */
  .steps-lite { gap: 9px; }
  .step-lite { padding: 13px 14px; border-radius: var(--r); }
  .step-lite .no { font-size: 10.8px; }
  .step-lite h3 { margin: 4px 0 3px; font-size: 13.5px; }
  .step-lite p { font-size: 12.4px; line-height: 1.62; }
  .cta-band { padding: 24px 20px; }
  .plan-price { font-size: 24px; }
  .pub-nav nav a { padding: 6px 8px; font-size: 12.6px; }
  /* 落地页顶栏：手机上「功能 / 使用流程」两个锚点会把「免费注册」挤出屏幕，
     而锚点在手机上本来就不好用（点完跳到页面中段，找不到回来的路），直接收掉 */
  .pub-nav .wrap { height: 56px; gap: 8px; }
  .pub-nav nav { gap: 2px; }
  .pub-nav .nav-anchor { display: none; }
  .pub-nav nav a { padding: 9px 10px; font-size: 13px; }
  .pub-foot { padding: 22px 0 calc(30px + env(safe-area-inset-bottom, 0px)); }
  .pub-foot .wrap { flex-direction: column; align-items: flex-start; gap: 7px; }
  .pub-foot .right { margin-left: 0; gap: 12px; }
  .auth-main { padding: 26px 16px; }
  /* 登录 / 注册：手机上不垂直居中 —— 卡片居中时上方留一大片空白，
     键盘一弹又整块跳位。改成顶部对齐，并给刘海 / Home 条留出安全区。 */
  .auth-main {
    align-items: flex-start;
    padding: calc(30px + env(safe-area-inset-top, 0px)) 16px
             calc(30px + env(safe-area-inset-bottom, 0px));
  }
  .auth-box { padding: 22px 18px; max-width: 100%; }

  /* ---- 账号卡：桌面上是「左边一串信息 + 右边两个按钮」，窄屏挤成一条，
     按钮被推到第二行右端「悬挂」着。改成信息占一整行、按钮各占一半宽度，
     拇指在卡片下沿就能点到，不用去瞄右下角。 ---- */
  .acc-hd { padding: 12px 14px 10px; gap: 8px 9px; }
  .acc-hd .right { width: 100%; margin-left: 0; gap: 8px; }
  .acc-hd .right .btn { flex: 1 1 0; }
  .acc-bd { padding: 6px 14px 12px; }
  .role-row { padding: 10px 0; gap: 7px 9px; }
  .role-row .rname { min-width: 0; font-size: 14.5px; }
  /* 地图单独一行，别和角色名挤在一起互相挤断 */
  .role-row [data-map] { width: 100%; order: 3; }
  .role-row .right { order: 4; gap: 8px; margin-top: 2px; }
  .role-row .right .btn { flex: 1 1 0; }

  /* ---- 触屏再收一档：按钮 44px 是 iOS 人机指南的最小推荐值 ---- */
  .btn { min-height: 42px; font-size: 13.8px; }
  .btn-sm { min-height: 36px; padding: 7px 13px; font-size: 13px; }

  /* ---- 通用表格：后台同款思路，横向可滑，别把列裁掉 ---- */
  .tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ---- 概览监控卡片：窄屏一行放不下「在线」两个字，退化成 7px 圆点
     （绿=在线、灰=退登），语义靠 title 保留，省下的宽度刚好让
     「线路 │ 区服 │ 角色名」挤在一行。手机单列，字号可以回到正常大小。 ---- */
  .mon-hd { gap: 5px 8px; padding: 12px 13px 11px; }
  .mon-meta { gap: 5px; }
  .mon-map { font-size: 13.4px; }
  .mon-svr { font-size: 11.6px; padding-left: 7px; }
  .mon-role { font-size: 11.2px; padding-left: 7px; }
  .mon-hd .tag {
    width: 7px; height: 7px; padding: 0; font-size: 0; line-height: 0;
    border-radius: 999px; background: #b6bfcc; flex: none;
  }
  .mon-hd .tag.tag-ok { background: #12a150; }
  .mon-pets { padding: 11px 13px 13px; gap: 6px; }
  .mon-chip { font-size: 12.4px; }
}

/* 手机横屏（高度很矮）：顶栏 + 标题把可视区吃掉大半，压缩上下留白 */
@media (max-width: 900px) and (max-height: 520px) {
  .main-head { padding-top: 7px; padding-bottom: 7px; }
  .main-body { padding-top: 10px; }
  .sidebar { padding-top: 12px; }
  .card-hd { margin-bottom: 10px; }
}

/* ---- 超窄屏（iPhone SE 320~375，以及被系统字体放大后的等效宽度） ---- */
@media (max-width: 380px) {
  .main-body { padding-left: 11px; padding-right: 11px; }
  .card { padding: 13px; }
  .card-hd { margin: -13px -13px 12px; padding: 10px 13px; }
  .kpi-grid { gap: 9px; }
  .kpi { padding: 12px 12px; }
  .kpi .v { font-size: 22px; }
  .acc-hd { padding: 11px 12px 9px; }
  .acc-hd .right { flex-wrap: wrap; }
  .btn-sm { padding: 7px 10px; }
  .mon-map { font-size: 12.8px; }
}
