/* 仙秦 GM 后台 · 机械暗黑主题
   设计基调：近黑底 + 冷灰金属边框 + 青色（#2fd6c0）科技光 + 琥珀（#ffb64d）警示
   结构全部沿用原有 class，只改视觉层 */
:root {
  --bg: #090d0f;
  --bg-grid: rgba(47, 214, 192, .035);
  --panel: #11181c;
  --panel-2: #0d1316;
  --panel-3: #161e22;
  --line: #24323a;
  --line-soft: #1a2429;
  --text: #d3e2e6;
  --text-2: #7c9098;
  --text-3: #556569;
  --brand: #2fd6c0;
  --brand-dim: #1d8e81;
  --brand-soft: rgba(47, 214, 192, .12);
  --amber: #ffb64d;
  --danger: #ff5a5f;
  --ok: #3ddc84;
  --radius: 4px;
  --glow: 0 0 0 1px rgba(47, 214, 192, .25), 0 0 18px rgba(47, 214, 192, .12);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .55);
  --mono: "Consolas", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
    radial-gradient(1200px 600px at 88% -10%, rgba(47, 214, 192, .10), transparent 60%),
    radial-gradient(900px 500px at 8% 108%, rgba(255, 182, 77, .05), transparent 60%);
  background-size: 22px 22px, 22px 22px, auto, auto;
  font: 14px/1.6 "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: .3px; }
input, select, textarea, button { font: inherit; color: inherit; }
::selection { background: rgba(47, 214, 192, .3); }

/* 滚动条 */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #0a0f11; }
*::-webkit-scrollbar-thumb { background: #223038; border: 2px solid #0a0f11; border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: var(--brand-dim); }

/* ================= 登录 ================= */
body.guest { display: flex; align-items: center; justify-content: center; }
.login-wrap { width: 100%; display: flex; justify-content: center; padding: 24px; }
.login-card {
  position: relative;
  width: 372px; padding: 38px 32px 28px;
  background: linear-gradient(180deg, #141c20 0%, #0d1316 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glow);
  clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.login-card::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: .8;
}
.login-logo {
  width: 58px; height: 58px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: var(--brand);
  background: linear-gradient(160deg, #16262a, #0c1417);
  border: 1px solid var(--brand-dim);
  box-shadow: 0 0 16px rgba(47, 214, 192, .25), inset 0 0 18px rgba(47, 214, 192, .12);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.login-sub {
  text-align: center; color: var(--text-2); margin-bottom: 26px;
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
}
.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px;
  letter-spacing: 1.5px;
}
.field input, input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px;
  background: #0a0f11; border: 1px solid var(--line); border-radius: var(--radius);
  outline: none; transition: .18s; color: var(--text);
}
.field input::placeholder, textarea::placeholder { color: var(--text-3); }
.field input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--brand-dim); background: #0c1315;
  box-shadow: 0 0 0 1px rgba(47, 214, 192, .35), 0 0 16px rgba(47, 214, 192, .12);
}
.login-tip { margin-top: 12px; min-height: 20px; font-size: 13px; color: var(--danger); text-align: center; }
/* 精炼属性超限即时提示：数值框标红 */
input.bad, select.bad { border-color: var(--danger) !important; box-shadow: 0 0 0 1px rgba(255, 90, 95, .35); }

/* ================= 布局 ================= */
body.app { display: flex; }
.side {
  width: 218px; flex: 0 0 218px; min-height: 100vh;
  background: linear-gradient(180deg, #0b1114 0%, #080c0e 100%);
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 0 rgba(47, 214, 192, .08), 8px 0 26px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px; border-bottom: 1px solid var(--line-soft); }
.brand-mark {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--brand); font-size: 16px;
  background: linear-gradient(160deg, #16262a, #0c1417);
  border: 1px solid var(--brand-dim);
  box-shadow: inset 0 0 14px rgba(47, 214, 192, .15);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { color: #eaf6f7; font-size: 15px; letter-spacing: 2px; }
.brand-text span { font-size: 11px; color: var(--text-3); letter-spacing: 2px; }
.nav { padding: 10px 10px; display: flex; flex-direction: column; gap: 3px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 9px 12px 9px 14px; color: var(--text-2); font-size: 13.5px;
  border: 1px solid transparent; border-radius: var(--radius); transition: .16s;
}
.nav a i { font-style: normal; font-size: 8px; color: var(--text-3); transition: .16s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .03); border-color: var(--line-soft); }
.nav a.on {
  color: var(--brand); background: linear-gradient(90deg, rgba(47, 214, 192, .12), rgba(47, 214, 192, .02));
  border-color: rgba(47, 214, 192, .3);
}
.nav a.on i { color: var(--brand); text-shadow: 0 0 8px var(--brand); }
.nav a.on::before {
  content: ''; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px;
  background: var(--brand); box-shadow: 0 0 10px var(--brand);
}
.side-foot {
  margin-top: auto; padding: 14px 18px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3);
  font-family: var(--mono);
}
.side-foot a { color: var(--text-2); }
.side-foot a:hover { color: var(--brand); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: relative; height: 60px; padding: 0 22px;
  background: linear-gradient(180deg, #121a1e, #0d1417);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 214, 192, .55), transparent);
}
.topbar h1 { font-size: 16px; letter-spacing: 2px; }
.topbar h1::before {
  content: ''; display: inline-block; width: 3px; height: 14px; margin-right: 9px;
  background: var(--brand); box-shadow: 0 0 10px var(--brand); vertical-align: -2px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; font-size: 12.5px; color: var(--text-2);
  background: #0c1315; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); letter-spacing: .5px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #46545a; }
.pill.on { color: var(--ok); border-color: rgba(61, 220, 132, .35); }
.pill.on .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2.4s infinite; }
.pill.off { color: var(--danger); border-color: rgba(255, 90, 95, .35); }
.pill.off .dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.pill.warn { color: var(--amber); border-color: rgba(255, 182, 77, .35); }
.pill.warn .dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.content { padding: 20px 22px 44px; }

/* ================= 卡片 ================= */
.grid { display: grid; gap: 14px; }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.card {
  position: relative;
  background: linear-gradient(180deg, #131b1f 0%, #0f1619 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.card-h {
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(180deg, rgba(47, 214, 192, .05), transparent);
}
.card-h h3 { font-size: 13.5px; letter-spacing: 1.5px; color: #e6f2f3; }
.card-b { padding: 14px 16px; }
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat .k { font-size: 12px; color: var(--text-2); letter-spacing: 1.5px; }
.stat .v {
  font-size: 27px; font-weight: 700; color: #eafaf9; letter-spacing: .5px;
  font-family: var(--mono); text-shadow: 0 0 20px rgba(47, 214, 192, .25);
}
.stat .s { font-size: 11.5px; color: var(--text-3); }

/* ================= 表格 ================= */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 12px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line-soft); }
th {
  color: var(--text-2); font-weight: 500; background: #0c1315; white-space: nowrap;
  font-size: 12px; letter-spacing: 1.5px;
}
tbody tr { transition: background .14s; }
tbody tr:hover { background: rgba(47, 214, 192, .045); }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
td { color: #c6d6da; }
.empty { padding: 30px; text-align: center; color: var(--text-3); letter-spacing: 1px; }

/* ================= 元件 ================= */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; cursor: pointer; white-space: nowrap; font-size: 13px;
  color: var(--text); background: linear-gradient(180deg, #182226, #111a1d);
  border: 1px solid var(--line); border-radius: var(--radius);
  letter-spacing: .5px; transition: .16s;
}
.btn:hover { border-color: #35474f; background: linear-gradient(180deg, #1d282d, #141d21); color: #eafaf9; }
.btn-primary {
  color: #06231f;
  background: linear-gradient(180deg, #37e3cb, #1cb9a5);
  border-color: #24c7b2;
  box-shadow: 0 0 14px rgba(47, 214, 192, .28);
  font-weight: 600;
}
.btn-primary:hover { background: linear-gradient(180deg, #4df0d8, #22c8b3); color: #04201c; box-shadow: 0 0 22px rgba(47, 214, 192, .45); }
.btn-danger { color: var(--danger); background: rgba(255, 90, 95, .07); border-color: rgba(255, 90, 95, .35); }
.btn-danger:hover { background: rgba(255, 90, 95, .14); color: #ff8a8e; border-color: rgba(255, 90, 95, .6); }
.btn-sm { padding: 4px 11px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.icon-btn {
  border: 1px solid transparent; background: transparent; cursor: pointer;
  color: var(--text-2); font-size: 19px; line-height: 1; padding: 2px 9px; border-radius: var(--radius);
  transition: .16s;
}
.icon-btn:hover { color: var(--brand); background: rgba(47, 214, 192, .08); border-color: rgba(47, 214, 192, .3); }

.tag {
  display: inline-block; padding: 1px 9px; border-radius: 2px; font-size: 11.5px;
  border: 1px solid; letter-spacing: 1px; font-family: var(--mono);
}
.tag.ok { color: var(--ok); border-color: rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .08); }
.tag.off { color: var(--text-3); border-color: var(--line); background: rgba(255, 255, 255, .02); }
.tag.bad { color: var(--danger); border-color: rgba(255, 90, 95, .45); background: rgba(255, 90, 95, .08); }
.tag.warn { color: var(--amber); border-color: rgba(255, 182, 77, .45); background: rgba(255, 182, 77, .08); }

.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .grow { flex: 1; }
.filters { margin-bottom: 14px; }
.filters input[type=text] { width: 260px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { flex: 1; min-width: 130px; margin: 0; }
.form-row .field > span { font-size: 12px; }
.hint { color: var(--text-3); font-size: 12.5px; }
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 10px 12px; }
.pager span { color: var(--text-3); font-size: 12.5px; font-family: var(--mono); }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.check input { width: auto; }
select {
  appearance: none; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
select option { background: #0d1316; color: var(--text); }

/* ================= 抽屉 ================= */
.drawer-mask {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(3, 7, 9, .72); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: .2s;
}
.drawer-mask.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 568px; max-width: 94vw; z-index: 31;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #131b1f, #0d1316);
  border-left: 1px solid rgba(47, 214, 192, .35);
  box-shadow: -14px 0 40px rgba(0, 0, 0, .65), inset 1px 0 0 rgba(47, 214, 192, .12);
  transform: translateX(100%); transition: .22s;
}
.drawer.on { transform: none; }
.drawer-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(47, 214, 192, .06), transparent);
}
.drawer-head h2 { font-size: 14.5px; letter-spacing: 1.5px; color: #e6f2f3; }
.drawer-body { padding: 16px 18px 44px; overflow-y: auto; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 7px 12px; font-size: 13.5px; }
.kv b { color: var(--text-3); font-weight: 400; letter-spacing: .5px; }
.kv span { color: #cfdfe3; }
.sect { margin-top: 20px; }
.sect > h4 {
  margin: 0 0 11px; font-size: 12.5px; color: var(--text-2); font-weight: 500;
  letter-spacing: 1.5px; display: flex; align-items: center; gap: 9px;
}
.sect > h4::before { content: ''; width: 3px; height: 12px; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.sect > h4::after {
  content: ''; flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 210px; overflow-y: auto; }
.chip {
  font-size: 12.5px; padding: 3px 10px; border-radius: 2px;
  color: var(--text-2); background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line); transition: .15s;
}
.chip:hover { border-color: rgba(47, 214, 192, .35); color: var(--text); }
.chip b { color: var(--brand); font-weight: 600; font-family: var(--mono); }

/* ================= 弹窗 / 提示 ================= */
.modal-mask {
  position: fixed; inset: 0; z-index: 40; padding: 20px;
  background: rgba(3, 7, 9, .75); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center;
}
.modal-mask.on { display: flex; }
.modal {
  width: 540px; max-width: 100%; max-height: 88vh; overflow: auto;
  background: linear-gradient(180deg, #141d21, #0e1518);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7), var(--glow);
  clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.modal-h {
  padding: 15px 18px; border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-h h3 { font-size: 14px; letter-spacing: 1.5px; }
.modal-b { padding: 16px 18px; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 42px; z-index: 60; transform: translate(-50%, 16px);
  padding: 11px 20px; font-size: 13.5px; max-width: 80vw;
  color: #eafaf9; background: linear-gradient(180deg, #16262a, #0f1a1d);
  border: 1px solid rgba(47, 214, 192, .45); border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .6), 0 0 18px rgba(47, 214, 192, .18);
  opacity: 0; pointer-events: none; transition: .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255, 90, 95, .5); box-shadow: 0 12px 34px rgba(0, 0, 0, .6), 0 0 18px rgba(255, 90, 95, .2); color: #ffd7d8; }

/* 附件行 */
.item-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.item-row .grow { flex: 1; position: relative; }
.item-row input[type=number] { width: 88px; font-family: var(--mono); }
/* 掉落控制页的掉落物品行：key 输入占满剩余空间，其余控件固定宽 */
.item-row input[type=text].di-key { width: 100%; }
.item-row .di-num { flex: 0 0 88px; }
.item-row .di-rate { flex: 0 0 74px; width: 74px; }
.item-row select.di-bind { flex: 0 0 92px; width: 92px; padding-right: 26px; background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; }
.item-row .di-name { flex: 0 0 190px; font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loading { padding: 28px; text-align: center; color: var(--text-3); letter-spacing: 2px; }
.loading::after { content: '…'; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '·'; } 50% { content: '··'; } 75% { content: '···'; } }

/* 数字/ID 统一等宽 */
td b, .chip b, code, .kv span.mono { font-family: var(--mono); }

/* =====================================================================
   机械增强层（在基础主题之上加细节：角标 / 扫描线 / HUD / 刻度 / 微光）
   ===================================================================== */

/* 卡片四角角标：8 条短线组成四个直角，工业面板感 */
.card, .login-card, .modal {
  position: relative;
}
.card::after,
.login-card::after,
.modal::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background:
    linear-gradient(var(--brand), var(--brand)) left 6px top 6px / 9px 1px no-repeat,
    linear-gradient(var(--brand), var(--brand)) left 6px top 6px / 1px 9px no-repeat,
    linear-gradient(var(--brand), var(--brand)) right 6px top 6px / 9px 1px no-repeat,
    linear-gradient(var(--brand), var(--brand)) right 6px top 6px / 1px 9px no-repeat,
    linear-gradient(var(--brand), var(--brand)) left 6px bottom 6px / 9px 1px no-repeat,
    linear-gradient(var(--brand), var(--brand)) left 6px bottom 6px / 1px 9px no-repeat,
    linear-gradient(var(--brand), var(--brand)) right 6px bottom 6px / 9px 1px no-repeat,
    linear-gradient(var(--brand), var(--brand)) right 6px bottom 6px / 1px 9px no-repeat;
}
.card-h { position: relative; z-index: 1; }

/* 顶栏扫描线：一条青色光带缓慢掠过 */
.topbar { overflow: hidden; }
.topbar::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 140px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(47, 214, 192, .16), transparent);
  animation: hudScan 7s linear infinite;
}
@keyframes hudScan {
  0%   { transform: translateX(-160px); }
  100% { transform: translateX(calc(100vw + 160px)); }
}

/* 侧栏：底部 HUD 时钟 + 顶部刻度尺 */
.side-foot { flex-direction: column; gap: 6px; align-items: stretch; }
.side-foot .hud {
  display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3);
  letter-spacing: 1px;
}
.side-foot .hud b { color: var(--brand); font-weight: 500; }
.side-foot .rule {
  height: 4px; margin-top: 2px;
  background: repeating-linear-gradient(90deg, rgba(47, 214, 192, .5) 0 2px, transparent 2px 7px);
  opacity: .5;
}
.brand { position: relative; }
.brand::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 9px);
}

/* 统计卡：数值下的刻度尺 + 悬停微光 */
.stat { position: relative; overflow: hidden; }
.stat::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 12px; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(47, 214, 192, .45) 0 2px, transparent 2px 6px);
  opacity: .45;
}
.stat .v { text-shadow: 0 0 18px rgba(47, 214, 192, .35); }
.card:hover .stat::after { opacity: .8; }
.card { transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #2d3f48; box-shadow: var(--shadow), 0 0 0 1px rgba(47, 214, 192, .10); }

/* 表格：表头底线发光 + 行 hover 左侧亮条 */
th { border-bottom: 1px solid rgba(47, 214, 192, .28); }
tbody tr { position: relative; }
tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--brand); }

/* 抽屉 / 弹窗顶部发光条 */
.drawer-head::before,
.modal-h::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: .85;
}
.drawer-head, .modal-h { position: relative; }

/* 运行中状态：外框呼吸光 */
.pill.on { animation: pillGlow 3.6s ease-in-out infinite; }
@keyframes pillGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
  50%      { box-shadow: 0 0 14px rgba(61, 220, 132, .22); }
}

/* 主按钮：按下反馈 + 顶部高光 */
.btn:active { transform: translateY(1px); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent);
  pointer-events: none;
}

/* 抽屉里的背包 chip：悬停时左侧亮起 */
.chip:hover { box-shadow: inset 2px 0 0 var(--brand); background: rgba(47, 214, 192, .06); }

/* 加载态：青色扫描条 */
.loading { position: relative; overflow: hidden; }
.loading::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 90px;
  background: linear-gradient(90deg, transparent, rgba(47, 214, 192, .12), transparent);
  animation: hudScan 2.6s linear infinite;
}

/* 登录页：标题加机械下划线，卡片再紧凑一点 */
.login-sub { position: relative; padding-bottom: 12px; }
.login-sub::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 4px;
  width: 96px; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(47, 214, 192, .55) 0 2px, transparent 2px 6px);
}

/* [2026-10-23] 邮件/公告物品选择格子：加大点击区域与字体，便于快速选物 */
.item-picker { margin: 10px 0 12px; padding: 10px; border: 1px dashed rgba(47,214,192,.28); border-radius: 10px; background: rgba(47,214,192,.04); }
.item-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 280px; overflow: auto; margin-top: 8px; }
.item-pick-cell { min-height: 72px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: inherit; cursor: pointer; font-size: 13px; line-height: 1.3; }
.item-pick-cell:hover { border-color: #2fd6c0; background: rgba(47,214,192,.10); }
.item-pick-cell b { font-size: 14.5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-pick-cell .mono { font-size: 11.5px; opacity: .78; }
.item-row .mi-key { height: 38px; font-size: 14px; }
.item-row .mi-num, .item-row .mi-bind { height: 38px; }
