/* ===================================================================
   style-bag.css — 背包（官方布局复刻，2026-11-20 test 分支）
   -------------------------------------------------------------------
   背景：暗暖棕 + 深空紫模糊渐变 + 星点
   面板：半透明白色磨砂（backdrop-filter），大圆角，极细浅白描边
   网格：桌面 9 列；格子底部星级色条；选中白色高亮
   作用域：仅 .bag-view / 背包相关弹窗，不影响其它视图
   =================================================================== */

.stage.view-inventory { overflow: hidden !important; padding-bottom: 0 !important; }
.stage.view-inventory > .bag-view { flex: 1 1 auto; min-height: 0; }

.bag-view {
  --bag-line: rgba(255, 255, 255, 0.10);
  --bag-line2: rgba(255, 255, 255, 0.06);
  --bag-text: #f0ece2;
  --bag-dim: #a8a2b6;
  --bag-gold: #e6c98c;
  --bag-gold-hi: #f7e7bd;
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 18px 44px;
  overflow: hidden;
  color: var(--bag-text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: #0f0d16;
}
.bag-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1000px 680px at 14% 88%, rgba(122, 76, 42, 0.48), transparent 64%),
    radial-gradient(1000px 760px at 88% 6%, rgba(94, 66, 164, 0.42), transparent 66%),
    radial-gradient(700px 500px at 52% 108%, rgba(156, 102, 58, 0.28), transparent 70%),
    linear-gradient(158deg, #16131f 0%, #0e0c14 52%, #191322 100%);
}
.bag-bg .bag-warm {
  position: absolute; left: -12vw; bottom: -24vh; width: 62vw; height: 58vh;
  background: radial-gradient(circle, rgba(196, 132, 74, 0.28), transparent 68%);
  filter: blur(80px);
}
.bag-bg .bag-violet {
  position: absolute; right: -10vw; top: -20vh; width: 58vw; height: 58vh;
  background: radial-gradient(circle, rgba(126, 88, 206, 0.3), transparent 68%);
  filter: blur(80px);
}
.bag-stars { position: absolute; inset: 0; }
.bag-stars i { position: absolute; border-radius: 50%; background: #fff;
  animation: bagTwinkle 6s ease-in-out infinite; }
@keyframes bagTwinkle { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }

/* ==== 顶栏 ==== */
.bag-head {
  position: relative; z-index: 4;
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 4px 4px 12px;
}
.bag-title { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.bt-ico {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(242, 224, 184, 0.22), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(242, 224, 184, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 18px rgba(230, 201, 140, 0.16);
  color: var(--bag-gold-hi);
}
.bt-ico svg { width: 20px; height: 20px; }
.bag-title b {
  display: block; font-size: 18px; font-weight: 600; letter-spacing: 3px;
  color: #fbf6ea; text-shadow: 0 0 18px rgba(230, 201, 140, 0.28); line-height: 1.2;
}
.bag-title i {
  display: block; font-style: normal; font-size: 10.5px; color: var(--bag-dim);
  letter-spacing: 2px; margin-top: 1px;
}

/* 搜索入口 */
.bag-searchbtn {
  flex: 0 0 auto; position: relative;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: #ded8ea; cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bag-line);
  transition: .18s ease;
}
.bag-searchbtn svg { width: 17px; height: 17px; }
.bag-searchbtn kbd {
  position: absolute; right: -3px; bottom: -3px;
  font: 8.5px/1 "Segoe UI", sans-serif; color: #1c1722;
  background: var(--bag-gold); border-radius: 4px; padding: 2px 3px;
}
.bag-searchbtn:hover { color: #fff; border-color: rgba(230, 201, 140, .6); background: rgba(230, 201, 140, .12); }

.bag-search {
  flex: 0 0 auto; display: flex; align-items: center;
  width: 0; opacity: 0; overflow: hidden;
  transition: width .22s ease, opacity .18s ease;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid transparent; border-radius: 18px;
}
.bag-search.open { width: 210px; opacity: 1; border-color: var(--bag-line); padding: 0 6px 0 12px; }
.bag-search .bs-ico { color: var(--bag-dim); display: grid; place-items: center; }
.bag-search .bs-ico svg { width: 15px; height: 15px; }
.bag-search input {
  flex: 1 1 auto; min-width: 0; height: 32px; padding: 0 8px;
  background: transparent; border: 0; outline: none;
  color: #fff; font-size: 12.5px; font-family: inherit;
}
.bag-search input::placeholder { color: rgba(168, 162, 182, .7); }
.bag-search .bs-clear {
  width: 22px; height: 22px; border-radius: 50%; padding: 0;
  border: 0; background: transparent; color: var(--bag-dim);
  font-size: 16px; line-height: 1; cursor: pointer;
}
.bag-search .bs-clear:hover { color: #fff; background: rgba(255,255,255,.08); }

/* 一级页签 */
.bag-tabs { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; justify-content: center; }
.bag-tabs button {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 15px 11px; border-radius: 12px;
  background: transparent; border: 1px solid transparent;
  color: #b9b2c6; font-size: 13px; letter-spacing: 1.5px;
  cursor: pointer; transition: .18s ease; white-space: nowrap;
  font-family: inherit;
}
.bag-tabs button svg { width: 19px; height: 19px; opacity: .85; }
.bag-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.bag-tabs button.on {
  color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
  border-color: rgba(255, 255, 255, .14);
  text-shadow: 0 0 14px rgba(255, 240, 200, .5);
}
.bag-tabs button.on svg { opacity: 1; filter: drop-shadow(0 0 7px rgba(247, 231, 189, .7)); }
.bag-tabs button.on::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 3px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 10px rgba(255, 255, 255, .8);
}

/* 货币 / 关闭 */
.bag-cur { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.bag-cur-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 6px; border-radius: 16px;
  background: rgba(255, 255, 255, .055); border: 1px solid var(--bag-line);
  font-size: 12px;
}
.bag-cur-chip .bcc-img { width: 19px; height: 19px; object-fit: contain; }
.bag-cur-chip b { color: #f7f1e4; font-weight: 600; font-variant-numeric: tabular-nums; }
.bag-cur-chip.jade b { color: #d9c9ff; }
.bag-close {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--bag-line);
  color: #ded8ea; transition: .18s ease;
}
.bag-close svg { width: 15px; height: 15px; }
.bag-close:hover { color: #fff; background: rgba(200, 70, 70, .22); border-color: rgba(255, 130, 130, .5); }

/* ==== 主体：左 72% / 右 28% ==== */
.bag-main {
  position: relative; z-index: 3;
  flex: 1 1 auto; min-height: 0;
  display: flex; gap: 14px;
}
.bag-left {
  flex: 1 1 auto; min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  padding: 10px 12px 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012)),
    linear-gradient(180deg, rgba(40, 35, 50, .55), rgba(20, 18, 28, .72));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* 二级筛选栏 */
.bag-subbar { flex: 0 0 auto; position: relative; }
.bag-tools { display: flex; align-items: center; gap: 7px; padding: 2px 2px 8px; }
.bag-tool {
  width: 32px; height: 32px; border-radius: 10px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--bag-line2);
  color: #cfc8dc; transition: .16s ease;
}
.bag-tool svg { width: 16px; height: 16px; }
.bag-tool:hover { color: #fff; border-color: rgba(230, 201, 140, .45); background: rgba(230, 201, 140, .1); }
.bag-tool.on {
  color: #241d10; background: linear-gradient(180deg, var(--bag-gold-hi), var(--bag-gold));
  border-color: rgba(230, 201, 140, .8); box-shadow: 0 0 14px rgba(230, 201, 140, .28);
}
.bag-pathdd .dd { min-width: 118px; }
.bag-pathdd .dd-face { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.bag-total { margin-left: auto; font-size: 11.5px; color: var(--bag-dim); letter-spacing: 1px; }

/* 遗器部位二级筛选 */
.bag-slots {
  display: flex; align-items: center; gap: 6px;
  padding: 2px 2px 9px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--bag-line2);
}
.bag-slots::-webkit-scrollbar { display: none; }
.bag-slot {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 11px; cursor: pointer;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--bag-line2);
  color: #bdb6ca; font-size: 11.5px; letter-spacing: .5px;
  transition: .16s ease; font-family: inherit; white-space: nowrap;
}
.bag-slot svg { width: 16px; height: 16px; opacity: .9; }
.bag-slot:hover { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.bag-slot.on {
  color: #241d10; font-weight: 600;
  background: linear-gradient(180deg, var(--bag-gold-hi), var(--bag-gold));
  border-color: rgba(255, 240, 200, .8);
  box-shadow: 0 0 16px rgba(230, 201, 140, .25), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.bag-slot-reset {
  flex: 0 0 auto; margin-left: auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--bag-line2); color: var(--bag-dim);
}
.bag-slot-reset svg { width: 15px; height: 15px; }
.bag-slot-reset:hover { color: #fff; border-color: rgba(230, 201, 140, .5); transform: rotate(-40deg); }

/* 筛选浮层 */
.bag-pop {
  position: absolute; left: 2px; top: 38px; z-index: 60;
  width: 272px; padding: 12px 13px 10px;
  display: none;
  background: linear-gradient(180deg, rgba(34, 30, 44, .98), rgba(20, 18, 28, .99));
  border: 1px solid rgba(230, 201, 140, .26);
  border-radius: 14px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.bag-pop.open { display: block; animation: bagPop .16s ease; }
@keyframes bagPop { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.bp-title { font-size: 10.5px; letter-spacing: 2px; color: var(--bag-dim); margin: 2px 0 6px; }
.bp-title:not(:first-child) { margin-top: 10px; }
.bp-rars { display: flex; gap: 5px; }
.bp-rar {
  flex: 1; padding: 6px 0; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--bag-line2);
  font-size: 11.5px; color: #b9b2c6; font-family: inherit;
}
.bp-rar.r5 { color: #e8c56a; } .bp-rar.r4 { color: #c79aef; }
.bp-rar.r3 { color: #8fc0ea; } .bp-rar.r2 { color: #94d8ae; } .bp-rar.r1 { color: #b9b6c4; }
.bp-rar.on { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); color: #fff; }
.bp-chips { display: flex; gap: 5px; }
.bp-chip {
  flex: 1; padding: 6px 0; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--bag-line2);
  font-size: 11px; color: #b9b2c6; font-family: inherit;
}
.bp-chip.on { background: rgba(230, 201, 140, .18); border-color: rgba(230, 201, 140, .55); color: var(--bag-gold-hi); }
.bp-foot { margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--bag-line2); }
.bp-reset {
  width: 100%; padding: 7px 0; border-radius: 9px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--bag-line2);
  color: #d6cfe2; font-size: 11.5px; font-family: inherit;
}
.bp-reset:hover { color: #fff; border-color: rgba(230, 201, 140, .5); }

/* ==== 物品网格 ==== */
.bag-scroll {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: 12px 3px 8px;
  scrollbar-width: thin; scrollbar-color: rgba(230, 201, 140, .28) transparent;
}
.bag-scroll::-webkit-scrollbar { width: 7px; }
.bag-scroll::-webkit-scrollbar-thumb { background: rgba(230, 201, 140, .25); border-radius: 7px; }
.bag-scroll::-webkit-scrollbar-track { background: transparent; }

.bag-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
}
.bag-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0; border-radius: 11px; overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 -18px 26px rgba(0, 0, 0, .26);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, filter .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.bag-cell.r5 { background: radial-gradient(circle at 50% 24%, rgba(248, 212, 128, .30), transparent 62%),
  linear-gradient(160deg, #5d4a27 0%, #332a1a 55%, #1d1810 100%); }
.bag-cell.r4 { background: radial-gradient(circle at 50% 24%, rgba(196, 145, 246, .28), transparent 62%),
  linear-gradient(160deg, #4b3562 0%, #2a2038 55%, #191321 100%); }
.bag-cell.r3 { background: radial-gradient(circle at 50% 24%, rgba(126, 178, 236, .26), transparent 62%),
  linear-gradient(160deg, #2c4863 0%, #1d2c3e 55%, #121923 100%); }
.bag-cell.r2 { background: radial-gradient(circle at 50% 24%, rgba(126, 214, 160, .22), transparent 62%),
  linear-gradient(160deg, #2c4c3a 0%, #1c2e24 55%, #111a15 100%); }
.bag-cell.r1 { background: radial-gradient(circle at 50% 24%, rgba(190, 190, 200, .18), transparent 62%),
  linear-gradient(160deg, #3b3b42 0%, #26262c 55%, #17171b 100%); }
.bag-cell:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 22px rgba(0, 0, 0, .45); }
.bag-cell.sel {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 0 24px rgba(255, 238, 196, .38),
    inset 0 1px 0 rgba(255, 255, 255, .3);
  filter: brightness(1.1);
}
.bc-imgbox { position: absolute; inset: 9% 11% 17%; display: grid; place-items: center; }
.bc-img-tag {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px rgba(255, 255, 255, .12));
}
.bc-glyph {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 24px; color: rgba(255, 255, 255, .55); pointer-events: none;
}
.bag-cell[data-kind="cone"] .bc-imgbox { inset: 6% 14% 15%; }
.bc-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  opacity: .35;
}
.bag-cell.r5 .bc-bar { background: linear-gradient(90deg, #7a5c22, #f3d488, #7a5c22); opacity: .95; }
.bag-cell.r4 .bc-bar { background: linear-gradient(90deg, #57357a, #c391f0, #57357a); opacity: .95; }
.bag-cell.r3 .bc-bar { background: linear-gradient(90deg, #23445f, #7fb6e6, #23445f); opacity: .95; }
.bag-cell.r2 .bc-bar { background: linear-gradient(90deg, #23543a, #7fd6a0, #23543a); opacity: .9; }
.bc-count, .bc-lv {
  position: absolute; right: 6px; bottom: 6px; z-index: 2;
  font-size: 11px; color: #fff; letter-spacing: .3px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .95), 0 0 8px rgba(0, 0, 0, .6);
}
.bc-lv { color: #fff3d0; }
.bc-eq {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .65);
  background: rgba(0, 0, 0, .4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .55);
}
.bc-eq-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-lock {
  position: absolute; right: 5px; bottom: 21px; z-index: 2;
  width: 13px; height: 13px; color: #fff; opacity: .92;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .9));
}
.bc-lock svg { width: 100%; height: 100%; }
.bag-cell.locked { border-color: rgba(255, 255, 255, .32); }

.bag-empty { padding: 70px 0; text-align: center; color: var(--bag-dim); font-size: 13px; letter-spacing: 1px; }

/* ==== 底部排序与批量 ==== */
.bag-foot {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 2px 2px; border-top: 1px solid var(--bag-line2);
}
.bag-sort { display: flex; align-items: center; gap: 8px; }
.bag-sort-ico { width: 16px; height: 16px; color: var(--bag-dim); }
.bag-sort .dd { min-width: 118px; }
.bag-sort .dd-face { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.bag-sort .dd-menu { top: auto; bottom: calc(100% + 6px); }
.bag-dir {
  width: 30px; height: 30px; border-radius: 9px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--bag-line2);
  color: #d6cfe2;
}
.bag-dir svg { width: 15px; height: 15px; }
.bag-dir:hover { color: #fff; border-color: rgba(230, 201, 140, .5); }
.bag-batch { display: flex; gap: 8px; }
.bag-batch-btn {
  min-width: 84px; padding: 7px 16px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .055); border: 1px solid var(--bag-line);
  color: #e6e0ee; font-size: 12px; letter-spacing: 1px; font-family: inherit;
  transition: .16s ease;
}
.bag-batch-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); }
.bag-batch-btn.danger { color: #ffb9a8; border-color: rgba(255, 154, 138, .35); background: rgba(120, 40, 32, .18); }
.bag-batch-btn.danger:hover { background: rgba(150, 48, 38, .32); border-color: rgba(255, 154, 138, .6); }

/* ==== 右侧详情 ==== */
.bag-detail {
  flex: 0 0 28%; min-width: 318px; max-width: 430px;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .012)),
    linear-gradient(180deg, rgba(40, 35, 50, .58), rgba(20, 18, 28, .76));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.bd-empty { display: grid; place-items: center; height: 100%; color: var(--bag-dim); font-size: 12.5px; letter-spacing: 1px; }
.bd-wrap { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 16px 16px 14px; }
.bd-head { flex: 0 0 auto; }
.bd-name {
  margin: 0; font-size: 20px; font-weight: 600; letter-spacing: 2px;
  color: #f3ede0; line-height: 1.25;
}
.bd-wrap.r5 .bd-name { color: #f2d68d; text-shadow: 0 0 18px rgba(230, 201, 140, .28); }
.bd-wrap.r4 .bd-name { color: #d2b0f5; text-shadow: 0 0 18px rgba(170, 120, 230, .25); }
.bd-wrap.r3 .bd-name { color: #a9cdf0; }
.bd-sub { margin-top: 4px; font-size: 11px; color: var(--bag-dim); letter-spacing: 1.5px; }

.bd-art {
  position: relative; flex: 0 0 auto;
  height: 190px; margin-top: 12px; border-radius: 14px;
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .025);
}
.bd-art.r5 { background: radial-gradient(circle at 50% 42%, rgba(230, 201, 140, .26), rgba(20, 18, 28, .2) 68%); }
.bd-art.r4 { background: radial-gradient(circle at 50% 42%, rgba(170, 120, 230, .24), rgba(20, 18, 28, .2) 68%); }
.bd-art.r3 { background: radial-gradient(circle at 50% 42%, rgba(110, 170, 230, .22), rgba(20, 18, 28, .2) 68%); }
.bd-art-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 62%);
  filter: blur(8px);
}
.bd-art-glyph {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 44px; color: rgba(255, 255, 255, .35);
}
.bd-art-img { position: relative; z-index: 1; max-width: 78%; max-height: 82%; object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .55)); }
.bd-art-img.cone { max-width: 88%; max-height: 92%; }

.bd-info {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  margin-top: 10px; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: rgba(230, 201, 140, .22) transparent;
}
.bd-info::-webkit-scrollbar { width: 6px; }
.bd-info::-webkit-scrollbar-thumb { background: rgba(230, 201, 140, .2); border-radius: 6px; }
.bd-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 7px 1px; border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 12.5px;
}
.bd-row span { color: var(--bag-dim); }
.bd-row b { color: #f4f0e6; font-weight: 500; text-align: right; }
.bd-desc { margin-top: 10px; font-size: 12px; line-height: 1.85; color: #c9c2d6; }
.bd-sec {
  display: flex; align-items: center; gap: 7px;
  margin: 13px 0 6px; font-size: 11px; letter-spacing: 2px; color: var(--bag-gold);
}
.bd-sec::before { content: ""; width: 2px; height: 10px; border-radius: 1px;
  background: linear-gradient(180deg, var(--bag-gold-hi), var(--bag-gold)); }
.bd-src { font-size: 11.5px; line-height: 1.8; color: #bdb6ca; }
.bd-link {
  margin-left: 6px; padding: 0 8px; height: 21px; border-radius: 10px;
  background: rgba(230, 201, 140, .12); border: 1px solid rgba(230, 201, 140, .4);
  color: var(--bag-gold-hi); font-size: 10.5px; cursor: pointer; font-family: inherit;
}
.bd-link:hover { background: rgba(230, 201, 140, .22); }
.bd-stars { color: var(--bag-gold); font-size: 13px; letter-spacing: 3px; margin: 2px 0 6px; }
.bd-skill { padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .035);
  border: 1px solid var(--bag-line2); }
.bd-skill b { display: block; font-size: 12.5px; font-weight: 600; color: #fff; letter-spacing: 1px; margin-bottom: 5px; }
.bd-skill p { margin: 0; font-size: 11.5px; line-height: 1.75; color: #c5cdea; }
.bd-skill p em { font-style: normal; color: #7dd3fc; font-weight: 600; }
.bd-owner { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.bd-owner-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .35); }
.bd-owner span { font-size: 12.5px; color: #ece6f4; }
.bd-none { font-size: 12px; color: var(--bag-dim); }
.bd-main-stat {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 11px; border-radius: 10px;
  background: rgba(230, 201, 140, .08); border: 1px solid rgba(230, 201, 140, .22);
  font-size: 13px;
}
.bd-main-stat span { color: #cfc7da; }
.bd-main-stat b { color: var(--bag-gold-hi); font-size: 14px; }
.bd-subs { display: flex; flex-direction: column; }
.bd-sub-row {
  display: flex; justify-content: space-between; padding: 6px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 12px;
}
.bd-sub-row span { color: #b5aec2; }
.bd-sub-row b { color: #9fe6c8; font-weight: 500; font-variant-numeric: tabular-nums; }
.bd-set { padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, .03);
  border: 1px solid var(--bag-line2); }
.bd-set-name { font-size: 12px; color: #eadfc8; margin-bottom: 5px; }
.bd-set-name i { font-style: normal; color: var(--bag-gold); font-size: 11px; }
.bd-set-row { display: flex; gap: 8px; padding: 4px 0; opacity: .5; }
.bd-set-row.on { opacity: 1; }
.bd-set-row em { flex: 0 0 auto; font-style: normal; font-size: 10.5px; color: #9fe6c8; }
.bd-set-row span { font-size: 11px; line-height: 1.7; color: #bdb6ca; }
.bd-actions { flex: 0 0 auto; display: flex; gap: 8px; padding-top: 12px; }
.bd-actions:empty { display: none; }
.bd-btn {
  flex: 1; min-height: 38px; border-radius: 11px; cursor: pointer;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2);
  color: #f2eee4; font-size: 12.5px; letter-spacing: 2px; font-family: inherit;
  transition: .16s ease;
}
.bd-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.bd-btn.primary {
  background: linear-gradient(180deg, #f6ead0, #dcc094); border-color: rgba(255, 244, 216, .85);
  color: #2a2112; font-weight: 600;
  box-shadow: 0 0 18px rgba(230, 201, 140, .22), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.bd-btn.primary:hover { filter: brightness(1.06); }

/* 背包「详情」弹窗：旧组件头部默认 space-between 会把名字推到右边，这里改回左对齐 */
.modal .dt-head { justify-content: flex-start; }
.modal .dt-head .dt-id { text-align: left; }

/* ==== 重掷弹窗 ==== */
.rr-wrap { display: flex; flex-direction: column; gap: 10px; }
.rr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 11.5px; color: #b9b2c6; line-height: 1.7; }
.rr-head em { font-style: normal; color: #ffb9a8; white-space: nowrap; }
.rr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rr-col { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1); }
.rr-col.new { border-color: rgba(230, 201, 140, .35); background: rgba(230, 201, 140, .06); }
.rr-col h4 { margin: 0 0 6px; font-size: 11.5px; letter-spacing: 2px; color: #cfc7da; font-weight: 500; }
.rr-col.new h4 { color: var(--bag-gold-hi); }
.rr-row { display: flex; align-items: center; gap: 8px; padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 12px; }
.rr-row:last-child { border-bottom: 0; }
.rr-row span { flex: 1 1 auto; color: #bdb6ca; }
.rr-row i { font-style: normal; font-size: 10.5px; color: #8f88a0; }
.rr-row b { color: #9fe6c8; font-weight: 500; }
.rr-foot { display: flex; justify-content: flex-end; gap: 10px; }

/* ==== 销毁 / 批量叠影弹窗 ==== */
.dy-wrap { display: flex; flex-direction: column; gap: 10px; }
.dy-tip { font-size: 11.5px; color: #b9b2c6; line-height: 1.7; }
.dy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-height: 320px; overflow-y: auto; }
.dy-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px; cursor: pointer; }
.dy-row:hover { border-color: rgba(230, 201, 140, .35); }
.dy-row input { accent-color: #d8c39a; }
.dy-ico { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 26px; }
.dy-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dy-row b { flex: 1 1 auto; font-weight: 400; color: #e9e3f0; }
.dy-row i { font-style: normal; color: var(--bag-dim); font-size: 11px; }
.dy-confirm { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #ffb9a8; }
.dy-confirm input { accent-color: #d88f80; }
.dy-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.dy-foot span { font-size: 11.5px; color: var(--bag-dim); }
.dy-final { margin: 0; font-size: 12.5px; color: #e9e3f0; }
.dy-names { margin: 0; font-size: 12px; line-height: 1.8; color: #ffb9a8; }

/* ==== 响应式 ==== */
@media (max-width: 1400px) {
  .bag-grid { gap: 8px; }
  .bag-detail { min-width: 300px; }
}
@media (max-width: 1200px) {
  .bag-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .bag-tabs button { padding: 9px 11px 11px; letter-spacing: 1px; }
  .bag-detail { flex-basis: 32%; min-width: 280px; }
}
@media (max-width: 1000px) {
  .bag-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bag-tabs button { padding: 9px 12px; }
}
/* 769~1000：详情不能消失，改为网格下方整宽展示（整页滚动） */
@media (max-width: 1000px) and (min-width: 769px) {
  .stage.view-inventory { overflow-y: auto !important; }
  .bag-view { height: auto; min-height: 100%; }
  .bag-main { flex-direction: column; }
  .bag-left { flex: 0 0 auto; height: 62vh; min-height: 420px; }
  .bag-detail { flex: 0 0 auto; min-width: 0; max-width: none; margin-top: 12px; min-height: 320px; }
  .bag-detail .bd-wrap { height: auto; }
  .bag-detail .bd-info { overflow: visible; }
}
@media (max-width: 768px) {
  .stage.view-inventory { overflow-y: auto !important; padding-bottom: 0 !important; }
  .bag-view {
    height: auto; min-height: 100%;
    padding: 8px 10px calc(96px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
  }
  .bag-head { flex-wrap: wrap; gap: 8px; }
  .bag-title b { font-size: 16px; }
  .bag-search.open { width: 150px; }
  .bag-tabs { order: 4; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .bag-tabs button span { display: inline; }
  .bag-cur { margin-left: auto; }
  .bag-main { flex-direction: column; }
  .bag-left { min-height: 60vh; }
  .bag-detail { display: flex; flex: 0 0 auto; min-width: 0; max-width: none; }
  .bag-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .bag-detail .bd-art { height: 160px; }
  .bag-detail .bd-wrap { height: auto; }
  .bag-detail .bd-info { overflow: visible; }
  .bag-slot span { display: none; }
  .bag-foot { flex-wrap: wrap; }
  .dy-list { grid-template-columns: 1fr; }
  .rr-grid { grid-template-columns: 1fr; }
}
