/* 沉思波统一控制台 · 视觉与官网同源（深空黑 #0e1218 / 主蓝 #1677ff），表格密度优先、无花哨装饰 */

:root {
  --bg: #0e1218;
  --bg-2: #12171f;
  --panel: #151b24;
  --panel-2: #1a212c;
  --line: #232b36;
  --line-2: #2c3542;
  --text: #e6edf3;
  --muted: #8b98a9;
  --muted-2: #6b7787;
  --brand: #1677ff;
  --brand-2: #3f92ff;
  --ok: #3fb950;
  --warn: #d29922;
  --danger: #f85149;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
button { font-family: inherit; }
.boot { padding: 48px; color: var(--muted); }

/* ---------- 登录 ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(900px 420px at 20% -10%, rgba(22, 119, 255, 0.16), transparent 60%),
    radial-gradient(700px 380px at 90% 110%, rgba(63, 146, 255, 0.10), transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 30px 26px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.auth-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #6aa9ff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
}
.auth-card h1 { font-size: 19px; margin: 0; font-weight: 650; letter-spacing: 0.5px; }
.auth-sub { color: var(--muted); font-size: 13px; margin: 6px 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.field input {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; outline: none;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.18); }
.btn {
  height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font-size: 13.5px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: #202836; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-danger { background: transparent; border-color: rgba(248, 81, 73, 0.5); color: #ff7b74; }
.btn-danger:hover { background: rgba(248, 81, 73, 0.12); }
.btn-block { width: 100%; height: 42px; font-size: 14.5px; margin-top: 6px; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.auth-error {
  display: none; margin-bottom: 14px; padding: 9px 12px;
  background: rgba(248, 81, 73, 0.1); border: 1px solid rgba(248, 81, 73, 0.4);
  color: #ff9d97; border-radius: 8px; font-size: 13px;
}
.auth-error.show { display: block; }
.auth-note { margin-top: 16px; color: var(--muted-2); font-size: 12.5px; text-align: center; }

/* ---------- 应用壳 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 224px; flex: 0 0 224px; background: var(--bg-2);
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; border-bottom: 1px solid var(--line); }
.side-brand .auth-logo { width: 30px; height: 30px; font-size: 13.5px; }
.side-brand b { font-size: 14.5px; font-weight: 650; letter-spacing: 0.5px; }
.side-brand span { display: block; color: var(--muted-2); font-size: 11.5px; font-weight: 400; letter-spacing: 0; }
.nav { padding: 14px 10px; flex: 1; overflow-y: auto; }
.nav-group { color: var(--muted-2); font-size: 11.5px; letter-spacing: 1px; padding: 12px 10px 6px; }
.nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; margin-bottom: 2px; border-radius: 8px;
  color: var(--muted); font-size: 13.5px;
}
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: rgba(22, 119, 255, 0.14); color: #cfe4ff; font-weight: 600; }
.nav a .tag { font-size: 11px; color: var(--muted-2); }
.side-foot { border-top: 1px solid var(--line); padding: 14px 16px; }
.who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.who .ava {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px;
  background: #243044; color: #bcd4f5; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.who .nm { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .rl { color: var(--muted-2); font-size: 11.5px; }
.side-foot .btn { width: 100%; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; border-bottom: 1px solid var(--line); background: rgba(14, 18, 24, 0.85);
  backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px;
}
.topbar h2 { font-size: 16px; margin: 0; font-weight: 650; }
.topbar .crumb { color: var(--muted-2); font-size: 12.5px; margin-top: 2px; }
.content { padding: 24px 26px 48px; max-width: 1240px; width: 100%; }

/* ---------- 通用组件 ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.panel-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.panel-hd h3 { margin: 0; font-size: 14.5px; font-weight: 650; }
.panel-hd .sub { color: var(--muted-2); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.panel-bd { padding: 16px 18px; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; }
.stat .k { color: var(--muted); font-size: 12.5px; }
.stat .v { font-size: 26px; font-weight: 680; letter-spacing: 0.5px; margin-top: 4px; }
.stat .d { color: var(--muted-2); font-size: 11.5px; margin-top: 3px; }
.stat.accent .v { color: var(--brand-2); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.toolbar input[type="search"], .toolbar select {
  height: 34px; padding: 0 10px; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 7px; font-size: 13px; outline: none;
}
.toolbar input[type="search"] { min-width: 230px; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--brand); }
.toolbar .spacer { flex: 1; }
.hint { color: var(--muted-2); font-size: 12.5px; }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: 12px; color: var(--muted-2); font-weight: 600;
  padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.022); }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl .clink { cursor: pointer; }
.tbl .clink:hover .nm { color: var(--brand-2); }
.nm { font-weight: 600; }
.sub2 { color: var(--muted-2); font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px; font-size: 12px;
  background: rgba(22, 119, 255, 0.14); border: 1px solid rgba(22, 119, 255, 0.35); color: #bcd8ff;
}
.chip.role-student { background: rgba(63, 185, 80, 0.12); border-color: rgba(63, 185, 80, 0.35); color: #9fe0ad; }
.chip.role-teacher { background: rgba(210, 153, 34, 0.12); border-color: rgba(210, 153, 34, 0.35); color: #f0cf8f; }
.chip.role-admin { background: rgba(248, 81, 73, 0.12); border-color: rgba(248, 81, 73, 0.4); color: #ffb3ae; }
.chip.flat { background: transparent; border-color: var(--line-2); color: var(--muted); }
/* 站点总览的筛选片（可点选）：未选中=暗淡，选中=品牌蓝高亮 */
.chip[data-sgroup], .chip[data-sonly] { cursor: pointer; background: transparent; border-color: var(--line-2); color: var(--muted); }
.chip[data-sgroup].active, .chip[data-sonly].active { background: rgba(22, 119, 255, 0.16); border-color: rgba(22, 119, 255, 0.45); color: #cfe4ff; font-weight: 600; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; border: 1px solid transparent; }
.badge.on { background: rgba(63, 185, 80, 0.12); border-color: rgba(63, 185, 80, 0.35); color: #9fe0ad; }
.badge.off { background: rgba(210, 153, 34, 0.14); border-color: rgba(210, 153, 34, 0.4); color: #f0cf8f; }
/* UGC 审核：已拒绝（先审后发 · 2026-10-07） */
.badge.danger { background: rgba(248, 81, 73, 0.14); border-color: rgba(248, 81, 73, 0.4); color: #ff9b95; }
/* 操作列多按钮时的间距（过审 / 拒绝 / 下架并排） */
.tbl .ops .btn { margin: 0 4px 4px 0; }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty .t { font-size: 14.5px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.empty .d { font-size: 13px; color: var(--muted-2); }
.empty .btn { margin-top: 14px; }

/* ---------- 团队待办看板（管理面 · 内部工具，仅管理员；2026-10-07） ---------- */
.taskform { display: flex; flex-direction: column; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.taskform .tf-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.taskform input, .taskform select, .taskform textarea {
  height: 34px; padding: 0 10px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 7px; font-size: 13px; outline: none; font-family: inherit;
}
.taskform .tf-row input { flex: 1; min-width: 150px; }
.taskform textarea { height: auto; min-height: 54px; padding: 8px 10px; resize: vertical; }
.taskform input:focus, .taskform select:focus, .taskform textarea:focus { border-color: var(--brand); }
.tboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px 18px; }
@media (max-width: 980px) { .tboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tboard { grid-template-columns: 1fr; } }
.tcol { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-height: 110px; }
.tcol-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 9px; font-weight: 600; font-size: 13px; }
.tcol-body { display: flex; flex-direction: column; gap: 8px; }
.tcard { background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--muted-2); border-radius: 9px; padding: 9px 11px; }
.tcard.pri-urgent { border-left-color: var(--danger); }
.tcard.pri-high { border-left-color: var(--warn); }
.tcard.pri-normal { border-left-color: var(--brand); }
.tcard.pri-low { border-left-color: var(--muted-2); }
.tcard-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.ttitle { font-weight: 600; margin: 3px 0; font-size: 13.5px; word-break: break-word; }
.tdetail { font-size: 12.5px; color: var(--muted); white-space: pre-wrap; }
.tmeta { font-size: 12px; color: var(--muted-2); margin-top: 5px; }
.tops { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tops .btn { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
.tempty { color: var(--muted-2); text-align: center; padding: 12px 0; }

.pager { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.deny { max-width: 460px; margin: 70px auto; text-align: center; }
.deny .code { font-size: 46px; font-weight: 700; color: var(--brand-2); letter-spacing: 2px; }
.deny h3 { margin: 6px 0 8px; font-size: 17px; }
.deny p { color: var(--muted); font-size: 13.5px; }

.grid2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
@media (max-width: 980px) { .grid2 { grid-template-columns: 1fr; } }

.bars { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 52px; align-items: center; gap: 12px; font-size: 13px; }
.bar-track { height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), #58a0ff); border-radius: 999px; min-width: 2px; }
.bar-row .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.kv .item .k { color: var(--muted-2); font-size: 12px; }
.kv .item .v { font-size: 15px; margin-top: 3px; word-break: break-all; }

.profile { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.profile .ava-big {
  width: 64px; height: 64px; border-radius: 16px; flex: 0 0 64px;
  background: linear-gradient(135deg, #1d3a63, #1677ff);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 650;
}
.profile .meta h3 { margin: 0 0 4px; font-size: 18px; }
.profile .meta .line { color: var(--muted); font-size: 13px; }
.profile .meta .chips { margin-top: 9px; }

.tabs { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.tabs button {
  background: none; border: none; color: var(--muted); font-size: 13.5px;
  padding: 12px 14px; cursor: pointer; border-bottom: 2px solid transparent;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); border-bottom-color: var(--brand); font-weight: 600; }

.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--brand);
  padding: 11px 16px; border-radius: 8px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err { border-left-color: var(--danger); }

.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.backlink:hover { color: var(--text); }

@media (max-width: 860px) {
  .sidebar { display: none; }
  .content { padding: 18px 14px 40px; }
  .topbar { padding: 0 16px; }
}

/* ---------- 用户面子页：消息 / 积分商城 / 活动报名（2026-10-04 补路由） ---------- */
.num { font-variant-numeric: tabular-nums; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 14px 16px; }
.card-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card-item .nm { font-weight: 640; }
.card-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.cost { font-weight: 700; color: var(--warn); }
.notif-list { display: flex; flex-direction: column; }
.notif { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); cursor: pointer; }
.notif:first-child { border-top: none; }
.notif:hover { background: var(--panel-2); }
.notif .dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: transparent; }
.notif.unread .dot { background: var(--brand-2); }
.notif-bd { min-width: 0; }
.notif-hd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.goto { color: var(--brand-2); }
.stat-link { display: block; color: inherit; text-decoration: none; }
.stat-link:hover .stat { border-color: var(--line-2); }
.rowlink { color: inherit; text-decoration: none; }
.rowlink:hover { color: var(--brand-2); text-decoration: underline; }

/* ---------- 品牌件（批1 · 老板 10/4 令：logo/icon 换沉思波定版，与官网视觉同源） ---------- */
.auth-logo-img, .side-logo { display: block; object-fit: contain; flex: none; border-radius: 7px; }
.auth-logo-img { width: 44px; height: 44px; }
.side-logo { width: 30px; height: 30px; }
.auth-org { color: var(--muted-2); font-size: 12px; letter-spacing: 1.5px; margin-top: 3px; }
.auth-card {
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(120deg, #0958d9 0%, #1677ff 55%, #4096ff 100%);
}
.topbar-r { display: flex; align-items: center; gap: 10px; }

/* ---------- 平台总览卡（批1 · 全平台总览） ---------- */
.plat-intro .t { font-size: 14px; font-weight: 650; margin-bottom: 5px; }
.plat-intro .d { color: var(--muted); font-size: 13px; }
.plat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px; padding: 16px 18px 18px;
}
.plat {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 15px 13px;
  transition: border-color 0.15s, transform 0.15s;
}
.plat:hover { border-color: #35435a; transform: translateY(-1px); }
.plat-top { display: flex; align-items: center; gap: 10px; }
.plat-glyph {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.28), rgba(64, 150, 255, 0.14));
  border: 1px solid rgba(22, 119, 255, 0.35);
  color: #cfe4ff; font-size: 15px; font-weight: 650;
}
.plat-id { flex: 1; min-width: 0; }
.plat-name { font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plat-url { color: var(--muted-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plat-desc { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; min-height: 39px; }
.plat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.plat-acts { display: flex; align-items: center; gap: 8px; }
.plat-link { color: var(--muted); font-size: 12.5px; }
.plat-link:hover { color: var(--brand-2); }
.plat-note {
  border-top: 1px dashed var(--line); padding-top: 8px;
  font-size: 11.5px; line-height: 1.5; color: var(--muted-2);
}
.plat-src { padding: 4px 2px 0; line-height: 1.6; }

.sso {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  font-size: 11.5px; border: 1px solid transparent; white-space: nowrap;
}
.sso-same, .sso-ticket { background: rgba(63, 185, 80, 0.12); border-color: rgba(63, 185, 80, 0.35); color: #9fe0ad; }
.sso-pending { background: rgba(210, 153, 34, 0.14); border-color: rgba(210, 153, 34, 0.4); color: #f0cf8f; }
.sso-none { background: transparent; border-color: var(--line-2); color: var(--muted-2); }

.badge.plan { background: rgba(22, 119, 255, 0.12); border-color: rgba(22, 119, 255, 0.35); color: #bcd8ff; }
.badge.beta { background: rgba(140, 120, 255, 0.14); border-color: rgba(140, 120, 255, 0.4); color: #cfc6ff; }
.badge.flat { background: transparent; border-color: var(--line-2); color: var(--muted); }

@media (max-width: 860px) {
  .plat-grid { grid-template-columns: 1fr; padding: 14px; }
  .topbar-r .hint { display: none; }
}
.stat.sm .v { font-size: 19px; letter-spacing: 0; }

/* ---------- 通行密钥（批3 · 设备绑定 → 批3.1 · 免账号 hero）
   老板 10/8 令「最好不要输入账号，效果搞帅一点」：登录页把通行密钥提到首位、不用填邮箱；
   视觉只用内联 SVG + CSS（零外链、零 emoji）：指纹图形 + 呼吸光环（就绪）/ 脉冲光环 + 扫描线（等待）
   + 绿色扫光（成功）。动效克制，并统一在 prefers-reduced-motion 下关闭。 ---------- */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--muted-2); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.pk-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 20px 18px 15px; margin-bottom: 18px;
  border: 1px solid rgba(22, 119, 255, 0.34); border-radius: 12px;
  background:
    radial-gradient(120% 130% at 50% -30%, rgba(22, 119, 255, 0.20), transparent 68%),
    var(--panel-2);
}
.pk-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(22, 119, 255, 0.85), transparent);
}
.pk-ring {
  position: absolute; top: 20px; left: 50%; width: 44px; height: 44px; margin-left: -22px;
  border: 1px solid rgba(22, 119, 255, 0.55); border-radius: 50%;
  opacity: 0; pointer-events: none;
}
.pk-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
}
.pk-fp { display: block; width: 44px; height: 44px; margin: 0 auto 10px; color: var(--brand-2); }
.pk-hero.is-ready .pk-ring { opacity: 0.5; animation: pk-breathe 3.2s ease-in-out infinite; }
.pk-hero.is-waiting .pk-ring { opacity: 1; animation: pk-pulse 1.5s ease-out infinite; }
.pk-hero.is-waiting .pk-scan { opacity: 0.85; animation: pk-scan 1.7s linear infinite; }
.pk-hero.is-err { border-color: rgba(248, 81, 73, 0.45); }
.pk-hero.is-err .pk-fp { color: var(--danger); }
.pk-hero.is-err .btn-passkey { animation: pk-shake 0.42s ease; }
.pk-hero.is-ok .pk-fp { color: var(--ok); }
.pk-hero.is-ok::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 32%, rgba(63, 185, 80, 0.22) 50%, transparent 68%);
  animation: pk-sweep 0.85s ease-out 1 both;
}
.pk-txt { position: relative; margin-bottom: 14px; }
.pk-txt b { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: 0.2px; }
.pk-txt span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.btn-passkey {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; font-size: 14.5px; font-weight: 650; color: #fff;
  border-color: rgba(22, 119, 255, 0.65);
  background: linear-gradient(135deg, #0d63e0 0%, #1a7bff 100%);
  box-shadow: 0 8px 22px rgba(22, 119, 255, 0.26);
}
.btn-passkey:hover { background: linear-gradient(135deg, #1069ec 0%, #3f92ff 100%); border-color: var(--brand); }
.btn-passkey:disabled { opacity: 0.6; }
.btn-passkey .pk-ico { width: 18px; height: 18px; flex: none; }
.pk-hero.is-waiting .pk-ico { animation: pk-tap 1.4s ease-in-out infinite; }
.pk-hero.is-ok .btn-passkey {
  border-color: rgba(63, 185, 80, 0.6);
  background: linear-gradient(135deg, #1f8a3b 0%, #3fb950 100%);
  box-shadow: 0 8px 22px rgba(63, 185, 80, 0.24);
}
.pk-hero.is-off { border-color: var(--line-2); background: var(--panel-2); }
.pk-hero.is-off::before { background: var(--line-2); }
.pk-hero.is-off .pk-fp { color: var(--muted-2); }
.pk-hero.is-off .btn-passkey {
  color: var(--muted); border-color: var(--line-2); background: var(--panel); box-shadow: none;
}
.pk-foot {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 10px; min-height: 18px; color: var(--muted-2); font-size: 12px;
}
.pk-cancel {
  display: none; padding: 0; border: none; background: none;
  color: var(--brand-2); font-size: 12px; cursor: pointer;
}
.pk-cancel.show { display: inline; }
/* 成功那一拍：整张卡泛绿一圈（.is-passkey-ok 由 console.js 在跳转前挂上，重进登录页即摘掉） */
.is-passkey-ok .auth-card {
  border-color: rgba(63, 185, 80, 0.5);
  box-shadow: 0 0 0 1px rgba(63, 185, 80, 0.22), 0 18px 50px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s, box-shadow 0.3s;
}

@keyframes pk-breathe {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.16); }
}
@keyframes pk-pulse {
  0% { opacity: 0.85; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.55); }
}
@keyframes pk-scan {
  0% { transform: translateY(22px); }
  100% { transform: translateY(150px); }
}
@keyframes pk-tap {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes pk-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@keyframes pk-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .pk-ring, .pk-scan, .pk-ico, .btn-passkey, .pk-hero.is-ok::after { animation: none !important; }
  .pk-scan { opacity: 0 !important; }
}
@media (max-width: 480px) {
  .pk-hero { padding: 18px 14px 13px; }
  .pk-txt span { font-size: 12px; }
}

#pkPanel .panel-hd { align-items: center; }

/* 移动端导航条（2026-10-04）：侧栏隐藏后的横滑页签 */
.nav-strip { display: none; }

@media (max-width: 860px) {
  .nav-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
    scrollbar-width: thin;
  }
  .nav-strip a {
    flex: none;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    color: var(--muted);
    font-size: 12.5px;
    text-decoration: none;
    background: transparent;
  }
  .nav-strip a.active {
    background: rgba(22, 119, 255, 0.16);
    border-color: var(--brand);
    color: #cfe4ff;
  }
  .nav-strip a .tag { display: none; }
}

/* ==========================================================================
   移动端全站底部栏（2026-10-05 老板令：修「控制台进个人主页后底部栏消失」）。
   与官网 MobileTabBar 同口径五格（2026-10-06 换分类：首页 / 产品矩阵 / 客户案例 /
   关于我们 / 更多），控制台是独立 SPA 不走官网主题，底栏由本文件自带；
   仅 ≤768px 显示，桌面仍靠侧栏导航。面板开关在 console.js 里走文档级委托。
   ========================================================================== */
.mtab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: none;
}

@media (max-width: 768px) {
  .mtab-bar {
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(14, 18, 24, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    animation: mtab-in 0.35s ease both;
  }
  .content {
    padding-bottom: 72px;
  }
}

@keyframes mtab-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mtab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 6px;
  min-height: 52px;
  color: var(--muted-2);
  font-size: 10.5px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.12s ease;
}

.mtab:active {
  transform: scale(0.92);
}

.mtab.is-active {
  color: var(--brand-2);
  font-weight: 700;
}

.mtab svg {
  width: 22px;
  height: 22px;
}

/* 底栏「更多」是按钮，清掉浏览器默认外观（字号/颜色仍走 .mtab） */
button.mtab {
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

/* ---------- 底栏「更多」上滑面板（2026-10-06 老板令：底栏换分类，「更多」展开菜单） ---------- */
.mtab-more {
  position: fixed;
  inset: 0;
  /* 压在底栏（z-index 70）之下：面板不盖底栏，「更多」按钮仍可点着收起 */
  z-index: 69;
  display: none;
}

@media (max-width: 768px) {
  .mtab-more.is-open { display: block; }
}

.mtab-more-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.mtab-more-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(58px + env(safe-area-inset-bottom));
  max-height: 64vh;
  overflow-y: auto;
  padding: 8px 16px 18px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.5);
  animation: mtab-more-up 0.24s ease both;
}

.mtab-more-grip {
  width: 40px;
  height: 4px;
  margin: 4px auto 12px;
  border-radius: 999px;
  background: var(--line-2);
}

.mtab-more-flat {
  display: block;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.mtab-more-group { margin-top: 16px; }

.mtab-more-group h3 {
  margin: 0 0 8px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.mtab-more-links { display: flex; flex-wrap: wrap; gap: 8px; }

.mtab-more-links a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.mtab-more-links a:active { transform: scale(0.96); }

@keyframes mtab-more-up {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mtab-more-body { animation: none; }
}
/* ---------- 监控大盘（批1 · 老板 10/6 令：管理员第一屏=全资产健康总览） ---------- */
.st-st {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  font-size: 11.5px; border: 1px solid transparent; white-space: nowrap;
}
.st-ok { background: rgba(63, 185, 80, 0.12); border-color: rgba(63, 185, 80, 0.35); color: #9fe0ad; }
.st-gate { background: rgba(22, 119, 255, 0.12); border-color: rgba(22, 119, 255, 0.35); color: #bcd8ff; }
.st-warn { background: rgba(210, 153, 34, 0.14); border-color: rgba(210, 153, 34, 0.4); color: #f0cf8f; }
.st-down { background: rgba(248, 81, 73, 0.14); border-color: rgba(248, 81, 73, 0.4); color: #ffb3ae; }

.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); gap: 14px; }
.srv { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); padding: 14px 15px 13px; }
.srv.is-down { border-color: rgba(248, 81, 73, 0.35); background: rgba(248, 81, 73, 0.05); }
.srv-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.srv-hd b { font-size: 14px; font-weight: 650; }
.srv-role { color: var(--muted-2); font-size: 12px; margin: 4px 0 11px; line-height: 1.5; min-height: 36px; }
.metrics { display: flex; flex-direction: column; gap: 9px; }
.metric .mk { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.metric .mv { color: var(--text); font-variant-numeric: tabular-nums; }
.meter { height: 7px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.meter-fill { height: 100%; background: linear-gradient(90deg, var(--brand), #58a0ff); border-radius: 999px; transition: width 0.3s; }
.meter-fill.warn { background: linear-gradient(90deg, #d29922, #f0c14b); }
.meter-fill.danger { background: linear-gradient(90deg, #f85149, #ff8b84); }
.srv-err {
  font-size: 12px; color: #ffb3ae; background: rgba(248, 81, 73, 0.08);
  border: 1px solid rgba(248, 81, 73, 0.25); border-radius: 8px;
  padding: 7px 9px; margin-top: 10px; word-break: break-all; line-height: 1.5;
}
.srv-err.soft { color: var(--f0cf8f, #f0cf8f); background: rgba(210, 153, 34, 0.08); border-color: rgba(210, 153, 34, 0.28); }
.srv-ft {
  display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted); margin-top: 10px;
  border-top: 1px dashed var(--line); padding-top: 8px;
}
.srv-ft.dim { color: var(--muted-2); border-top: none; margin-top: 5px; padding-top: 0; }
.panel.problem { border-color: rgba(248, 81, 73, 0.3); }
.plist { margin: 0; padding-left: 18px; }
.plist li { color: var(--muted); font-size: 13px; margin: 6px 0; word-break: break-all; }
.panel-bd .t { font-weight: 640; margin-bottom: 4px; }

/* ── 会员体系（#/lab）· 2026-10-08 老板令：把会员管理体系融合进管理后台 ──
   待拍四项的输入框在 .taskform 之外，这里补一套与 .field input 同款的样式；
   本页表格列多，窄屏靠横向滚动兜住（与站点总览同口径）。 */
.lab-in {
  width: 100%;
  background: var(--panel-2, #141a24);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
}
.lab-in:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.18); outline: none; }
.panel-bd .taskform { margin-top: 6px; }
/* 编号 / 日期 / 金额这类短字段不折行（否则 GL-2026-0001 会被挤成两行），长文本列照旧可换行 */
.lab-page .tbl td.mono, .lab-page .tbl th, .lab-page .tbl td.num { white-space: nowrap; }
.lab-page .tbl td.sub2:last-child { white-space: normal; }

/* 窄屏（≤620px）顶栏右侧两个外链按钮会被挤成竖排——移动端这些外链在「更多」面板里都有，收掉更干净 */
@media (max-width: 620px) {
  .topbar-r { display: none; }
  .topbar { padding-right: 14px; }
}

@media (max-width: 860px) {
  .srv-grid { grid-template-columns: 1fr; }
  .srv-role { min-height: 0; }
}

/* ── 访问统计（#/traffic）· 自研统计探针 · 2026-10-08 老板令：51la 之外上自家探针 ──
   趋势条用最朴素的 flex 行（day / bar / PV / UV·bot），不引图表库；窄屏把 UV 列收掉，只留 PV。 */
.px-page .panel { margin-bottom: 18px; }
.px-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.px-day { flex: none; width: 48px; color: var(--muted-2); font-size: 12px; }
.px-bar { flex: 1 1 auto; height: 10px; min-width: 80px; background: var(--bg-2, rgba(255, 255, 255, 0.06)); border-radius: 999px; overflow: hidden; }
.px-bar > i { display: block; height: 100%; min-width: 2px; background: linear-gradient(90deg, var(--brand), #58a0ff); border-radius: 999px; }
.px-num { flex: none; width: 64px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.px-sub { flex: none; width: 128px; font-size: 11.5px; color: var(--muted-2); }
.px-3col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 18px; }
.px-code {
  margin: 6px 0 12px; padding: 10px 12px; background: var(--panel-2, #141a24);
  border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  white-space: pre-wrap; word-break: break-all;
}
@media (max-width: 760px) {
  .px-sub { display: none; }
  .px-num { width: 52px; }
}
