/* ============================================================
   玩家自助服务终端 · 玻璃拟态霓虹 UI v3
   设计语言：深空暗底 + 毛玻璃卡片 + 霓虹描边光晕流动
   - 与 admin.css 共用同一套调色板，前后台视觉统一
   - 旧令牌名（--gold / --steel / --gold-dim）全部保留并指向新霓虹色，
     全站 190+ 处 var() 引用零改动即完成换肤
   ============================================================ */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ---------- 基础层 ---------- */
  --bg:        #05070F;
  --bg-2:      #0A0D19;
  --bg-3:      #111528;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.17);
  --txt:       #EAF1FF;
  --sub:       #94A3C2;
  --dim:       #5A6684;

  /* ---------- 霓虹主色 ---------- */
  --neon:      #38E1FF;
  --neon-2:    #B06CFF;
  --neon-dim:  rgba(56,225,255,.13);
  --neon-glow: 0 0 22px rgba(56,225,255,.30);

  /* ---------- 兼容别名：旧令牌名 → 新霓虹色 ---------- */
  --gold:      var(--neon);
  --gold-2:    #8CEBFF;
  --gold-dim:  var(--neon-dim);
  --steel:     #7FA8E8;
  --danger:    #FF5C7A;
  --ok:        #35DCA0;

  /* ---------- 玻璃拟态 ---------- */
  --glass:      linear-gradient(150deg, rgba(255,255,255,.075), rgba(255,255,255,.018));
  --glass-2:    linear-gradient(150deg, rgba(255,255,255,.042), rgba(255,255,255,.010));
  --glass-line: rgba(255,255,255,.13);
  --blur:       16px;
  --r-glass:    16px;

  --sans: "PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono: ui-monospace,"SF Mono","Cascadia Code",Consolas,"Courier New",monospace;
}

html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(1100px 620px at 10% -10%, rgba(56,225,255,.10), transparent 62%),
    radial-gradient(880px 540px at 100% 0%, rgba(176,108,255,.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--txt);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }

/* ============================================================
   顶栏
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 60px;
  display: flex; align-items: center; gap: 20px;
  padding: 0 28px;
  background: rgba(10,11,13,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 0; }
.mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700; font-size: 17px;
  border-radius: 2px;
}
.brand .bt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand .bt b {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand .bt i {
  font-style: normal; font-family: var(--mono);
  font-size: 9.5px; letter-spacing: .2em; color: var(--dim);
  white-space: nowrap;
}
.topbar .sp { flex: 1; }
.bstat {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--sub); white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); display: inline-block; flex: none; }
.dot.live { background: var(--ok); animation: dotpulse 2.4s infinite; }
@keyframes dotpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(99,184,127,.35);} 50% { box-shadow: 0 0 0 4px rgba(99,184,127,0);} }
.back-link {
  font-size: 13px; color: var(--sub); white-space: nowrap;
  border-left: 1px solid var(--line); padding-left: 20px;
}
.back-link:hover { color: var(--txt); }
.admin-entry {
  font-size: 13px; color: var(--sub); white-space: nowrap;
  background: none; border: 1px solid var(--line-2);
  padding: 8px 16px; border-radius: 2px;
  transition: color .15s, border-color .15s;
}
.admin-entry:hover { color: var(--gold-2); border-color: var(--gold); }

/* ============================================================
   布局骨架
   ============================================================ */
.shell { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 76px 28px 44px; }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.kicker > span:first-child { width: 28px; height: 1px; background: var(--gold); flex: none; }
.hero h1 {
  font-size: clamp(36px, 5.6vw, 62px);
  font-weight: 800; line-height: 1.1; letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero h1 .h1-sub {
  display: block; margin-top: 12px;
  font-size: .42em; font-weight: 600; letter-spacing: .14em;
  color: var(--txt);
}
.desc { margin-top: 18px; max-width: 660px; color: var(--sub); font-size: 15.5px; }

/* 步骤条：横向发丝线分格 */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 42px; border: 1px solid var(--line);
  background: var(--bg-2);
}
.steps li {
  padding: 16px 22px;
  display: flex; align-items: center; gap: 14px;
  border-left: 1px solid var(--line);
}
.steps li:first-child { border-left: 0; }
.steps .n { font-family: var(--mono); font-size: 12.5px; color: var(--gold); letter-spacing: .12em; flex: none; }
.steps .t { font-size: 14px; }

/* 服务器状态板（单服页 hero 内） */
.status-board {
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1.2fr;
}
.sb-item {
  padding: 15px 20px;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 7px;
  min-width: 0;
}
.sb-item:first-child { border-left: 0; }
.sl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .18em; color: var(--dim); text-transform: uppercase;
}
.sv { font-size: 14px; display: flex; align-items: center; gap: 8px; min-width: 0; word-break: break-all; }
.sv b { font-weight: 600; }
.sv.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }

/* ============================================================
   章节标题（编号 + 发丝线）
   ============================================================ */
.list-sec { padding-top: 8px; padding-bottom: 96px; }
.sec-head { display: flex; align-items: center; gap: 16px; margin: 12px 0 26px; }
.sec-head .idx {
  font-family: var(--mono); font-size: 13px; color: var(--gold);
  border: 1px solid var(--gold);
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center; border-radius: 2px;
}
.sec-head h2 { font-size: 20px; font-weight: 700; white-space: nowrap; }
.sec-head .rule { flex: 1; height: 1px; background: var(--line); }
.sec-head .cnt {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .14em; color: var(--dim); white-space: nowrap;
}
.sec-head .cnt b { color: var(--gold); font-weight: 600; }

/* ============================================================
   服务器档案卡（选服中心）
   ============================================================ */
.stock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stock-card {
  position: relative;
  display: flex; flex-direction: column;
  text-align: left; font: inherit; color: var(--txt);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0; overflow: hidden;
  transition: border-color .18s, transform .18s;
}
.stock-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.stock-card.current { border-color: rgba(226,178,60,.55); }
.stock-card.current::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--gold);
}
.stock-card.off { opacity: .38; pointer-events: none; filter: grayscale(.6); }

.ct {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
}
.code { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.tag {
  font-size: 11px; padding: 3px 9px;
  border: 1px solid var(--line-2); color: var(--sub);
  border-radius: 2px; letter-spacing: .04em; white-space: nowrap;
}
.stock-card.current .tag { border-color: var(--gold); color: var(--gold-2); }

.cb { padding: 18px 18px 12px; flex: 1; }
.cb .name { font-size: 19px; font-weight: 700; line-height: 1.35; }
.cb .type { margin-top: 5px; font-size: 13px; color: var(--dim); }

/* 名称行：名称 + 有效期徽标（服务器长期有效，不显示关服倒计时） */
.name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.cd {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .04em; white-space: nowrap;
  color: var(--gold-2);
  border: 1px solid rgba(226,178,60,.45);
  background: var(--gold-dim);
  padding: 2px 9px; border-radius: 2px;
  font-variant-numeric: tabular-nums;
}
.cd::before {
  content: none;
}
.cd.urgent {
  color: #FF8A75;
  border-color: rgba(224,96,76,.6);
  background: rgba(224,96,76,.1);
  animation: cdblink 1.2s steps(2, start) infinite;
}
.cd.urgent::before { color: var(--danger); opacity: 1; }
@keyframes cdblink { 50% { border-color: rgba(224,96,76,.25); } }
.cd.dead {
  color: var(--dim);
  border-color: var(--line-2);
  background: transparent;
}
.cd.dead::before { content: '状态'; color: var(--dim); opacity: 1; }
.meta {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 7px;
}
.meta div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.meta span { color: var(--dim); letter-spacing: .06em; white-space: nowrap; }
.meta b { font-weight: 500; color: var(--sub); font-family: var(--mono); font-size: 12.5px; text-align: right; word-break: break-all; }

.cf {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.seat { display: flex; flex-direction: column; line-height: 1.1; }
.seat b { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--gold); letter-spacing: -.01em; }
.seat span { font-size: 10.5px; color: var(--dim); letter-spacing: .14em; margin-top: 4px; }
.go {
  font-size: 12.5px; color: var(--sub); letter-spacing: .06em;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.go i { font-style: normal; color: var(--gold); transition: transform .18s; }
.stock-card:hover .go i { transform: translateX(4px); }
.stock-card.off .go { color: var(--dim); }
.stock-card.off .go i { color: var(--dim); }

/* 服务器介绍 / 联系方式入口（卡片内，点击弹窗） */
.contact-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding: 10px 13px;
  border: 1px solid var(--line-2); border-radius: 3px;
  background: rgba(226,178,60,.05);
  font-size: 13px; font-weight: 600; color: var(--gold-2); letter-spacing: .06em;
  cursor: pointer; text-align: left; width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.contact-link:hover { border-color: var(--gold); background: rgba(226,178,60,.1); }
.contact-link i { font-style: normal; color: var(--gold); transition: transform .15s ease; }
.contact-link:hover i { transform: translateX(3px); }
.stock-card.off { pointer-events: auto; }
.stock-card.off .contact-link { opacity: 1; filter: none; position: relative; z-index: 1; }

/* 公告 */
.ann {
  margin-top: 44px;
  border: 1px solid var(--line); background: var(--bg-2);
  border-radius: 3px;
}
.ann-h {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.ann-h .idx {
  font-family: var(--mono); color: var(--gold);
  border: 1px solid var(--gold);
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center; font-size: 13px; border-radius: 2px;
}
.ann-h h3 { font-size: 15.5px; font-weight: 700; }
.ann p { padding: 16px 22px; color: var(--sub); font-size: 14px; max-width: 820px; line-height: 1.9; }

/* ============================================================
   Tabs（下划线式）
   ============================================================ */
.workspace { padding-bottom: 96px; }
.tabs {
  display: flex; gap: 34px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none; border: 0;
  color: var(--dim); font-size: 14.5px;
  padding: 15px 2px; position: relative;
  white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: 9px;
  transition: color .15s;
}
.tab i { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.tab:hover { color: var(--sub); }
.tab.active { color: var(--txt); font-weight: 600; }
.tab.active i { color: var(--gold); }
.tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--gold);
}

/* ============================================================
   面板
   ============================================================ */
.pane { padding-top: 38px; }
.pane-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.pidx { font-family: var(--mono); color: var(--gold); font-size: 14px; letter-spacing: .1em; flex: none; }
.pane-head h2 { font-size: 22px; font-weight: 700; white-space: nowrap; }
.pane-head .rule { flex: 1; height: 1px; background: var(--line); }
.pane-sub { color: var(--sub); font-size: 14px; margin-bottom: 28px; }

/* ============================================================
   表单
   ============================================================ */
.form-wrap { max-width: 560px; margin: 0 auto; }
.apply-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 320px;
  gap: 24px; align-items: start;
}
.apply-col { min-width: 0; }
.field { margin-bottom: 18px; }
.field > label {
  display: block;
  font-size: 12.5px; color: var(--sub); letter-spacing: .05em;
  margin-bottom: 8px;
  line-height: 1.65;
  overflow: visible;
  white-space: normal;
  word-break: normal;
}
.req { color: var(--gold); margin-right: 4px; }

/* 两列并排控件（如：验证码输入 + 发送按钮），手机端自动堆叠 */
.row2 { display: flex; gap: 10px; align-items: stretch; width: 100%; }
.row2 .input { flex: 1; min-width: 0; }
.row2 .btn { width: auto; flex: 0 0 auto; white-space: nowrap; height: 46px; min-height: 46px; padding: 10px 20px; }

.input, select.input, textarea.input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--txt);
  font-family: inherit; font-size: 15px;
  padding: 12px 14px; height: 46px;
  outline: none;
  transition: border-color .15s;
}
textarea.input { height: auto; min-height: 110px; resize: vertical; line-height: 1.7; }
.input:focus { border-color: var(--gold); }
.input::placeholder { color: var(--dim); }
select.input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239B9DA3' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-group label {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); border-radius: 2px;
  padding: 9px 16px; font-size: 13.5px; color: var(--sub); cursor: pointer;
}
.radio-group input { accent-color: var(--gold); }

/* 按钮：纯色块，无阴影 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: #04121B;
  border: 1px solid var(--gold);
  font-weight: 700; font-size: 14.5px; letter-spacing: .06em;
  padding: 13px 26px; min-height: 46px; border-radius: 2px;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.lg { width: 100%; min-height: 50px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--txt); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-2); background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.tip { font-size: 12.5px; color: var(--dim); line-height: 1.8; }

/* 结果条 / 提示卡（首页与服务台通用） */
.result {
  position: relative;
  margin-top: 14px; padding: 13px 16px 13px 22px;
  border: 1px solid var(--line); border-left: 3px solid var(--line-2);
  background: var(--bg-2); border-radius: 4px;
  font-size: 13.5px; color: var(--sub); line-height: 1.85;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.result::before {
  content: ''; position: absolute; left: 10px; top: 19px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--line-2);
}
.result.ok {
  border-left-color: var(--ok); color: var(--txt);
  background: linear-gradient(180deg, rgba(22,163,74,.06), var(--bg-2));
}
.result.ok::before { background: var(--ok); }
.result.err {
  border-left-color: var(--danger); color: var(--txt);
  background: linear-gradient(180deg, rgba(220,38,38,.07), var(--bg-2));
}
.result.err::before { background: var(--danger); }

/* ============================================================
   当前服务器锁定条
   ============================================================ */
.stock-chip {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 2px solid var(--gold);
  background: var(--bg-2); border-radius: 2px;
  padding: 15px 20px; margin-bottom: 24px;
}
.sc-code { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--dim); flex: none; }
.sc-main { flex: 1; min-width: 170px; }
.sc-name { font-size: 17px; font-weight: 700; }
.sc-type { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.sc-seat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; flex: none; }
.sc-seat b { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--gold); }
.sc-seat span { font-size: 10px; color: var(--dim); letter-spacing: .14em; margin-top: 4px; }
.pill {
  font-size: 11px; padding: 4px 10px;
  border: 1px solid var(--line-2); border-radius: 2px;
  color: var(--sub); letter-spacing: .06em; white-space: nowrap; flex: none;
}
.pill.gold { border-color: rgba(226,178,60,.5); color: var(--gold-2); background: var(--gold-dim); }
.stock-chip.claim-chip { border-left-color: var(--steel); }
.stock-chip.claim-chip .sc-seat b { color: var(--steel); }
.stock-chip.claim-chip .pill.gold {
  border-color: rgba(147,168,199,.5); color: var(--steel);
  background: rgba(147,168,199,.1);
}

/* ============================================================
   申请规则栏（右列）
   ============================================================ */
.apply-col.know {
  border: 1px solid var(--line); background: var(--bg-2);
  border-radius: 3px; overflow: hidden;
}
.know-h {
  padding: 15px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 10px;
}
.know-h .mono { font-size: 10.5px; letter-spacing: .26em; color: var(--gold); }
.know-h h3 { font-size: 15.5px; font-weight: 700; }
.rules { list-style: none; }
.rules li {
  display: flex; gap: 13px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--sub); line-height: 1.8;
}
.rules li:last-child { border-bottom: 0; }
.rn { font-family: var(--mono); color: var(--gold); font-size: 11.5px; padding-top: 4px; flex: none; letter-spacing: .06em; }

/* 申请页右栏：状态查询卡片 + 规则卡片 同列堆叠（与申请表单同一排） */
.apply-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.know-body { padding: 16px 20px 18px; }

/* ============================================================
   上传槽
   ============================================================ */
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.upload-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line-2); border-radius: 2px;
  background: var(--bg-3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px;
  color: var(--dim); cursor: pointer; overflow: hidden;
  transition: border-color .15s, color .15s;
}
.upload-slot:hover { border-color: var(--gold); color: var(--gold-2); }
.upload-slot input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.us-idx {
  position: absolute; top: 9px; left: 11px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--dim);
}
.us-plus { font-size: 22px; font-weight: 300; line-height: 1; }
.upload-slot .ph { font-size: 11.5px; letter-spacing: .1em; }
.upload-slot img { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-slot.has { border-style: solid; border-color: rgba(226,178,60,.55); }
.upload-slot.has img { display: block; }
.upload-slot.has .us-plus, .upload-slot.has .ph { display: none; }

/* ============================================================
   答题验证弹窗
   ============================================================ */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,6,8,.85);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal-card {
  width: min(600px, 100%);
  max-height: 86vh;
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  transform: translateY(10px);
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.modal-mask.show .modal-card { transform: translateY(0); }
.modal-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.modal-head .eyebrow {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .24em; color: var(--gold);
  margin-bottom: 7px;
}
.modal-head h3 { font-size: 18px; font-weight: 700; }
.modal-head .sub { margin-top: 5px; font-size: 12.5px; color: var(--sub); }
.modal-close {
  background: none; border: 1px solid var(--line-2);
  color: var(--sub);
  width: 32px; height: 32px; flex: none;
  border-radius: 2px; font-size: 13px;
  transition: color .15s, border-color .15s;
}
.modal-close:hover { color: var(--danger); border-color: var(--danger); }
.modal-body { padding: 18px 24px 6px; overflow: auto; }
.modal-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 12px;
  background: rgba(255,255,255,.02);
}
.modal-foot .btn { min-width: 120px; }
.modal-foot .btn.lg { min-width: 200px; width: auto; }

.quiz-card {
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--bg-3);
  padding: 16px 18px; margin-bottom: 12px;
}
.quiz-card .qtitle { font-weight: 600; font-size: 14.5px; margin-bottom: 6px; line-height: 1.6; }
.quiz-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; margin: 7px 0;
  border: 1px solid var(--line); border-radius: 2px;
  cursor: pointer; font-size: 13.5px; color: var(--sub);
  min-height: 42px; line-height: 1.5;
  transition: border-color .15s, color .15s, background .15s;
}
.quiz-opt:hover { border-color: var(--line-2); color: var(--txt); }
.quiz-opt input[type=radio] { accent-color: var(--gold); flex: none; }
.quiz-opt:has(input:checked),
.quiz-opt.on { border-color: var(--gold); color: var(--txt); background: var(--gold-dim); }
.quiz-error {
  margin: 8px 0 10px;
  padding: 11px 14px;
  border: 1px solid rgba(224,96,76,.4); border-left: 2px solid var(--danger);
  color: var(--danger); background: rgba(224,96,76,.07);
  border-radius: 2px; font-size: 13px;
}

/* ============================================================
   页脚
   ============================================================ */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--dim);
}
.site-foot a:hover { color: var(--sub); }

/* ============================================================
   响应式：≥1040 桌面（默认） / 768–1039 平板 / <768 手机
   ============================================================ */

/* -------- 平板 -------- */
@media (max-width: 1039px) and (min-width: 768px) {
  .hero { padding: 60px 20px 36px; }
  .shell { padding: 0 20px; }
  .topbar { padding: 0 20px; }
  .stock-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .status-board { grid-template-columns: repeat(2, 1fr); }
  .sb-item:nth-child(odd) { border-left: 0; }
  .sb-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .apply-grid { grid-template-columns: 1fr; }
}

/* -------- 手机 -------- */
@media (max-width: 767px) {
  body { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .topbar { padding: 0 16px; gap: 14px; height: 56px; }
  .brand .bt i { display: none; }
  .brand .bt b { max-width: 34vw; }
  .bstat { display: none; }
  .back-link { border-left: 0; padding-left: 0; font-size: 12.5px; }
  .admin-entry { padding: 7px 12px; font-size: 12px; }

  .shell { padding: 0 16px; }
  .hero { padding: 44px 16px 30px; }
  .kicker { font-size: 10.5px; letter-spacing: .2em; margin-bottom: 16px; }
  .desc { font-size: 14.5px; }

  .steps { grid-template-columns: 1fr; margin-top: 30px; }
  .steps li { border-left: 0; border-top: 1px solid var(--line); padding: 13px 18px; }
  .steps li:first-child { border-top: 0; }

  .status-board { grid-template-columns: 1fr; }
  .sb-item { border-left: 0 !important; border-top: 1px solid var(--line); }
  .sb-item:first-child { border-top: 0 !important; }

  .stock-grid { grid-template-columns: 1fr; gap: 12px; }

  .tabs { gap: 24px; }
  .tab { font-size: 14px; padding: 13px 2px; }

  .pane { padding-top: 28px; }
  .pane-head h2 { font-size: 18px; }
  .pane-head { gap: 12px; }

  .apply-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-wrap { max-width: none; }

  /* —— 手机端：所有输入 / 下拉 / 文本域统一触控尺寸，避免 iOS 缩放 —— */
  .input, select.input, textarea.input {
    font-size: 16px;
    height: auto;
    min-height: 46px;
    padding: 12px 14px;
    line-height: 1.5;
  }
  textarea.input { min-height: 120px; line-height: 1.7; }
  select.input { padding-right: 40px; }

  /* —— 手机端：所有按钮满宽，最小触控 46px —— */
  .btn {
    min-height: 46px;
    height: auto;
    padding: 12px 18px;
    width: 100%;
    font-size: 15px;
    letter-spacing: .05em;
  }
  .btn.lg { min-height: 50px; padding: 14px 20px; font-size: 15.5px; }

  /* —— 手机端：并排输入+按钮改堆叠（验证码行等）—— */
  .row2 {
    flex-direction: column;
    gap: 12px;
  }
  .row2 .input {
    width: 100%;
    flex: none;
  }
  .row2 .btn {
    width: 100%;
    flex: none;
    height: auto;
    min-height: 46px;
    padding: 12px 18px;
  }

  .stock-chip { padding: 14px 16px; gap: 12px; }
  .sc-seat { align-items: flex-start; }
  .sc-main { min-width: 100%; order: -1; }

  .upload-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
  }
  .upload-slot { aspect-ratio: 1 / 1; }

  .modal-mask { padding: 10px; }
  .modal-card { width: 100%; max-height: 94vh; border-radius: 3px; }
  .modal-head { padding: 18px 18px 13px; }
  .modal-head h3 { font-size: 16.5px; }
  .modal-body { padding: 14px 18px 4px; }
  .modal-foot {
    flex-direction: column-reverse;
    gap: 10px;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .modal-foot .btn, .modal-foot .btn.lg { width: 100%; min-width: 0; min-height: 46px; }

  .site-foot {
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    font-size: 11.5px; flex-direction: column; align-items: flex-start;
  }

  /* ========== 修复：手机端表格卡片化 ========== */
  .tbl-wrap { overflow-x: visible; border: 0; background: transparent; box-shadow: none; }
  .tbl-wrap table { min-width: 0; width: 100%; display: block; }
  .tbl-wrap tbody tr:first-child { display: none; }
  .tbl-wrap tr { display: block; background: var(--bg-2); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 4px; margin: 0 0 12px; padding: 8px 15px 12px; }
  .tbl-wrap tr:hover td { background: transparent; }
  .tbl-wrap td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border-top: 1px solid var(--line); padding: 10px 0; white-space: normal; word-break: normal; overflow-wrap: anywhere; text-align: right; line-height: 1.6; vertical-align: top; font-size: 13.5px; }
  .tbl-wrap td:first-child { border-top: 0; }
  .tbl-wrap td::before { content: attr(data-label); flex: 0 0 auto; color: var(--dim); font-size: 12.5px; font-weight: 500; line-height: 1.7; text-align: left; max-width: 40%; margin-right: 12px; }
  .tbl-wrap .left { max-width: 58%; max-height: none; overflow: visible; font-size: 13px; text-align: right; }
  .tbl-wrap td.mono { white-space: normal; text-align: right; overflow-wrap: anywhere; }
  .tbl-wrap td .ev-grid { flex: 1 1 auto; width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .tbl-wrap .ev-grid img { width: 100%; max-width: none; max-height: 84px; margin: 0; }
  .tbl-wrap td .ops { flex: 1 1 auto; width: 100%; min-width: 0; justify-content: flex-end; gap: 8px; }
  .tbl-wrap td .ops .btn { flex: 1 1 30%; min-width: 0; min-height: 42px; padding: 9px 8px; font-size: 13px; white-space: nowrap; }
  .tbl-wrap td .tag { flex: none; }
}

/* ============================================================
   ★ 玻璃拟态霓虹增强层（v3）
   置于文件末尾：同优先级下后置胜出，无需改动上方任何历史规则。
   仅覆盖「观感属性」，不触碰布局/尺寸，手机端断点行为保持原样。
   ============================================================ */

/* ---------- 全局观感：滚动条 / 选区 / 焦点环 ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(56,225,255,.35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56,225,255,.45), rgba(176,108,255,.45));
  border-radius: 10px; border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #38E1FF, #B06CFF); background-clip: padding-box; }
::selection { background: rgba(56,225,255,.28); color: #fff; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 4px; }

/* ---------- 顶栏：悬浮毛玻璃 ---------- */
.topbar {
  background: linear-gradient(180deg, rgba(10,13,25,.86), rgba(10,13,25,.62));
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px -18px rgba(0,0,0,.9);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,225,255,.55), rgba(176,108,255,.45), transparent);
  opacity: .7;
}
.topbar { position: sticky; }
.mark {
  border: 1px solid rgba(56,225,255,.55);
  color: var(--neon);
  background: var(--glass);
  box-shadow: inset 0 0 14px rgba(56,225,255,.18), 0 0 16px -6px rgba(56,225,255,.7);
}
.admin-entry:hover { color: var(--neon-2); border-color: rgba(176,108,255,.6); box-shadow: 0 0 18px -8px rgba(176,108,255,.9); }
.dot.live { background: var(--ok); animation: dotpulse 2.4s infinite; }

/* ---------- 章节标记 / 标题：霓虹 ---------- */
.kicker { color: var(--neon); }
.kicker > span:first-child { background: linear-gradient(90deg, var(--neon), transparent); width: 34px; }
.hero h1 em {
  color: var(--neon);
  text-shadow: 0 0 26px rgba(56,225,255,.45), 0 0 60px rgba(176,108,255,.28);
}
.sec-head .idx, .ann-h .idx {
  border-color: rgba(56,225,255,.5); color: var(--neon);
  background: var(--glass-2);
  box-shadow: 0 0 14px -4px rgba(56,225,255,.75);
}
.sec-head .rule, .pane-head .rule {
  background: linear-gradient(90deg, var(--glass-line), transparent);
}
.pidx { color: var(--neon); text-shadow: 0 0 14px rgba(56,225,255,.55); }

/* ---------- 玻璃卡片（通用面板） ---------- */
.stock-card, .ann, .apply-col.know, .quiz-card, .status-board, .steps {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(calc(var(--blur) - 6px));
  -webkit-backdrop-filter: blur(calc(var(--blur) - 6px));
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 18px 40px -26px rgba(0,0,0,.9);
}
.stock-card { border-radius: var(--r-glass); overflow: hidden; }
.stock-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px 160px at 50% -30%, rgba(56,225,255,.14), transparent 70%);
  opacity: 0; transition: opacity .25s;
}
.stock-card:hover::after { opacity: 1; }
.stock-card:hover {
  border-color: rgba(56,225,255,.42);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 0 0 1px rgba(56,225,255,.16), 0 24px 48px -26px rgba(56,225,255,.35);
}
.stock-card.current { border-color: rgba(56,225,255,.55); }
.stock-card.current::before { background: linear-gradient(90deg, var(--neon), var(--neon-2)); height: 2px; }
.stock-card .ct, .stock-card .meta, .stock-card .cf { border-color: rgba(255,255,255,.07); }
.stock-card .cf { background: rgba(255,255,255,.022); }
.stock-card .cb .name { text-shadow: 0 0 22px rgba(56,225,255,.22); }
.ann, .steps { border-radius: var(--r-glass); }
.steps li { border-color: rgba(255,255,255,.07); }
.steps li:hover { background: rgba(56,225,255,.045); }
.steps .n { color: var(--neon); text-shadow: 0 0 12px rgba(56,225,255,.6); }
.status-board { border-radius: var(--r-glass); }
.sb-item { border-color: rgba(255,255,255,.07); }
.apply-col.know { border-radius: var(--r-glass); }
.know-h { border-color: rgba(255,255,255,.08); }
.know-h .mono { color: var(--neon); }
.rules li { border-color: rgba(255,255,255,.06); }
.quiz-card { border-radius: 12px; }

/* ---------- 服务器锁定条 ---------- */
.stock-chip {
  background: var(--glass); border: 1px solid var(--glass-line);
  border-left: 2px solid var(--neon); border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, -8px 0 24px -18px rgba(56,225,255,.8);
}
.pill.gold { border-color: rgba(56,225,255,.45); color: var(--neon); background: var(--neon-dim); }
.stock-chip.claim-chip .pill.gold { border-color: rgba(127,168,232,.5); color: var(--steel); background: rgba(127,168,232,.1); }

/* ---------- 按钮：霓虹光晕 ---------- */
.btn {
  border-radius: 11px; border-color: transparent;
  background: linear-gradient(135deg, #38E1FF, #2BB8E8 55%, #B06CFF);
  color: #04121B;
  box-shadow: 0 0 0 1px rgba(56,225,255,.35), 0 10px 26px -12px rgba(56,225,255,.85);
  text-shadow: none;
}
.btn:hover {
  background: linear-gradient(135deg, #6BEBFF, #38E1FF 55%, #C08CFF);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(56,225,255,.6), 0 14px 34px -12px rgba(56,225,255,1);
}
.btn.ghost {
  background: var(--glass-2); color: var(--txt);
  border: 1px solid var(--glass-line);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
}
.btn.ghost:hover {
  color: var(--neon); border-color: rgba(56,225,255,.5); background: rgba(56,225,255,.07);
  box-shadow: 0 0 22px -10px rgba(56,225,255,.9);
}

/* ---------- 表单控件：玻璃 ---------- */
.input, select.input, textarea.input {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--glass-line);
  border-radius: 11px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:hover, select.input:hover, textarea.input:hover { border-color: rgba(255,255,255,.24); }
.input:focus, select.input:focus, textarea.input:focus {
  border-color: rgba(56,225,255,.65);
  background: rgba(56,225,255,.05);
  box-shadow: 0 0 0 3px rgba(56,225,255,.16), 0 0 24px -10px rgba(56,225,255,.8);
}
.upload-slot {
  background: rgba(255,255,255,.025); border-radius: 12px; border-color: rgba(255,255,255,.2);
}

/* ---------- 原生下拉浮层深色化 ----------
   桌面端浏览器未指定时用系统浅色底渲染 option，深色主题下会「白底白字」看不清；
   color-scheme:dark 让原生控件走暗色，再显式指定 option 底色与文字色兜底 */
html { color-scheme: dark; }
select option, select optgroup {
  background-color: var(--bg-3);
  color: var(--txt);
}
select option:checked { background-color: rgba(56,225,255,.18); color: var(--neon); }
select:disabled option { color: var(--dim); }
.upload-slot:hover { border-color: rgba(56,225,255,.6); color: var(--neon); box-shadow: 0 0 22px -10px rgba(56,225,255,.85); }
.upload-slot.has { border-color: rgba(56,225,255,.6); }
.radio-group label { border-radius: 10px; background: var(--glass-2); }
.radio-group label:has(input:checked) { border-color: rgba(56,225,255,.6); background: rgba(56,225,255,.09); color: var(--neon); }
.quiz-opt { border-radius: 10px; background: rgba(255,255,255,.022); }
.quiz-opt:has(input:checked), .quiz-opt.on { border-color: rgba(56,225,255,.6); background: rgba(56,225,255,.09); }
.quiz-error { border-radius: 10px; }

/* ---------- 结果条 ---------- */
.result { border-radius: 12px; background: var(--glass-2); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.result.ok { border-left-color: var(--ok); background: linear-gradient(180deg, rgba(53,220,160,.10), rgba(255,255,255,.02)); }
.result.ok::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.result.err { border-left-color: var(--danger); background: linear-gradient(180deg, rgba(255,92,122,.10), rgba(255,255,255,.02)); }
.result.err::before { background: var(--danger); box-shadow: 0 0 10px var(--danger); }

/* ---------- Tabs：霓虹下划线 ---------- */
.tabs { border-bottom-color: rgba(255,255,255,.09); }
.tab.active { color: var(--txt); }
.tab.active i { color: var(--neon); }
.tab.active::after {
  height: 2px; background: linear-gradient(90deg, var(--neon), var(--neon-2));
  box-shadow: 0 0 14px rgba(56,225,255,.9);
}

/* ---------- 弹窗：毛玻璃 ---------- */
.modal-mask { background: rgba(3,5,12,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card {
  background: linear-gradient(160deg, rgba(20,25,45,.95), rgba(9,12,24,.97));
  border: 1px solid var(--glass-line); border-radius: var(--r-glass);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(0,0,0,1), 0 0 0 1px rgba(56,225,255,.08);
}
.modal-head { border-color: rgba(255,255,255,.08); }
.modal-head .eyebrow { color: var(--neon); }
.modal-foot { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.08); }
.modal-close { border-radius: 9px; }
.modal-close:hover { border-color: var(--danger); color: var(--danger); box-shadow: 0 0 18px -8px var(--danger); }

/* ---------- 表格：桌面端玻璃 ---------- */
@media (min-width: 768px) {
  .tbl-wrap {
    background: var(--glass-2); border: 1px solid var(--glass-line); border-radius: var(--r-glass);
    box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 18px 40px -30px rgba(0,0,0,.9);
    overflow: hidden;
  }
  .tbl-wrap table { border-collapse: separate; border-spacing: 0; }
  .tbl-wrap tr:first-child th { background: rgba(255,255,255,.045); }
  .tbl-wrap tr:hover td { background: rgba(56,225,255,.045); }
}

/* ---------- 页脚 ---------- */
.site-foot { border-top-color: rgba(255,255,255,.07); }

/* ============================================================
   ★ 时间轴日志流（Timeline Log Stream）
   独一无二的交互骨架：申请 / 发放 / 系统事件按时间纵向流淌，
   新事件从顶部滑入并短暂高亮，适合盯实时动态。
   前台进度查询、后台发放台与申请队列共用同一套 .tl-* 类名。
   ============================================================ */
.tl { position: relative; padding-left: 32px; }
.tl::before {
  content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(56,225,255,.75), rgba(176,108,255,.5), rgba(56,225,255,.15));
  box-shadow: 0 0 18px -2px rgba(56,225,255,.55);
}
.tl-item {
  position: relative; margin-bottom: 14px;
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: 13px; padding: 13px 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 14px 30px -24px rgba(0,0,0,.9);
}
.tl-item::before {
  content: ""; position: absolute; left: -27px; top: 17px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #05070F; border: 2px solid var(--neon);
  box-shadow: 0 0 12px rgba(56,225,255,.9);
}
.tl-item.s1::before { border-color: var(--ok); box-shadow: 0 0 12px rgba(53,220,160,.9); }
.tl-item.s2::before { border-color: #4A5570; box-shadow: none; }
.tl-item.s2 { opacity: .62; }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-idx { font-family: var(--mono); font-size: 12px; color: var(--neon); letter-spacing: .04em; }
.tl-name { font-weight: 700; font-size: 15px; }
.tl-time { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.tl-meta { margin-top: 7px; font-size: 12.5px; color: var(--sub); line-height: 1.8; }
.tl-meta b { color: var(--txt); font-family: var(--mono); }
.tl-bar { margin-top: 10px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.tl-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--neon), var(--neon-2)); box-shadow: 0 0 12px rgba(56,225,255,.75); }
.tl-item.s1 .tl-bar i { background: linear-gradient(90deg, var(--ok), #7BE8BE); box-shadow: 0 0 12px rgba(53,220,160,.75); }
.tl-chip {
  font-size: 11.5px; border-radius: 999px; padding: 2px 10px;
  border: 1px solid var(--glass-line); color: var(--sub); white-space: nowrap;
}
.tl-chip.s0 { color: var(--neon); border-color: rgba(56,225,255,.5); background: var(--neon-dim); }
.tl-chip.s1 { color: var(--ok); border-color: rgba(53,220,160,.5); background: rgba(53,220,160,.12); }
.tl-chip.s2 { color: var(--dim); }
/* VIP 插队标记（通宵物资 VIP 通道申请） */
.tl-chip.vip { color: #FFD76A; border-color: rgba(255,215,106,.55); background: rgba(255,215,106,.14); font-weight: 700; }
.tl-empty { color: var(--dim); font-size: 13.5px; text-align: center; padding: 22px 0; }
.tl-ops { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

/* 队首脉冲：发放台当前待处理项的呼吸光环 */
.tl-item.is-head { border-color: rgba(56,225,255,.55); }
.tl-item.is-head::before { animation: tlPulse 1.6s ease-in-out infinite; }
@keyframes tlPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(56,225,255,.75); }
  50%     { box-shadow: 0 0 0 7px rgba(56,225,255,0); }
}
/* 新事件从顶部滑入 */
@keyframes tlIn {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tl-item.is-new { animation: tlIn .46s cubic-bezier(.2,.8,.2,1); }
@keyframes glowFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.tl-item.is-new::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(56,225,255,.16) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: glowFlow 1.1s ease-out 1;
}
@media (prefers-reduced-motion: reduce) {
  .tl-item.is-new, .tl-item.is-new::after, .tl-item.is-head::before { animation: none; }
}

/* ============================================================
   作战甲板 DECK v4 — 前台结构性重写层
   布局：顶部状态带 → 主区（节点栏 + 事件流）→ 底部行动胶囊
   面板：全屏抽屉 + 分步步骤轨（取代旧的长表单三段式页面）
   ============================================================ */

/* ---------- 根容器：整屏栅格 ---------- */
.dc {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-bottom: 104px;
}

/* ---------- 顶部状态带 ---------- */
.dc-rail {
  position: sticky; top: 0; z-index: 70;
  height: 56px; display: flex; align-items: center; gap: 16px;
  padding: 0 22px; overflow: hidden;
  background: rgba(5,7,15,.74);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dc-rail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon) 50%, transparent);
  opacity: .55; animation: dcScan 6s linear infinite;
}
@keyframes dcScan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.dc-mark {
  position: relative; width: 30px; height: 30px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  font-weight: 800; font-size: 14px; color: var(--neon);
  border: 1px solid rgba(56,225,255,.5); background: var(--neon-dim);
}
.dc-mark::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(56,225,255,.35); animation: dcRing 2.8s ease-out infinite;
}
@keyframes dcRing { 0% { transform: scale(.86); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.dc-id { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.dc-id b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-id i { font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .24em; color: var(--dim); white-space: nowrap; }
.dc-live {
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 12px; color: var(--sub);
  padding: 5px 13px; border: 1px solid var(--glass-line);
  border-radius: 99px; background: var(--glass-2);
}
.dc-sp { flex: 1; }
.dc-clock { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .1em; white-space: nowrap; }
.dc-admin {
  font-size: 12.5px; color: var(--sub); white-space: nowrap;
  padding: 6px 15px; border: 1px solid var(--line-2); border-radius: 99px;
  background: none; transition: color .15s, border-color .15s, box-shadow .15s;
}
.dc-admin:hover { color: var(--neon); border-color: rgba(56,225,255,.55); box-shadow: 0 0 20px -8px rgba(56,225,255,.9); }

/* ---------- 主区：节点栏 + 事件流 ---------- */
.dc-body {
  width: 100%; max-width: 1340px; margin: 0 auto;
  padding: 20px 22px 10px;
  display: grid; grid-template-columns: var(--dc-left, 352px) minmax(0,1fr); gap: 18px;
  align-items: start;
}
.dc-pane {
  border: 1px solid var(--glass-line); border-radius: var(--r-glass);
  background: var(--glass);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 20px 54px -34px #000, inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.dc-ph {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 17px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.022);
}
.dc-ph .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: var(--neon); text-transform: uppercase; }
.dc-ph h2 { font-size: 14px; font-weight: 700; }
.dc-ph .n { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.dc-ph .n b { color: var(--neon); }

/* ---------- 服务器节点栏 ---------- */
.dc-nodes { display: flex; flex-direction: column; }
.dc-node {
  position: relative; width: 100%; text-align: left; color: inherit;
  background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; gap: 13px; padding: 13px 16px 13px 20px;
  transition: background .18s;
}
.dc-node:last-child { border-bottom: 0; }
.dc-node::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; opacity: 0; transition: opacity .18s;
  background: linear-gradient(180deg, var(--neon), var(--neon-2));
}
.dc-node:hover { background: rgba(56,225,255,.06); }
.dc-node:hover::before { opacity: .55; }
.dc-node.on { background: rgba(56,225,255,.09); }
.dc-node.on::before { opacity: 1; box-shadow: 0 0 16px rgba(56,225,255,.85); }
.dc-node.off { opacity: .42; }
.dc-node .sn { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--dim); flex: none; width: 42px; }
.dc-node .sname { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-node .sfree { font-family: var(--mono); font-size: 19px; font-weight: 700; color: var(--neon); flex: none; text-shadow: 0 0 18px rgba(56,225,255,.45); }
.dc-node.off .sfree { color: var(--dim); text-shadow: none; }
.dc-node .sgo { font-size: 11px; color: var(--dim); flex: none; transition: transform .18s, color .18s; }
.dc-node:hover .sgo { color: var(--neon); transform: translateX(3px); }
.dc-node .slink {
  font-family: var(--mono); font-size: 10.5px; color: var(--steel);
  border-bottom: 1px dashed rgba(127,168,232,.5); flex: none;
}
.dc-node .slink:hover { color: var(--neon); border-color: rgba(56,225,255,.6); }

/* ---------- 事件流 ---------- */
.dc-feed { padding: 4px 0; }
.dc-evt { position: relative; display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px dashed rgba(255,255,255,.06); }
.dc-evt:last-child { border-bottom: 0; }
.dc-evt::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, rgba(56,225,255,.7), rgba(176,108,255,.15));
  opacity: 0; transition: opacity .2s;
}
.dc-evt:hover::before { opacity: 1; }
.dc-evt .t { font-family: var(--mono); font-size: 10.5px; color: var(--dim); flex: none; width: 50px; padding-top: 4px; letter-spacing: .04em; }
.dc-evt .bd { flex: 1; min-width: 0; }
.dc-evt .k {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 7px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  padding: 2px 9px; border-radius: 99px; color: var(--sub);
  border: 1px solid var(--glass-line); background: var(--glass-2);
}
.dc-evt .k.neon { color: var(--neon); border-color: rgba(56,225,255,.45); background: var(--neon-dim); }
.dc-evt .k.ok { color: var(--ok); border-color: rgba(53,220,160,.45); background: rgba(53,220,160,.1); }
.dc-evt .k.warn { color: var(--danger); border-color: rgba(255,92,122,.45); background: rgba(255,92,122,.1); }
.dc-evt h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.dc-evt p { font-size: 13px; color: var(--sub); line-height: 1.9; white-space: pre-wrap; }
.dc-evt .acts { margin-top: 11px; display: flex; gap: 9px; flex-wrap: wrap; }
.dc-evt.is-new { animation: dcIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes dcIn { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: none; } }
.dc-empty { padding: 36px 18px; text-align: center; color: var(--dim); font-size: 13px; }

/* ---------- 底部行动胶囊 ---------- */
.dc-dock {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80;
  display: flex; gap: 7px; padding: 7px;
  border: 1px solid var(--glass-line); border-radius: 99px;
  background: rgba(8,11,22,.8);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 26px 64px -30px #000, inset 0 1px 0 rgba(255,255,255,.07);
}
.dc-dock a, .dc-dock button {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 18px; border: 1px solid transparent; border-radius: 99px;
  background: none; color: var(--sub); font-size: 13px; font-weight: 500;
  transition: color .16s, background .16s, box-shadow .16s;
}
.dc-dock a:hover, .dc-dock button:hover { color: var(--txt); background: rgba(255,255,255,.07); }
.dc-dock .primary {
  color: #03121A; font-weight: 700;
  background: linear-gradient(120deg, var(--neon), #8CEBFF);
  box-shadow: 0 0 26px -8px rgba(56,225,255,.95);
}
.dc-dock .primary:hover { color: #03121A; background: linear-gradient(120deg, #8CEBFF, var(--neon)); box-shadow: 0 0 34px -6px rgba(56,225,255,1); }

/* ---------- 全屏抽屉面板 + 分步步骤轨 ---------- */
.dc-sheet {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(3,5,12,.66);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .24s;
}
.dc-sheet.show { opacity: 1; pointer-events: auto; }
.dc-sheet-card {
  width: 100%; max-width: 620px; max-height: 88vh;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--glass-line); border-radius: 22px;
  background: linear-gradient(150deg, rgba(20,26,46,.96), rgba(8,11,22,.97));
  box-shadow: 0 44px 96px -44px #000;
  transform: translateY(16px) scale(.98); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.dc-sheet.show .dc-sheet-card { transform: none; }
.dc-sheet-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.dc-sheet-head h3 { font-size: 16px; font-weight: 700; }
.dc-sheet-head .sub { font-size: 12px; color: var(--dim); margin-top: 3px; }
.dc-sheet-body { padding: 20px; overflow: auto; }
.dc-sheet-foot { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); }
.dc-x {
  margin-left: auto; width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--glass-line); border-radius: 10px; background: none; color: var(--sub);
  transition: color .15s, border-color .15s;
}
.dc-x:hover { color: var(--danger); border-color: var(--danger); }

.dc-steps { display: flex; flex-direction: column; gap: 0; }
.dc-step { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.dc-step:last-child { padding-bottom: 0; }
.dc-step::before {
  content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, rgba(56,225,255,.5), rgba(255,255,255,.06));
}
.dc-step:last-child::before { display: none; }
.dc-step .sn {
  position: relative; z-index: 1; flex: none;
  width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--neon); border: 1px solid rgba(56,225,255,.5); background: rgba(56,225,255,.09);
}
.dc-step.done .sn { color: #03121A; background: var(--ok); border-color: var(--ok); box-shadow: 0 0 16px -4px var(--ok); }
.dc-step.on .sn { animation: dcPulse 1.8s ease-in-out infinite; }
@keyframes dcPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(56,225,255,.5); } 50% { box-shadow: 0 0 0 7px rgba(56,225,255,0); } }
.dc-step .bd { flex: 1; min-width: 0; padding-top: 2px; }
.dc-step .st { font-size: 14.5px; font-weight: 600; }
.dc-step .sd { font-size: 12.5px; color: var(--sub); line-height: 1.8; margin-top: 4px; }
@media (max-width: 767px) {
  .dc { padding-bottom: 96px; }
  .dc-rail { height: 52px; gap: 10px; padding: 0 14px; }
  .dc-clock { display: none; }
  .dc-id i { display: none; }
  .dc-admin { padding: 6px 12px; font-size: 12px; }
  .dc-body { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 14px 14px 6px; }
  .dc-dock {
    left: 0; right: 0; bottom: 0; transform: none; justify-content: space-between;
    border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); overflow-x: auto;
  }
  .dc-dock a, .dc-dock button { padding: 9px 12px; font-size: 12.5px; }
  .dc-sheet { align-items: flex-end; padding: 0; }
  .dc-sheet-card { max-width: none; max-height: 92vh; border-radius: 22px 22px 0 0; }
  .dc-evt .t { width: 42px; font-size: 10px; }
  /* 服务索引：手机端横向滑动条 */
  .dc-indexrow { flex-direction: row; overflow-x: auto; }
  .dc-indexrow .dc-node { width: auto; flex: none; padding: 11px 15px; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.05); }
  .dc-indexrow .dc-node::before { top: auto; bottom: 0; left: 12px; right: 12px; width: auto; height: 2px; border-radius: 2px 2px 0 0; }
  .dc-indexrow .dc-node .sn, .dc-indexrow .dc-node .sgo { display: none; }
  .dc-work { padding: 16px 14px !important; }
}
