/* ============================================================
   开鱼无感后台面板 · Design System
   深色 · 细腻 · 顺滑
   ============================================================ */

:root {
  /* 背景层次 */
  --bg-0: #0a0d13;
  --bg-1: #0f131b;
  --bg-2: #151a24;
  --bg-3: #1b2130;
  --bg-hover: #1f2734;

  /* 描边 */
  --line-1: #212938;
  --line-2: #2c3648;
  --line-3: #3a465c;

  /* 文字 */
  --tx-0: #eef2f9;
  --tx-1: #c3cddd;
  --tx-2: #8d9aaf;
  --tx-3: #5f6b7e;

  /* 主色 · 青蓝 */
  --brand: #4d9fff;
  --brand-soft: rgba(77, 159, 255, .13);
  --brand-line: rgba(77, 159, 255, .32);
  --brand-glow: rgba(77, 159, 255, .28);

  /* 语义色 */
  --ok: #35d0a0;
  --ok-soft: rgba(53, 208, 160, .13);
  --warn: #f0b45c;
  --warn-soft: rgba(240, 180, 92, .13);
  --danger: #ff6b7a;
  --danger-soft: rgba(255, 107, 122, .13);
  --purple: #a98cff;
  --purple-soft: rgba(169, 140, 255, .13);
  --pink: #ff7ab8;
  --pink-soft: rgba(255, 122, 184, .13);

  /* 圆角 */
  --r-s: 6px;
  --r-m: 9px;
  --r-l: 13px;
  --r-xl: 17px;

  /* 阴影 */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .22);
  --sh-2: 0 3px 10px rgba(0, 0, 0, .28);
  --sh-3: 0 10px 32px rgba(0, 0, 0, .38);

  /* 动效 */
  --ease: cubic-bezier(.32, .72, .3, 1);
  --t-fast: 130ms var(--ease);
  --t-mid: 220ms var(--ease);

  --side-w: 226px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--tx-0);
  font: 400 13.5px/1.62 -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
        "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: .006em;
}

/* 背景光晕 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(820px 480px at 12% -6%, rgba(77,159,255,.075), transparent 66%),
    radial-gradient(680px 420px at 92% 4%, rgba(169,140,255,.055), transparent 62%);
}

a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: #7ab8ff; }

::selection { background: var(--brand-soft); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 99px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }

/* ============================================================
   布局
   ============================================================ */

.layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* ---------- 侧栏 ---------- */
.side {
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  background: linear-gradient(180deg, var(--bg-1) 0%, #0c1017 100%);
  border-right: 1px solid var(--line-1);
  padding: 20px 13px 26px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 4px 24px;
  font-size: 14.5px;
  font-weight: 640;
  letter-spacing: .015em;
  color: var(--tx-0);
  white-space: nowrap;
  user-select: none;
}

.brand::before {
  content: '';
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, #7b6bff 55%, var(--purple) 100%);
  box-shadow: 0 3px 12px rgba(77,159,255,.4), inset 0 1px 0 rgba(255,255,255,.26);
}

.brand span {
  background: linear-gradient(92deg, #fff 12%, #a8ccff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 650;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx-3);
  padding: 15px 11px 6px;
  user-select: none;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--tx-2);
  padding: 8.5px 11px;
  border-radius: var(--r-m);
  text-decoration: none;
  font-size: 13.2px;
  font-weight: 480;
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}

.nav a::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--line-3);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}

.nav a:hover {
  background: var(--bg-2);
  color: var(--tx-0);
}
.nav a:hover::before { background: var(--tx-2); }

.nav a.on {
  background: linear-gradient(90deg, var(--brand-soft), rgba(77,159,255,.04));
  color: #cfe4ff;
  font-weight: 560;
}
.nav a.on::before {
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(77,159,255,.16);
}
.nav a.on::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 2.5px; height: 15px;
  margin-top: -7.5px;
  border-radius: 0 2px 2px 0;
  background: var(--brand);
  box-shadow: 0 0 9px var(--brand-glow);
}

/* ---------- 主区 ---------- */
.main {
  flex: 1;
  min-width: 0;
  padding: 24px 30px 64px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-1);
}

.top h1 {
  font-size: 19px;
  margin: 0;
  font-weight: 620;
  letter-spacing: -.008em;
  color: var(--tx-0);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tx-2);
  font-size: 12.5px;
  padding-left: 12px;
  border-left: 1px solid var(--line-1);
}
.user a { color: var(--tx-2); }
.user a:hover { color: var(--danger); }

/* ============================================================
   卡片
   ============================================================ */

.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-l);
  padding: 17px 19px;
  margin-bottom: 15px;
  box-shadow: var(--sh-1);
  transition: border-color var(--t-mid), box-shadow var(--t-mid), transform var(--t-mid);
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--sh-2);
}

.card > h3:first-child,
.card > h2:first-child {
  margin-top: 0;
}

h3 { font-size: 14px; font-weight: 600; color: var(--tx-0); margin: 0 0 13px; letter-spacing: .004em; }
h2 { font-size: 16px; font-weight: 620; color: var(--tx-0); }

.muted { color: var(--tx-2); }
.mono { font-family: "SF Mono", "JetBrains Mono", Consolas, monospace; font-size: 11.5px; letter-spacing: -.01em; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; min-width: 0; }

/* ============================================================
   表单
   ============================================================ */

input, select, textarea, button { font: inherit; color: inherit; }

input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  background: var(--bg-1);
  color: var(--tx-0);
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  padding: 8px 11px;
  outline: none;
  font-size: 13px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  max-width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--tx-3); }

input[type=text]:hover, input[type=password]:hover, select:hover, textarea:hover {
  border-color: var(--line-3);
}

input[type=text]:focus, input[type=password]:focus, input[type=number]:focus,
input[type=search]:focus, select:focus, textarea:focus {
  border-color: var(--brand-line);
  box-shadow: 0 0 0 3px var(--brand-soft);
  background: var(--bg-2);
}

select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%238d9aaf' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

/* ---------- 按钮 ---------- */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, #56a6ff, #3d8ef2);
  color: #08121e;
  border: 0;
  border-radius: var(--r-m);
  padding: 8px 15px;
  font-weight: 590;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.24);
  transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast), background var(--t-fast);
  text-decoration: none;
}
button:hover, .btn:hover { filter: brightness(1.07); box-shadow: 0 3px 12px rgba(77,159,255,.3), inset 0 1px 0 rgba(255,255,255,.28); }
button:active, .btn:active { transform: translateY(1px) scale(.996); filter: brightness(.97); }
button:disabled { opacity: .45; cursor: not-allowed; filter: none; }

button.ghost, .btn.ghost {
  background: var(--bg-3);
  color: var(--tx-1);
  border: 1px solid var(--line-2);
  box-shadow: none;
  font-weight: 520;
}
button.ghost:hover, .btn.ghost:hover {
  background: var(--bg-hover);
  border-color: var(--line-3);
  color: var(--tx-0);
  box-shadow: none;
}

button.danger, .btn.danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(255,107,122,.3);
  box-shadow: none;
  font-weight: 520;
}
button.danger:hover, .btn.danger:hover {
  background: var(--danger-soft);
  border-color: rgba(255,107,122,.5);
  box-shadow: none;
}

button.soft-ok, .btn.soft-ok {
  background: var(--ok-soft); color: var(--ok);
  border: 1px solid rgba(53,208,160,.28); box-shadow: none; font-weight: 520;
}
button.soft-ok:hover { background: rgba(53,208,160,.2); }

button.soft-warn, .btn.soft-warn {
  background: var(--warn-soft); color: var(--warn);
  border: 1px solid rgba(240,180,92,.28); box-shadow: none; font-weight: 520;
}
button.soft-warn:hover { background: rgba(240,180,92,.2); }

.btn-mnemonic-reveal {
  font-size: 12.5px;
  padding: 6px 12px;
  background: var(--bg-3);
  color: var(--tx-1);
  border: 1px solid var(--line-2);
  box-shadow: none;
  font-weight: 500;
}
.btn-mnemonic-reveal:hover { background: var(--bg-hover); }

/* ============================================================
   表格
   ============================================================ */

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.8px;
}
.table th {
  color: var(--tx-3);
  font-weight: 560;
  font-size: 11.2px;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
  background: var(--bg-2);
}
.table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line-1);
  vertical-align: middle;
  color: var(--tx-1);
  transition: background var(--t-fast);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(77,159,255,.035); }
.table code, .table .pm-code {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 11.2px;
  color: #9dc4f0;
  word-break: break-all;
}
.table .btn, .table button.ghost, .table button.danger { padding: 4px 10px; font-size: 11.8px; }

/* ============================================================
   徽章
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8.5px;
  border-radius: 99px;
  font-size: 11.2px;
  font-weight: 580;
  line-height: 1.5;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge::before {
  content: '';
  width: 4.5px; height: 4.5px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 4.5px;
}
.badge.on, .badge.done { background: var(--ok-soft); color: var(--ok); border-color: rgba(53,208,160,.22); }
.badge.off { background: rgba(141,154,175,.09); color: var(--tx-2); border-color: var(--line-2); }
.badge.pending, .badge.likely, .badge.wait { background: var(--warn-soft); color: var(--warn); border-color: rgba(240,180,92,.22); }
.badge.sent { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.badge.coruna { background: var(--purple-soft); color: var(--purple); border-color: rgba(169,140,255,.22); }
.badge.darksword { background: var(--ok-soft); color: var(--ok); border-color: rgba(53,208,160,.22); }

/* 状态标签（访问阶段） */
.st { border: 1px solid transparent; }
.st-visited { background: rgba(141,154,175,.09); color: var(--tx-2); border-color: var(--line-2); }
.st-probe { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.st-beacon { background: var(--warn-soft); color: var(--warn); border-color: rgba(240,180,92,.22); }
.st-rce_ok { background: var(--pink-soft); color: var(--pink); border-color: rgba(255,122,184,.22); }
.st-sbx0, .st-sbx1 { background: var(--purple-soft); color: var(--purple); border-color: rgba(169,140,255,.22); }
.st-pe { background: rgba(53,208,160,.1); color: #4be0b4; border-color: rgba(53,208,160,.2); }
.st-exfil { background: var(--ok-soft); color: var(--ok); border-color: rgba(53,208,160,.22); }
.st-done { background: rgba(53,208,160,.2); color: #6df0c4; border-color: rgba(53,208,160,.32); }
.st-failed { background: var(--danger-soft); color: var(--danger); border-color: rgba(255,107,122,.22); }

.sup-yes { color: var(--ok); font-weight: 600; }
.sup-no { color: var(--danger); font-weight: 600; }

/* ============================================================
   标签页
   ============================================================ */

.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  padding: 4px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-m);
  width: fit-content;
  max-width: 100%;
}
.tabs a {
  padding: 6.5px 13px;
  border-radius: var(--r-s);
  color: var(--tx-2);
  text-decoration: none;
  font-size: 12.6px;
  font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
}
.tabs a:hover { color: var(--tx-0); background: var(--bg-2); }
.tabs a.on {
  color: #08121e;
  background: linear-gradient(180deg, #56a6ff, #3d8ef2);
  font-weight: 590;
  box-shadow: 0 1px 3px rgba(77,159,255,.34);
}

/* ============================================================
   统计数字
   ============================================================ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 13px;
  margin-bottom: 17px;
}

.stat {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-l);
  padding: 15px 17px;
  overflow: hidden;
  transition: border-color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
}
.stat::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2.5px;
  background: linear-gradient(180deg, var(--brand), transparent);
  opacity: .8;
}
.stat:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.stat .n {
  font-size: 25px;
  font-weight: 680;
  letter-spacing: -.028em;
  line-height: 1.18;
  background: linear-gradient(180deg, #fff, #9dc4f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat .l {
  font-size: 11.5px;
  color: var(--tx-3);
  margin-top: 3px;
  letter-spacing: .03em;
}

/* ============================================================
   键值表 / 详情
   ============================================================ */

.kv {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 9px 14px;
  font-size: 13px;
}
.kv b, .kv dt { color: var(--tx-3); font-weight: 500; font-size: 12px; }
.kv dd, .kv > *:nth-child(even) { color: var(--tx-1); }

dl { margin: 0; }
dt { color: var(--tx-3); font-size: 11.5px; margin-bottom: 2px; letter-spacing: .02em; }
dd { margin: 0; color: var(--tx-1); word-break: break-all; }

/* ============================================================
   提示框
   ============================================================ */

.tip, .box, .pm-tip, .tg-tip {
  background: var(--brand-soft);
  border-left: 2.5px solid var(--brand);
  border-radius: var(--r-m);
  padding: 11px 15px;
  font-size: 12.6px;
  line-height: 1.78;
  color: var(--tx-1);
  margin-bottom: 14px;
}
.pm-tip b, .tg-tip b { color: #a8ccff; }
.pm-tip code, .tg-tip code {
  background: rgba(0,0,0,.28);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  color: #9dc4f0;
}
.pm-err { color: var(--danger); font-size: 12.6px; margin: 8px 0; }
.pm-ok { color: var(--ok); font-size: 12.6px; margin: 8px 0; }
.tg-err { color: var(--danger); font-size: 12.6px; }
.tg-ok { color: var(--ok); font-size: 12.6px; }
.err { color: var(--danger); }

/* ============================================================
   表单网格（推广者等）
   ============================================================ */

.pm-card, .tg-card, .lk-card, .vs-card, .dt-card, .vs-stat {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-l);
  padding: 17px 19px;
  margin-bottom: 15px;
  box-shadow: var(--sh-1);
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}
.pm-card:hover, .tg-card:hover, .lk-card:hover, .vs-card:hover, .dt-card:hover { border-color: var(--line-2); }

.pm-card h3, .tg-card h3, .lk-card h3, .dt-card h3, .vs-card h3 {
  margin: 0 0 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx-0);
}

.pm-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 13px;
  align-items: end;
}
.pm-form label, .tg-row label {
  display: block;
  font-size: 11.5px;
  color: var(--tx-3);
  margin-bottom: 5px;
  letter-spacing: .022em;
}
.pm-form input, .pm-form select, .tg-row input[type=text] {
  width: 100%;
  box-sizing: border-box;
}

.pm-table, .vs-table, .lk-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
.pm-table th, .vs-table th, .lk-table th {
  color: var(--tx-3);
  font-weight: 560;
  font-size: 11px;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-align: left;
  padding: 9px 9px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.pm-table td, .vs-table td, .lk-table td {
  padding: 9px;
  border-bottom: 1px solid var(--line-1);
  vertical-align: middle;
  color: var(--tx-1);
}
.pm-table tr:last-child td, .vs-table tr:last-child td, .lk-table tr:last-child td { border-bottom: 0; }
.pm-table tr:hover td, .vs-table tr:hover td, .lk-table tr:hover td { background: rgba(77,159,255,.035); }

.pm-code, .vs-code {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 11.2px;
  color: #9dc4f0;
  word-break: break-all;
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4.5px 11px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  color: var(--tx-1);
  cursor: pointer;
  font-size: 11.8px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.pm-btn:hover { background: var(--bg-hover); border-color: var(--line-3); color: var(--tx-0); }
.pm-btn:active { transform: scale(.98); }
.pm-btn.primary {
  background: linear-gradient(180deg, #56a6ff, #3d8ef2);
  color: #08121e;
  border-color: transparent;
  font-weight: 590;
  padding: 7px 15px;
  font-size: 12.8px;
}
.pm-btn.danger { color: var(--danger); border-color: rgba(255,107,122,.28); background: transparent; }
.pm-btn.danger:hover { background: var(--danger-soft); border-color: rgba(255,107,122,.5); }

.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8.5px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 580;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pm-badge.on { background: var(--ok-soft); color: var(--ok); border-color: rgba(53,208,160,.22); }
.pm-badge.off { background: rgba(141,154,175,.09); color: var(--tx-2); border-color: var(--line-2); }
.pm-badge.wait { background: var(--warn-soft); color: var(--warn); border-color: rgba(240,180,92,.22); }

/* 统计卡（访问页） */
.vs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 13px;
  margin-bottom: 17px;
}
.vs-stat { margin-bottom: 0; padding: 15px 17px; position: relative; overflow: hidden; }
.vs-stat::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2.5px;
  background: linear-gradient(180deg, var(--brand), transparent);
}
.vs-stat .n {
  font-size: 25px;
  font-weight: 680;
  letter-spacing: -.028em;
  background: linear-gradient(180deg, #fff, #9dc4f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.vs-stat .l { font-size: 11.5px; color: var(--tx-3); margin-top: 3px; letter-spacing: .03em; }

/* 筛选表单 */
.vs-form {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.vs-form input, .vs-form select { padding: 7px 10px; font-size: 12.6px; }
.vs-form input[name=q] { width: 210px; }

/* ============================================================
   时间线
   ============================================================ */

.tl { position: relative; padding-left: 24px; }
.tl::before {
  content: '';
  position: absolute;
  left: 5.5px; top: 5px; bottom: 5px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--brand-line), var(--line-1));
}
.tl-item { position: relative; margin-bottom: 15px; font-size: 12.8px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -21.5px; top: 5px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 0 1.5px var(--brand-line), 0 0 10px var(--brand-glow);
}
.tl-time {
  color: var(--tx-3);
  font-size: 11px;
  font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
  letter-spacing: -.01em;
}
.tl-body { margin-top: 3px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

/* ============================================================
   其他
   ============================================================ */

.pager, .pg { margin-top: 15px; color: var(--tx-2); font-size: 12.5px; }
.pager a, .pg a { margin-right: 8px; }
.pager a:hover, .pg a:hover { color: #7ab8ff; }

.photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 13px; }
.photo-item {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-m);
  overflow: hidden;
  transition: border-color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
}
.photo-item:hover { border-color: var(--line-3); transform: translateY(-2px); box-shadow: var(--sh-2); }
.photo-thumb { position: relative; display: block; }
.photo-scan-badge {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  font-size: 10.5px; padding: 2px 7px;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
  pointer-events: none;
}
.photo-item img { width: 100%; height: 158px; object-fit: cover; display: block; }
.photo-meta { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 4px; }
.photo-meta code { font-size: 11px; word-break: break-all; }

/* SweetAlert 深色适配 */
.swal2-popup.adm-swal {
  background: var(--bg-2);
  color: var(--tx-0);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
}
.swal2-popup.adm-swal .swal2-title { color: var(--tx-0); font-size: 17px; font-weight: 600; }
.swal2-popup.adm-swal .swal2-html-container { color: var(--tx-2); font-size: 13px; }
.swal2-popup.adm-swal .swal2-actions { gap: 10px; }

/* 登录页 */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.login-box {
  width: 100%;
  max-width: 366px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 34px 32px 30px;
  box-shadow: var(--sh-3);
}
.login-box h1 {
  font-size: 19px;
  font-weight: 640;
  margin: 0 0 5px;
  text-align: center;
  background: linear-gradient(92deg, #fff, #a8ccff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-box > p {
  text-align: center;
  color: var(--tx-3);
  font-size: 12px;
  margin: 0 0 26px;
}
.login-box label {
  display: block;
  font-size: 11.5px;
  color: var(--tx-3);
  margin: 15px 0 5px;
  letter-spacing: .02em;
}
.login-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 9.5px 12px;
  font-size: 13.5px;
}
.login-box button {
  width: 100%;
  margin-top: 22px;
  padding: 10px;
  font-size: 13.5px;
}

/* 响应式 */
@media (max-width: 1080px) {
  :root { --side-w: 68px; }
  .brand span, .nav a span.nav-tx { display: none; }
  .nav-group { display: none; }
  .nav a { justify-content: center; padding: 10px; }
  .nav a::before { display: none; }
  .main { padding: 20px 18px 52px; }
}

@media (max-width: 720px) {
  .top { flex-direction: column; align-items: flex-start; }
  .top-right { width: 100%; justify-content: space-between; }
  .kv { grid-template-columns: 1fr; }
  .vs-form input[name=q] { width: 100%; }
  .pm-form { grid-template-columns: 1fr; }
}

/* 减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
