/* styles3.css —— 对标 df.lza11111.com/sandbox 的游戏内质感 + 指针拖拽 */
:root {
  --bg: #000;
  --bg2: #0d0e11;
  --panel: #141519;
  --panel2: #1a1c21;
  --slot: #16171b;
  --cell: rgb(42, 42, 46);     /* 参考站实测格子底色 */
  --cell-line: #303237;
  --line: #26282d;
  --line2: #393c44;
  --text: #d7dbe1;
  --text-bright: #fff;
  --dim: #6b7280;
  --accent: #c0392f;           /* 参考站红 */
  --accent2: #d4a05a;          /* 金褐 */
  --gold: #e8c45e;
  --green: #57b97b;
  /* 稀有度半透明叠加（实测参考站红/蓝 + 推导金/紫） */
  --rar-red: rgba(96, 38, 42, 0.92);
  --rar-gold: rgba(86, 66, 28, 0.92);
  --rar-purple: rgba(60, 44, 78, 0.92);
  --rar-blue: rgba(32, 50, 64, 0.92);
  --rar-red-line: #b9554a;
  --rar-gold-line: #b08a3e;
  --rar-purple-line: #7a55a0;
  --rar-blue-line: #3f6f90;
  --cell-size: 60px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  user-select: none;            /* 指针拖拽关键：禁选中，避免拖出文字选区 */
}
.dim { color: var(--dim); font-size: 12px; }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px; height: 50px;
  background: linear-gradient(180deg, #17100f 0%, #101114 100%);
  border-bottom: 1px solid #2a1714;
  position: sticky; top: 0; z-index: 50;
}
.brand { font-size: 15px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.brand .ver { font-size: 11px; color: var(--accent2); margin-left: 6px; font-weight: 400; }
.mode-switch { display: flex; gap: 2px; background: var(--cell); border-radius: 7px; padding: 3px; }
.mode-btn {
  background: transparent; border: none; color: var(--dim);
  padding: 6px 13px; border-radius: 5px; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all .12s;
}
.mode-btn.active { background: var(--accent); color: #fff; }
.mode-btn:not(.active):hover { color: var(--text); background: var(--panel2); }
.topctrl { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.topctrl .ctl { display: flex; flex-direction: column; font-size: 10px; color: var(--dim); gap: 2px; }

select, input, textarea {
  background: var(--cell); border: 1px solid var(--line); color: var(--text);
  border-radius: 5px; padding: 5px 8px; font-size: 12px; font-family: inherit;
}
input[type=number] { width: 60px; }
select:focus, input:focus { outline: none; border-color: var(--accent2); }
button {
  background: var(--panel2); border: 1px solid var(--line); color: var(--text);
  border-radius: 5px; padding: 7px 12px; cursor: pointer; font-size: 12px; transition: all .12s;
  white-space: nowrap;
}
button:hover { border-color: var(--accent2); }
button.primary { background: var(--accent); color: #fff; border: none; font-weight: 700; }
button.primary:hover { background: #d44a3e; }
button.ghost { background: transparent; }
button.ghost.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
button.mini { padding: 4px 9px; font-size: 11px; }
button.mini.accent { color: var(--accent2); border-color: var(--accent2); background: rgba(212,160,90,.08); }
button.mini.accent:hover { background: var(--accent2); color: #000; }

/* ---------- HUD（指标条） ---------- */
.hud { display: flex; gap: 10px; padding: 9px 16px; flex-wrap: wrap; background: var(--bg2); border-bottom: 1px solid var(--line); }
.hud:empty { display: none; }
.hud .metric { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 5px 13px; animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.96); } to { opacity: 1; transform: none; } }
.hud .k { font-size: 10px; color: var(--dim); }
.hud .v { font-size: 16px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.hud .metric.flash .v { color: var(--accent2); font-size: 13px; }

/* ---------- 三栏舞台 ---------- */
.stage { display: grid; grid-template-columns: 230px minmax(420px, 1fr) 320px; gap: 12px; padding: 12px 16px 48px; align-items: start; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px; min-width: 0; }
.col-title { font-size: 12px; color: var(--accent2); font-weight: 700; letter-spacing: .5px; margin-bottom: 9px; }

/* ---------- 左：装备位 ---------- */
.equip-rack { display: flex; flex-direction: column; gap: 7px; }
.equip-slot {
  background: var(--slot); border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px;
  display: flex; flex-direction: column; gap: 4px; min-height: 46px; position: relative;
  cursor: pointer; transition: border-color .12s, background .12s;
}
.equip-slot:hover { border-color: var(--line2); background: var(--panel2); }
.equip-slot.empty { border-style: dashed; }
.equip-slot.is-gun { min-height: 64px; }
.equip-slot .role { font-size: 10px; color: var(--dim); display: flex; justify-content: space-between; }
.equip-slot .role .num { width: 15px; height: 15px; border-radius: 3px; background: var(--cell); color: var(--accent2); text-align: center; line-height: 15px; font-weight: 700; }
.equip-slot .filled { display: flex; align-items: center; gap: 8px; }
.equip-slot .filled img { height: 30px; max-width: 120px; object-fit: contain; }
.equip-slot .nm { font-size: 12px; font-weight: 600; flex: 1; color: var(--text-bright); }
.equip-slot .val { color: var(--gold); font-size: 11px; font-variant-numeric: tabular-nums; }
.equip-slot .atts { display: flex; flex-wrap: wrap; gap: 3px; }
.att-chip { font-size: 9px; padding: 1px 5px; border-radius: 3px; background: #2c2440; color: #c9b3e8; }
.equip-slot .empty-txt { color: var(--dim); font-size: 12px; }
.equip-slot .drop-x { position: absolute; top: 4px; right: 6px; color: var(--accent); font-size: 13px; opacity: 0; }
.equip-slot:hover .drop-x { opacity: 1; }

.strip-info { font-size: 12px; line-height: 1.8; }
.strip-info .num { color: var(--accent2); font-weight: 700; }

/* ---------- 中：容器区 ---------- */
.loot-head, .scatter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.loot-head .coin { width: 14px; height: 14px; vertical-align: -2px; }
.carry-total { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.containers { display: flex; flex-direction: column; gap: 12px; }

/* 单个容器面板：标题 + (图标槽 + 分格区) */
.container-box { background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.container-box > h4 {
  margin: 0; padding: 6px 10px; font-size: 12px; color: var(--text); font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--panel2); border-bottom: 1px solid var(--line);
}
.container-box > h4 .cv { color: var(--gold); font-size: 11px; font-variant-numeric: tabular-nums; }
.container-box > h4 .ctitle { display: flex; align-items: center; gap: 7px; }
.container-box > h4 .pick-btn { font-size: 10px; padding: 2px 7px; }
.container-body { display: flex; gap: 10px; padding: 9px; align-items: flex-start; }

/* 容器左侧：装备图标槽（胸挂/背包），点击换装 */
.equip-icon-slot {
  flex: 0 0 auto; width: 74px; height: 74px; border-radius: 5px;
  background: var(--slot); border: 1px solid var(--line); position: relative;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.equip-icon-slot:hover { border-color: var(--accent2); }
.equip-icon-slot img { max-width: 90%; max-height: 76%; object-fit: contain; }
.equip-icon-slot .tag { position: absolute; top: 2px; left: 4px; font-size: 9px; color: var(--dim); }
.equip-icon-slot .empty-tag { color: var(--dim); font-size: 11px; }

/* 分格区：多个 subGrid 平铺 */
.subgrids { display: flex; flex-wrap: wrap; gap: 5px; align-items: flex-start; flex: 1; min-width: 0; }
.grid-canvas { position: relative; background: transparent; }
.grid-canvas.drag-ok { box-shadow: 0 0 0 2px var(--accent2); }
.grid-canvas.drag-bad { box-shadow: 0 0 0 2px var(--accent); }
.cell-bg { position: absolute; box-sizing: border-box; border: 1px solid var(--cell-line); background: var(--cell); }
.cell-hl { position: absolute; box-sizing: border-box; pointer-events: none; z-index: 6; }
.cell-hl.ok { background: rgba(87,185,123,.32); border: 1px solid var(--green); }
.cell-hl.bad { background: rgba(192,57,47,.32); border: 1px solid var(--accent); }

/* 物品矩形（容器内）：稀有度底 + contain 图 + 名/价 */
.item-rect {
  position: absolute; box-sizing: border-box; overflow: hidden;
  border: 1px solid rgba(0,0,0,.55); border-left-width: 3px;
  cursor: grab; transition: filter .1s, box-shadow .1s;
}
.item-rect:hover { filter: brightness(1.12); box-shadow: 0 0 0 1px var(--accent2); z-index: 8; }
.item-rect.dragging-src { opacity: .35; filter: grayscale(50%); }
.item-rect .ir-img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; pointer-events: none; }
/* 文字角标：左上角、小字号、名+价上下堆叠，半透明窄底，不遮挡图标主体 */
.item-rect .ir-label { position: absolute; left: 0; top: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 0; max-width: calc(100% - 4px); padding: 1px 4px 2px 3px; line-height: 1.1; border-bottom-right-radius: 5px; background: linear-gradient(135deg, rgba(0,0,0,.66) 60%, transparent); }
.item-rect .nm { font-weight: 600; color: #fff; text-shadow: 0 1px 2px #000; font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.item-rect .pv { font-size: 9px; color: var(--gold); text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.rarity-red { background-color: var(--rar-red); border-left-color: var(--rar-red-line); }
.rarity-gold { background-color: var(--rar-gold); border-left-color: var(--rar-gold-line); }
.rarity-purple { background-color: var(--rar-purple); border-left-color: var(--rar-purple-line); }
.rarity-blue { background-color: var(--rar-blue); border-left-color: var(--rar-blue-line); }

/* ---------- 右：散落物 ---------- */
.col-scatter { border-color: #3a1d1b; }
.scatter-grid { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; min-height: 200px; }
/* 散落物条目（像物品池卡片，但更紧凑+可拖） */
.scatter-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 78px; padding: 5px 4px; border-radius: 6px; position: relative;
  background: var(--slot); border: 1px solid var(--line); cursor: grab;
  border-left-width: 3px;
}
.scatter-item:hover { border-color: var(--accent2); }
.scatter-item.dragging-src { opacity: .4; }
.scatter-item img { width: 56px; height: 34px; object-fit: contain; }
.scatter-item .sw { width: 40px; height: 26px; border-radius: 3px; }
.scatter-item .s-nm { font-size: 10px; text-align: center; line-height: 1.15; max-height: 26px; overflow: hidden; color: var(--text-bright); }
.scatter-item .s-sub { font-size: 9px; color: var(--dim); }
.scatter-item .s-pv { font-size: 10px; color: var(--gold); font-variant-numeric: tabular-nums; }
.scatter-item .s-cnt { position: absolute; top: 2px; right: 4px; font-size: 10px; color: var(--accent2); font-weight: 700; }
.scatter-item .s-rm { position: absolute; top: 1px; left: 3px; color: var(--accent); font-size: 12px; opacity: 0; cursor: pointer; }
.scatter-item:hover .s-rm { opacity: 1; }
.scatter-item .s-tools { display: flex; gap: 3px; margin-top: 1px; }
.scatter-item .s-tool { font-size: 9px; padding: 0 5px; border-radius: 3px; border: 1px solid var(--line2); background: var(--panel2); color: var(--accent2); cursor: pointer; }
.scatter-item .s-tool.on { background: var(--green); border-color: var(--green); color: #06210f; font-weight: 700; }

/* 队友物品标志：左下角简笔画小人 + 灰化处理（带出不计价值） */
.tm-fig { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tm-badge { position: absolute; left: 1px; bottom: 1px; width: 18px; height: 18px; color: #8fe9ff; background: rgba(0,0,0,.55); border-radius: 50%; padding: 2px; box-sizing: border-box; z-index: 4; pointer-events: none; }
.scatter-item.is-teammate { border-left-color: #6fe0ff; opacity: .82; }
.scatter-item.is-teammate .s-pv { color: var(--dim); }
.item-rect .ir-tm { position: absolute; left: 1px; bottom: 1px; width: 16px; height: 16px; color: #8fe9ff; background: rgba(0,0,0,.55); border-radius: 50%; padding: 2px; box-sizing: border-box; z-index: 3; pointer-events: none; }
.equip-slot .filled .tm-badge { position: static; width: 16px; height: 16px; color: #8fe9ff; flex: 0 0 auto; background: none; padding: 0; }

/* 类目色块（无图标兜底） */
.sw-gun{background:#9ab0ff}.sw-attachment{background:#c7a3ff}.sw-collection{background:#e8c45e}
.sw-ammo{background:#7fe3b0}.sw-helmet{background:#ff9a9a}.sw-armor{background:#ffc89a}
.sw-key{background:#6fe0ff}.sw-chest{background:#d0b8a0}.sw-backpack{background:#c0a878}.sw-consumable{background:#a0e890}

/* ---------- 指针拖拽浮层（跟随光标，丝滑核心） ---------- */
.drag-ghost {
  position: fixed; z-index: 999; pointer-events: none; border-radius: 3px;
  border: 1px solid rgba(0,0,0,.6); border-left: 3px solid var(--accent2);
  box-shadow: 0 8px 24px rgba(0,0,0,.6); opacity: .9; overflow: hidden;
  transform: translate(-50%, -50%);
}
.drag-ghost img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; }
.drag-ghost .gnm { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; color: #fff; text-shadow: 0 1px 2px #000; padding: 1px 3px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); }
body.dragging, body.dragging * { cursor: grabbing !important; }
.rotate-hint {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 6px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 600; z-index: 1000; pointer-events: none; animation: pop .15s ease-out;
}

/* ---------- 物品库抽屉 ---------- */
.library {
  position: fixed; top: 50px; left: 0; bottom: 0; width: 300px; z-index: 60;
  background: var(--panel); border-right: 1px solid var(--line2);
  display: flex; flex-direction: column; padding: 12px; box-shadow: 6px 0 24px rgba(0,0,0,.5);
  animation: slidein .16s ease-out;
}
@keyframes slidein { from { transform: translateX(-100%); } to { transform: none; } }
.lib-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--accent2); margin-bottom: 8px; }
.x { background: none; border: none; color: var(--dim); font-size: 14px; cursor: pointer; padding: 2px 6px; }
.x:hover { color: var(--accent); }
.lib-search { margin-bottom: 8px; }
.lib-cats, .lib-subcats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.lib-cats button, .lib-subcats button { padding: 4px 9px; font-size: 11px; }
.lib-cats button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.lib-subcats button.active { background: var(--accent2); color: #000; border-color: var(--accent2); }
.lib-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding-right: 4px; }
.lib-item {
  display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 8px;
  background: var(--slot); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px;
  cursor: pointer; border-left-width: 3px;
}
.lib-item:hover { border-color: var(--accent2); background: var(--panel2); }
.lib-item img { width: 50px; height: 30px; object-fit: contain; }
.lib-item .sw { width: 22px; height: 22px; border-radius: 3px; justify-self: center; }
.lib-item .li-nm { font-size: 12px; color: var(--text-bright); }
.lib-item .li-sub { font-size: 10px; color: var(--dim); }
.lib-item .li-px { font-size: 11px; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- 枪械改装面板 ---------- */
.gun-modal, .pick-modal { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; animation: fade .14s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.gm-card { width: 540px; max-width: 94vw; max-height: 88vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; }
.gm-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--accent2); }
.gm-body { padding: 14px; }
.gm-hero { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.gm-img { width: 150px; height: 70px; object-fit: contain; }
.gm-meta { flex: 1; }
.gm-name { font-size: 15px; font-weight: 700; color: var(--text-bright); }
.gm-info { font-size: 11px; color: var(--dim); margin-top: 3px; }
.gm-val { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.gm-actions { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; }
.gm-actions .dim { flex: 1; font-weight: 700; color: var(--accent2); font-size: 12px; }
.gm-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 7px; }
.slot-cell {
  background: var(--slot); border: 1px solid var(--line); border-radius: 6px; padding: 6px;
  min-height: 64px; display: flex; flex-direction: column; gap: 3px; cursor: pointer;
  border-left-width: 3px; position: relative; transition: border-color .1s;
}
.slot-cell:hover { border-color: var(--accent2); }
.slot-cell.filled { background: var(--panel2); }
.slot-cell .sl-name { font-size: 10px; color: var(--dim); }
.slot-cell .sl-att { font-size: 11px; color: var(--text-bright); font-weight: 600; line-height: 1.2; }
.slot-cell .sl-px { font-size: 10px; color: var(--gold); margin-top: auto; }
.slot-cell .sl-empty { font-size: 11px; color: var(--line2); margin: auto; }
.slot-cell img { width: 100%; height: 26px; object-fit: contain; }
.slot-cell .sl-rm { position: absolute; top: 2px; right: 5px; color: var(--accent); font-size: 12px; opacity: 0; }
.slot-cell.filled:hover .sl-rm { opacity: 1; }
/* 截图识别"待确认"槽位：醒目橙色描边，提示用户点击认领 */
.slot-cell.pending { border-color: #e8a33e; border-left-color: #e8a33e; background: rgba(232,163,62,.1); animation: pendpulse 1.6s ease-in-out infinite; }
.slot-cell.pending:hover { background: rgba(232,163,62,.2); }
.slot-cell .sl-pending { font-size: 11px; color: #f0b860; font-weight: 700; margin: auto auto 0; }
.slot-cell .sl-hint { font-size: 10px; color: var(--text); text-align: center; line-height: 1.15; }
@keyframes pendpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,163,62,.0); } 50% { box-shadow: 0 0 0 2px rgba(232,163,62,.4); } }
/* 动态槽位：由配件（枪管/护木套件等）新增的槽位，蓝色提示 */
.slot-cell.extra-slot { border-left: 3px solid #4ea1f0; }
.slot-cell .sl-extra-tag { font-size: 8px; padding: 0 3px; border-radius: 2px; background: #4ea1f0; color: #fff; font-weight: 600; vertical-align: 1px; margin-left: 2px; }
.slot-cell .sl-mod-badge { font-size: 9px; padding: 0 3px; border-radius: 3px; background: rgba(78,161,240,.2); color: #4ea1f0; font-weight: 700; vertical-align: 1px; }
/* 配件选择弹窗：hint 推荐项置顶高亮 */
.pk-item.recommended { border-color: #e8a33e; background: rgba(232,163,62,.12); }
.pk-item .pk-rec { font-size: 9px; padding: 0 4px; border-radius: 3px; background: #e8a33e; color: #1a1206; font-weight: 700; vertical-align: 1px; }

/* 配件选择弹窗 */
.pk-card { width: 380px; max-width: 92vw; max-height: 80vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; }
.pk-list { overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.pk-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 8px; background: var(--slot); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; cursor: pointer; }
.pk-item:hover { border-color: var(--accent2); background: var(--panel2); }
.pk-item img { width: 42px; height: 26px; object-fit: contain; }
.pk-item .pk-nm { font-size: 12px; color: var(--text-bright); }
.pk-item .pk-px { font-size: 11px; color: var(--gold); }
.pk-empty { color: var(--dim); text-align: center; padding: 20px; }

/* ---------- 最优视图 ---------- */
.back-sim { width: 100%; margin-bottom: 11px; background: var(--accent); color: #fff; border: none; font-weight: 700; padding: 9px; font-size: 13px; }
.back-sim:hover { background: #d44a3e; }
.opt-detail { display: flex; flex-direction: column; gap: 6px; }
.opt-detail .row { display: flex; justify-content: space-between; padding: 5px 9px; background: var(--slot); border: 1px solid var(--line); border-radius: 6px; }
.opt-detail .row .v { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.opt-detail .row.big .v { font-size: 16px; }
.grade-badge { text-align: center; font-size: 15px; font-weight: 700; padding: 8px; border-radius: 7px; background: var(--bg2); border: 1px solid var(--accent2); color: var(--accent2); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: 10px; max-width: 560px; width: 90%; }
dialog h3 { margin: 0 0 6px; color: var(--accent2); }
dialog textarea { width: 100%; background: var(--cell); color: var(--text); border: 1px solid var(--line); border-radius: 6px; font-family: monospace; font-size: 12px; margin-top: 6px; }
dialog menu { display: flex; justify-content: flex-end; gap: 8px; padding: 0; margin: 10px 0 0; }
dialog::backdrop { background: rgba(0,0,0,.6); }

/* 物品状态徽标（耐久/次数）+ 状态编辑弹窗 */
.scatter-item .s-badge { position: absolute; bottom: 2px; right: 4px; font-size: 9px; padding: 0 4px; border-radius: 3px; background: rgba(0,0,0,.45); color: var(--accent2); font-variant-numeric: tabular-nums; }
/* 枪卡上的配件芯片（显示已装上的配件） */
.scatter-item .s-atts { display: flex; flex-wrap: wrap; gap: 2px; margin: 3px 0 0; max-height: 40px; overflow: hidden; }
.att-chip { display: inline-block; font-size: 9px; padding: 1px 5px; border-radius: 3px; background: var(--cell); color: var(--text); line-height: 1.4; white-space: nowrap; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
#dlg-cond .cond-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; color: var(--text-bright); }
#dlg-cond .cond-row input { width: 120px; background: var(--cell); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font-size: 13px; }
#dlg-cond .cond-hint { font-size: 11px; color: var(--dim); margin: 8px 0 0; }
#dlg-cond .cond-preview { margin-top: 10px; font-size: 14px; color: var(--gold); font-weight: 700; }

/* 截图导入弹窗 */
#dlg-vision { max-width: 620px; }
.vision-hint { font-size: 11px; color: var(--dim); background: var(--cell); border-radius: 6px; padding: 8px 10px; margin: 4px 0 10px; white-space: pre-wrap; line-height: 1.5; font-family: inherit; }
.vision-drop { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.vision-pick { display: inline-block; padding: 6px 14px; border-radius: 6px; border: 1px dashed var(--line2); background: var(--panel2); color: var(--accent2); cursor: pointer; font-size: 13px; }
.vision-pick:hover { border-color: var(--accent2); }
.vision-thumbs { display: flex; flex-wrap: wrap; gap: 6px; max-height: 200px; overflow-y: auto; }
.vision-thumbs .vthumb { position: relative; width: 84px; height: 56px; }
.vision-thumbs .vthumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.vision-thumbs .vx { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; line-height: 15px; text-align: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; cursor: pointer; }
.vision-status { font-size: 12px; color: var(--accent2); white-space: pre-wrap; margin: 8px 0 0; min-height: 16px; line-height: 1.5; font-family: inherit; }

/* 页脚：版权 / 联系 */
.site-footer { margin-top: 24px; padding: 18px 16px 28px; border-top: 1px solid var(--line); background: var(--bg2); text-align: center; }
.site-footer p { margin: 4px 0; font-size: 11px; color: var(--dim); line-height: 1.6; }
.site-footer a { color: var(--accent2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
