/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000;
  font-family: "Microsoft YaHei", sans-serif; }
#game-canvas { position: fixed; inset: 0; display: block; filter: saturate(1.08) contrast(1.05); }

/* ===== 画面后期：镜头暗角 + 天空冷调 + 微弱颗粒，接近战术射击游戏观感 ===== */
#vfx { position: fixed; inset: 0; z-index: 8; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(0,0,0,0) 44%, rgba(3,6,9,.5) 100%),
    linear-gradient(180deg, rgba(150,195,235,.07), rgba(0,0,0,0) 34%),
    linear-gradient(0deg, rgba(0,0,0,.14), rgba(0,0,0,0) 22%);
}
.hidden { display: none !important; }
.gold { color: #ffd54a; font-weight: bold; }
.green { color: #52e07a; font-weight: bold; }
.red { color: #ff8a80; font-weight: bold; }
.dim { color: #8fa196; font-size: 13px; }

/* ===== 局内 HUD ===== */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }

#crosshair { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; }
.ch-line { position: absolute; background: rgba(255,255,255,.9); box-shadow: 0 0 2px #000; }
.ch-t { left: 19px; top: 4px;  width: 2px; height: 10px; }
.ch-b { left: 19px; top: 26px; width: 2px; height: 10px; }
.ch-l { left: 4px;  top: 19px; width: 10px; height: 2px; }
.ch-r { left: 26px; top: 19px; width: 10px; height: 2px; }
.ch-dot { position: absolute; left: 19px; top: 19px; width: 2px; height: 2px; background: #ff5252; }

#hitmarker { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.6);
  color: #ff5252; font-size: 34px; font-weight: bold; opacity: 0; transition: opacity .05s;
  text-shadow: 0 0 4px #000; }
#hitmarker.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }

#damage-vignette { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(200,0,0,.55) 100%);
  transition: opacity .1s; }

#status-panel { position: absolute; left: 18px; top: 18px; background: rgba(0,0,0,.5);
  padding: 12px 16px; border-radius: 8px; color: #fff; min-width: 240px; font-size: 14px; }
.hp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
#status-panel .row { display: flex; justify-content: space-between; margin-top: 5px; }
#status-panel .label { color: #9fd3ff; margin-right: 10px; }
#status-panel .val { color: #eaf4ec; }
.bar { flex: 1; height: 12px; background: rgba(255,255,255,.15); border-radius: 6px; overflow: hidden; }
.bar.big { height: 16px; width: 280px; margin-top: 10px; }
#hp-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #ff5252, #ff8a65); transition: width .15s; }
#extract-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #52e07a, #b9ffca); }

#top-right { position: absolute; right: 18px; top: 18px; text-align: center; }
#raid-timer { font-family: Consolas, monospace; font-size: 30px; color: #fff; font-weight: bold;
  text-shadow: 0 0 6px #000; background: rgba(0,0,0,.5); border-radius: 8px; padding: 4px 14px; margin-bottom: 8px; }
#raid-timer.danger { color: #ff5252; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .45; } }
#minimap { background: rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.35); border-radius: 8px; }

#interact-tip { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%);
  background: rgba(0,0,0,.62); color: #ffd54a; padding: 8px 20px; border-radius: 20px; font-size: 17px; white-space: nowrap; }
#reload-tip { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%);
  color: #9fd3ff; font-size: 16px; text-shadow: 0 0 4px #000; }

#extract-panel { position: absolute; left: 50%; top: 34%; transform: translateX(-50%);
  text-align: center; color: #b9ffca; font-size: 22px; font-weight: bold; text-shadow: 0 0 6px #000;
  background: rgba(0,0,0,.45); padding: 14px 22px; border-radius: 10px; }
#extract-panel .dim { color: #9fd3ff; font-weight: normal; margin-top: 2px; }

#search-panel { position: absolute; left: 50%; bottom: 30%; transform: translateX(-50%);
  text-align: center; color: #ffd54a; font-size: 20px; font-weight: bold; text-shadow: 0 0 6px #000;
  background: rgba(0,0,0,.5); padding: 12px 22px; border-radius: 10px; }
#search-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #ffb74d, #ffe082); }

#killfeed { position: absolute; right: 18px; top: 250px; text-align: right; color: #fff; font-size: 14px; }
#killfeed div { background: rgba(0,0,0,.55); margin-top: 6px; padding: 4px 10px; border-radius: 6px;
  animation: fadeout 3s forwards; }
@keyframes fadeout { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }

/* ===== 大厅 ===== */
.hub { position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column;
  background: linear-gradient(120deg, rgba(6,12,9,.9), rgba(4,8,12,.86)); color: #eaf4ec; }
.hub-top { display: flex; align-items: center; height: 70px; padding: 0 26px;
  border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.35); flex-shrink: 0; }
.brand { font-size: 24px; font-weight: bold; letter-spacing: 5px; color: #dff5e5; }
.brand span { display: block; font-size: 10px; letter-spacing: 3px; color: #6f8f78; font-weight: normal; margin-top: 3px; }
.hub-tabs { display: flex; gap: 6px; margin-left: auto; }
.hub-tabs button { background: none; border: none; border-bottom: 2px solid transparent;
  color: #9fb0a4; font-size: 15px; letter-spacing: 2px; padding: 10px 15px; cursor: pointer;
  font-family: inherit; transition: color .15s; white-space: nowrap; }
.hub-tabs button:hover { color: #dff5e5; }
.hub-tabs button.active { color: #f6e7c1; border-bottom-color: #e8b33d; }
.hub-money { margin-left: 34px; font-size: 14px; color: #9fb0a4; }
.hub-money b { font-size: 19px; }

.hub-body { flex: 1; overflow-y: auto; padding: 22px 34px 34px; position: relative; }
.tab { display: none; }
.tab.active { display: block; }
.tab h2 { font-size: 16px; letter-spacing: 2px; color: #d5e6da; font-weight: 600;
  border-left: 3px solid #52e07a; padding-left: 10px; margin: 8px 0 14px; }
.tab h2 .dim { font-weight: normal; letter-spacing: 0; margin-left: 8px; }

/* 地图卡片 */
.map-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.map-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: all .15s; }
.map-card:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.map-card.selected { border-color: #52e07a; background: rgba(82,224,122,.09);
  box-shadow: 0 0 0 1px rgba(82,224,122,.6) inset, 0 0 20px rgba(82,224,122,.18); }
.mc-risk { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 10px; margin-bottom: 9px; }
.risk1 .mc-risk { background: rgba(82,224,122,.16); color: #7dffa8; }
.risk2 .mc-risk { background: rgba(255,193,7,.16); color: #ffd54a; }
.risk3 .mc-risk { background: rgba(255,82,82,.16); color: #ff8a80; }
.mc-name { font-size: 19px; font-weight: bold; margin-bottom: 6px; }
.mc-desc { font-size: 12.5px; color: #9fb0a4; line-height: 1.65; min-height: 40px; }
.mc-stats { display: flex; gap: 14px; font-size: 12px; color: #c9d6cd; margin-top: 12px; opacity: .85; }

/* 装备配置 */
.loadout { background: rgba(255,255,255,.045); border-radius: 10px; padding: 2px 16px; }
.lo-row { display: flex; align-items: center; gap: 12px; padding: 11px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08); }
.lo-row:last-child { border-bottom: none; }
.lo-label { width: 90px; flex-shrink: 0; color: #9fd3ff; font-size: 14px; }
.lo-row select { flex: 1; background: #14201a; color: #e6f0e9;
  border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 8px 10px;
  font-size: 14px; font-family: inherit; outline: none; cursor: pointer; }
.lo-val { color: #b9c8bd; font-size: 14px; }
.lo-hint { padding: 10px 0 12px; font-size: 12.5px; color: #7f8f85; }

.deploy-bar { display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.deploy-summary { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: #b9c8bd; }
.deploy-summary b { color: #eaf4ec; }
#btn-deploy { cursor: pointer; font-size: 22px; letter-spacing: 8px; padding: 14px 66px;
  color: #06210f; font-weight: bold; border: none; border-radius: 10px;
  background: linear-gradient(180deg, #7dffa8, #3ec76a);
  box-shadow: 0 4px 0 #2a8f4b, 0 8px 22px rgba(0,0,0,.5); transition: transform .08s; }
#btn-deploy:hover { transform: translateY(-2px); }
#btn-deploy:active { transform: translateY(2px); box-shadow: 0 1px 0 #2a8f4b; }
.key-hints { margin-top: 18px; font-size: 12.5px; color: #7f8f85; letter-spacing: .5px; }

/* 物品网格 */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.item-card { position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 92px; padding: 12px 12px 10px; border-radius: 3px; cursor: pointer;
  background: #151a21; border: 1px solid rgba(255,255,255,.1);
  border-left-width: 4px; transition: all .15s; }
.item-card:hover { filter: brightness(1.35); transform: translateY(-2px); }
.item-card.equipped { outline: 1px solid rgba(232,179,61,.8); outline-offset: -1px; }
.item-card.r1 { background: linear-gradient(160deg, rgba(154,164,173,.14), rgba(154,164,173,.03) 70%), #151a21; }
.item-card.r2 { background: linear-gradient(160deg, rgba(82,224,122,.15), rgba(82,224,122,.03) 70%), #151a21; }
.item-card.r3 { background: linear-gradient(160deg, rgba(74,168,255,.16), rgba(74,168,255,.03) 70%), #151a21; }
.item-card.r4 { background: linear-gradient(160deg, rgba(176,107,255,.18), rgba(176,107,255,.04) 70%), #151a21; }
.item-card.r5 { background: linear-gradient(160deg, rgba(255,213,74,.18), rgba(255,213,74,.04) 70%), #151a21; }
.ic-tag { font-size: 11px; letter-spacing: 2px; color: #8fa196; }
.ic-name { font-size: 14.5px; font-weight: 600; color: #eaf4ec; line-height: 1.35; margin: 6px 0 8px; }
.ic-bottom { font-size: 13px; color: #ffd54a; }
.buy-btn { margin-top: 8px; width: 100%; padding: 6px 0; border: none; border-radius: 3px;
  cursor: pointer; font-family: inherit; font-size: 13px; font-weight: bold; color: #241a02;
  background: linear-gradient(180deg, #ffd54a, #d9a91f); }
.buy-btn:hover { filter: brightness(1.1); }
.empty { grid-column: 1 / -1; color: #7f8f85; font-size: 14px; padding: 30px 4px; }

/* 稀有度色 */
.r1 { border-left-color: #9aa4ad; }
.r2 { border-left-color: #52e07a; }
.r3 { border-left-color: #4aa8ff; }
.r4 { border-left-color: #b06bff; }
.r5 { border-left-color: #ffd54a; }

/* 品阶标签 */
.grade { display: inline-block; min-width: 16px; text-align: center; font-weight: bold;
  border-radius: 3px; padding: 0 3px; margin-right: 2px;
  background: rgba(255,255,255,.08); color: #8fa196; }
.grade.g1 { color: #9aa4ad; }
.grade.g2 { color: #52e07a; }
.grade.g3 { color: #4aa8ff; }
.grade.g4 { color: #b06bff; }
.grade.g5 { color: #ffd54a; }

/* ===== 仓库：干员 / 装备 / 格子仓库（参照三角洲布局）===== */
.stash-layout { display: grid; grid-template-columns: 300px 300px minmax(0, 1fr);
  gap: 18px; align-items: start; }

/* 左：干员形象 */
.operator-col { display: flex; flex-direction: column; gap: 12px; }
.operator-card { position: relative; height: 352px; overflow: hidden;
  border: 1px solid #2a313c; border-radius: 3px;
  background: radial-gradient(120% 90% at 50% 18%, #2b333a 0%, #171c21 55%, #0b0e12 100%);
  display: flex; align-items: flex-end; justify-content: center; }
.operator-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
  background: linear-gradient(to top, rgba(7,10,13,.92), transparent); pointer-events: none; }
.op-svg { width: 186px; height: 330px; position: relative; z-index: 1;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.7)); }
.op-tag { position: absolute; top: 10px; left: 12px; z-index: 2;
  font-size: 11px; letter-spacing: 2px; color: #8a939e;
  border: 1px solid #333c47; padding: 2px 8px; border-radius: 2px; }
.op-weapon-panel { width: 100%; }

/* 中：装备价值 + 各装备位 */
.gear-col { display: flex; flex-direction: column; gap: 10px; }
.gear-value { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px;
  background: #11151b; border: 1px solid #2a313c; border-left: 3px solid #e8b33d;
  border-radius: 3px; }
.gv-label { font-size: 12px; letter-spacing: 2px; color: #8a939e; }
.gear-value b { font-size: 19px; letter-spacing: .5px; }
.gv-tip { margin-left: auto; font-size: 11px; color: #6b7580; }

.gear-panel { background: #11151b; border: 1px solid #2a313c; border-radius: 3px;
  padding: 10px 12px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.panel-title.small { font-size: 12px; margin-bottom: 8px; letter-spacing: 1.5px; }
.panel-title.small::before { content: none; }
.gear-panel.safe-panel { border-color: rgba(255,213,74,.32); }

@media (max-width: 1180px) {
  .stash-layout { grid-template-columns: 1fr 1fr; }
  .grid-panel { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .stash-layout { grid-template-columns: 1fr; }
}
.panel-title { font-size: 13px; letter-spacing: 2px; color: #d7dbe0; margin-bottom: 12px; }
.panel-title::before { content: '▸'; color: #e8b33d; margin-right: 6px; }
.panel-title .dim { font-weight: normal; letter-spacing: 0; margin-left: 8px; }
.panel-hint { font-size: 12px; color: #7f8f85; margin-top: 12px; max-width: 290px; line-height: 1.7; }

/* 三角洲式面板：炭黑底 + 切角 + 细边框 */
.equip-panel, .grid-panel, .safe-panel { background: #11151b;
  border: 1px solid #2a313c; border-radius: 3px; padding: 14px 16px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.equip-slots { display: flex; flex-direction: column; gap: 18px; }
.es-label { font-size: 12px; color: #8a939e; margin-bottom: 6px; letter-spacing: 1px; }
.equip-slot { position: relative; border-radius: 2px; }
.stash-grid { position: relative; background: rgba(0,0,0,.32);
  outline: 1px solid rgba(255,255,255,.09); }
.safe-box { background: rgba(0,0,0,.32); outline: 1px solid rgba(255,213,74,.28); }

/* 保险箱：金色边框，区别于普通仓库 */
.safe-panel { border-color: rgba(255,213,74,.35); background: rgba(255,213,74,.04); }
.safe-panel .panel-title { color: #ffd54a; }
.safe-box { position: relative; }
.safe-box .grid-cell, .safe-cell { background: rgba(255,213,74,.07);
  border-color: rgba(255,213,74,.22); }

/* 三角洲式格子：直角、暗底、细灰线 */
.grid-cell { position: absolute; border-radius: 2px; box-sizing: border-box;
  background: rgba(255,255,255,.028); border: 1px solid rgba(255,255,255,.08); }
.equip-slot .grid-cell { background: rgba(232,179,61,.05); border-color: rgba(232,179,61,.22); }

/* 多格物品块：三角洲式品阶染色 + 底部品阶条 */
.inv-item { position: absolute; display: flex; flex-direction: column; justify-content: space-between;
  padding: 4px 6px; border-radius: 2px; overflow: hidden; cursor: grab;
  background: #1a1f27; border: 1px solid rgba(255,255,255,.14);
  user-select: none; transition: filter .12s; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.inv-item:hover { filter: brightness(1.4); }
.inv-item.in-safe { border-color: rgba(255,213,74,.55); }
/* 品阶染色（白→绿→蓝→紫→金）与底部品阶条 */
.inv-item.r1 { background: linear-gradient(160deg, rgba(154,164,173,.20), rgba(154,164,173,.06) 70%), #1a1f27;
  border-color: rgba(154,164,173,.45); box-shadow: inset 0 -3px 0 rgba(154,164,173,.55), 0 2px 6px rgba(0,0,0,.45); }
.inv-item.r2 { background: linear-gradient(160deg, rgba(82,224,122,.22), rgba(82,224,122,.06) 70%), #1a1f27;
  border-color: rgba(82,224,122,.5); box-shadow: inset 0 -3px 0 rgba(82,224,122,.6), 0 2px 6px rgba(0,0,0,.45); }
.inv-item.r3 { background: linear-gradient(160deg, rgba(74,168,255,.24), rgba(74,168,255,.07) 70%), #1a1f27;
  border-color: rgba(74,168,255,.55); box-shadow: inset 0 -3px 0 rgba(74,168,255,.65), 0 2px 6px rgba(0,0,0,.45); }
.inv-item.r4 { background: linear-gradient(160deg, rgba(176,107,255,.26), rgba(176,107,255,.08) 70%), #1a1f27;
  border-color: rgba(176,107,255,.6); box-shadow: inset 0 -3px 0 rgba(176,107,255,.7), 0 2px 6px rgba(0,0,0,.45); }
.inv-item.r5 { background: linear-gradient(160deg, rgba(255,213,74,.26), rgba(255,213,74,.08) 70%), #1a1f27;
  border-color: rgba(255,213,74,.65); box-shadow: inset 0 -3px 0 rgba(255,213,74,.75), 0 2px 6px rgba(0,0,0,.45); }
/* 已装备：金色描边（独立于品阶阴影，不被覆盖） */
.inv-item.equipped { outline: 1px solid rgba(232,179,61,.95); outline-offset: -1px; }
.inv-item.dragging { opacity: .3; }
.inv-item .ii-grade { font-size: 10px; font-weight: bold; line-height: 1; }
.inv-item .ii-name { font-size: 11.5px; font-weight: 600; color: #eaf4ec; line-height: 1.25;
  overflow: hidden; word-break: break-all; }
.inv-item .ii-price { font-size: 10.5px; color: #ffd54a; }
.drag-ghost { position: fixed !important; z-index: 60; pointer-events: none; opacity: .92;
  box-shadow: 0 12px 30px rgba(0,0,0,.65); cursor: grabbing; }
.grid-empty { position: absolute; left: 0; right: 0; top: 42%; text-align: center;
  color: #7f8f85; font-size: 13px; pointer-events: none; }

/* 负重超重高亮 */
.val.over { color: #ff6b6b !important; font-weight: 600; }

/* ===== 局内背包面板（三角洲式）===== */
#bag-hint { position: absolute; right: 18px; bottom: 18px; font-size: 13px;
  color: rgba(255,255,255,.75); background: rgba(0,0,0,.45); padding: 6px 14px;
  border-radius: 16px; }
#bag-hint b { color: #ffd54a; }

#bag-panel { position: fixed; inset: 0; z-index: 20; display: flex;
  align-items: center; justify-content: center; background: rgba(2,6,4,.55); }
.bp-box { background: rgba(8,14,11,.96); border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: 16px 20px 14px; box-shadow: 0 24px 70px rgba(0,0,0,.7); }
.bp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.bp-name { font-size: 17px; font-weight: bold; color: #eaf4ec; letter-spacing: 1px; }
.bp-tip { font-size: 12px; color: #7f8f85; flex: 1; }
#bp-close { cursor: pointer; border: none; background: rgba(255,255,255,.1); color: #c9d6cd;
  width: 26px; height: 26px; border-radius: 6px; font-size: 13px; }
#bp-close:hover { background: rgba(255,82,82,.3); color: #fff; }
.bp-grid { position: relative; }
.bp-grid .inv-item { cursor: pointer; }
.bp-grid .inv-item:hover { background: rgba(255,82,82,.18); border-color: rgba(255,82,82,.5); }
.bp-foot { display: flex; gap: 18px; align-items: center; margin-top: 12px;
  font-size: 13px; color: #b9c8bd; }
.bp-foot .over { color: #ff6b6b; font-weight: 600; }

/* 局内保险箱条：存进去的东西阵亡不丢 */
.bp-safe-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.bp-safe-label { font-size: 12px; color: #ffd54a; font-weight: 600; white-space: nowrap; }
.bp-safe-label .dim { font-weight: normal; }
.bp-safe { display: flex; gap: 4px; }
.bp-safe-slot { width: 52px; height: 34px; border-radius: 4px; box-sizing: border-box;
  border: 1px dashed rgba(255,213,74,.3); background: rgba(255,213,74,.05);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bp-safe-slot.filled { cursor: pointer; border-style: solid;
  background: linear-gradient(160deg, rgba(255,213,74,.14), rgba(255,213,74,.04)), #131a15; }
.bp-safe-slot.filled:hover { filter: brightness(1.5); }
.bp-safe-slot .ii-name { font-size: 10px; color: #eaf4ec; padding: 0 3px;
  white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

/* 背包物品操作菜单（换装 / 保险箱 / 丢弃）*/
.bp-menu { position: fixed; z-index: 40; width: 172px; padding: 8px;
  background: rgba(10,16,12,.97); border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; box-shadow: 0 14px 44px rgba(0,0,0,.7); }
.bp-menu.hidden { display: none; }
.bpm-head { display: flex; justify-content: space-between; align-items: baseline;
  padding: 2px 4px 8px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 6px; }
.bpm-name { font-size: 13px; font-weight: bold; }
.bpm-price { font-size: 11px; color: #ffd54a; }
.bpm-btn { display: block; width: 100%; text-align: left; cursor: pointer;
  border: none; background: transparent; color: #d5e6da; font-size: 13px;
  padding: 7px 8px; border-radius: 5px; }
.bpm-btn:hover { background: rgba(255,213,74,.16); color: #ffe9a8; }
.bpm-btn.danger { color: #ff8a80; }
.bpm-btn.danger:hover { background: rgba(255,82,82,.22); color: #fff; }

/* 市场回收价目表 */
.sell-rates { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 13px;
  margin-bottom: 16px; padding: 10px 14px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.sell-rates .sr-title { color: #d5e6da; font-weight: 600; letter-spacing: 1px; }
.sell-rates .sr-item.g1 b { color: #9aa4ad; }
.sell-rates .sr-item.g2 b { color: #52e07a; }
.sell-rates .sr-item.g3 b { color: #4aa8ff; }
.sell-rates .sr-item.g4 b { color: #b06bff; }
.sell-rates .sr-item.g5 b { color: #ffd54a; }

/* 物品详情弹层 */
.inspector { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 400px; max-width: 92vw; padding: 20px 22px; border-radius: 3px; z-index: 30;
  background: #0d1117; border: 1px solid #2a313c;
  border-left-width: 5px; box-shadow: 0 24px 70px rgba(0,0,0,.75);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }

/* 仓库/市场页标题用三角洲金色 */
#tab-stash h2, #tab-market h2 { border-left-color: #e8b33d; }
.insp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.rname { font-size: 19px; font-weight: bold; color: #eaf4ec; }
.rtag { font-size: 12px; color: #8fa196; letter-spacing: 1px; white-space: nowrap; }
.insp-stat { font-size: 13px; color: #9fd3ff; margin-bottom: 8px; }
.insp-desc { font-size: 13px; color: #b9c8bd; line-height: 1.65; margin-bottom: 10px; }
.insp-own { font-size: 13px; color: #c9d6cd; margin-bottom: 14px; }
.insp-actions { display: flex; flex-direction: column; gap: 8px; }
.insp-btn { padding: 11px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 14px;
  color: #eaf4ec; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }
.insp-btn:hover { background: rgba(255,255,255,.18); }
.insp-btn.sell { background: rgba(255,213,74,.14); border-color: rgba(255,213,74,.45); color: #ffd54a; }
.insp-btn.close { background: transparent; color: #8fa196; }

/* 提示条 */
.toast { position: fixed; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 40;
  padding: 10px 26px; border-radius: 8px; font-size: 14px;
  background: rgba(20,40,28,.96); border: 1px solid #52e07a; color: #b9ffca;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.bad { background: rgba(44,16,16,.96); border-color: #ff5252; color: #ffb4b4; }

/* ===== 结算 / 暂停 ===== */
.overlay { position: fixed; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(6,16,10,.88), rgba(0,0,0,.96)); }
.panel { min-width: 520px; max-width: 760px; max-height: 88vh; overflow-y: auto;
  padding: 30px 34px; border-radius: 14px; text-align: center; color: #fff;
  background: rgba(8,16,12,.92); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.panel.small { min-width: 440px; }
.panel h1 { font-size: 38px; letter-spacing: 8px; color: #b9ffca; margin-bottom: 10px;
  text-shadow: 0 0 18px rgba(82,224,122,.5); }
.overlay.lose .panel h1 { color: #ff8a80; text-shadow: 0 0 18px rgba(255,82,82,.55); }
.panel > .dim { margin-bottom: 6px; }
#result-stats { display: flex; justify-content: center; gap: 16px; margin: 20px 0 18px; flex-wrap: wrap; }
.stat { min-width: 116px; padding: 10px 20px; border-radius: 10px; font-size: 13px;
  color: #b9c8bd; background: rgba(255,255,255,.06); }
.stat b { display: block; font-size: 24px; color: #fff; margin-top: 4px; }
#result-items { margin-bottom: 18px; }
.ri-title { font-size: 13px; letter-spacing: 2px; color: #8fa196; margin-bottom: 9px; text-align: left; }
.ri-title.red { color: #ff8a80; }
.ri-title.keep { color: #52e07a; }
.ri-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ri-item { font-size: 13px; padding: 6px 12px; border-radius: 6px;
  background: rgba(255,255,255,.07); border-left: 3px solid #9aa4ad; color: #eaf4ec; }
.ri-item.lost { color: #ffb4b4; opacity: .8; }
.ri-warn { color: #ffd54a; font-size: 13px; margin-top: 10px; }
.ri-empty { color: #7f8f85; font-size: 13px; }
.money-line { font-size: 16px; color: #b9c8bd; margin-bottom: 18px; }
.btn-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-row button { cursor: pointer; font-family: inherit; font-size: 18px; letter-spacing: 2px;
  padding: 12px 36px; border: none; border-radius: 9px; font-weight: bold; color: #06210f;
  background: linear-gradient(180deg, #7dffa8, #3ec76a);
  box-shadow: 0 4px 0 #2a8f4b; transition: transform .08s; }
.btn-row button:hover { transform: translateY(-2px); }
.btn-row button:active { transform: translateY(2px); box-shadow: 0 1px 0 #2a8f4b; }
.btn-row button.ghost { background: transparent; border: 1px solid rgba(255,255,255,.28);
  color: #dbe9df; box-shadow: none; }
.btn-row button.ghost.danger { border-color: rgba(255,82,82,.5); color: #ff8a80; }

/* ===== 干员选择卡片 ===== */
.op-cards { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.op-card {
  flex: 1 1 210px; max-width: 280px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  padding: 10px 12px; cursor: pointer;
  background: rgba(255,255,255,.045);
  transition: background .15s, border-color .15s, transform .15s;
}
.op-card:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.op-card.selected { background: rgba(255,255,255,.1); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; }
.oc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.oc-name { font-weight: 700; font-size: 15px; }
.oc-en { font-size: 10px; letter-spacing: 1px; color: rgba(255,255,255,.45); flex: 1; }
.oc-role { font-size: 10px; padding: 2px 7px; border-radius: 9px; color: #fff; }
.oc-desc { font-size: 11px; color: rgba(255,255,255,.6); margin-bottom: 7px; line-height: 1.5; }
.oc-skill, .oc-passive { font-size: 11px; line-height: 1.5; margin-top: 5px; }
.oc-skill b { color: #7fd0ff; display: block; }
.oc-passive b { color: #ffd479; margin-right: 6px; }
.oc-skill span, .oc-passive span { color: rgba(255,255,255,.65); display: block; }

/* ===== 局内技能条（右下角）===== */
#skill-box {
  position: absolute; right: 18px; bottom: 46px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; padding: 9px 14px;
}
#skill-box .sk-key {
  width: 30px; height: 30px; border-radius: 6px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
#skill-box .sk-txt { display: flex; flex-direction: column; line-height: 1.35; }
#skill-name { font-weight: 600; font-size: 13px; }
#skill-cd { font-size: 11px; }
#skill-box.ready .sk-key { background: rgba(82,224,122,.25); border-color: #52e07a; color: #a5f0be; }
#skill-box.ready #skill-cd { color: #52e07a; }

/* ===== 开箱搜索面板（三角洲式：三栏 + 分区分格）===== */
#loot-panel { position: fixed; inset: 0; z-index: 20; display: flex;
  align-items: center; justify-content: center; background: rgba(0,0,0,.55); }
.lp-box {
  width: 1080px; max-width: 96vw; max-height: 92vh;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #151b21, #0c1015);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.75);
  overflow: hidden; animation: lpIn .18s ease-out;
}
@keyframes lpIn { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lp-head {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(140,40,20,.55), rgba(140,40,20,.12));
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.lp-icon { width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.lp-head span:nth-child(2) { font-weight: 700; font-size: 15px; flex: 1; }
#lp-close { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #dfe3e8; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; }
#lp-close:hover { background: rgba(255,255,255,.2); }

/* 三栏主体 */
.lp-body { flex: 1; min-height: 0; display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 240px; gap: 12px; padding: 14px; }
.lp-left { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.lp-mid { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.lp-right { display: flex; flex-direction: column; gap: 8px; min-height: 0; }

/* 左：干员剪影 + 随身装备方格 */
.lp-op { position: relative; height: 176px; flex-shrink: 0; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); }
.lp-op-figure { position: absolute; inset: 0; display: flex; align-items: flex-end;
  justify-content: center; }
.lp-op-figure::before { content: ''; position: absolute; top: 30px; left: 50%;
  transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: #2b3a44; box-shadow: 0 0 22px rgba(0,0,0,.6) inset; }
.lp-op-figure::after { content: ''; position: absolute; bottom: -14px; left: 50%;
  transform: translateX(-50%); width: 128px; height: 120px;
  border-radius: 58px 58px 14px 14px; background: linear-gradient(180deg, #27343e, #161e25); }
.lp-op-en { position: absolute; top: 8px; left: 10px; font-size: 9px; letter-spacing: 3px;
  color: rgba(255,255,255,.28); z-index: 1; }
.lp-op-name { position: absolute; left: 12px; bottom: 10px; z-index: 1;
  font-size: 16px; font-weight: 700; color: #f2e9d4; text-shadow: 0 2px 8px #000; }

.lp-gear { flex: 1; min-height: 0; overflow-y: auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; align-content: start; }
.lp-gear-cell { aspect-ratio: 1 / 1; border-radius: 6px; padding: 6px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.045);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.lp-gear-cell.empty { opacity: .5; }
.gc-cat { font-size: 9.5px; color: #8fa196; letter-spacing: 1px; }
.gc-name { font-size: 11px; font-weight: 600; line-height: 1.25; color: #e6efe9; }
.gc-count { font-size: 9.5px; color: #7f8f85; }

/* 中：容器标题 + 分区格子 */
.lp-mid-head { flex-shrink: 0; display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 15px; font-weight: 700; color: #f2e9d4; }
.lp-mid-count { font-size: 12px; font-weight: normal; color: #9fb0a4; }
.lp-zones { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px;
  display: flex; flex-direction: column; gap: 12px; }
.lp-zone-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lp-zone-head b { font-size: 12.5px; letter-spacing: 2px; color: #f6e7c1; font-weight: 600; }
.lp-zone-head .lz-count { font-size: 11px; color: #7f8f85; }
.lp-zone-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.lp-slot { position: relative; aspect-ratio: 1 / 1; border-radius: 6px; padding: 6px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.14);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; overflow: hidden; }
.lp-slot.pending { align-items: center; justify-content: center; color: rgba(255,255,255,.4); }
.lp-pending { font-size: 16px; letter-spacing: 3px; animation: lpDots 1s infinite; }
@keyframes lpDots { 50% { opacity: .35; } }
.lp-slot.revealed { cursor: pointer; animation: lpPop .22s ease-out; }
.lp-slot.revealed:hover { filter: brightness(1.35); }
@keyframes lpPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lp-slot.r1 { background: linear-gradient(160deg, rgba(154,164,173,.16), rgba(255,255,255,.02) 70%); }
.lp-slot.r2 { background: linear-gradient(160deg, rgba(82,224,122,.15), rgba(255,255,255,.02) 70%); }
.lp-slot.r3 { background: linear-gradient(160deg, rgba(74,168,255,.16), rgba(255,255,255,.02) 70%); }
.lp-slot.r4 { background: linear-gradient(160deg, rgba(176,107,255,.18), rgba(255,255,255,.02) 70%); }
.lp-slot.r5 { background: linear-gradient(160deg, rgba(255,213,74,.18), rgba(255,255,255,.02) 70%); }
.lp-item-cat { position: absolute; top: 4px; left: 6px; font-size: 9px; color: #8b969e; letter-spacing: 1px; }
.lp-item-glyph { position: absolute; right: 4px; bottom: 2px; font-size: 30px; font-weight: 800;
  opacity: .16; line-height: 1; pointer-events: none; }
.lp-item-name { font-size: 11px; font-weight: 600; line-height: 1.25; color: #eaf1ec;
  position: relative; z-index: 1; }
.lp-item-price { font-size: 10.5px; position: relative; z-index: 1; }
.lp-empty { text-align: center; color: rgba(255,255,255,.45); padding: 40px 0; }

/* 右：附近搜索情况 */
.lp-right-head { flex-shrink: 0; font-size: 14px; font-weight: 700; letter-spacing: 1px;
  color: #f6e7c1; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.lp-nearby { flex: 1; min-height: 0; overflow-y: auto; align-content: start;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lp-near-cell { aspect-ratio: 1 / 1; border-radius: 6px; padding: 6px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.lp-near-cell.current { border-color: rgba(232,179,61,.85);
  box-shadow: 0 0 0 1px rgba(232,179,61,.45) inset; }
.lp-near-name { font-size: 11px; font-weight: 600; color: #e6efe9; line-height: 1.25; }
.lp-near-meta { font-size: 9.5px; color: #8fa196; }
.lp-near-empty { grid-column: 1 / -1; color: rgba(255,255,255,.4); font-size: 11.5px; padding: 14px 4px; }

.lp-foot { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.25); }
#lp-take-all {
  background: #52e07a; color: #0c1a10; font-weight: 700;
  border: none; border-radius: 7px; padding: 8px 18px; cursor: pointer; font-size: 13px;
}
#lp-take-all:hover { background: #6bef90; }
.lp-foot .dim { font-size: 12px; }
.lp-tip { margin-left: auto; font-size: 11px; color: rgba(255,255,255,.4); }

/* ===== 特勤处 ===== */
#tab-base {
  --holo: #63d8ff;
  --holo-line: rgba(99,216,255,.30);
  --holo-text: #d8ecf7;
  --holo-dim: #7c95a6;
  --gold: #f0c161;
  position: relative; overflow: hidden; padding: 16px 18px 20px; border-radius: 12px;
  border: 1px solid rgba(99,216,255,.14);
  background:
    radial-gradient(ellipse at 50% 38%, rgba(34,84,108,.38), transparent 62%),
    linear-gradient(180deg, #0a1116 0%, #0b141a 55%, #070d12 100%);
}
#tab-base::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(99,216,255,.14) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .55;
}
.base-view { position: relative; z-index: 1; }

/* 总览舞台 */
.bo-stage { position: relative; height: 430px; margin-bottom: 18px; }
.bo-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 48%; opacity: .55;
  background-image:
    linear-gradient(rgba(99,216,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,216,255,.10) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(420px) rotateX(64deg) scale(1.6);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 62%);
  mask-image: linear-gradient(180deg, transparent, #000 62%);
}
.bo-cols {
  position: relative; height: 100%; z-index: 2; display: grid;
  grid-template-columns: 230px 1fr 230px; gap: 8px;
}
.bo-col { display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.bo-left { align-items: flex-end; }
.bo-right { align-items: flex-start; }
.bo-links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.dept-group { position: relative; }
.dg-label { font-size: 11px; letter-spacing: 2px; color: #8ba4b4; margin-bottom: 6px; }
.dc-card {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-width: 172px; padding: 7px 12px 7px 9px; cursor: pointer;
  border: 1px solid rgba(99,216,255,.16);
  background: linear-gradient(100deg, rgba(16,36,46,.78), rgba(10,22,28,.35));
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.dc-card:hover {
  border-color: rgba(99,216,255,.6);
  background: linear-gradient(100deg, rgba(24,58,74,.92), rgba(12,28,36,.5));
  box-shadow: 0 0 18px rgba(99,216,255,.14);
}
.dc-ic {
  width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--holo); border: 1px solid rgba(99,216,255,.30);
  background: rgba(99,216,255,.06);
}
.dc-txt { display: flex; flex-direction: column; gap: 1px; }
.dc-name { font-size: 13px; letter-spacing: 1px; color: var(--holo-text); }
.dc-lv { font-size: 11px; letter-spacing: 1px; color: #7fd6f7; }
.dc-node {
  position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  background: #8fe6ff; box-shadow: 0 0 6px #63d8ff;
}
.bo-left .dc-node { right: -3px; }
.bo-right .dc-node { left: -3px; }

.bo-center { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.holo-base { position: relative; width: 320px; height: 222px; }
.hb-pad {
  position: absolute; left: 50%; bottom: 4px; width: 300px; height: 54px; margin-left: -150px;
  transform: perspective(320px) rotateX(58deg);
  border: 1px solid rgba(99,216,255,.5);
  background: radial-gradient(ellipse at 50% 50%, rgba(99,216,255,.22), rgba(99,216,255,.02) 72%);
  box-shadow: 0 0 26px rgba(99,216,255,.22), inset 0 0 22px rgba(99,216,255,.16);
}
.hb-tower {
  position: absolute; left: 50%; bottom: 44px; width: 96px; height: 118px; margin-left: -48px;
  border: 1px solid rgba(120,226,255,.6);
  background: linear-gradient(180deg, rgba(99,216,255,.16), rgba(99,216,255,.03));
  box-shadow: 0 0 22px rgba(99,216,255,.2), inset 0 0 18px rgba(99,216,255,.12);
}
.hb-tower::before, .hb-tower::after {
  content: ''; position: absolute; left: -1px; right: -1px; height: 1px;
  background: rgba(120,226,255,.42);
}
.hb-tower::before { top: 12px; }
.hb-tower::after { bottom: 16px; }
.hb-tower i { position: absolute; border: 1px solid rgba(120,226,255,.5); }
.hb-tower i:nth-child(1) { left: 13px; top: 30px; width: 14px; height: 8px; }
.hb-tower i:nth-child(2) { right: 13px; top: 30px; width: 14px; height: 8px; }
.hb-tower i:nth-child(3) { left: 50%; margin-left: -7px; top: 56px; width: 14px; height: 22px; }
.hb-wl, .hb-wr {
  position: absolute; bottom: 44px; width: 70px; height: 74px;
  border: 1px solid rgba(99,216,255,.38);
  background: rgba(99,216,255,.05);
  box-shadow: 0 0 16px rgba(99,216,255,.12);
}
.hb-wl { right: 50%; margin-right: 48px; transform: skewY(-6deg); }
.hb-wr { left: 50%; margin-left: 48px; transform: skewY(6deg); }
.hb-ring {
  position: absolute; left: 50%; bottom: 18px; width: 210px; height: 64px; margin-left: -105px;
  border: 1px solid rgba(99,216,255,.28); border-radius: 50%;
  transform: perspective(300px) rotateX(70deg);
}
.hb-core {
  position: absolute; left: 50%; bottom: 74px; width: 10px; height: 10px; margin-left: -5px;
  background: #d8f6ff; box-shadow: 0 0 12px #7fe3ff, 0 0 26px rgba(99,216,255,.7);
  animation: hbPulse 2.4s ease-in-out infinite;
}
.hb-scan {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .5;
  background: linear-gradient(180deg, transparent 0%, rgba(99,216,255,.12) 46%,
    rgba(160,242,255,.5) 50%, rgba(99,216,255,.12) 54%, transparent 100%);
  animation: hbScan 5.5s linear infinite;
}
@keyframes hbScan { 0% { transform: translateY(-105%); } 100% { transform: translateY(105%); } }
@keyframes hbPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.bo-title { text-align: center; margin-top: 16px; }
.bo-title h3 {
  margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: 10px; color: #e6f6ff;
  text-shadow: 0 0 18px rgba(99,216,255,.45);
}
.bo-title span { font-size: 10px; letter-spacing: 4px; color: #6f8b9c; }

/* 设施详情 */
.bd-back {
  font-family: inherit; font-size: 12px; letter-spacing: 1px; padding: 5px 12px; cursor: pointer;
  color: #9fc4d6; background: none; border: 1px solid rgba(99,216,255,.25);
}
.bd-back:hover { color: #e2f5ff; border-color: rgba(99,216,255,.6); }
.bd-name-row { text-align: center; margin: 10px 0 2px; }
.bd-name-row h3 {
  display: inline-block; margin: 0 8px 0 0; font-size: 22px; letter-spacing: 6px;
  color: #eaf7ff; text-shadow: 0 0 16px rgba(99,216,255,.5);
}
.bd-name-row .dim { font-size: 10px; letter-spacing: 3px; color: #6f8b9c; }
.bd-holo {
  position: relative; width: 380px; height: 212px; margin: 4px auto 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.bh-pack {
  position: absolute; border: 1px solid rgba(120,226,255,.5);
  background: linear-gradient(180deg, rgba(99,216,255,.12), rgba(99,216,255,.02));
  box-shadow: 0 0 18px rgba(99,216,255,.16), inset 0 0 14px rgba(99,216,255,.1);
}
.bh-p1 { left: 50%; margin-left: -92px; bottom: 54px; width: 184px; height: 98px; }
.bh-p2 { left: 50%; margin-left: -34px; bottom: 54px; width: 68px; height: 148px; }
.bh-p3 { left: 50%; margin-left: 52px; bottom: 54px; width: 52px; height: 70px; }
.bh-floor {
  position: absolute; left: 50%; bottom: 12px; width: 330px; height: 64px; margin-left: -165px;
  transform: perspective(320px) rotateX(60deg);
  border: 1px solid rgba(99,216,255,.4);
  background: radial-gradient(ellipse at 50% 50%, rgba(99,216,255,.18), transparent 72%);
  box-shadow: 0 0 22px rgba(99,216,255,.2);
}
.bh-scan {
  position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background: linear-gradient(180deg, transparent 0%, rgba(99,216,255,.1) 46%,
    rgba(160,242,255,.45) 50%, rgba(99,216,255,.1) 54%, transparent 100%);
  animation: hbScan 5.5s linear infinite;
}
.bd-level { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin: 0 0 18px; }
.bd-lv-old { font-size: 20px; letter-spacing: 3px; color: #9fb4c2; }
.bd-arrow { font-size: 16px; letter-spacing: 2px; color: #7fd6f7; opacity: .85; }
.bd-lv-new {
  font-size: 20px; font-weight: 700; letter-spacing: 3px; color: var(--gold);
  text-shadow: 0 0 14px rgba(240,193,97,.45);
}
.bd-unlock-title { text-align: center; font-size: 12.5px; letter-spacing: 2px; color: #a9c4d4; margin-bottom: 9px; }
.bd-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; min-height: 58px; }
.bd-cell {
  width: 58px; height: 58px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; color: #dff4ff;
  border: 1px solid rgba(99,216,255,.28);
  background: linear-gradient(180deg, rgba(30,60,74,.55), rgba(10,22,28,.55));
}
.bd-cell .bc-glyph { font-size: 17px; color: #8fe6ff; text-shadow: 0 0 10px rgba(99,216,255,.5); }
.bd-cell .bc-label { font-size: 9.5px; color: #9fbccb; text-align: center; line-height: 1.15; padding: 0 2px; }
.bd-cell.empty { border-style: dashed; opacity: .45; }
.bd-effect {
  max-width: 560px; margin: 0 auto 12px; padding: 7px 12px; text-align: center;
  font-size: 12.5px; color: #9fd3ff; background: rgba(99,216,255,.06);
  border-left: 2px solid rgba(99,216,255,.5);
}
.bd-cost {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px;
  margin-bottom: 14px; font-size: 12.5px; color: #b9c8d3;
}
.bd-cost .gold { color: var(--gold); }
.bd-cost .lack { color: #ff8a80; }
.bd-max { color: #52e07a; }
.bd-actions { text-align: center; }
.bd-upgrade {
  font-family: inherit; font-size: 13.5px; letter-spacing: 2px; padding: 9px 34px; cursor: pointer;
  font-weight: 700; color: #04161c; border: 1px solid rgba(150,240,255,.8);
  background: linear-gradient(180deg, #8fe6ff, #3fbde6);
  box-shadow: 0 0 18px rgba(99,216,255,.3);
}
.bd-upgrade:hover:not(:disabled) { filter: brightness(1.1); }
.bd-upgrade:disabled {
  cursor: not-allowed; opacity: .35; box-shadow: none;
  background: #2a3a42; color: #9db4c0; border-color: rgba(255,255,255,.14);
}

/* 制造台 / 收藏室 */
.base-lower { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; position: relative; z-index: 2; }
.base-panel {
  padding: 12px 14px 14px; border-radius: 4px;
  background: rgba(10,26,34,.62); border: 1px solid rgba(99,216,255,.16);
}
.panel-title {
  font-size: 14px; font-weight: 700; letter-spacing: 2px; color: #d8ecf7;
  padding-bottom: 9px; margin-bottom: 10px; border-bottom: 1px solid rgba(99,216,255,.14);
}
.panel-title .dim { font-weight: normal; letter-spacing: 0; font-size: 12px; }
.craft-idle { font-size: 12.5px; padding: 4px 0 10px; }
.craft-now { background: rgba(99,216,255,.06); border: 1px solid rgba(99,216,255,.28);
  padding: 9px 11px; margin-bottom: 10px; }
.cn-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.cn-bar { height: 5px; background: rgba(255,255,255,.1); overflow: hidden; }
.cn-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3fbde6, #8fe6ff); transition: width .3s; }
.craft-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px;
  padding: 8px 0; border-bottom: 1px dashed rgba(99,216,255,.10); }
.craft-row:last-child { border-bottom: none; }
.craft-row.locked { opacity: .45; }
.cr-name { width: 92px; color: var(--holo-text); font-weight: 600; }
.cr-req { width: 38px; color: #7fd6f7; }
.cr-mat { flex: 1; color: #a3bcc9; }
.cr-mat .lack { color: #ff8a80; }
.cr-time { width: 54px; color: #7f95a2; text-align: right; }
.cr-btn { cursor: pointer; font-family: inherit; font-size: 12px; padding: 5px 14px;
  border: 1px solid rgba(99,216,255,.5); color: #cdf2ff; background: rgba(99,216,255,.1); }
.cr-btn:hover:not(:disabled) { background: rgba(99,216,255,.22); }
.cr-btn:disabled { cursor: not-allowed; opacity: .35; }
.collection-box { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; }
.col-card { display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  background: rgba(255,255,255,.04); border-left: 3px solid rgba(99,216,255,.22); }
.col-card.r4 { border-left-color: #c084fc; background: rgba(192,132,252,.08); }
.col-card.r5 { border-left-color: var(--gold); background: rgba(240,193,97,.1); }
.col-g { width: 20px; color: var(--gold); font-weight: 700; }
.col-name { flex: 1; color: #d9e9f2; }
.col-n { color: #9fb0a4; }

@media (max-width: 1180px) {
  .bo-cols { grid-template-columns: 190px 1fr 190px; }
  .dc-card { min-width: 148px; }
}
@media (max-width: 1000px) {
  .bo-stage { height: 620px; }
  .bo-cols { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .bo-left, .bo-right { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 14px; }
  .bo-links { display: none; }
  .base-lower { grid-template-columns: 1fr; }
}

/* ===== 特勤处 3D 漫游 ===== */
.bo-enter {
  position: absolute; top: 6px; right: 8px; z-index: 3; cursor: pointer; font-family: inherit;
  font-size: 12.5px; letter-spacing: 2px; padding: 7px 16px; font-weight: 700;
  color: #04161c; border: 1px solid rgba(150,240,255,.8);
  background: linear-gradient(180deg, #8fe6ff, #3fbde6);
  box-shadow: 0 0 18px rgba(99,216,255,.3);
}
.bo-enter:hover { filter: brightness(1.1); }

#base-hud { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
#base-hud.hidden { display: none; }
.bw-top {
  position: absolute; left: 26px; top: 20px; display: flex; flex-direction: column; gap: 2px;
  padding-left: 12px; border-left: 3px solid #63d8ff;
  text-shadow: 0 0 12px rgba(99,216,255,.4);
}
.bw-title { font-size: 20px; font-weight: 700; letter-spacing: 8px; color: #e6f6ff; }
.bw-sub { font-size: 9.5px; letter-spacing: 3px; color: #6f8b9c; }
.bw-cross { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.bw-cross::before, .bw-cross::after { content: ''; position: absolute; background: rgba(160,240,255,.8); }
.bw-cross::before { left: 50%; top: 0; width: 1px; height: 100%; margin-left: -.5px; }
.bw-cross::after { top: 50%; left: 0; height: 1px; width: 100%; margin-top: -.5px; }
.bw-keys {
  position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%); white-space: nowrap;
  font-size: 11.5px; letter-spacing: 1px; color: #8fb0c2;
  background: rgba(6,14,19,.55); border: 1px solid rgba(99,216,255,.14); padding: 5px 14px;
}
.bw-keys b { color: #8fe6ff; }
.bw-tip {
  position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%);
  font-size: 14px; letter-spacing: 1px; color: #dff4ff;
  background: rgba(8,22,30,.82); border: 1px solid rgba(99,216,255,.45);
  padding: 8px 20px; box-shadow: 0 0 18px rgba(99,216,255,.18);
}
.bw-tip b { color: #8fe6ff; }
.bw-tip.hidden { display: none; }
.bw-exit {
  position: absolute; right: 24px; top: 20px; pointer-events: auto; cursor: pointer;
  font-family: inherit; font-size: 12px; letter-spacing: 1px; padding: 6px 14px;
  color: #9fc4d6; background: rgba(8,20,26,.6); border: 1px solid rgba(99,216,255,.3);
}
.bw-exit:hover { color: #e2f5ff; border-color: rgba(99,216,255,.7); }
.bw-range { right: 132px; color: #08121a; background: linear-gradient(90deg, #6fe0a0, #8fe6ff); border: 0; }

.bd-range {
  font-family: inherit; font-size: 13px; letter-spacing: 1px; cursor: pointer;
  padding: 8px 18px; margin-right: 10px; color: #08121a; font-weight: 700;
  background: linear-gradient(90deg, #6fe0a0, #8fe6ff); border: 0; border-radius: 6px;
}
.bd-range:hover { filter: brightness(1.1); }

/* ===== 枪械改装（仓库页） ===== */
.attach-panel { margin-top: 10px; }
.attach-box { display: flex; flex-direction: column; gap: 6px; }
.attach-title { font-size: 13px; color: #9fd3ff; margin-bottom: 2px; }
.attach-slot {
  display: flex; align-items: center; gap: 8px; width: 100%;
  font-family: inherit; font-size: 13px; text-align: left; cursor: pointer;
  color: #eaf4ec; background: rgba(255,255,255,.04);
  border: 1px solid rgba(120,200,230,.22); border-radius: 6px; padding: 6px 8px;
}
.attach-slot:hover { background: rgba(99,216,255,.12); border-color: rgba(99,216,255,.55); }
.as-kind { width: 46px; flex: none; color: #6f8b9c; }
.as-name { flex: 1; color: #dff4ff; }
.as-op { flex: none; color: #63d8ff; font-size: 12px; }
.attach-empty, .attach-hint { font-size: 12px; color: #7f9288; line-height: 1.55; }
.attach-hint { margin-top: 2px; }

/* ===== 靶场 ===== */
#range-hud { position: fixed; inset: 0; z-index: 45; pointer-events: none; color: #eaf4ec; }
.rg-top {
  position: absolute; left: 18px; top: 16px; display: flex; align-items: center; gap: 22px;
  padding: 10px 20px; background: rgba(4,10,12,.62);
  border: 1px solid rgba(99,216,255,.28); border-radius: 10px;
}
.rg-title { font-size: 18px; font-weight: 700; color: #eaf6ff; }
.rg-title span { margin-left: 6px; font-size: 10px; letter-spacing: 2px; color: #63d8ff; }
.rg-score, .rg-stat { text-align: center; }
.rg-score span, .rg-stat span { display: block; font-size: 10.5px; color: #7fa5b5; letter-spacing: 1px; }
.rg-score b { font-size: 26px; color: #ffd54a; font-family: Consolas, monospace; }
.rg-stat b { font-size: 17px; color: #dff4ff; font-family: Consolas, monospace; }
.rg-cross {
  position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border: 1px solid rgba(255,255,255,.45); border-radius: 50%;
}
.rg-cross::before, .rg-cross::after { content: ''; position: absolute; background: rgba(255,255,255,.75); }
.rg-cross::before { left: 50%; top: -5px; width: 1px; height: 32px; margin-left: -.5px; }
.rg-cross::after { top: 50%; left: -5px; height: 1px; width: 32px; margin-top: -.5px; }
.rg-bottom {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  min-width: 440px; text-align: center; padding: 8px 22px;
  background: rgba(4,10,12,.58); border: 1px solid rgba(99,216,255,.22); border-radius: 10px;
}
.rg-weapon b { font-size: 16px; color: #eaf6ff; }
.rg-weapon span { display: block; margin-top: 2px; font-size: 11px; color: #8fb9c9; }
.rg-ammo { margin-top: 3px; font-family: Consolas, monospace; font-size: 15px; color: #a9c6d4; }
.rg-ammo b { font-size: 24px; color: #ffd54a; }
.rg-keys { margin-top: 4px; font-size: 11px; color: #7f99a5; letter-spacing: .5px; }
.rg-hit {
  position: absolute; left: 50%; top: 43%; transform: translate(-50%,-50%) scale(.7);
  font-size: 30px; font-weight: 700; color: #ffd54a; opacity: 0;
  text-shadow: 0 0 10px rgba(0,0,0,.9); pointer-events: none;
}
.rg-hit.show { animation: rgHit .55s ease-out forwards; }
@keyframes rgHit {
  0% { opacity: 1; transform: translate(-50%,-50%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%,-115%) scale(.95); }
}
.rg-back, .rg-open {
  pointer-events: auto; position: absolute; top: 18px; cursor: pointer;
  font-family: inherit; font-size: 13px; letter-spacing: 1px; padding: 8px 15px;
  color: #dff4ff; background: rgba(4,12,16,.7);
  border: 1px solid rgba(99,216,255,.4); border-radius: 8px;
}
.rg-back { right: 132px; }
.rg-open { right: 18px; }
.rg-back:hover, .rg-open:hover { border-color: rgba(99,216,255,.85); color: #fff; }

#range-panel {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(2,6,8,.72);
}
.rp-box {
  width: min(780px, 92vw); max-height: 84vh; overflow: auto; padding: 18px 22px;
  color: #eaf4ec; background: linear-gradient(160deg, #0d171b, #070d10);
  border: 1px solid rgba(99,216,255,.35); border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,0,0,.6);
}
.rp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 18px; font-weight: 700; }
.rp-head em { flex: 1; font-style: normal; font-size: 12px; font-weight: 400; color: #7fa5b5; }
.rp-head button, .rp-gun, .rp-chip {
  font-family: inherit; cursor: pointer; color: #dff4ff;
  background: rgba(255,255,255,.04); border: 1px solid rgba(120,200,230,.25);
  border-radius: 7px; padding: 7px 12px; font-size: 13px;
}
.rp-head button:hover, .rp-gun:hover, .rp-chip:hover { border-color: rgba(99,216,255,.7); }
.rp-guns { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; margin-bottom: 16px; }
.rp-gun { text-align: left; padding: 9px 12px; }
.rp-gun b { display: block; font-size: 14px; color: #eaf6ff; }
.rp-gun em { display: block; margin-top: 3px; font-style: normal; font-size: 11px; color: #8fb9c9; }
.rp-gun.active, .rp-chip.active { border-color: #ffd54a; background: rgba(255,213,74,.14); color: #ffe9a8; }
.rp-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.rp-kind { width: 62px; flex: none; padding-top: 8px; font-size: 13px; color: #6f8b9c; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-chip { padding: 6px 10px; font-size: 12px; }

/* ===== 瞄具视野：开镜时压在画面上方，形成镜筒与分划 ===== */
#scope-view { position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: 0; }
#scope-view.hidden { display: none; }
#scope-view .sv-mask { position: absolute; inset: 0; }
#scope-view .sv-ring {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.92), inset 0 0 26px 12px rgba(0,0,0,.9);
}
.sv-reticle { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }

/* 红点：镜筒边缘轻微压暗，中心小红点 */
#scope-view.sv-dot { --r: 34vmin; }
#scope-view.sv-dot .sv-mask {
  background: radial-gradient(circle at 50% 50%,
    rgba(0,0,0,0) 0 30vmin, rgba(0,0,0,.30) 34vmin, rgba(0,0,0,.55) 100%);
}
#scope-view.sv-dot .sv-ring { box-shadow: inset 0 0 0 2px rgba(0,0,0,.55); }

/* 全息：方形窗边压暗，红色圆圈分划 */
#scope-view.sv-holo { --r: 23vmin; }
#scope-view.sv-holo .sv-mask {
  background: radial-gradient(circle at 50% 50%,
    rgba(0,0,0,0) 0 21vmin, rgba(0,0,0,.92) 23vmin, #000 100%);
}

/* 3 倍 / 8 倍：全黑镜筒 + 十字密位 */
#scope-view.sv-mil { --r: 29vmin; }
#scope-view.sv-mil .sv-mask {
  background: radial-gradient(circle at 50% 50%,
    rgba(0,0,0,0) 0 28.4vmin, rgba(0,0,0,.97) 29vmin, #000 100%);
}
#scope-view.sv-mil8 { --r: 26vmin; }
#scope-view.sv-mil8 .sv-mask {
  background: radial-gradient(circle at 50% 50%,
    rgba(0,0,0,0) 0 25.4vmin, rgba(0,0,0,.97) 26vmin, #000 100%);
}

/* 分划图形 */
.rt-dot {
  position: absolute; left: -2px; top: -2px; width: 4px; height: 4px;
  border-radius: 50%; background: #ff3b30;
  box-shadow: 0 0 6px rgba(255,59,48,.95);
}
.rt-holo {
  position: absolute; left: -13vmin; top: -13vmin; width: 26vmin; height: 26vmin;
  border: 1.5px solid rgba(255,74,58,.7); border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,60,45,.28);
}
#scope-view.sv-holo .rt-dot { left: -2px; top: -2px; }
.rt-h {
  position: absolute; left: -30vmin; top: -0.5px; width: 60vmin; height: 1px;
  background: rgba(14,18,20,.88);
}
.rt-v {
  position: absolute; left: -0.5px; top: -30vmin; width: 1px; height: 60vmin;
  background: rgba(14,18,20,.88);
}
.sv-mil .rt-dot, .sv-mil8 .rt-dot {
  left: -1px; top: -1px; width: 2px; height: 2px;
  background: rgba(14,18,20,.95); box-shadow: none;
}
/* 密位刻度（下方） */
.rt-tick { position: absolute; height: 1px; background: rgba(14,18,20,.8); }
.rt-t1 { top: 6vmin; left: -3px; width: 6px; }
.rt-t2 { top: 11vmin; left: -4px; width: 8px; }
.rt-t3 { top: 16vmin; left: -3px; width: 6px; }
.rt-t4 { top: 21vmin; left: -5px; width: 10px; }

/* 开镜时隐藏普通准星，避免和分划重叠 */
#hud.scoped #crosshair { display: none; }
#range-hud.scoped .rg-cross { display: none; }
