/* ── 品牌区 ───────────────────────────── */
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  letter-spacing: .1em;
  color: var(--fg);
  text-shadow: var(--glow-lg);
}
.brand .mark {
  color: var(--fg);
  text-shadow: var(--glow-lg);
}
.brand .tag {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--dim);
}

.sub {
  color: var(--dim);
  font-size: 13.5px;
}

hr.rule {
  border: 0;
  border-top: 1px dashed var(--border);
  margin: 1.1em 0 .9em;
}

/* ── 键值行 ───────────────────────────── */
.kv {
  display: flex;
  gap: 2ch;
  align-items: baseline;
}
.kv .k {
  flex: none;
  width: 22ch;
  color: var(--dim);
}
.kv .v { color: var(--fg); }

.kv-head {
  color: var(--dimmer);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.kv-head::before { content: '── '; }
.kv-head::after  { content: ' '; }

/* ── 接口列表 ─────────────────────────── */
.ep {
  display: flex;
  gap: 1.6ch;
  align-items: baseline;
}
.ep .m { flex: none; width: 7ch; }
.ep .p { flex: none; width: 21ch; color: var(--fg); }
.ep .d { color: var(--dim); min-width: 0; }

.m-GET    { color: var(--fg); }
.m-POST   { color: var(--amber); }
.m-DELETE { color: var(--red); }
.m-PUT,
.m-PATCH  { color: var(--amber); }

/* ── 回显行 ───────────────────────────── */
.echo-cmd { color: var(--fg); }

.prompt {
  color: var(--fg);
  font-weight: 700;
  margin-right: .8ch;
  text-shadow: var(--glow-lg);
}

/* ── JSON ─────────────────────────────── */
pre.json {
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--dim);
  margin-top: .5em;
}
.j-key  { color: var(--fg); }
.j-str  { color: var(--dim); }
.j-num  { color: var(--amber); }
.j-bool { color: var(--amber); }
.j-null { color: var(--dimmer); font-style: italic; }

/* ── 加载态 ───────────────────────────── */
.loading-bar {
  display: inline-block;
  animation: blink 0.9s step-end infinite;
}

/* ── 输入行 ───────────────────────────── */
.inputrow {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 1.6em;
  margin-top: .25em;
}
.inputrow .prompt { flex: none; }

.mirror {
  white-space: pre;
  color: var(--fg);
  text-shadow: var(--glow-lg);
}

.cursor {
  display: inline-block;
  width: .58em;
  height: 1.05em;
  margin-left: .15em;
  background: var(--fg);
  box-shadow: 0 0 8px rgba(51, 255, 51, 0.8);
  vertical-align: -0.16em;
  animation: blink 1s step-end infinite;
}

.inputrow input {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: transparent;
  caret-color: transparent;
}






/* ── 入侵报警文字 ─────────────────────── */
.alarm-line {
  color: #ff4d4d;
  text-shadow:
    0 0 5px rgba(255, 60, 60, 0.9),
    0 0 14px rgba(255, 60, 60, 0.45);
  letter-spacing: .03em;
}


/* ── 通知中心：移动端适配 ─────────────── */
@media (max-width: 640px) {
  .notify-bell {
    top: 46px;
    right: 12px;
    width: 30px;
    height: 30px;
  }
  .nb-icon { font-size: 14px; }

  .notify-panel {
    top: 84px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 60vh;
  }

  .np-head {
    padding: 5px 9px;
    font-size: 11.5px;
  }

  .np-item {
    padding: 7px 10px;
    font-size: 11.5px;
    line-height: 1.45;
  }

  .np-item-title { font-size: 11.5px; }
  .np-item-time  { font-size: 10px; }
  .np-item-body  { font-size: 11px; margin-top: 2px; }

  .np-empty {
    padding: 20px 16px;
    font-size: 11.5px;
  }
}


/* ── 接口编号 ─────────────────────────── */
.ep .n {
  flex: none;
  width: 4ch;
  text-align: right;
  color: var(--dimmer);
  letter-spacing: 0;
}

/* ── 详情页参数行 ─────────────────────── */
.param {
  display: flex;
  gap: 2ch;
  align-items: baseline;
}
.param .pn {
  flex: none;
  width: 14ch;
  color: var(--fg);
}
.param .pt {
  flex: none;
  width: 8ch;
}
.param .pr {
  flex: none;
  width: 6ch;
}
.param .pd {
  color: var(--dim);
  min-width: 0;
}
/* ── 接口编号 ─────────────────────────── */
.ep .n {
  flex: none;
  width: 4ch;
  text-align: right;
  color: var(--dimmer);
  letter-spacing: 0;
}


/* ══════════════════════════════════════════
   play 命令的播放器覆盖层
   ══════════════════════════════════════════ */

.play-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: play-fade-in 0.2s ease;
}

@keyframes play-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.play-frame {
  width: 100%;
  max-width: 1100px;
  background: #000;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(51, 255, 51, 0.15);
}

.play-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  letter-spacing: .06em;
}

.play-title {
  flex: 1;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-close {
  flex: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font: inherit;
  font-size: 11px;
  letter-spacing: .08em;
  padding: 4px 10px;
  cursor: pointer;
  text-shadow: var(--glow);
}
.play-close:hover {
  border-color: var(--fg);
  background: rgba(51, 255, 51, 0.08);
}

.play-video {
  width: 100%;
  max-height: 70vh;
  background: #000;
  display: block;
}

.play-status {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--dim);
  min-height: 1.6em;
  background: var(--bg);
}
.play-status:empty {
  display: none;
}


/* ── 详情页子类型行 ───────────────────── */
.type-row {
  display: flex;
  gap: 2ch;
  align-items: baseline;
}
.type-row .tn {
  flex: none;
  width: 12ch;
  color: var(--fg);
}
.type-row .td {
  flex: none;
  width: 22ch;
  color: var(--dim);
}
.type-row .tp {
  color: var(--dimmer);
  min-width: 0;
}


/* ── 详情页端点类型行 ─────────────────── */
.type-row {
  display: flex;
  gap: 2ch;
  align-items: baseline;
}
.type-row .tn {
  flex: none;
  width: 8ch;
  color: var(--fg);
}
.type-row .td {
  flex: none;
  width: 22ch;
  color: var(--dim);
}
.type-row .tp {
  color: var(--dimmer);
  min-width: 0;
}



/* ══════════════════════════════════════════
   管道命令的表格
   ══════════════════════════════════════════ */

.data-table {
  display: table;
  border-collapse: collapse;
  margin-top: .5em;
  max-width: 100%;
  font-size: 12.5px;
}

.data-table .dt-row {
  display: table-row;
}

.data-table .dt-cell {
  display: table-cell;
  padding: 4px 16px 4px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.data-table .dt-row:first-child .dt-cell {
  color: var(--dimmer);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .1em;
  border-bottom: 1px solid var(--dimmer);
  padding-bottom: 5px;
}

.data-table .dt-row:last-child .dt-cell {
  border-bottom: 0;
}


/* ══════════════════════════════════════════
   电影式入侵 —— 假系统弹窗 + 屏幕故障
   ══════════════════════════════════════════ */

/* ── 假系统弹窗 ───────────────────────── */
.hack-popup {
  position: fixed;
  z-index: 10001;
  min-width: 260px;
  max-width: 340px;
  background: #0a0505;
  border: 2px solid #ff3b3b;
  color: #ff3b3b;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  box-shadow:
    0 0 0 1px rgba(255, 59, 59, 0.3),
    0 0 30px rgba(255, 59, 59, 0.4),
    inset 0 0 20px rgba(255, 59, 59, 0.05);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 0 4px rgba(255, 59, 59, 0.6);
  pointer-events: auto;
}

.hack-popup.show {
  opacity: 1;
}

/* 位置 */
.hack-popup.pos-top-right {
  top: 70px; right: 24px;
}
.hack-popup.pos-top-right.show {
  transform: translateY(0) scale(1);
}

.hack-popup.pos-top-left {
  top: 70px; left: 24px;
}
.hack-popup.pos-top-left.show {
  transform: translateY(0) scale(1);
}

.hack-popup.pos-bottom {
  bottom: 110px; left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.98);
}
.hack-popup.pos-bottom.show {
  transform: translateX(-50%) translateY(0) scale(1);
}

.hack-popup.pos-center {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
}
.hack-popup.pos-center.show {
  transform: translate(-50%, -50%) scale(1);
}

/* 标题栏 */
.hp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 9px;
  background: #ff3b3b;
  color: #000;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-shadow: none;
}

.hp-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-x {
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
  user-select: none;
}
.hp-x:hover { opacity: 1; }

/* 内容 */
.hp-body {
  padding: 12px 14px;
}

.hp-body code {
  background: rgba(255, 59, 59, 0.15);
  padding: 1px 5px;
  border: 1px solid rgba(255, 59, 59, 0.3);
  font-family: inherit;
}

.hp-body small {
  color: #c47a7a;
  font-size: 11px;
}

/* 按钮 */
.hp-btns {
  display: flex;
  gap: 6px;
  padding: 6px 14px 12px;
  justify-content: flex-end;
}

.hp-btn {
  background: #1a0a0a;
  border: 1px solid #ff3b3b;
  color: #ff3b3b;
  font: inherit;
  font-size: 12px;
  padding: 3px 13px;
  cursor: pointer;
  transition: all 0.15s;
  text-shadow: 0 0 4px rgba(255, 59, 59, 0.5);
}

.hp-btn:hover {
  background: #ff3b3b;
  color: #000;
  text-shadow: none;
}

/* ── 琥珀警告色调 ─────────────────────── */
.hack-popup.kind-warn {
  border-color: #ffb000;
  color: #ffb000;
  background: #0a0700;
  box-shadow:
    0 0 0 1px rgba(255, 176, 0, 0.3),
    0 0 30px rgba(255, 176, 0, 0.4),
    inset 0 0 20px rgba(255, 176, 0, 0.05);
  text-shadow: 0 0 4px rgba(255, 176, 0, 0.6);
}
.hack-popup.kind-warn .hp-bar { background: #ffb000; }
.hack-popup.kind-warn .hp-btn {
  border-color: #ffb000;
  color: #ffb000;
  background: #1a1200;
}
.hack-popup.kind-warn .hp-btn:hover {
  background: #ffb000;
  color: #000;
}
.hack-popup.kind-warn .hp-body code {
  background: rgba(255, 176, 0, 0.15);
  border-color: rgba(255, 176, 0, 0.3);
}
.hack-popup.kind-warn .hp-body small { color: #a87840; }

/* ── 屏幕 glitch 故障 ─────────────────── */
.hack-glitch {
  animation: hack-glitch-anim 0.09s infinite;
}

@keyframes hack-glitch-anim {
  0%   { transform: translate(0, 0);      filter: hue-rotate(0deg); }
  20%  { transform: translate(-3px, 2px); filter: hue-rotate(-15deg); }
  40%  { transform: translate(2px, -3px); filter: hue-rotate(10deg); }
  60%  { transform: translate(-2px, -1px); filter: hue-rotate(-5deg); }
  80%  { transform: translate(3px, 2px);  filter: hue-rotate(15deg); }
  100% { transform: translate(0, 0);      filter: hue-rotate(0deg); }
}


/* ══════════════════════════════════════════
   持续入侵 —— 顶部横幅 + 底部状态条 + 闪屏
   ══════════════════════════════════════════ */

/* 顶部红条 */
.hack-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  background: #ff3b3b;
  color: #000;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-weight: bold;
  text-align: center;
  padding: 6px 0;
  letter-spacing: 0.18em;
  font-size: 13px;
  text-shadow: none;
  animation: hb-flash 0.9s ease-in-out infinite;
}

.hack-banner .hb-dot {
  display: inline-block;
  margin: 0 14px;
  animation: hb-dot 0.5s ease-in-out infinite alternate;
}

.hack-banner .hb-text {
  vertical-align: middle;
}

@keyframes hb-flash {
  0%, 100% { background: #ff3b3b; }
  50%      { background: #a01a1a; }
}

@keyframes hb-dot {
  from { opacity: 0.3; }
  to   { opacity: 1; }
}

/* 底部状态条 */
.hack-statusbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10000;
  background: rgba(10, 5, 5, 0.94);
  border-top: 1px solid #ff3b3b;
  color: #ff3b3b;
  padding: 6px 20px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  display: flex;
  gap: 28px;
  justify-content: center;
  text-shadow: 0 0 4px rgba(255, 59, 59, 0.6);
  flex-wrap: wrap;
}

.hack-statusbar .hs-item b {
  color: #fff;
  margin-left: 4px;
}

/* 全屏闪红：给 .win 加 filter，不用额外元素 */
body.hack-flash .win {
  animation: hf-pulse 0.15s ease-out;
}

@keyframes hf-pulse {
  0%   { filter: brightness(2) saturate(2.5) hue-rotate(-15deg); }
  100% { filter: none; }
}


/* ══════════════════════════════════════════
   入侵弹窗 —— 铺满屏 · 抖动 · 撕裂 · 进度条
   ══════════════════════════════════════════ */

/* 覆盖掉旧的定位，改用 JS 随机 top/left */
.hack-popup {
  position: fixed;
  z-index: 10001;
  min-width: 220px;
  max-width: 300px;
  background: #0a0505;
  border: 2px solid #ff3b3b;
  color: #ff3b3b;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow:
    0 0 0 1px rgba(255, 59, 59, 0.3),
    0 0 24px rgba(255, 59, 59, 0.5),
    inset 0 0 20px rgba(255, 59, 59, 0.05);
  opacity: 0;
  transform: translateY(-8px) scale(0.94) rotate(var(--rot, 0deg));
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 0 4px rgba(255, 59, 59, 0.6);
  pointer-events: auto;
  will-change: transform;
}

.hack-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(var(--rot, 0deg));
}

/* ── 抖动：软 ─────────────────────────── */
.hack-popup.shake-soft.show {
  animation: hp-shake-soft 0.45s ease-in-out infinite;
}
@keyframes hp-shake-soft {
  0%, 100% { transform: translateY(0) scale(1) rotate(var(--rot, 0deg)); }
  50%      { transform: translate(1px, -1px) scale(1.005) rotate(var(--rot, 0deg)); }
}

/* ── 抖动：硬 ─────────────────────────── */
.hack-popup.shake-hard.show {
  animation: hp-shake-hard 0.14s linear infinite;
}
@keyframes hp-shake-hard {
  0%   { transform: translate(0, 0) rotate(var(--rot, 0deg)); }
  20%  { transform: translate(-2px, 1px) rotate(calc(var(--rot, 0deg) - 0.6deg)); }
  40%  { transform: translate(2px, -2px) rotate(calc(var(--rot, 0deg) + 0.5deg)); }
  60%  { transform: translate(-1px, -1px) rotate(var(--rot, 0deg)); }
  80%  { transform: translate(2px, 1px) rotate(calc(var(--rot, 0deg) + 0.8deg)); }
  100% { transform: translate(0, 0) rotate(var(--rot, 0deg)); }
}

/* ── 撕裂效果 ─────────────────────────── */
.hack-popup.torn {
  animation: hp-tear 0.32s steps(2, end) !important;
}
@keyframes hp-tear {
  0%   { clip-path: inset(0 0 0 0); }
  20%  { clip-path: inset(8% 0 12% 0);   transform: translate(-3px, 0) skewX(2deg) rotate(var(--rot, 0deg)); }
  40%  { clip-path: inset(30% 0 5% 0);   transform: translate(4px, 0) skewX(-3deg) rotate(var(--rot, 0deg)); }
  60%  { clip-path: inset(2% 0 40% 0);   transform: translate(-2px, 0) skewX(1.5deg) rotate(var(--rot, 0deg)); }
  80%  { clip-path: inset(15% 0 20% 0);  transform: translate(2px, 0) skewX(-1deg) rotate(var(--rot, 0deg)); }
  100% { clip-path: inset(0 0 0 0);      transform: rotate(var(--rot, 0deg)); }
}

/* ── 标题栏 ───────────────────────────── */
.hp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 9px;
  background: #ff3b3b;
  color: #000;
  font-weight: bold;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-shadow: none;
}

.hp-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-x {
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
  user-select: none;
}
.hp-x:hover { opacity: 1; }

/* ── 内容 ─────────────────────────────── */
.hp-body {
  padding: 9px 12px;
}

.hp-body code {
  background: rgba(255, 59, 59, 0.15);
  padding: 1px 5px;
  border: 1px solid rgba(255, 59, 59, 0.3);
  font-family: inherit;
}

.hp-body small {
  color: #c47a7a;
  font-size: 10.5px;
}

/* ── 进度条 ───────────────────────────── */
.hp-progress {
  padding: 0 12px 8px;
}

.hp-progress-label {
  font-size: 10.5px;
  color: #c47a7a;
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}

.hp-progress-pct {
  color: #ff3b3b;
  font-weight: bold;
}

.hp-progress-track {
  height: 7px;
  background: #1a0505;
  border: 1px solid rgba(255, 59, 59, 0.4);
  overflow: hidden;
}

.hp-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a01a1a, #ff3b3b, #ff8080);
  transition: width 0.12s linear;
  box-shadow: 0 0 6px rgba(255, 59, 59, 0.8);
}

/* ── 按钮 ─────────────────────────────── */
.hp-btns {
  display: flex;
  gap: 5px;
  padding: 4px 12px 10px;
  justify-content: flex-end;
}

.hp-btn {
  background: #1a0a0a;
  border: 1px solid #ff3b3b;
  color: #ff3b3b;
  font: inherit;
  font-size: 11px;
  padding: 2px 11px;
  cursor: pointer;
  transition: all 0.15s;
  text-shadow: 0 0 4px rgba(255, 59, 59, 0.5);
}

.hp-btn:hover {
  background: #ff3b3b;
  color: #000;
  text-shadow: none;
}

/* ── 琥珀警告色 ───────────────────────── */
.hack-popup.kind-warn {
  border-color: #ffb000;
  color: #ffb000;
  background: #0a0700;
  box-shadow:
    0 0 0 1px rgba(255, 176, 0, 0.3),
    0 0 24px rgba(255, 176, 0, 0.5),
    inset 0 0 20px rgba(255, 176, 0, 0.05);
  text-shadow: 0 0 4px rgba(255, 176, 0, 0.6);
}
.hack-popup.kind-warn .hp-bar { background: #ffb000; }
.hack-popup.kind-warn .hp-btn {
  border-color: #ffb000;
  color: #ffb000;
  background: #1a1200;
}
.hack-popup.kind-warn .hp-btn:hover {
  background: #ffb000;
  color: #000;
}
.hack-popup.kind-warn .hp-body code {
  background: rgba(255, 176, 0, 0.15);
  border-color: rgba(255, 176, 0, 0.3);
}
.hack-popup.kind-warn .hp-body small { color: #a87840; }
.hack-popup.kind-warn .hp-progress-label { color: #a87840; }
.hack-popup.kind-warn .hp-progress-pct   { color: #ffb000; }
.hack-popup.kind-warn .hp-progress-track { background: #1a1200; border-color: rgba(255, 176, 0, 0.4); }
.hack-popup.kind-warn .hp-progress-fill  {
  background: linear-gradient(90deg, #7a4a00, #ffb000, #ffe080);
  box-shadow: 0 0 6px rgba(255, 176, 0, 0.8);
}

/* ── 全局闪屏 / glitch ────────────────── */
.hack-glitch {
  animation: hack-glitch-anim 0.09s infinite;
}

@keyframes hack-glitch-anim {
  0%   { transform: translate(0, 0);      filter: hue-rotate(0deg); }
  20%  { transform: translate(-3px, 2px); filter: hue-rotate(-15deg); }
  40%  { transform: translate(2px, -3px); filter: hue-rotate(10deg); }
  60%  { transform: translate(-2px, -1px); filter: hue-rotate(-5deg); }
  80%  { transform: translate(3px, 2px);  filter: hue-rotate(15deg); }
  100% { transform: translate(0, 0);      filter: hue-rotate(0deg); }
}

body.hack-flash .win {
  animation: hf-pulse 0.15s ease-out;
}

@keyframes hf-pulse {
  0%   { filter: brightness(2) saturate(2.5) hue-rotate(-15deg); }
  100% { filter: none; }
}



/* ══════════════════════════════════════════
   入侵弹窗 · 导演版
   ══════════════════════════════════════════ */

.hk-pop {
  position: fixed;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.45;
  pointer-events: auto;
  opacity: 0;
  will-change: transform, opacity;
  --rot: 0deg;
}

/* ── 微型 ─────────────────────────────── */
.hk-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #0a0505;
  border-left: 3px solid #ff3b3b;
  color: #ff3b3b;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 4px rgba(255, 59, 59, 0.5);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hk-mini.kind-warn {
  border-left-color: #ffb000;
  color: #ffb000;
  text-shadow: 0 0 4px rgba(255, 176, 0, 0.5);
}

.hk-mini .hk-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  flex: none;
  animation: hk-dot-blink 1s ease-in-out infinite;
}

@keyframes hk-dot-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* 微型进场：从边缘滑入 */
.hk-mini[data-edge="left"].show   { opacity: 1; transform: translateX(0)    rotate(0deg); }
.hk-mini[data-edge="left"]        { transform: translateX(-30px) rotate(0deg); }
.hk-mini[data-edge="right"].show  { opacity: 1; transform: translateX(0)    rotate(0deg); }
.hk-mini[data-edge="right"]       { transform: translateX(30px)  rotate(0deg); }
.hk-mini[data-edge="top"].show    { opacity: 1; transform: translateY(0)    rotate(0deg); }
.hk-mini[data-edge="top"]         { transform: translateY(-20px) rotate(0deg); }
.hk-mini[data-edge="bottom"].show { opacity: 1; transform: translateY(0)    rotate(0deg); }
.hk-mini[data-edge="bottom"]      { transform: translateY(20px)  rotate(0deg); }

/* ── 中型 / 大型：带标题栏 ───────────── */
.hk-standard,
.hk-large {
  background: #0a0505;
  border: 2px solid #ff3b3b;
  color: #ff3b3b;
  box-shadow:
    0 0 0 1px rgba(255, 59, 59, 0.3),
    0 0 24px rgba(255, 59, 59, 0.4),
    inset 0 0 20px rgba(255, 59, 59, 0.04);
  text-shadow: 0 0 4px rgba(255, 59, 59, 0.6);
  transition: opacity 0.22s ease, transform 0.34s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* 中型：从上方滑下 */
.hk-standard {
  transform: translateY(-24px) scale(0.96) rotate(var(--rot));
}
.hk-standard.show {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(var(--rot));
}

/* 大型：从远处推近，有一点点缓 */
.hk-large {
  transform: scale(0.78) rotate(var(--rot));
  transition: opacity 0.3s ease, transform 0.42s cubic-bezier(0.22, 0.8, 0.3, 1.2);
}
.hk-large.show {
  opacity: 1;
  transform: scale(1) rotate(var(--rot));
}

/* ── 巨型：砸下来 ─────────────────────── */
.hk-modal {
  background: #0a0505;
  border: 3px solid #ff3b3b;
  color: #ff3b3b;
  box-shadow:
    0 0 0 2px rgba(255, 59, 59, 0.25),
    0 0 60px rgba(255, 59, 59, 0.6),
    inset 0 0 40px rgba(255, 59, 59, 0.06);
  text-shadow: 0 0 6px rgba(255, 59, 59, 0.7);
  transform: translate(-50%, -50%) scale(2.2);
  opacity: 0;
  transition: opacity 0.14s ease, transform 0.28s cubic-bezier(0.5, -0.2, 0.6, 1.4);
}
.hk-modal.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 巨型砸下来时屏幕震一下 */
.hk-modal.show {
  animation: hk-slam 0.32s ease-out;
}
@keyframes hk-slam {
  0%   { transform: translate(-50%, -50%) scale(1.1); }
  40%  { transform: translate(-50%, -50%) scale(0.98); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* ── 标题栏 ───────────────────────────── */
.hk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 9px;
  background: #ff3b3b;
  color: #000;
  font-weight: bold;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-shadow: none;
}

.hk-modal .hk-bar {
  padding: 6px 12px;
  font-size: 13px;
}

.hk-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hk-x {
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
  user-select: none;
}
.hk-x:hover { opacity: 1; }

/* ── 内容 ─────────────────────────────── */
.hk-body {
  padding: 9px 12px;
}

.hk-modal .hk-body {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
}

.hk-body code {
  background: rgba(255, 59, 59, 0.15);
  padding: 1px 5px;
  border: 1px solid rgba(255, 59, 59, 0.3);
  font-family: inherit;
}

.hk-body small {
  color: #c47a7a;
  font-size: 10.5px;
}

/* ── 进度条 ───────────────────────────── */
.hk-prog {
  padding: 0 12px 8px;
}
.hk-modal .hk-prog {
  padding: 0 20px 12px;
}

.hk-prog-lbl {
  font-size: 10.5px;
  color: #c47a7a;
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}
.hk-modal .hk-prog-lbl { font-size: 12px; }

.hk-prog-pct {
  color: #ff3b3b;
  font-weight: bold;
}

.hk-prog-track {
  height: 7px;
  background: #1a0505;
  border: 1px solid rgba(255, 59, 59, 0.4);
  overflow: hidden;
}
.hk-modal .hk-prog-track { height: 12px; }

.hk-prog-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a01a1a, #ff3b3b, #ff8080);
  transition: width 0.14s linear;
  box-shadow: 0 0 6px rgba(255, 59, 59, 0.8);
}

/* ── 按钮 ─────────────────────────────── */
.hk-btns {
  display: flex;
  gap: 5px;
  padding: 4px 12px 10px;
  justify-content: flex-end;
}
.hk-modal .hk-btns {
  gap: 10px;
  padding: 10px 20px 18px;
}

.hk-btn {
  background: #1a0a0a;
  border: 1px solid #ff3b3b;
  color: #ff3b3b;
  font: inherit;
  font-size: 11px;
  padding: 2px 11px;
  cursor: pointer;
  transition: all 0.15s;
  text-shadow: 0 0 4px rgba(255, 59, 59, 0.5);
}
.hk-modal .hk-btn {
  font-size: 13px;
  padding: 5px 18px;
}

.hk-btn:hover {
  background: #ff3b3b;
  color: #000;
  text-shadow: none;
}

/* ── 琥珀色 ───────────────────────────── */
.hk-pop.kind-warn {
  border-color: #ffb000;
  color: #ffb000;
  background: #0a0700;
  text-shadow: 0 0 4px rgba(255, 176, 0, 0.6);
  box-shadow:
    0 0 0 1px rgba(255, 176, 0, 0.3),
    0 0 24px rgba(255, 176, 0, 0.4),
    inset 0 0 20px rgba(255, 176, 0, 0.04);
}
.hk-pop.kind-warn .hk-bar { background: #ffb000; }
.hk-pop.kind-warn .hk-btn {
  border-color: #ffb000;
  color: #ffb000;
  background: #1a1200;
}
.hk-pop.kind-warn .hk-btn:hover {
  background: #ffb000;
  color: #000;
}
.hk-pop.kind-warn .hk-body code {
  background: rgba(255, 176, 0, 0.15);
  border-color: rgba(255, 176, 0, 0.3);
}
.hk-pop.kind-warn .hk-body small { color: #a87840; }
.hk-pop.kind-warn .hk-prog-lbl { color: #a87840; }
.hk-pop.kind-warn .hk-prog-pct { color: #ffb000; }
.hk-pop.kind-warn .hk-prog-track { background: #1a1200; border-color: rgba(255, 176, 0, 0.4); }
.hk-pop.kind-warn .hk-prog-fill {
  background: linear-gradient(90deg, #7a4a00, #ffb000, #ffe080);
  box-shadow: 0 0 6px rgba(255, 176, 0, 0.8);
}

/* ── 撕裂 ─────────────────────────────── */
.hk-pop.torn {
  animation: hk-tear 0.32s steps(2, end) !important;
}
@keyframes hk-tear {
  0%   { clip-path: inset(0 0 0 0); }
  20%  { clip-path: inset(8% 0 12% 0);   transform: translate(-3px, 0) skewX(2deg); }
  40%  { clip-path: inset(30% 0 5% 0);   transform: translate(4px, 0) skewX(-3deg); }
  60%  { clip-path: inset(2% 0 40% 0);   transform: translate(-2px, 0) skewX(1.5deg); }
  80%  { clip-path: inset(15% 0 20% 0);  transform: translate(2px, 0) skewX(-1deg); }
  100% { clip-path: inset(0 0 0 0); }
}

/* ── 离场 ─────────────────────────────── */
.hk-pop.leaving {
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hk-pop.hk-mini.leaving {
  transform: translateX(0) scale(0.94);
}
.hk-pop.hk-standard.leaving,
.hk-pop.hk-large.leaving {
  transform: scale(0.96) rotate(var(--rot));
}

/* ── 全局闪屏 / glitch（与之前一致） ─── */
.hack-glitch {
  animation: hack-glitch-anim 0.09s infinite;
}
@keyframes hack-glitch-anim {
  0%   { transform: translate(0, 0);      filter: hue-rotate(0deg); }
  20%  { transform: translate(-3px, 2px); filter: hue-rotate(-15deg); }
  40%  { transform: translate(2px, -3px); filter: hue-rotate(10deg); }
  60%  { transform: translate(-2px, -1px); filter: hue-rotate(-5deg); }
  80%  { transform: translate(3px, 2px);  filter: hue-rotate(15deg); }
  100% { transform: translate(0, 0);      filter: hue-rotate(0deg); }
}

body.hack-flash .win {
  animation: hf-pulse 0.15s ease-out;
}
@keyframes hf-pulse {
  0%   { filter: brightness(2) saturate(2.5) hue-rotate(-15deg); }
  100% { filter: none; }
}

/* ── 顶部横幅 / 底部状态条 ─────────────── */
.hack-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  background: #ff3b3b;
  color: #000;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-weight: bold;
  text-align: center;
  padding: 6px 0;
  letter-spacing: 0.18em;
  font-size: 13px;
  text-shadow: none;
  animation: hb-flash 0.9s ease-in-out infinite;
}
.hack-banner .hb-dot {
  display: inline-block;
  margin: 0 14px;
  animation: hb-dot 0.5s ease-in-out infinite alternate;
}
@keyframes hb-flash {
  0%, 100% { background: #ff3b3b; }
  50%      { background: #a01a1a; }
}
@keyframes hb-dot {
  from { opacity: 0.3; }
  to   { opacity: 1; }
}

.hack-statusbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10000;
  background: rgba(10, 5, 5, 0.94);
  border-top: 1px solid #ff3b3b;
  color: #ff3b3b;
  padding: 6px 20px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  display: flex;
  gap: 28px;
  justify-content: center;
  text-shadow: 0 0 4px rgba(255, 59, 59, 0.6);
  flex-wrap: wrap;
}
.hack-statusbar .hs-item b {
  color: #fff;
  margin-left: 4px;
}

/* ══════════════════════════════════════════
   系统监控面板 + 全球攻击地图
   ══════════════════════════════════════════ */

.hack-stats {
  position: fixed;
  right: 20px;
  bottom: 52px;
  z-index: 10015;
  width: 276px;
  background: #0a0505;
  border: 2px solid #ff3b3b;
  box-shadow:
    0 0 0 1px rgba(255, 59, 59, 0.3),
    0 0 24px rgba(255, 59, 59, 0.4);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #ff3b3b;
  text-shadow: 0 0 4px rgba(255, 59, 59, 0.5);
  pointer-events: none;
}

.hack-map {
  position: fixed;
  left: 20px;
  bottom: 52px;
  z-index: 10015;
  width: 324px;
  background: #0a0505;
  border: 2px solid #ff3b3b;
  box-shadow:
    0 0 0 1px rgba(255, 59, 59, 0.3),
    0 0 24px rgba(255, 59, 59, 0.4);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #ff3b3b;
  text-shadow: 0 0 4px rgba(255, 59, 59, 0.5);
  pointer-events: none;
}

.hx-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px;
  background: #ff3b3b;
  color: #000;
  font-weight: bold;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-shadow: none;
}

.hx-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
  animation: hx-pulse-anim 0.7s ease-in-out infinite;
}

@keyframes hx-pulse-anim {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 1; }
}

.hx-metric {
  padding: 4px 8px 5px;
  border-top: 1px solid rgba(255, 59, 59, 0.2);
}
.hx-metric:first-of-type { border-top: 0; }

.hx-metric-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  color: #c47a7a;
}
.hx-metric-head .hx-v {
  color: #ff3b3b;
  font-weight: bold;
}

.hx-canvas {
  display: block;
  width: 260px;
  height: 46px;
}

.hx-map-canvas {
  display: block;
  width: 320px;
  height: 150px;
}

.hx-map-info {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px 6px;
  border-top: 1px solid rgba(255, 59, 59, 0.2);
  font-size: 10.5px;
  color: #c47a7a;
}
.hx-map-info b {
  color: #ff3b3b;
  margin-left: 3px;
}

/* ── 弹窗可拖动 ───────────────────────── */
.hk-pop .hk-bar,
.hk-pop.hk-mini {
  user-select: none;
}

.hk-pop.dragging {
  transition: none !important;
}





/* ══════════════════════════════════════════
   冷版入侵 —— Windows 2000 风格弹窗
   ══════════════════════════════════════════ */

/* 全局字体：用 Tahoma 逼近系统对话框 */
.hk2 {
  position: fixed;
  font-family: Tahoma, 'MS Sans Serif', Verdana, sans-serif;
  font-size: 11px;
  color: #000;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.3, 1.2, 0.5, 1);
  will-change: transform, opacity;
}

.hk2.show {
  opacity: 1;
  transform: scale(1);
}

.hk2.leaving {
  opacity: 0;
  transform: scale(0.96);
}

/* ── 对话框：Windows 2000 灰 ──────────── */
.hk2-dialog,
.hk2-alert {
  background: #d4d0c8;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  box-shadow:
    inset 1px 1px 0 #dfdfdf,
    inset -1px -1px 0 #808080,
    4px 4px 0 rgba(0, 0, 0, 0.4);
  padding: 0;
}

.hk2-alert {
  box-shadow:
    inset 1px 1px 0 #dfdfdf,
    inset -1px -1px 0 #808080,
    6px 6px 0 rgba(0, 0, 0, 0.55);
}

/* ── 标题栏 ───────────────────────────── */
.hk2-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px 2px 4px;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 0;
  user-select: none;
}

.hk2.k-error .hk2-titlebar {
  background: linear-gradient(90deg, #800000 0%, #c04040 100%);
}

.hk2-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hk2-controls {
  display: flex;
  gap: 2px;
  flex: none;
}

.hk2-btn-min,
.hk2-btn-x {
  display: inline-block;
  width: 16px;
  height: 14px;
  background: #d4d0c8;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  position: relative;
  cursor: pointer;
}

.hk2-btn-min::after {
  content: '';
  position: absolute;
  left: 4px; bottom: 2px;
  width: 8px; height: 1px;
  background: #000;
}

.hk2-btn-x::before,
.hk2-btn-x::after {
  content: '';
  position: absolute;
  left: 3px; top: 6px;
  width: 10px; height: 1px;
  background: #000;
}
.hk2-btn-x::before { transform: rotate(45deg); }
.hk2-btn-x::after  { transform: rotate(-45deg); }

/* ── 内容 ─────────────────────────────── */
.hk2-content {
  display: flex;
  gap: 12px;
  padding: 16px 14px 12px;
  align-items: flex-start;
  min-height: 60px;
}

.hk2-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffcc;
  border: 1px solid #808000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #808000;
  font-weight: bold;
  line-height: 1;
}

.hk2.k-error .hk2-icon {
  background: #ffd4d4;
  border-color: #800000;
  color: #800000;
}

.hk2-body {
  flex: 1;
  font-size: 11px;
  line-height: 1.55;
  color: #000;
  word-break: break-word;
}

/* ── 进度条 ───────────────────────────── */
.hk2-progress {
  padding: 0 14px 12px;
}

.hk2-progress-lbl {
  font-size: 11px;
  color: #404040;
  margin-bottom: 4px;
}

.hk2-progress-pct {
  color: #000;
  font-weight: bold;
}

.hk2-progress-track {
  height: 16px;
  background: #fff;
  border-top: 1px solid #404040;
  border-left: 1px solid #404040;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  padding: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.hk2-progress-fill {
  height: 100%;
  width: 0%;
  background: #000080;
  transition: width 0.35s linear;
}

/* ── 按钮 ─────────────────────────────── */
.hk2-btns {
  display: flex;
  gap: 6px;
  padding: 0 14px 14px;
  justify-content: flex-end;
}

.hk2-btn {
  min-width: 72px;
  padding: 4px 12px;
  background: #d4d0c8;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  font: inherit;
  font-size: 11px;
  color: #000;
  cursor: pointer;
  outline: none;
}
.hk2-btn:hover  { background: #e0dcd4; }
.hk2-btn:active {
  border-top-color: #404040;
  border-left-color: #404040;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  box-shadow: none;
  padding: 5px 11px 3px 13px;
}

/* ── 托盘通知（toast） ────────────────── */
.hk2-toast {
  width: 340px;
  background: #ffffe1;
  border: 1px solid #000;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  align-items: flex-start;
  transform: translateX(20px);
}
.hk2-toast.show {
  transform: translateX(0);
}
.hk2-toast.leaving {
  transform: translateX(20px);
}

.hk2-toast-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffcc;
  border: 1px solid #808000;
  position: relative;
}
.hk2-toast-icon::after {
  content: '!';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #808000;
  font-size: 15px;
}

.hk2-toast-body {
  flex: 1;
  min-width: 0;
}

.hk2-toast-title {
  font-weight: bold;
  font-size: 11px;
  color: #000;
  margin-bottom: 2px;
}

.hk2-toast-text {
  font-size: 11px;
  color: #333;
  line-height: 1.4;
  word-break: break-word;
}

.hk2-toast-x {
  flex: none;
  cursor: pointer;
  color: #808080;
  font-size: 12px;
  padding: 0 2px;
  user-select: none;
}
.hk2-toast-x:hover { color: #000; }

/* ── 蓝屏 ─────────────────────────────── */
.hk2-bsod {
  background: #0000aa;
  color: #fff;
  font-family: 'Lucida Console', 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.55;
  padding: 40px 60px;
  box-shadow: 0 0 80px rgba(0, 0, 170, 0.6);
  transform: translate(-50%, -50%) scale(0.98);
}
.hk2-bsod.show { transform: translate(-50%, -50%) scale(1); }

.hk2-bsod-inner {
  max-width: 100%;
}

.hk2-bsod-title {
  background: #aaa;
  color: #0000aa;
  display: inline-block;
  padding: 0 6px;
  margin-bottom: 20px;
  white-space: normal;
}

.hk2-bsod-pre {
  font-family: inherit;
  font-size: inherit;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* ── 顶部横幅 —— 安静版 ───────────────── */
.hack-banner2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #000080;
  color: #fff;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  text-align: center;
  padding: 4px 0;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #000040;
}

.hack-banner2 .hb2-text {
  opacity: 0.92;
}

/* ── 屏幕偶发变暗 ─────────────────────── */
body.hack-dim .win {
  transition: filter 0.15s ease;
  filter: brightness(0.82);
}

/* ── 系统监控（任务管理器风） ──────────── */
.hack-stats {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10015;
  width: 260px;
  background: #d4d0c8;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  box-shadow:
    inset 1px 1px 0 #dfdfdf,
    inset -1px -1px 0 #808080,
    3px 3px 0 rgba(0, 0, 0, 0.35);
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
  pointer-events: none;
  user-select: none;
}

.hx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 0;
}

.hx-title {
  flex: 1;
}

.hx-count b {
  font-weight: bold;
}

.hx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.hx-table tr {
  border-bottom: 1px solid #c0bcb4;
}

.hx-table td {
  padding: 3px 8px;
  color: #000;
}

.hx-table td:first-child {
  color: #404040;
  width: 55%;
}

.hx-table td.hx-v {
  text-align: right;
  font-weight: bold;
  color: #000;
}

.hx-canvas {
  display: block;
  width: 240px;
  height: 60px;
  margin: 4px auto 6px;
  background: #fff;
  border-top: 1px solid #404040;
  border-left: 1px solid #404040;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

/* ── 地图（冷版） ─────────────────────── */
.hack-map {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10015;
  width: 300px;
  background: #d4d0c8;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  box-shadow:
    inset 1px 1px 0 #dfdfdf,
    inset -1px -1px 0 #808080,
    3px 3px 0 rgba(0, 0, 0, 0.35);
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
  pointer-events: none;
  user-select: none;
}

.hx-map-canvas {
  display: block;
  width: 296px;
  height: 140px;
  margin: 2px auto 4px;
  background: #f4f4f0;
  border-top: 1px solid #404040;
  border-left: 1px solid #404040;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}


/* ══════════════════════════════════════════
   play 窗口系统 —— CRT 磷光绿
   ══════════════════════════════════════════ */

.pw-window {
  position: fixed;
  z-index: 10500;
  background: var(--bg);
  border: 1px solid var(--fg);
  box-shadow:
    0 0 0 1px rgba(51, 255, 51, 0.15),
    0 0 24px rgba(51, 255, 51, 0.28),
    inset 0 0 60px rgba(51, 255, 51, 0.03);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 13px;
  color: var(--fg);
  text-shadow: 0 0 3px rgba(51, 255, 51, 0.45);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.3, 1.2, 0.5, 1);
  will-change: transform, opacity;
  min-width: 240px;
  min-height: 160px;
}

.pw-window.show {
  opacity: 1;
  transform: scale(1);
}

.pw-window.leaving {
  opacity: 0;
  transform: scale(0.96);
}

/* 扫描线覆盖 */
.pw-window::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.16) 2px,
    rgba(0, 0, 0, 0.16) 3px
  );
}

/* ── 标题栏 —— 反色亮绿 ──────────────── */
.pw-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  background: var(--fg);
  color: var(--bg);
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.08em;
  user-select: none;
  cursor: move;
  flex: none;
  text-shadow: none;
  z-index: 6;
  position: relative;
}

.pw-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.pw-controls {
  display: flex;
  gap: 6px;
  flex: none;
}

.pw-btn-max,
.pw-btn-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 16px;
  background: transparent;
  border: 1px solid var(--bg);
  color: var(--bg);
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  text-shadow: none;
  transition: background 0.12s, color 0.12s;
}

.pw-btn-max:hover,
.pw-btn-x:hover {
  background: var(--bg);
  color: var(--fg);
}

.pw-btn-max:active,
.pw-btn-x:active {
  background: var(--bg);
  color: var(--fg);
}

/* ── 内容区 ──────────────────────────── */
.pw-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  z-index: 4;
}

/* ── 右下角 resize 手柄 ──────────────── */
.pw-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  z-index: 7;
  background:
    linear-gradient(135deg,
      transparent 0 35%,
      var(--dim) 35% 42%,
      transparent 42% 55%,
      var(--dim) 55% 62%,
      transparent 62% 75%,
      var(--dim) 75% 82%,
      transparent 82%);
}

/* ── 图片窗口 ─────────────────────────── */
.pw-image {
  background: var(--bg);
}

.pw-image-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
     repeating-conic-gradient(var(--border) 0% 25%, var(--bg) 0% 50%)
    50% / 22px 22px;
  position: relative;
}

.pw-image-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.pw-image-info {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--dim);
}

.pw-image-info span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}

.pw-image-info a {
  color: var(--fg);
  text-decoration: none;
  flex: none;
  font-size: 11.5px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  text-shadow: 0 0 3px rgba(51, 255, 51, 0.5);
  transition: background 0.12s, color 0.12s;
}

.pw-image-info a:hover {
  background: var(--fg);
  color: var(--bg);
  text-shadow: none;
}

/* ── 视频窗口 ─────────────────────────── */
.pw-video {
  background: #000;
  position: relative;
}

.pw-video-el {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #000;
  display: block;
  outline: none;
}

.pw-video-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--fg);
  background: rgba(0, 0, 0, 0.88);
  padding: 8px 16px;
  border: 1px solid var(--fg);
  font-size: 12px;
  pointer-events: none;
  text-shadow: 0 0 4px rgba(51, 255, 51, 0.5);
  box-shadow: 0 0 20px rgba(51, 255, 51, 0.3);
  letter-spacing: 0.05em;
}

/* ── 音频窗口 ─────────────────────────── */
.pw-audio {
  padding: 16px 18px;
  gap: 12px;
  justify-content: center;
}

.pw-audio-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pw-audio-name {
  font-size: 13px;
  font-weight: bold;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.04em;
}

.pw-audio-status {
  font-size: 11.5px;
  color: var(--dim);
}

.pw-audio-el {
  width: 100%;
  height: 34px;
  outline: none;
  /* 让浏览器默认控件偏绿 */
  filter: invert(1) hue-rotate(95deg) saturate(0.9) brightness(1.05);
  opacity: 0.92;
}

/* ── JSON 窗口 ────────────────────────── */
.pw-json {
  background: var(--bg);
}

.pw-json-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.pw-json-head .pw-status-ok   { color: var(--fg);    font-weight: bold; }
.pw-json-head .pw-status-warn { color: var(--amber); font-weight: bold; }
.pw-json-head .pw-status-err  { color: var(--red);   font-weight: bold; }

.pw-json-time {
  color: var(--dimmer);
}

.pw-json-url {
  flex: 1;
  text-align: right;
  color: var(--dimmer);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}

.pw-json-pre {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0;
  padding: 10px 14px;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.pw-json-pre::-webkit-scrollbar { width: 8px; height: 8px; }
.pw-json-pre::-webkit-scrollbar-thumb { background: var(--border); }
.pw-json-pre::-webkit-scrollbar-track { background: transparent; }

.pw-json-status {
  padding: 24px 20px;
  text-align: center;
  color: var(--dim);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* JSON 高亮 */
.pj-key  { color: var(--fg); }
.pj-str  { color: var(--dim); }
.pj-num  { color: var(--amber); }
.pj-bool { color: var(--amber); }
.pj-null { color: var(--dimmer); font-style: italic; }

/* ── 错误状态 ─────────────────────────── */
.pw-error {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--red);
  font-family: inherit;
  font-size: 13px;
  text-shadow: 0 0 4px rgba(255, 59, 59, 0.5);
}

.pw-error-icon {
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
}

.pw-error-url {
  color: var(--dim);
  font-size: 11px;
  word-break: break-all;
  max-width: 100%;
  letter-spacing: 0.02em;
}









/* ── 网页窗口 ─────────────────────────── */
.pw-web {
  background: var(--bg);
}

.pw-web-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
}

.pw-web-url {
  flex: 1;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.pw-web-external {
  flex: none;
  color: var(--fg);
  text-decoration: none;
  padding: 1px 7px;
  border: 1px solid var(--border);
  font-size: 11px;
  text-shadow: 0 0 3px rgba(51, 255, 51, 0.5);
  transition: background 0.12s, color 0.12s;
}

.pw-web-external:hover {
  background: var(--fg);
  color: var(--bg);
  text-shadow: none;
}

.pw-web-frame-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #fff;
}

.pw-web-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  display: block;
}

.pw-web-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
  text-shadow: 0 0 3px rgba(51, 255, 51, 0.45);
  z-index: 2;
}

.pw-web-fallback-icon {
  font-size: 40px;
  color: var(--amber);
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.6);
}

.pw-web-fallback-text {
  color: var(--dim);
  letter-spacing: 0.04em;
}

.pw-web-fallback-btn {
  color: var(--fg);
  text-decoration: none;
  padding: 6px 18px;
  border: 1px solid var(--fg);
  font-size: 13px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 12px rgba(51, 255, 51, 0.35);
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
  text-shadow: 0 0 3px rgba(51, 255, 51, 0.5);
}

.pw-web-fallback-btn:hover {
  background: var(--fg);
  color: var(--bg);
  text-shadow: none;
  box-shadow: 0 0 20px rgba(51, 255, 51, 0.6);
}


/* ── 图片窗口加载失败 ─────────────────── */
.pw-image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
  text-shadow: 0 0 3px rgba(51, 255, 51, 0.45);
  z-index: 2;
}

.pw-image-fallback-icon {
  font-size: 40px;
  color: var(--amber);
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.6);
}

.pw-image-fallback-text {
  color: var(--dim);
  letter-spacing: 0.04em;
}

.pw-image-fallback-hint {
  color: var(--dimmer);
  font-size: 12px;
}

.pw-image-fallback-btn {
  color: var(--fg);
  text-decoration: none;
  padding: 5px 16px;
  border: 1px solid var(--fg);
  font-size: 12px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(51, 255, 51, 0.35);
  transition: background 0.12s, color 0.12s;
  text-shadow: 0 0 3px rgba(51, 255, 51, 0.5);
}

.pw-image-fallback-btn:hover {
  background: var(--fg);
  color: var(--bg);
  text-shadow: none;
}



/* ══════════════════════════════════════════
   chart
   ══════════════════════════════════════════ */
.chart-row {
  display: flex;
  line-height: 1.05;
  font-family: inherit;
  font-size: 13px;
}
.chart-y {
  flex: none;
  color: var(--dimmer);
  white-space: pre;
}
.chart-line {
  color: var(--fg);
  white-space: pre;
  text-shadow: 0 0 3px rgba(51, 255, 51, 0.45);
}
.chart-x {
  color: var(--dimmer);
  white-space: pre;
  font-size: 11px;
}

/* ══════════════════════════════════════════
   结构化错误按钮
   ══════════════════════════════════════════ */
.act-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.act-btn {
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  font: inherit;
  font-size: 11.5px;
  padding: 2px 12px;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-shadow: 0 0 3px rgba(51, 255, 51, 0.5);
  transition: background 0.12s, color 0.12s;
}

.act-btn:hover {
  background: var(--fg);
  color: var(--bg);
  text-shadow: none;
}

.act-btn:active {
  transform: translateY(1px);
}

/* ══════════════════════════════════════════
   拖拽覆盖层
   ══════════════════════════════════════════ */
.drag-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

.drag-overlay.show {
  opacity: 1;
}

.drag-box {
  border: 2px dashed var(--fg);
  padding: 48px 72px;
  text-align: center;
  color: var(--fg);
  font-family: inherit;
  background: var(--bg);
  box-shadow:
    0 0 0 1px rgba(51, 255, 51, 0.2),
    0 0 60px rgba(51, 255, 51, 0.3),
    inset 0 0 60px rgba(51, 255, 51, 0.04);
  text-shadow: 0 0 4px rgba(51, 255, 51, 0.6);
}

.drag-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
  animation: drag-bob 1.4s ease-in-out infinite;
}

@keyframes drag-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

.drag-text {
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.drag-sub {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.06em;
}



/* ══════════════════════════════════════════
   会话行
   ══════════════════════════════════════════ */
.sess-line {
  display: flex;
  gap: 2ch;
  align-items: baseline;
  margin: .3em 0;
}
.sess-time {
  flex: none;
  color: var(--dimmer);
  font-size: 11.5px;
}
.sess-html {
  flex: 1;
  min-width: 0;
}
.sess-html > * { margin: 0; }
.sess-html > * + * { margin-top: .2em; }

/* ══════════════════════════════════════════
   通知中心
   ══════════════════════════════════════════ */
.notify-bell {
  position: fixed;
  top: 56px;
  right: 22px;
  z-index: 10200;
  width: 34px;
  height: 34px;
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(51, 255, 51, 0.3);
  transition: background 0.15s, color 0.15s;
  user-select: none;
  font-family: inherit;
}
.notify-bell:hover {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(51, 255, 51, 0.55);
}
.nb-icon { font-size: 16px; line-height: 1; }
.nb-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--red);
  color: var(--bg);
  border-radius: 8px;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 8px rgba(255, 59, 59, 0.7);
}

.notify-panel {
  position: fixed;
  top: 98px;
  right: 22px;
  z-index: 10200;
  width: 360px;
  max-height: 480px;
  background: var(--bg);
  border: 1px solid var(--fg);
  box-shadow:
    0 0 0 1px rgba(51, 255, 51, 0.15),
    0 0 30px rgba(51, 255, 51, 0.35);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.16s, transform 0.2s;
  pointer-events: none;
  font-family: inherit;
}
.notify-panel.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.np-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--fg);
  color: var(--bg);
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.np-actions { display: flex; gap: 6px; }
.np-clear, .np-close {
  background: transparent;
  border: 1px solid var(--bg);
  color: var(--bg);
  font: inherit;
  font-size: 10.5px;
  padding: 1px 8px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.np-clear:hover, .np-close:hover {
  background: var(--bg);
  color: var(--fg);
}
.np-close { padding: 1px 6px; }

.np-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.np-list::-webkit-scrollbar { width: 8px; }
.np-list::-webkit-scrollbar-thumb { background: var(--border); }

.np-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
}

.np-item {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.5;
}
.np-item:last-child { border-bottom: 0; }

.np-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.np-item-title {
  color: var(--fg);
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-item-time {
  flex: none;
  color: var(--dimmer);
  font-size: 10.5px;
}
.np-item-body {
  color: var(--dim);
  margin-top: 3px;
  word-break: break-word;
}

.np-item.np-warn .np-item-title  { color: var(--amber); }
.np-item.np-error .np-item-title { color: var(--red); }

/* ══════════════════════════════════════════
   PWA 安装提示（可选）
   ══════════════════════════════════════════ */
@media (display-mode: standalone) {
  body { -webkit-user-select: none; user-select: none; }
  .pw-web-frame-wrap { background: #000; }
}



/* ── 欢迎行 ───────────────────────────── */
.welcome-line {
  color: var(--dim);
  font-size: 13.5px;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════
   注册表单 —— 改进输入体验
   ══════════════════════════════════════════ */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .18s;
  overflow-y: auto;
}
.auth-overlay.show { opacity: 1; }

.auth-box {
  width: 420px;
  max-width: 100%;
  background: var(--bg);
  border: 1px solid var(--fg);
  box-shadow: 0 0 40px rgba(51, 255, 51, .4);
  font-family: inherit;
  color: var(--fg);
  margin: auto;
}

.auth-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  font-weight: bold;
  letter-spacing: .08em;
  font-size: 13.5px;
}
.auth-close {
  cursor: pointer;
  padding: 0 8px;
  font-size: 16px;
  line-height: 1;
}

.auth-body {
  padding: 20px 18px 8px;
}
.auth-body label {
  display: block;
  margin-bottom: 18px;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: .04em;
}
.auth-body input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(51, 255, 51, 0.03);
  border: 1px solid var(--border);
  color: var(--fg);
  font: inherit;
  font-size: 16px;          /* ≥16px 防止 iOS 自动放大 */
  outline: none;
  transition: border-color .15s, background .15s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  caret-color: var(--fg);
}
.auth-body input:focus {
  border-color: var(--fg);
  background: rgba(51, 255, 51, 0.06);
  box-shadow: 0 0 0 2px rgba(51, 255, 51, 0.15);
}
.auth-body input::placeholder {
  color: var(--dimmer);
  font-size: 14px;
}

.auth-err {
  color: var(--red);
  font-size: 13px;
  min-height: 20px;
  margin-top: -6px;
  letter-spacing: 0.02em;
}

.auth-btns {
  display: flex;
  gap: 10px;
  padding: 4px 18px 20px;
}
.auth-btn-primary,
.auth-btn-cancel {
  flex: 1;
  padding: 13px 0;
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .15s, color .15s;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}
.auth-btn-primary:hover { background: var(--fg); color: var(--bg); }
.auth-btn-primary:active { transform: translateY(1px); }
.auth-btn-cancel {
  border-color: var(--border);
  color: var(--dim);
}
.auth-btn-cancel:hover { background: var(--border); color: var(--fg); }

/* ── 手机端：贴顶，避让键盘 ───────────── */
@media (max-width: 640px) {
  .auth-overlay {
    align-items: flex-start;
    padding: 12px;
  }
  .auth-box {
    margin-top: 4vh;
    width: 100%;
  }
  .auth-head {
    font-size: 13px;
    padding: 9px 12px;
  }
  .auth-body {
    padding: 18px 14px 6px;
  }
  .auth-body label {
    margin-bottom: 16px;
    font-size: 12.5px;
  }
  .auth-body input {
    padding: 13px 12px;
    font-size: 16px;
  }
  .auth-btns {
    padding: 4px 14px 18px;
    gap: 8px;
  }
  .auth-btn-primary,
  .auth-btn-cancel {
    padding: 14px 0;
    font-size: 14.5px;
  }
}

/* 横屏 / 矮屏：整体压缩 */
@media (max-height: 480px) {
  .auth-box { margin-top: 2vh; }
  .auth-body { padding: 12px 14px 4px; }
  .auth-body label { margin-bottom: 10px; }
  .auth-body input { padding: 9px 12px; }
  .auth-btns { padding-bottom: 12px; }
}