/* ============================================================
   S N K — 全监控领域 · 入口叙事 Demo
   机能风：冷蓝 / 网格 / HUD / 单色等宽字
   ============================================================ */

:root {
  --void: #04070c;
  --ink: #070c15;
  --blue: #2f6bff;
  --blue-hi: #7fa9ff;
  --blue-deep: #14265e;
  --ice: #dce9ff;
  --dim: #5d6b84;
  --dim-2: #38445a;
  --line: rgba(127, 169, 255, 0.16);
  --line-2: rgba(127, 169, 255, 0.32);
  --red: #ff3b30;

  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", ui-monospace, monospace;
  --zh: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", sans-serif;

  --ease: cubic-bezier(0.22, 0.72, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--void);
  color: var(--ice);
  font-family: var(--zh);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 轻微发光边缘：text-shadow 会继承给所有文字 */
  text-shadow: 0 0 14px rgba(127, 169, 255, 0.22);
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; -webkit-user-drag: none; user-select: none; }

::selection { background: rgba(47, 107, 255, 0.35); color: #fff; }
:focus-visible { outline: 1px solid var(--blue-hi); outline-offset: 3px; }

/* ---------------- 氛围层 ---------------- */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 169, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 169, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 78%);
  opacity: 0.7;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.022) 0px,
    rgba(255, 255, 255, 0.022) 1px,
    transparent 1px,
    transparent 3px
  );
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 46%, transparent 42%, rgba(0, 0, 0, 0.72) 100%);
}

.hud-corners { position: fixed; inset: 18px; z-index: 58; pointer-events: none; }
.hud-corners i {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(127, 169, 255, 0.28);
}
.hud-corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ---------------- 屏幕切换 ---------------- */

.screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.006);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}
.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ============================================================
   1. 开场
   ============================================================ */

.screen--intro {
  display: grid;
  place-items: center;
}

/* 左上角图标：慢速左右旋转 */
.rotator {
  position: absolute;
  top: clamp(18px, 3.4vh, 34px);
  left: clamp(18px, 3vw, 40px);
  width: clamp(58px, 7.2vw, 88px);
  opacity: 0.76;
  transform-origin: 50% 50%;
  animation: rotSpin 18s linear infinite;
  pointer-events: none;
  z-index: 40;
}
.rotator img { width: 100%; height: auto; filter: drop-shadow(0 0 16px rgba(47, 107, 255, 0.4)); }

@keyframes rotSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.logo-stage {
  position: relative;
  width: min(58vmin, 520px);
  aspect-ratio: 1053 / 1242;
  pointer-events: none;
  will-change: transform, opacity;
}

.logo-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 徽章本体：平时只留一点点轮廓 */
.logo-base {
  opacity: 0.14;
  filter: saturate(0.65) brightness(0.8);
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease);
}

.logo-stage.is-revealed .logo-base {
  opacity: 1;
  filter: drop-shadow(0 0 40px rgba(47, 107, 255, 0.5));
}

/* 能量层：canvas 累积被照亮的部分
   悬停时只预览，按住才真正灌注 */
.logo-energy {
  /* 铺满整个视口：光可以散到屏幕任何位置，不存在画布边界 */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: none;
  touch-action: none;
  pointer-events: auto;
  transition: opacity 0.8s var(--ease);
}


.intro-hint {
  position: absolute;
  bottom: clamp(60px, 12vh, 110px);
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  color: rgba(127, 169, 255, 0.5);
  opacity: 0;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}
.intro-hint.is-on { opacity: 1; }
.intro-hint.is-off { opacity: 0; }

.enter-hint {
  position: absolute;
  bottom: clamp(52px, 11vh, 96px);
  padding: 13px 34px;
  border: 1px solid var(--line-2);
  background: rgba(47, 107, 255, 0.06);
  color: var(--blue-hi);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.3s, border-color 0.3s;
}
.enter-hint.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  animation: enterPulse 3.2s var(--ease) infinite;
}
.enter-hint:hover { background: rgba(47, 107, 255, 0.14); border-color: var(--blue-hi); }

@keyframes enterPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0); }
  50%      { box-shadow: 0 0 34px -6px rgba(47, 107, 255, 0.55); }
}

.fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}

/* ============================================================
   2. 对话
   ============================================================ */

.screen--dialog::before,
.screen--form::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("assets/logo.png") center / min(64vmin, 540px) no-repeat;
  opacity: 0.055;
}

.screen--dialog {
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vh, 90px) clamp(18px, 6vw, 84px);
}

.term-bar {
  position: absolute;
  top: clamp(22px, 4vh, 36px);
  left: clamp(18px, 6vw, 84px);
  right: clamp(18px, 6vw, 84px);
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(127, 169, 255, 0.08);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--dim-2);
}
.term-bar span:last-child { color: var(--dim); }

.term-foot {
  position: absolute;
  bottom: clamp(18px, 3vh, 26px);
  margin: 0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: var(--dim-2);
}

.dialog {
  position: relative;
  width: min(780px, 92vw);
  text-align: center;
  padding: clamp(24px, 3.4vh, 34px) clamp(22px, 3vw, 38px) clamp(22px, 3vh, 30px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.62), rgba(4, 7, 12, 0.88));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.dialog::before,
.dialog::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(127, 169, 255, 0.5);
}
.dialog::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.dialog::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.dl-kicker {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: var(--dim);
}

.hl {
  color: var(--red);
  text-shadow: 0 0 22px rgba(255, 59, 48, 0.35);
}

.dl-line {
  display: block;
  opacity: 0;
  animation: lineIn 0.85s var(--ease-out) both;
}
@keyframes lineIn {
  from { opacity: 0; transform: translateY(9px); filter: blur(2px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.dl-text {
  margin: 0;
  min-height: 2.2em;
  font-size: clamp(19px, 2.5vw, 27px);
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: var(--ice);
  text-wrap: balance;
}
.dl-text.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  margin-left: 0.12em;
  vertical-align: -0.16em;
  background: var(--blue-hi);
  animation: caret 0.9s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.dl-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  min-height: 46px;
}

.choice {
  position: relative;
  padding: 13px 30px;
  border: 1px solid var(--line);
  background: rgba(47, 107, 255, 0.04);
  color: var(--ice);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: choiceIn 0.5s var(--ease-out) both;
}
.choice::before {
  content: attr(data-i);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim-2);
  margin-right: 10px;
  letter-spacing: 0;
}
.choice:hover {
  border-color: var(--line-2);
  background: rgba(47, 107, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 34px -18px rgba(47, 107, 255, 0.9);
}
.choice:active { transform: translateY(0) scale(0.985); }

.choice.is-danger {
  border-color: rgba(255, 59, 48, 0.6);
  color: var(--red);
  background: rgba(255, 59, 48, 0.07);
  box-shadow: 0 0 30px -10px rgba(255, 59, 48, 0.7);
}
.choice.is-danger::before { color: rgba(255, 59, 48, 0.6); }
.choice.is-danger:hover { background: rgba(255, 59, 48, 0.14); }

.choice.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  pointer-events: none;
}

@keyframes choiceIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* 抖动（点不动的按钮） */
.shake { animation: shake 0.34s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake {
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.dialog.is-out .dl-text,
.dialog.is-out .dl-choices { opacity: 0; transition: opacity 0.32s var(--ease); }

/* ============================================================
   3. 血液
   ============================================================ */

.screen--blood { display: block; }

/* 黑暗中的“液面” */
.screen--blood::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 169, 255, 0.22), transparent);
  box-shadow: 0 0 40px 6px rgba(47, 107, 255, 0.10);
  pointer-events: none;
}

.blood-head.is-dim { opacity: 0; }

.blood-head {
  position: absolute;
  top: clamp(56px, 12vh, 110px);
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}

.blood-prompt {
  margin: 0;
  font-size: clamp(22px, 2.9vw, 30px);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--ice);
}
.blood-hint {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--dim);
  opacity: 0.9;
}

.blood-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }

.scan {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(360px, 78vw);
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease);
}
.scan.is-on { opacity: 1; visibility: visible; }

.scan-title {
  margin: 0 0 22px;
  font-size: 15px;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  color: var(--blue-hi);
}
.scan-bar {
  height: 2px;
  background: rgba(127, 169, 255, 0.14);
  overflow: hidden;
}
.scan-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-hi));
  box-shadow: 0 0 18px rgba(47, 107, 255, 0.9);
}
.scan-meta {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

/* ============================================================
   4/5. 认证（身份登记 / 特工认证）
   ============================================================ */

.screen--auth { display: block; padding: 0; }

.auth {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2.6vh, 28px) clamp(18px, 3.2vw, 44px) clamp(12px, 1.8vh, 18px);
  overflow: hidden;
}

/* ---- 上下 HUD 条 ---- */
.auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding-bottom: clamp(10px, 1.8vh, 18px);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
}
.auth-bar p { margin: 0; display: flex; align-items: center; }
.auth-bar i { font-style: normal; color: var(--dim-2); margin: 0 8px; }
.auth-bar__c { color: var(--dim-2); }
.auth-bar__r { gap: 10px; }
.diamond {
  width: 6px;
  height: 6px;
  margin-right: 9px;
  background: var(--blue-hi);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--blue-hi);
}
.chip-enc {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--blue-hi);
  letter-spacing: 0.12em;
}
.js-clock { color: #9fb6d8; font-variant-numeric: tabular-nums; }

.auth-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: clamp(10px, 1.6vh, 14px);
  border-top: 1px solid rgba(127, 169, 255, 0.07);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--dim-2);
  text-transform: uppercase;
}

/* ---- 主体两栏 ---- */
.auth-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(336px, 404px);
  justify-content: center;
  gap: clamp(22px, 2.6vw, 46px);
  align-items: center;
}

/* ---- 左：品牌区 ---- */
.auth-hero {
  position: relative;
  padding-right: clamp(12px, 1.6vw, 26px);
  min-width: 0;
}
.auth-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: min(72%, 520px);
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(
    180deg,
    var(--line-2) 0 3px,
    transparent 3px 10px
  );
  opacity: 0.75;
}

.hero-kick {
  margin: 0 0 clamp(10px, 2vh, 22px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--dim);
}

.hero-mark {
  margin: 0;
  font-family: inherit;
  font-size: clamp(76px, 14vw, 186px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.05em;
  background: linear-gradient(158deg, #eaf2ff 0%, #b6cdff 34%, #6f9ff0 72%, #4777dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 46px rgba(80, 140, 255, 0.32));
}

.hero-name {
  margin: clamp(8px, 1.8vh, 18px) 0 0;
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 400;
  letter-spacing: 0.26em;
  color: #c6d8f7;
}

.hero-desc {
  margin: clamp(10px, 2vh, 18px) 0 0;
  font-size: 12.5px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.hero-stats {
  display: flex;
  gap: clamp(20px, 3.4vw, 48px);
  margin: clamp(14px, 2.6vh, 28px) 0 0;
}
.hero-stats dt {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--dim-2);
  margin-bottom: 5px;
}
.hero-stats dd {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #bfd2ef;
}

.hero-dev {
  margin: 10px 0 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim-2);
}
.hero-dev span { margin-right: 10px; color: var(--dim-2); }

.hero-signal {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: clamp(12px, 2.2vh, 24px);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--dim-2);
}
.sig-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.sig-bars i {
  width: 6px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--blue-hi), var(--blue));
  opacity: 0.72;
  animation: sigPulse 2.6s var(--ease) infinite;
}
.sig-bars i:nth-child(1) { height: 5px; animation-delay: 0s; }
.sig-bars i:nth-child(2) { height: 8px; animation-delay: 0.08s; }
.sig-bars i:nth-child(3) { height: 6px; animation-delay: 0.16s; }
.sig-bars i:nth-child(4) { height: 11px; animation-delay: 0.24s; }
.sig-bars i:nth-child(5) { height: 9px; animation-delay: 0.32s; }
.sig-bars i:nth-child(6) { height: 13px; animation-delay: 0.4s; }
.sig-bars i:nth-child(7) { height: 11px; animation-delay: 0.48s; }
.sig-bars i:nth-child(8) { height: 15px; animation-delay: 0.56s; }
.sig-bars i:nth-child(9) { height: 12px; animation-delay: 0.64s; }
.sig-bars i:nth-child(10) { height: 16px; animation-delay: 0.72s; }
.sig-bars i:nth-child(11) { height: 14px; animation-delay: 0.8s; }
.sig-bars i:nth-child(12) { height: 16px; animation-delay: 0.88s; }
.sig-bars i:nth-child(13) { height: 15px; animation-delay: 0.96s; }
.sig-bars i:nth-child(14) { height: 16px; animation-delay: 1.04s; }
.sig-val { margin-left: 2px; color: var(--blue-hi); }

@keyframes sigPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

/* ---- 右：认证卡 ---- */
.auth-card {
  position: relative;
  width: 100%;
  max-width: 404px;
  justify-self: end;
  padding: clamp(20px, 3vh, 28px) clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 20, 36, 0.94), rgba(6, 11, 21, 0.97));
  box-shadow: 0 48px 90px -50px #000, inset 0 1px 0 rgba(160, 195, 255, 0.07);
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-hi), transparent);
  opacity: 0.65;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-kicker {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--dim);
}
.card-chip {
  flex: none;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.card-title {
  margin: 12px 0 6px;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ice);
}
.card-sub {
  margin: 0 0 clamp(14px, 2.4vh, 20px);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--dim);
}

.auth-card .fld {
  display: block;
  position: relative;
  margin-bottom: 11px;
}
.fld__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #a8bcd8;
}
.fld__label em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--dim-2);
}

.auth-card .fld input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: #08111f;
  border: 1px solid #16263e;
  border-radius: 7px;
  outline: none;
  font-size: 13px;
  color: #dbe7ff;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.auth-card .fld input::placeholder { color: #3f4f68; }
.auth-card .fld input:focus {
  background: #0a1526;
  border-color: rgba(127, 169, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.fld-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fld-row--3 { grid-template-columns: repeat(3, 1fr); }
.fld-row--3 .fld__label em { display: none; }
.fld-row--3 .fld--unit .unit { right: 8px; }

/* 性别切换 */
.seg {
  display: flex;
  gap: 4px;
  height: 38px;
  padding: 3px;
  background: #08111f;
  border: 1px solid #16263e;
  border-radius: 7px;
}
.seg__btn {
  flex: 1;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #7f93b3;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.seg__btn:hover { color: #c6d8f7; background: rgba(127, 169, 255, 0.08); }
.seg__btn.is-on {
  color: #fff;
  background: linear-gradient(180deg, #3f7cf0, #1f52c4);
  box-shadow: 0 6px 16px -8px rgba(60, 110, 240, 0.9);
}

/* 代号：SNK 前缀 */
.fld--code .code-wrap {
  display: flex;
  align-items: center;
  height: 38px;
  border: 1px solid #16263e;
  border-radius: 7px;
  background: #08111f;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.fld--code .code-wrap:focus-within {
  border-color: rgba(127, 169, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}
.code-pre {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0 9px;
  border-right: 1px solid #16263e;
  background: rgba(47, 107, 255, 0.14);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #8fb0e8;
}
.auth-card .fld--code input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--mono);
  letter-spacing: 0.14em;
}
.auth-card .fld--code input:focus { box-shadow: none; background: transparent; }

/* 单位 */
.fld--unit input { padding-right: 36px; }
.fld--unit .unit {
  position: absolute;
  right: 11px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--dim-2);
  pointer-events: none;
}

/* 部门下拉 */
.fld--select { position: relative; }
.select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 11px 0 12px;
  border: 1px solid #16263e;
  border-radius: 7px;
  background: #08111f;
  font-size: 13px;
  text-align: left;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.select:hover { border-color: rgba(127, 169, 255, 0.34); }
.select[aria-expanded="true"] {
  border-color: rgba(127, 169, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}
.select__val { color: #dbe7ff; }
.select__val.is-empty { color: #3f4f68; }
.select__chev {
  width: 11px;
  height: 8px;
  flex: none;
  color: #6f88ad;
  transition: transform 0.25s var(--ease);
}
.select[aria-expanded="true"] .select__chev { transform: rotate(180deg); }

.select__list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #1d3352;
  border-radius: 10px;
  background: #0a1526;
  box-shadow: 0 26px 50px -22px #000;
  max-height: 244px;
  overflow: auto;
}
.select__list li {
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: #b9cbe6;
  cursor: pointer;
}
.select__list li:hover,
.select__list li.is-sel {
  background: rgba(60, 120, 255, 0.16);
  color: #eaf2ff;
}

/* 主按钮 */
.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  margin-top: clamp(6px, 1.4vh, 12px);
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #4f8bff 0%, #2f6bff 55%, #1c4fd0 100%);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  box-shadow: 0 16px 34px -18px rgba(47, 107, 255, 1);
  transition: transform 0.2s var(--ease), filter 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-auth:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 20px 38px -16px rgba(47, 107, 255, 1);
}
.btn-auth:active { transform: translateY(0) scale(0.995); }
.btn-auth__arrow {
  font-family: var(--mono);
  text-indent: 0;
  transition: transform 0.25s var(--ease);
}
.btn-auth:hover .btn-auth__arrow { transform: translateX(4px); }

.card-foot {
  margin: 10px 0 0;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--dim-2);
  text-align: center;
}

.form-note {
  min-height: 15px;
  margin: 7px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.form-note.is-on { opacity: 1; }
.form-note.is-ok { color: var(--blue-hi); }


/* ============================================================
   6. 控制台
   ============================================================ */

.screen--console {
  display: grid;
  grid-template-columns: 236px 1fr;
  background: var(--void);
}

.side {
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 15, 26, 0.9), rgba(4, 7, 12, 0.9));
}

.side-brand { display: flex; align-items: center; gap: 12px; }
.side-brand img { width: 34px; height: auto; filter: drop-shadow(0 0 12px rgba(47, 107, 255, 0.4)); }
.side-brand span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.44em;
  color: var(--blue-hi);
}

.side-nav { margin-top: 40px; display: flex; flex-direction: column; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(127, 169, 255, 0.07);
  background: none;
  color: var(--dim);
  font-size: 13.5px;
  letter-spacing: 0.2em;
  text-align: left;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.nav-item i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0;
  color: var(--dim-2);
}
.nav-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--blue);
  transform: translateY(-50%);
  transition: height 0.3s var(--ease);
}
.nav-item:hover { color: var(--ice); }
.nav-item.is-active { color: var(--ice); padding-left: 4px; }
.nav-item.is-active::before { height: 22px; }
.nav-item.is-active i { color: var(--blue-hi); }

.side-foot {
  margin: auto 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--dim-2);
}

.room { padding: clamp(28px, 4.6vw, 56px); overflow: auto; }

.room-head { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.room-head h1 {
  margin: 0;
  font-size: clamp(21px, 2.9vw, 30px);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ice);
}
.room-meta {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4de1a0;
  box-shadow: 0 0 10px #4de1a0;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

.room-kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--dim);
}

.ask {
  color: var(--ice);
  position: relative;
  margin-left: 0.06em;
}
.ask::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, rgba(127, 169, 255, 0.55), transparent);
}
.view { display: none; padding-top: 28px; }
.view.is-active { display: block; animation: viewIn 0.45s var(--ease-out) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.view-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.view-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ice);
}
.view-head p {
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.view-head b { color: var(--blue-hi); font-weight: 500; }

.list { list-style: none; margin: 24px 0 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(127, 169, 255, 0.08);
  transition: background 0.3s var(--ease);
}
.row:hover { background: rgba(47, 107, 255, 0.05); }
.row-id { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--blue-hi); }
.row-name { font-size: 14px; letter-spacing: 0.06em; color: var(--ice); }
.row-name em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.row-state {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--dim);
  border: 1px solid rgba(127, 169, 255, 0.16);
  padding: 5px 10px;
}

.search { display: flex; gap: 10px; margin-top: 24px; }
.search input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  background: rgba(127, 169, 255, 0.045);
  border: 1px solid rgba(127, 169, 255, 0.14);
  border-radius: 2px;
  outline: none;
  font-size: 13px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.search input:focus { border-color: rgba(127, 169, 255, 0.5); background: rgba(47, 107, 255, 0.08); }
.search button {
  width: 108px;
  border: 1px solid rgba(127, 169, 255, 0.4);
  background: rgba(47, 107, 255, 0.16);
  color: var(--ice);
  font-size: 12px;
  letter-spacing: 0.24em;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.search button:hover { background: rgba(47, 107, 255, 0.28); border-color: var(--blue-hi); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.stat {
  padding: 18px 18px 16px;
  border: 1px solid rgba(127, 169, 255, 0.1);
  background: rgba(47, 107, 255, 0.035);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.stat:hover { border-color: rgba(127, 169, 255, 0.26); background: rgba(47, 107, 255, 0.07); }
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--blue-hi);
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.log { list-style: none; margin: 26px 0 0; padding: 0; }
.log li {
  display: flex;
  gap: 16px;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(127, 169, 255, 0.06);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.log i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim-2);
}

.view-note {
  margin: 26px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--dim-2);
}

/* ============================================================
   蓝屏
   ============================================================ */

.bsod {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 8vw;
  background: #0b1f8f;
  color: #eaf0ff;
  font-family: var(--zh);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s linear;
}
.bsod.is-on { opacity: 1; visibility: visible; }

.bsod::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.bsod-inner { max-width: 720px; width: 100%; position: relative; z-index: 2; }
.bsod-face { margin: 0; font-size: clamp(48px, 8vw, 76px); font-weight: 300; letter-spacing: 0.02em; }
.bsod-text { margin: 26px 0 0; font-size: clamp(17px, 2.4vw, 24px); letter-spacing: 0.04em; }
.bsod-sub { margin: 14px 0 0; font-size: 12.5px; color: rgba(234, 240, 255, 0.72); letter-spacing: 0.05em; }

.bsod-bar { margin-top: 30px; width: min(260px, 60%); height: 4px; background: rgba(255,255,255,0.22); overflow: hidden; }
.bsod-bar i { display: block; width: 36%; height: 100%; background: #eaf0ff; animation: bsodBar 2.6s var(--ease) infinite; }
@keyframes bsodBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }

.bsod-code {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: rgba(234, 240, 255, 0.55);
}

.bsod-lock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(30px, 6vw, 58px);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: #fff;
  opacity: 0;
  z-index: 3;
  text-shadow: 2px 0 rgba(255, 60, 60, 0.8), -2px 0 rgba(60, 200, 255, 0.8);
  pointer-events: none;
}
.bsod.is-locked .bsod-inner { opacity: 0; transition: opacity 0.4s linear; }
.bsod.is-locked .bsod-lock { opacity: 1; animation: glitch 2.8s steps(2) infinite; }
@keyframes glitch {
  0%, 92%, 100% { transform: translate(-50%, -50%); text-shadow: 2px 0 rgba(255,60,60,.8), -2px 0 rgba(60,200,255,.8); }
  93% { transform: translate(calc(-50% + 3px), -50%); }
  95% { transform: translate(calc(-50% - 4px), -50%); }
  97% { transform: translate(-50%, calc(-50% + 2px)); }
}

/* 锁定后 2 秒闪一下，然后浮出「您的位置」 */
.bsod.is-flash { animation: bsodFlash 0.55s steps(2, end) 1; }

@keyframes bsodFlash {
  0%   { background: #0b1f8f; filter: none; }
  20%  { background: #ffffff; filter: brightness(2.4); }
  35%  { background: #0b1f8f; }
  50%  { background: #ff2b2b; filter: brightness(1.6); }
  65%  { background: #0b1f8f; }
  80%  { background: #eaf0ff; filter: brightness(2); }
  100% { background: #0b1f8f; filter: none; }
}

.lock-red {
  color: #ff5a4a;
  text-shadow: 0 0 20px rgba(255, 90, 74, 0.95), 0 0 46px rgba(255, 60, 40, 0.5);
}

.bsod-track {
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(58px, 9vw, 96px));
  transform: translate(-50%, 0);
  margin: 0;
  padding: 6px 20px;
  font-family: var(--mono);
  font-size: clamp(18px, 2.6vw, 26px);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: #ff5a4a;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  text-shadow: 0 0 16px rgba(255, 110, 90, 1), 0 0 40px rgba(255, 70, 50, 0.6);
}

.bsod-coord {
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(104px, 15vw, 156px));
  transform: translate(-50%, 0);
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(10px, 1.5vw, 13px);
  letter-spacing: 0.18em;
  color: rgba(150, 190, 255, 0.55);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(120, 170, 255, 0.5);
  transition: color 0.4s var(--ease), opacity 0.3s linear;
}
.bsod.is-tracked .bsod-coord { opacity: 1; }
.bsod-coord.is-locked {
  color: rgba(200, 220, 255, 0.95);
  text-shadow: 0 0 16px rgba(140, 180, 255, 0.9);
}
.bsod-coord.is-locked::after {
  content: " ▌";
  animation: caretBlink 0.9s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.bsod.is-tracked .bsod-track {
  animation: trackIn 0.5s ease-out both, trackPulse 2.2s ease-in-out 0.6s infinite;
}
@keyframes trackIn {
  from { opacity: 0; letter-spacing: 0.9em; }
  to   { opacity: 1; letter-spacing: 0.34em; }
}
@keyframes trackPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.72; }
}

.bsod-reset {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.32);
  opacity: 0;
  z-index: 4;
  transition: opacity 1s linear, color 0.3s;
}
.bsod.is-locked .bsod-reset { opacity: 1; transition-delay: 5s; }
.bsod-reset:hover { color: #fff; }

/* ============================================================
   响应式
   ============================================================ */


/* ============================================================
   4.5 认证屏背景：科幻机能风（深蓝 + 荧光微动效）
   仅用 transform / opacity 参与动画，避免大面积 filter 造成合成开销
   ============================================================ */

.screen--auth {
  background:
    radial-gradient(120% 85% at 50% -18%, rgba(52, 104, 214, 0.20), transparent 62%),
    radial-gradient(70% 55% at 104% 44%, rgba(30, 140, 230, 0.13), transparent 66%),
    radial-gradient(62% 52% at -4% 104%, rgba(40, 92, 190, 0.12), transparent 70%),
    linear-gradient(180deg, #04070c 0%, #050a14 38%, #060d1a 68%, #04070c 100%);
}

.auth-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.auth-bar,
.auth-main,
.auth-foot { position: relative; z-index: 2; }

/* ---------- 网格 ---------- */
.auth-deco__grid {
  position: absolute;
  inset: -14% -14% 0;
  background-image:
    linear-gradient(rgba(124, 172, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 172, 255, 0.05) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(72% 64% at 50% 46%, #000 16%, transparent 82%);
          mask-image: radial-gradient(72% 64% at 50% 46%, #000 16%, transparent 82%);
  animation: decoGrid 30s linear infinite;
}
@keyframes decoGrid {
  to { transform: translate3d(0, 74px, 0); }
}

/* ---------- 冷光晕团 ---------- */
.auth-deco__blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
  background: radial-gradient(circle, rgba(72, 152, 255, 0.18), rgba(30, 80, 180, 0.07) 46%, transparent 70%);
}
.auth-deco__blob--a {
  left: -16vmax;
  top: -18vmax;
  animation: blobA 26s ease-in-out infinite;
}
.auth-deco__blob--b {
  right: -20vmax;
  bottom: -24vmax;
  animation: blobB 34s ease-in-out infinite;
}
@keyframes blobA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(5vmax, 3vmax, 0) scale(1.1); }
}
@keyframes blobB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.04); }
  50%      { transform: translate3d(-6vmax, -4vmax, 0) scale(0.94); }
}

/* ---------- 竖向扫描光带 ---------- */
.auth-deco__scan {
  position: absolute;
  left: -4%;
  right: -4%;
  top: 0;
  height: 26vh;
  background: linear-gradient(180deg,
    transparent,
    rgba(110, 190, 255, 0.05) 55%,
    rgba(150, 215, 255, 0.12) 90%,
    transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 74%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 16%, #000 74%, transparent);
  animation: decoScan 13s linear infinite;
}
@keyframes decoScan {
  0%   { transform: translate3d(0, -30vh, 0); opacity: 0; }
  10%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translate3d(0, 112vh, 0); opacity: 0; }
}

/* ---------- 荧光小点 ---------- */
.auth-deco__dots { position: absolute; inset: 0; }
.auth-deco__dots i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a6ecff;
  box-shadow: 0 0 8px 2px rgba(110, 220, 255, 0.7);
  opacity: 0;
  animation: twinkle 6.5s ease-in-out infinite;
}
.auth-deco__dots i:nth-child(1)  { left: 7%;  top: 22%; animation-delay: 0s;    }
.auth-deco__dots i:nth-child(2)  { left: 16%; top: 63%; animation-delay: 1.1s;  }
.auth-deco__dots i:nth-child(3)  { left: 24%; top: 34%; animation-delay: 2.4s;  }
.auth-deco__dots i:nth-child(4)  { left: 33%; top: 78%; animation-delay: 3.6s;  }
.auth-deco__dots i:nth-child(5)  { left: 41%; top: 15%; animation-delay: 0.6s;  }
.auth-deco__dots i:nth-child(6)  { left: 48%; top: 56%; animation-delay: 4.3s;  }
.auth-deco__dots i:nth-child(7)  { left: 57%; top: 88%; animation-delay: 2.9s;  }
.auth-deco__dots i:nth-child(8)  { left: 63%; top: 29%; animation-delay: 5.1s;  }
.auth-deco__dots i:nth-child(9)  { left: 71%; top: 68%; animation-delay: 1.8s;  }
.auth-deco__dots i:nth-child(10) { left: 79%; top: 42%; animation-delay: 3.2s;  }
.auth-deco__dots i:nth-child(11) { left: 87%; top: 76%; animation-delay: 0.3s;  }
.auth-deco__dots i:nth-child(12) { left: 94%; top: 25%; animation-delay: 4.8s;  }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  42%      { opacity: 0.95; transform: scale(1); }
  62%      { opacity: 0.3; transform: scale(0.85); }
}

/* ---------- 右侧刻度条 ---------- */
.auth-deco__ticks {
  position: absolute;
  right: clamp(6px, 1vw, 14px);
  top: 18%;
  bottom: 18%;
  width: 10px;
  background-image: linear-gradient(180deg, rgba(140, 190, 255, 0.6) 1px, transparent 1px);
  background-size: 100% 9px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  opacity: 0.2;
  animation: ticksPulse 6s ease-in-out infinite;
}
@keyframes ticksPulse {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.3; }
}

/* ---------- 四角括号 ---------- */
.auth-deco__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(127, 169, 255, 0.42);
}
.auth-deco__corner--tl { left: 18px; top: 18px; border-right: 0; border-bottom: 0; }
.auth-deco__corner--tr { right: 18px; top: 18px; border-left: 0; border-bottom: 0; }
.auth-deco__corner--bl { left: 18px; bottom: 18px; border-right: 0; border-top: 0; }
.auth-deco__corner--br { right: 18px; bottom: 18px; border-left: 0; border-top: 0; }

/* ---------- 卡片呼吸光 + 按钮荧光扫过 ---------- */
.auth-card {
  animation: cardBreath 8s ease-in-out infinite;
}
@keyframes cardBreath {
  0%, 100% {
    box-shadow:
      0 48px 90px -50px #000,
      inset 0 1px 0 rgba(160, 195, 255, 0.07),
      0 0 0 rgba(58, 132, 255, 0);
  }
  50% {
    box-shadow:
      0 48px 90px -50px #000,
      inset 0 1px 0 rgba(160, 195, 255, 0.14),
      0 0 46px rgba(58, 132, 255, 0.22);
  }
}

.btn-auth { position: relative; overflow: hidden; }
.btn-auth::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 62%);
  transform: translate3d(-130%, 0, 0);
  animation: btnSheen 6.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes btnSheen {
  0%, 58%   { transform: translate3d(-130%, 0, 0); }
  84%, 100% { transform: translate3d(130%, 0, 0); }
}

/* 卡片顶沿流动的荧光线段 */
.auth-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a8ecff 45%, #d9f7ff 55%, transparent);
  box-shadow: 0 0 12px rgba(140, 226, 255, 0.85);
  pointer-events: none;
  animation: edgeRun 7.5s linear infinite;
}
@keyframes edgeRun {
  0%   { transform: translate3d(-100%, 0, 0); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translate3d(430%, 0, 0); opacity: 0; }
}

/* ---------- 小屏 / 无障碍 ---------- */
@media (max-width: 860px) {
  .auth-deco__blob { width: 62vmax; height: 62vmax; }
  .auth-deco__ticks { display: none; }
  .auth-deco__corner { width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-deco,
  .auth-deco *,
  .auth-card,
  .btn-auth::after { animation: none !important; }
}

@media (max-width: 860px) {
  .auth { padding: 14px 16px 10px; overflow-y: auto; }
  .auth-bar { font-size: 7.5px; letter-spacing: 0.14em; }
  .auth-bar p.auth-bar__c { display: none; }
  .auth-main {
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
    gap: 20px;
    padding: 2vh 0;
  }
  .auth-hero { padding-right: 0; }
  .auth-hero::after { display: none; }
  .hero-kick { margin-bottom: 10px; }
  .hero-mark { font-size: clamp(52px, 17vw, 92px); }
  .hero-name { margin-top: 10px; letter-spacing: 0.2em; }
  .hero-desc { display: none; }
  .hero-signal { display: none; }
  .hero-stats { margin-top: 14px; gap: 26px; }
  .auth-card { justify-self: stretch; max-width: none; }
  .auth-foot { font-size: 7px; letter-spacing: 0.12em; }
  .screen--console { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side-brand img { width: 26px; }
  .side-nav { margin-top: 0; flex-direction: row; flex: 1; gap: 8px; }
  .nav-item { border-bottom: 0; padding: 8px 6px; }
  .nav-item::before { left: 50%; top: auto; bottom: -1px; width: 0; height: 2px; transform: translateX(-50%); }
  .nav-item.is-active { padding-left: 6px; }
  .nav-item.is-active::before { width: 18px; height: 2px; }
  .side-foot { display: none; }
  .room { padding: 24px 18px 40px; }
  .row { grid-template-columns: 76px 1fr; row-gap: 8px; }
  .row-state { grid-column: 2; justify-self: start; }
}

@media (max-width: 560px) {
  .logo-stage { width: min(76vmin, 400px); }
  .dl-choices { gap: 10px; margin-top: 30px; }
  .choice { padding: 11px 20px; font-size: 12.5px; }
  .hud-corners { inset: 10px; }
}

/* 减少动态 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rotator { animation: none; }
}

/* ============================================================
   控制台：聊天占位（仅视觉，暂不开放）
   ============================================================ */

.nav-item--locked {
  color: var(--dim-2);
  cursor: not-allowed;
}
.nav-item--locked:hover { color: var(--dim-2); }
.nav-item--locked::before { display: none; }
.nav-item--locked i { color: var(--dim-2); opacity: 0.7; }

.nav-tag {
  margin-left: auto;
  padding: 1px 5px;
  border: 1px solid rgba(127, 169, 255, 0.14);
  border-radius: 3px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--dim-2);
}

.chat-dock {
  position: absolute;
  right: clamp(16px, 2vw, 30px);
  bottom: clamp(16px, 2.4vh, 28px);
  width: 278px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.86), rgba(5, 9, 16, 0.92));
  box-shadow: 0 26px 54px -32px #000, inset 0 1px 0 rgba(160, 195, 255, 0.06);
  pointer-events: none;
  user-select: none;
  z-index: 3;
}
.chat-dock__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--blue-hi);
}
.chat-dock__head em {
  font-style: normal;
  letter-spacing: 0.1em;
  font-size: 8px;
  color: var(--dim-2);
  border: 1px solid rgba(127, 169, 255, 0.14);
  border-radius: 3px;
  padding: 1px 5px;
}
.chat-dock__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim-2);
  box-shadow: 0 0 0 2px rgba(127, 169, 255, 0.1);
}
.chat-dock__body {
  margin: 10px 0 12px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.chat-dock__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 10px;
  border: 1px dashed rgba(127, 169, 255, 0.16);
  border-radius: 7px;
}
.chat-dock__input span {
  flex: 1;
  font-size: 12px;
  color: var(--dim-2);
  letter-spacing: 0.04em;
}
.chat-dock__input button {
  padding: 5px 11px;
  border: 0;
  border-radius: 5px;
  background: rgba(127, 169, 255, 0.1);
  color: var(--dim-2);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* 窄屏 / 矮屏不显示，避免压住内容 */
@media (max-width: 860px) {
  .chat-dock { display: none; }
  .nav-item--locked { padding: 11px 0; }
}
@media (max-height: 640px) {
  .chat-dock { display: none; }
}
