/* WARDOGS 小助手 —— 黑色主调 / 白金黄副调 / Noto Sans，无蓝紫 */
:root {
  --bg: #0a0b0c;
  --carbon: #141517;
  --panel: #191b1d;
  --panel2: #202225;
  --line: #2a2c2e;
  --line2: #3a3d40;
  --text: #e9e9e4;
  --dim: #9a9c98;
  --mute: #6a6c68;
  --gold: #e7b324;
  --gold-dim: #b38a1a;
  --danger: #d1424a;
  --danger-dim: #e07d7f;
}

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

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶部导航条 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 56px;
  border-bottom: 1px solid var(--line);
  background: var(--carbon);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-brand {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--text);
  margin-right: 16px;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand em { color: var(--gold); font-style: normal; }
/* 品牌词 WARDOGS：使用 Saira Condensed（Google Fonts 免费字体，SIL OFL） */
.brand-word {
  font-family: "Saira Condensed", "Noto Sans", "Noto Sans SC", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--dim);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link.active { color: var(--gold); border-bottom-color: var(--gold); }

/* 导航链接容器（桌面横排，左对齐） */
.nav-links { display: flex; gap: 8px; height: 100%; }

/* 汉堡按钮（竖屏显示） */
.nav-burger {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: none; cursor: pointer;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); }

/* 右侧边栏抽屉 */
.nav-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: 250px; max-width: 80vw;
  background: var(--carbon);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
body.nav-open .nav-drawer { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.nd-title { font-weight: 700; color: var(--text); letter-spacing: 1px; }
.nav-drawer-close { background: transparent; border: none; color: var(--dim); font-size: 20px; cursor: pointer; line-height: 1; }
.nav-drawer-links { display: flex; flex-direction: column; padding: 8px 0; flex: 1; }
.nav-drawer-link {
  display: block; padding: 14px 20px;
  color: var(--dim); font-size: 15px;
  border-left: 3px solid transparent;
}
.nav-drawer-link:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav-drawer-link.active { color: var(--gold); border-left-color: var(--gold); background: rgba(231, 179, 36, 0.06); }

.container { max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }

/* QQ 反馈群按钮 */
.qq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line2);
  color: var(--text);
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.qq-btn:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.qq-btn img { height: 16px; width: auto; display: block; }
.nav-qq { margin-left: auto; }
.nav-drawer-qq { border-top: 1px solid var(--line); padding: 14px 16px; }
.nav-drawer-qq .qq-btn { width: 100%; justify-content: center; }

/* 首页 */
.home-container {
  min-height: calc((100dvh - 56px) * 0.35);
  display: flex;
  flex-direction: column;
}
.home-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 0;
}
.home-hero .kicker {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--mute);
}
.home-hero h1 { font-size: 34px; font-weight: 800; margin: 12px 0 6px; }
.home-hero h1 em { color: var(--gold); font-style: normal; }
.home-hero p { color: var(--dim); max-width: 560px; margin: 0 auto; }
.home-updated {
  margin-top: 8px;
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* 版本号小绿点 */
.ver-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

/* 广告位(命名中性,规避广告拦截器) */
/* 首页横幅:位于主体标题上方,宽度与下方卡片整行等长,等比缩放 */
.banner-home {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 6px 0 16px;
}
.banner-home img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(233, 233, 228, 0.22); }
.banner-home .banner-link { display: block; width: 100%; }
.banner-home .banner-mobile { display: none; }
/* 顶栏横幅(数据库/计算器页):位于品牌之后、导航链接之前,所有端保持 40px 高不缩放 */
.banner-topbar { display: flex; align-items: center; margin: 0 8px; }
.banner-topbar a { display: flex; align-items: center; }
.banner-topbar img { display: block; height: 40px; width: auto; border-radius: 8px; border: 1px solid rgba(233, 233, 228, 0.22); }
/* 武器数据库页:标题上方(横幅下方)与下方(横线上方)高度一致且紧凑 */
.db-container .banner-home { margin-bottom: 0; }
.db-container .page-head { padding: 14px 0; }
@media (max-width: 860px) {
  .banner-home .banner-desktop { display: none; }
  .banner-home .banner-mobile { display: block; }
  /* 移动端顶栏横幅:宽度动态填充剩余空间,高度保持 40px(图片本体拉伸,内容全可见) */
  .banner-topbar { flex: 1; min-width: 0; margin: 0; }
  .banner-topbar img { width: 100%; object-fit: fill; }
  .nav-brand { margin-right: 4px; }
  .site-nav { padding: 0 20px; }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.category-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--carbon);
  padding: 26px 24px;
  transition: border-color .15s, transform .15s;
  color: var(--text);
}
.category-card:hover { border-color: var(--gold); transform: translateY(-2px); text-decoration: none; }
.category-card .card-no { font-size: 12px; color: var(--mute); letter-spacing: 2px; }
.category-card h3 { font-size: 20px; margin: 8px 0 8px; }
.category-card h3 .zh { color: var(--gold); }
.category-card p { color: var(--dim); font-size: 14px; }
.category-card .card-arrow { color: var(--gold); font-size: 20px; float: right; }

/* 页头 */
.page-head { border-bottom: 1px solid var(--line); padding: 26px 0 18px; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; font-weight: 800; }
.page-head h1 em { color: var(--gold); font-style: normal; }
.page-head p { color: var(--dim); margin-top: 6px; }

/* 武器数据库 */
.weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.weapon-card {
  border: 1px solid var(--line);
  background: var(--carbon);
  overflow: hidden;
}
.weapon-card .wc-img {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  background: #0d0e0f;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}
.weapon-card .wc-img img { max-width: 82%; max-height: 126px; object-fit: contain; }
.weapon-card .wc-body { padding: 16px 18px 18px; }
.weapon-card .wc-name { font-size: 18px; font-weight: 700; }
.wip {
  border: 1px solid var(--line);
  background: var(--carbon);
  padding: 80px 20px;
  text-align: center;
}
.wip h2 { color: var(--gold); font-size: 22px; margin-bottom: 12px; }
.wip p { color: var(--dim); font-size: 14px; }

.weapon-card .wc-name .tag {
  display: inline-block; font-size: 11px; padding: 2px 8px; margin-left: 8px;
  border: 1px solid var(--gold); color: var(--gold); letter-spacing: 1px; vertical-align: 2px;
}
.weapon-card .wc-kind { color: var(--mute); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin: 2px 0 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table td { padding: 6px 0; border-top: 1px solid var(--line); }
.spec-table td:first-child { color: var(--dim); }
.spec-table td:last-child { text-align: right; color: var(--text); font-weight: 600; }
.spec-table tr:first-child td { border-top: none; }

/* 开源致谢表格(独立样式,不与 spec-table 共用) */
.credits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.credits-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  word-break: break-word;
}
.credits-table tr:first-child td { border-top: none; }
.credits-table td:first-child { width: 32%; }
.credits-table td:last-child { width: 16%; white-space: nowrap; text-align: right; }
.credits-table td a { color: var(--gold); }
.credits-table td a:hover { color: var(--gold); text-decoration: underline; }
/* 标题下横线与表格间距保持一致 */
.credits-head { margin-bottom: 12px; }

/* 炮兵计算器 */
.calc-layout { display: flex; gap: 16px; height: calc(100vh - 56px); height: calc(100dvh - 56px); }
.map-pane { flex: 1; position: relative; min-width: 0; background: #08090a; border: 1px solid var(--line); overflow: hidden; }
.map-pane canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.map-pane canvas.panning { cursor: grabbing; }
.side-panel {
  width: 320px; flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--carbon);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.sp-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sp-head h2 { font-size: 16px; letter-spacing: 1px; color: var(--gold); }
.sp-section { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sp-section .sp-label { font-size: 11px; letter-spacing: 2px; color: var(--mute); text-transform: uppercase; margin-bottom: 8px; }

.weapon-select { display: flex; flex-direction: column; gap: 10px; }
.map-select { display: flex; flex-direction: column; gap: 8px; }
.map-opt {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); padding: 10px 12px; cursor: pointer;
  background: transparent; color: var(--text); text-align: left; width: 100%;
}
.map-opt:hover { border-color: var(--line2); }
.map-opt.active { border-color: var(--gold); background: rgba(231,179,36,.08); }
.map-opt.disabled { opacity: .45; cursor: not-allowed; }
.map-opt.disabled:hover { border-color: var(--line); }
.map-opt .mo-name { font-weight: 700; font-size: 14px; }
.map-opt .mo-en { font-size: 12px; color: var(--dim); letter-spacing: 1px; text-transform: uppercase; }
.map-opt .mo-badge {
  margin-left: auto;
  font-size: 11px; color: var(--dim);
  border: 1px solid var(--line2); padding: 2px 8px;
}
.weapon-opt {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); padding: 8px; cursor: pointer;
  background: transparent; color: var(--text); text-align: left;
}
.weapon-opt:hover { border-color: var(--line2); }
.weapon-opt.active { border-color: var(--gold); background: rgba(231,179,36,.08); }
.weapon-opt img { width: 74px; height: 44px; object-fit: contain; }
.weapon-opt .wo-name { font-weight: 700; font-size: 14px; }
.weapon-opt .wo-kind { font-size: 12px; color: var(--dim); }

.result-rows { display: flex; flex-direction: column; gap: 6px; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; }
.result-row .rk { color: var(--dim); font-size: 13px; }
.result-row .rv { font-weight: 700; font-size: 15px; }
.result-row.primary .rv { color: var(--gold); font-size: 20px; }
.result-row .unit { color: var(--mute); font-size: 12px; margin-left: 4px; }

.status-msg { padding: 10px 12px; border: 1px solid var(--danger); color: var(--danger-dim); font-size: 13px; margin-top: 8px; }
.status-msg.ok { border-color: var(--line2); color: var(--dim); }

.coord-inputs { display: flex; gap: 8px; align-items: center; }
.coord-inputs input {
  flex: 1; min-width: 0; height: 34px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 0 8px; font-size: 13px; font-family: inherit;
}
.coord-inputs .ci-label { color: var(--dim); font-size: 12px; width: 14px; text-align: center; }
.coord-inputs .ci-note { color: var(--mute); font-size: 11px; }

.tool-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
}
.btn:hover { border-color: var(--line2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #0a0b0c; font-weight: 700; }
.btn.ghost { background: transparent; }
.btn.active { border-color: var(--gold); color: var(--gold); }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .4; cursor: not-allowed; border-color: var(--line); color: var(--mute); }
/* SPH-2 调平提醒 */
.sph-warning {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--gold-dim);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  background: rgba(231, 179, 36, 0.08);
  color: var(--gold);
  font-size: 12px;
  line-height: 1.5;
}


.map-coord {
  position: absolute; right: 12px; bottom: 12px; z-index: 5;
  background: rgba(10,11,12,.78); border: 1px solid var(--line);
  padding: 6px 10px; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums;
}
.map-hint {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 5;
  background: rgba(10,11,12,.85); border: 1px solid var(--line);
  padding: 6px 14px; font-size: 12px; color: var(--dim); white-space: nowrap;
}

/* 移动端地图右上角悬浮结算窗口 */
.map-result {
  position: absolute; right: 12px; top: 12px; z-index: 5;
  display: none;
  pointer-events: none;
  min-width: 150px; max-width: 210px;
  background: rgba(10, 11, 12, 0.9);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px;
}
.map-result .result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 0; }
.map-result .rk { color: var(--mute); font-size: 12px; }
.map-result .rv { color: var(--text); font-weight: 700; font-size: 13px; }
.map-result .result-row.primary .rv { color: var(--gold); font-size: 16px; }
.map-result .ms-msg {
  margin-top: 4px; padding-top: 5px; border-top: 1px solid var(--line);
  color: var(--danger-dim); font-size: 11px;
}

/* 地图左上角浮动工具（竖屏显示） */
.map-tools {
  position: absolute; left: 12px; top: 12px; z-index: 5;
  display: none;
  flex-direction: column; gap: 8px;
}
.mt-btn {
  min-width: 64px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 6px;
  background: rgba(10, 11, 12, 0.85);
  color: var(--text); font-size: 13px; cursor: pointer;
  text-align: center;
}
.mt-btn.active { border-color: var(--gold); background: rgba(231, 179, 36, 0.16); color: var(--gold); }

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px;
  text-align: center;
  color: var(--mute);
  font-size: 12px;
}
.site-footer div { margin-top: 6px; }
.site-footer div:first-child { margin-top: 0; }

/* 炮兵页侧边栏底部致谢链接(与首页页脚一致) */
.sp-foot {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* 响应式：移动端底部抽屉 */
.drawer-handle, .drawer-arrow { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-qq { display: none; }
  .calc-layout { flex-direction: column; height: calc(100vh - 56px); height: calc(100dvh - 56px); }
  .map-pane { flex: 1; min-height: 0; height: auto; }
  .map-tools { display: flex; }
  .map-result { display: block; }
  .map-hint { top: 12px; left: 96px; transform: none; }

  .side-panel {
    width: auto;
    flex-shrink: 0;
    max-height: 74vh;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    transition: max-height .28s ease;
  }
  .side-panel:not(.open) {
    max-height: 56px;
    overflow: hidden;
  }

  .sp-head {
    height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--carbon);
  }
  .sp-head h2 { margin-top: 10px; }
  .drawer-handle {
    display: block;
    position: absolute;
    left: 50%; top: 7px; transform: translateX(-50%);
    width: 46px; height: 4px; border-radius: 2px; background: var(--line2);
  }
  .drawer-arrow {
    display: inline-block;
    margin-left: auto;
    color: var(--dim);
    font-size: 14px;
    transition: transform .28s ease;
  }
  .side-panel.open .drawer-arrow { transform: rotate(180deg); }
  .sp-foot { text-align: center; }

  .category-grid { grid-template-columns: 1fr; }
}

/* 武器数据库 */
.db-container { padding: 24px 20px 40px; max-width: 1080px; }
.db-source {
  margin-top: 4px;
  font-size: 12px;
  color: var(--mute);
}
.db-source a { color: var(--gold-dim); }
.db-source a:hover { color: var(--gold); }

.db-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.db-search-wrap { flex: 1 1 220px; min-width: 180px; }
.db-search-wrap input {
  width: 100%; height: 38px;
  background: var(--carbon);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.db-search-wrap input:focus { border-color: var(--gold); }

.db-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.db-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dim);
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.db-tab span { color: var(--mute); font-size: 12px; margin-left: 4px; }
.db-tab:hover { border-color: var(--line2); color: var(--text); }
.db-tab.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(231, 179, 36, 0.08);
}
.db-tab.active span { color: var(--gold-dim); }

.db-sort-wrap { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.db-sort-wrap select {
  height: 38px;
  background: var(--carbon);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.db-view { display: flex; border: 1px solid var(--line); }
.db-view-btn {
  background: transparent;
  border: none;
  color: var(--mute);
  width: 38px; height: 38px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}
.db-view-btn + .db-view-btn { border-left: 1px solid var(--line); }
.db-view-btn:hover { color: var(--text); }
.db-view-btn.active { color: var(--gold); background: rgba(231, 179, 36, 0.08); }

.db-count {
  margin-top: 14px;
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 1px;
}

/* 网格视图 */
.db-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.db-card {
  display: flex;
  flex-direction: column;
  background: var(--carbon);
  border: 1px solid var(--line);
  transition: border-color .15s ease;
  color: var(--text);
  text-decoration: none;
}
.db-card:hover { border-color: var(--gold); text-decoration: none; }
.db-card-img {
  height: 92px;
  background: #08090a;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.db-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 6px; }
.db-card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.db-card-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  line-height: 1.35;
}
.db-card-en { font-size: 11px; color: var(--mute); font-weight: 400; line-height: 1.3; }
.db-card-type { font-size: 12px; color: var(--dim); line-height: 1.3; }
.db-card-meta {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.db-card-cal { color: var(--mute); }
.db-card-price { color: var(--gold); font-weight: 700; white-space: nowrap; }
.db-card-free { color: #f2f2ef; }

/* 皮肤数据库卡片(个性化物品为 3:2 横图,图区更高) */
.skin-card-img { height: 116px; background: #101214; }
.skin-card-img img { padding: 8px; }
.skin-sub-img { height: 62px; }
/* 皮肤详情大图:皮肤图为 3:2 横向,容器贴合比例(参考武器详情,但按图比例调整) */
.item-img.skin-detail-img { flex-basis: 360px; aspect-ratio: 3/2; max-height: 300px; }

/* 表格视图 */
.db-table-wrap {
  margin-top: 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
}
.db-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.db-table th, .db-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.db-table th {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mute);
  background: var(--carbon);
}
.db-table th.num, .db-table td.num { text-align: right; }
.db-table tbody tr:hover { background: rgba(231, 179, 36, 0.04); }
.db-table tbody tr:last-child td { border-bottom: none; }
.db-t-en { display: block; font-size: 11px; color: var(--mute); font-weight: 400; line-height: 1.3; }
.db-t-cal { color: var(--mute); }
.db-t-price { color: var(--gold); font-weight: 700; }

.db-empty {
  margin-top: 30px;
  text-align: center;
  color: var(--mute);
  font-size: 14px;
  padding: 40px 0;
}

@media (max-width: 860px) {
  .db-toolbar { align-items: stretch; }
  .db-sort-wrap { margin-left: 0; width: 100%; }
  .db-sort-wrap select { flex: 1; }
  .db-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* 表格名称链接 */
.db-t-name a { color: var(--text); text-decoration: none; }
.db-t-name a:hover { color: var(--gold); text-decoration: none; }

/* 物品详情页 */
.item-container { max-width: 1080px; padding: 24px 20px 40px; }
.item-back { margin-bottom: 14px; font-size: 13px; }
.item-head { display: flex; gap: 24px; align-items: flex-start; }
.item-img {
  flex: 0 0 320px;
  aspect-ratio: 16/10;
  background: #08090a;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.item-head-info { flex: 1; min-width: 0; }
.item-kind { font-size: 12px; letter-spacing: 2px; color: var(--gold-dim); text-transform: uppercase; }
.item-name { font-size: 32px; font-weight: 800; margin-top: 6px; }
.item-en { font-size: 15px; color: var(--mute); margin-top: 2px; }
.item-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  border: 1px solid var(--line2);
  padding: 4px 12px;
  font-size: 13px;
  color: var(--dim);
  background: var(--carbon);
}
.chip-gold { border-color: var(--gold); color: var(--gold); font-weight: 700; }
.chip-unlock { border-color: #f2f2ef; color: #f2f2ef; font-weight: 700; }
.item-desc { margin-top: 14px; color: var(--dim); font-size: 14px; line-height: 1.7; }

.item-stats { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.is-section {
  border: 1px solid var(--line);
  background: var(--carbon);
}
.is-section h3 {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--mute);
  text-transform: uppercase;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #101214;
}
.is-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.is-row:last-child { border-bottom: none; }
.is-label { color: var(--mute); flex-shrink: 0; }
.is-value { color: var(--text); text-align: right; word-break: break-word; }
.is-value a { color: var(--gold-dim); }
.is-value a:hover { color: var(--gold); text-decoration: underline; }
.il-en { font-size: 11px; color: var(--mute); margin-left: 5px; }

/* 兼容弹药 / 配件槽位 缩略图小卡片(与总览一致) */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
  padding: 12px 16px;
}
.sub-card {
  display: flex;
  flex-direction: column;
  background: #101214;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s ease;
}
.sub-card:hover { border-color: var(--gold); text-decoration: none; }
.sub-card-img {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08090a;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.sub-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 4px; }
.sub-card-name { font-size: 11px; line-height: 1.2; padding: 6px 8px 2px; }
.sub-card-en { display: block; font-size: 10px; color: var(--mute); margin-top: 3px; line-height: 1.2; }
.sub-card-foot {
  margin-top: auto;
  padding: 2px 8px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}
.sub-card-cal { color: var(--mute); }
.sub-card-price { color: var(--gold); font-weight: 700; }
.is-slot { border-top: 1px solid var(--line); }
.is-slot:first-child { border-top: none; }
.is-slot-label { font-size: 12px; color: var(--dim); letter-spacing: 1px; padding: 12px 16px 0; }

.item-flavor {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  color: var(--dim);
  font-size: 13px;
  font-style: italic;
  line-height: 1.8;
}

.item-404 { text-align: center; padding: 60px 0; color: var(--mute); }
.item-404 h2 { color: var(--text); margin-bottom: 10px; }

/* 伤害计算器 */
.dc-container { max-width: 1000px; padding: 24px 20px 40px; }
.dc-container .banner-home { margin-bottom: 0; }
.dc-container .page-head { padding: 14px 0; }
.dc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-top: 18px;
}
.dc-controls-armor { margin-top: 14px; align-items: flex-start; }
.dc-field { display: flex; flex-direction: column; gap: 6px; }
.dc-label { font-size: 11px; letter-spacing: 2px; color: var(--mute); text-transform: uppercase; }
.dc-label span { color: var(--gold); font-weight: 700; }
.dc-select {
  background: var(--carbon);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  padding: 8px 12px;
  min-width: 200px;
  font-family: inherit;
  height: 36px;
  box-sizing: border-box;
}
.dc-select:focus { outline: none; border-color: var(--gold); }
.dc-arch { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-arch-btn {
  background: var(--carbon);
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  text-transform: uppercase;
  height: 36px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}
.dc-arch-btn:hover { border-color: var(--gold); color: var(--text); }
.dc-arch-btn.active { border-color: var(--gold); color: var(--gold); }
.dc-range { min-width: 260px; flex: 1; }
.dc-range-input { width: 100%; accent-color: var(--gold); }
.dc-armor-note { flex: 1; min-width: 220px; }
.dc-armor-note p { font-size: 12px; color: var(--mute); line-height: 1.6; }

/* 假人(方块人) */
.dc-target-wrap {
  display: flex;
  gap: 22px;
  margin-top: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.dc-dummy {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.dc-dummy-svg {
  width: 150px;
  height: 340px;
  background: #08090a;
  border: 1px solid var(--line);
  padding: 6px;
}
.dc-zone {
  fill: var(--zone-fill, #1d2124);
  stroke: var(--line2);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill .12s;
}
.dc-zone:hover { fill: #2c3236; }
/* 穿甲斜线层:叠加在伤害颜色底上,不响应点击 */
.dc-zone-hatch {
  fill: url(#dc-armor-hatch);
  pointer-events: none;
}
.dc-dummy-legend { font-size: 11px; color: var(--mute); text-align: center; max-width: 150px; line-height: 1.5; }

.dc-dummy-side { flex: 1; min-width: 220px; }
.dc-dummy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-bottom: none;
  padding: 8px 14px;
  background: var(--carbon);
}
.dc-dummy-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
}
.dc-reset {
  background: var(--carbon);
  border: 1px solid var(--line2);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 6px 14px;
  cursor: pointer;
  height: 32px;
  text-transform: uppercase;
  font-family: inherit;
}
.dc-reset:hover { border-color: var(--gold); color: var(--gold); }
.dc-dummy-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-top: none;
  background: var(--carbon);
  padding: 6px 14px;
  min-height: 46px;
}
.dc-dummy-total {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.dc-dummy-shots {
  font-size: 13px;
  color: var(--dim);
  flex-shrink: 0;
}
.dc-dummy-zones {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--carbon);
}
.dc-dummy-zones.empty { display: none; }
.dc-hit-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.dc-hit-row:last-child { border-bottom: none; }
.dc-hit-zone { color: var(--dim); }
.dc-hit-dmg { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .dc-target-wrap { flex-direction: column; align-items: stretch; }
  .dc-dummy { align-self: center; }
  .dc-dummy-side { min-width: 0; }
}

/* 枪匠计算器 */
.gs-controls-full { flex: 1 1 100%; }
.gs-weapon-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}
.gs-weapon-select { flex: 0 0 auto; }
.gs-weapon-info { flex: 1 1 100%; min-width: 280px; }
.gs-winfo { display: flex; align-items: flex-start; gap: 14px; }
.gs-wicon { width: 128px; height: 84px; object-fit: contain; background: #08090a; border: 1px solid var(--line); padding: 6px; flex-shrink: 0; }
.gs-wmeta { display: flex; flex-direction: column; gap: 4px; }
.gs-wtype { font-size: 12px; letter-spacing: 2px; color: var(--gold-dim); text-transform: uppercase; }
.gs-wdesc { font-size: 13px; color: var(--dim); line-height: 1.6; max-width: 640px; }
.gs-wrow { font-size: 13px; color: var(--mute); }

.gs-summary {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--carbon);
}
.gs-sum-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.gs-sum-chip { display: inline-flex; gap: 6px; align-items: baseline; background: #101214; border: 1px solid var(--line); padding: 5px 10px; font-size: 13px; }
.gs-sum-label { font-size: 10px; letter-spacing: 1px; color: var(--mute); text-transform: uppercase; }
.gs-sum-val { color: var(--gold); font-weight: 700; }
.gs-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.gs-stat { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.gs-stat:nth-child(odd) { border-right: 1px solid var(--line); }
.gs-stat-label { color: var(--dim); }
.gs-stat-val { color: var(--text); font-variant-numeric: tabular-nums; }
.gs-delta { font-style: normal; font-size: 11px; margin-left: 6px; color: var(--gold); }

.gs-slots { margin-top: 18px; }
.gs-slot { border: 1px solid var(--line); background: var(--carbon); margin-bottom: 12px; }
.gs-slot-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.gs-slot-name { font-size: 13px; font-weight: 700; }
.gs-slot-chosen { font-size: 12px; color: var(--mute); }
/* 已选配件卡片:金黄描边 */
.gs-slot-grid { padding: 10px 14px; }
.gs-slot-card { cursor: pointer; text-align: left; }
.gs-slot-card.selected, .gs-slot-card.selected:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
  background: rgba(231, 179, 36, 0.06);
}

@media (max-width: 860px) {
  .gs-winfo { flex-direction: row; }
  .gs-stats { grid-template-columns: 1fr; }
  .gs-stat:nth-child(odd) { border-right: none; }
}

.dc-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--carbon);
}
.dc-sum-chip {
  font-size: 13px;
  color: var(--text);
  background: #101214;
  border: 1px solid var(--line);
  padding: 5px 10px;
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}
.dc-sum-label { font-size: 10px; letter-spacing: 1px; color: var(--mute); text-transform: uppercase; }

.dc-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); }
.dc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.dc-table th, .dc-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.dc-table th { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--mute); background: var(--carbon); }
.dc-table th.num, .dc-table td.num { text-align: right; }
.dc-table tbody tr:last-child td { border-bottom: none; }
.dc-table tbody tr:hover { background: rgba(231, 179, 36, 0.04); }
.dc-dmg { color: var(--gold); font-weight: 700; }
.dc-zone-en { font-size: 10px; color: var(--mute); margin-left: 5px; }
.dc-prot { color: var(--mute); font-size: 12px; }
.dc-prot-yes { color: var(--gold-dim); }

@media (max-width: 860px) {
  .dc-controls { flex-direction: column; align-items: stretch; }
  .dc-select { min-width: 0; width: 100%; }
  .dc-range { min-width: 0; }
}

@media (max-width: 860px) {
  .item-head { flex-direction: column; }
  .item-img { flex: none; width: 100%; }
  .is-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .is-value { text-align: left; }
  /* 皮肤详情:移动端图片贴合 3:2,并限制最大高度,避免占满屏幕 */
  .item-img.skin-detail-img { max-height: 220px; }
}

/* ============ 配装计算器 ============ */
.lo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--carbon);
}
.lo-stat { display: inline-flex; align-items: baseline; gap: 8px; background: #101214; border: 1px solid var(--line); padding: 6px 12px; }
.lo-stat-label { font-size: 10px; letter-spacing: 1px; color: var(--mute); text-transform: uppercase; }
.lo-stat-val { font-size: 15px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.lo-stat-sub { font-size: 11px; color: var(--dim); }
.lo-stat-reset { margin-left: auto; border: none; background: transparent; padding: 0; }
.lo-reset {
  background: var(--carbon); border: 1px solid var(--line2); color: var(--text);
  font-size: 12px; letter-spacing: 1px; padding: 7px 16px; cursor: pointer; font-family: inherit; height: 34px;
}
.lo-reset:hover { border-color: var(--gold); color: var(--gold); }
.lo-err { color: #d86666; }

.lo-layout { display: flex; gap: 22px; margin-top: 20px; align-items: flex-start; flex-wrap: wrap; }
.lo-col { flex: 1 1 380px; min-width: 0; }
.lo-left { flex: 1 1 420px; }
.lo-right { flex: 1 1 300px; }
.lo-group-title {
  font-size: 11px; letter-spacing: 2px; color: var(--mute); text-transform: uppercase;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 10px;
}

/* 槽位网格基础 */
.lo-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
/* 武器槽:竖排三行(双类提高特异性,避免被 .lo-slots 覆盖) */
.lo-slots.lo-slots-weapon { grid-template-columns: 1fr; margin-bottom: 18px; }
/* 装备槽:一行三列 */
.lo-slots.lo-slots-gear { grid-template-columns: repeat(3, 1fr); }
/* 背包 + 降落伞:一行两列 */
.lo-slots.lo-slots-pack { grid-template-columns: repeat(2, 1fr); }
/* 背带槽 */
.lo-slings { margin-top: 14px; }
.lo-slings-title { font-size: 11px; letter-spacing: 2px; color: var(--mute); text-transform: uppercase; margin-bottom: 8px; }
.lo-slots.lo-slots-sling { grid-template-columns: repeat(2, 1fr); }
.lo-slot-sling .lo-slot-img { height: 42px; }
.lo-slot {
  display: flex; flex-direction: column; gap: 4px; align-items: stretch;
  background: var(--carbon); border: 1px solid var(--line); padding: 6px;
  cursor: pointer; text-align: left; font-family: inherit; color: var(--text);
  transition: border-color .15s;
}
.lo-slot:hover { border-color: var(--gold); }
.lo-slot.filled { border-color: var(--line2); background: #101214; }
.lo-slot-label { font-size: 10px; letter-spacing: 1px; color: var(--mute); text-transform: uppercase; }
.lo-slot-img {
  height: 68px; display: flex; align-items: center; justify-content: center;
  background: #08090a; border: 1px solid var(--line); overflow: hidden;
}
.lo-slot-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 2px; }
.lo-empty { font-size: 11px; color: var(--mute); }
.lo-slot-name { font-size: 12px; font-weight: 700; line-height: 1.3; }
.lo-slot-name em { display: block; font-style: normal; font-size: 10px; color: var(--mute); font-weight: 400; }
.lo-amt { font-size: 11px; color: var(--gold); font-weight: 700; }
.lo-slot-meta { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* 武器行:武器卡片 + 右侧 2×2 配件格(与武器栏等高) */
.lo-weapon-row { display: flex; gap: 8px; align-items: stretch; }
.lo-weapon-row > .lo-slot { flex: 1 1 auto; min-width: 0; }
.lo-modgrid {
  flex: 0 0 92px; width: 92px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px;
}
.lo-modcell {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: #08090a; border: 1px solid var(--line); cursor: pointer; padding: 0;
  overflow: hidden; font-family: inherit; color: var(--mute); min-height: 0; min-width: 0;
  height: 100%;
}
.lo-modcell:hover { border-color: var(--gold); }
.lo-modcell.filled { border-color: var(--gold-dim); background: #101214; }
/* 配件图绝对定位:无论图片多高都不撑开格子 */
.lo-modcell img {
  position: absolute; top: 2px; left: 2px;
  width: calc(100% - 4px); height: calc(100% - 4px);
  object-fit: contain; display: block;
}
.lo-modcell-empty { font-size: 10px; color: var(--mute); letter-spacing: 1px; }
.lo-modcell-none { background: transparent; border-style: dashed; border-color: rgba(233,233,228,.05); cursor: default; }

/* 背包物品分类 */
.lo-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lo-cat {
  background: var(--carbon); border: 1px solid var(--line); color: var(--dim);
  font-size: 11px; letter-spacing: 1px; padding: 6px 11px; cursor: pointer; font-family: inherit;
}
.lo-cat:hover { border-color: var(--gold); color: var(--text); }
.lo-cat.active { border-color: var(--gold); color: var(--gold); }
.lo-cat span { color: var(--mute); font-size: 10px; margin-left: 4px; }
.lo-cat.active span { color: var(--gold-dim); }
/* 推荐分类分组 */
.lo-rec-group { margin-bottom: 14px; }
.lo-rec-group:last-child { margin-bottom: 0; }
.lo-rec-title {
  font-size: 11px; letter-spacing: 2px; color: var(--gold-dim); text-transform: uppercase;
  padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.lo-rec-title span { color: var(--mute); font-size: 10px; margin-left: 4px; }

/* 背包网格 */
.lo-pack-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 20px 0 10px; }
/* 标题在 pack-head 内不再重复画线 */
.lo-pack-head .lo-group-title { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.lo-pack-info { font-size: 12px; color: var(--gold-dim); }
.lo-pack { position: relative; border: 1px solid var(--line); background: #08090a; min-height: 60px; width: 100%; box-sizing: border-box; touch-action: none; }
.lo-pack-empty { padding: 26px 14px; text-align: center; font-size: 12px; color: var(--mute); }
.lo-cell { position: absolute; background: #101214; border: 1px solid rgba(233,233,228,.06); box-sizing: border-box; }
/* 口袋之外的格子:不可放置 */
.lo-cell-off { background: transparent; border-style: dashed; border-color: rgba(233,233,228,.04); }
/* 口袋边界框:让不连通的格子分隔明显 */
.lo-pocket {
  position: absolute; box-sizing: border-box; pointer-events: none;
  border: 2px solid rgba(231,179,36,.28);
}
.lo-pack-item {
  position: absolute; box-sizing: border-box; background: #1a1e21; border: 1px solid var(--gold-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: grab; overflow: hidden; padding: 2px; user-select: none;
}
.lo-pack-item.dragging { cursor: grabbing; z-index: 5; opacity: .92; box-shadow: 0 6px 18px rgba(0,0,0,.6); border-color: var(--gold); }
.lo-pack-item.dragging.bad { border-color: #d86666; background: #2a1a1a; }
.lo-pack-item:hover { border-color: var(--gold); background: #23282c; }
.lo-pack-item img { max-width: 80%; max-height: 60%; object-fit: contain; pointer-events: none; }
.lo-pack-item-name { font-size: 9px; color: var(--dim); text-align: center; line-height: 1.1; margin-top: 2px; pointer-events: none; }
/* 物品数量角标 */
.lo-pack-qty {
  position: absolute; top: 1px; right: 2px; font-size: 9px; font-weight: 700;
  color: var(--gold); background: rgba(8,9,10,.85); padding: 0 3px; border-radius: 2px; pointer-events: none;
}

/* 数量调整面板 */
.lo-qty-overlay {
  position: fixed; inset: 0; z-index: 85; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lo-qty { width: 100%; max-width: 300px; background: var(--carbon); border: 1px solid var(--line2); }
.lo-qty-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: #101214;
}
.lo-qty-title { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lo-qty-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.lo-qty-imgwrap { height: 56px; display: flex; align-items: center; justify-content: center; }
.lo-qty-imgwrap img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lo-qty-row { display: flex; align-items: center; gap: 14px; }
.lo-qty-btn {
  width: 40px; height: 40px; background: var(--carbon); border: 1px solid var(--line2);
  color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; font-family: inherit;
}
.lo-qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.lo-qty-num { font-size: 24px; font-weight: 800; color: var(--gold); min-width: 60px; text-align: center; font-variant-numeric: tabular-nums; }
.lo-qty-meta { font-size: 11px; color: var(--mute); text-align: center; }
.lo-qty-remove {
  width: 100%; background: transparent; border: 1px solid var(--line2); color: var(--dim);
  font-size: 12px; padding: 8px; cursor: pointer; font-family: inherit; margin-top: 2px;
}
.lo-qty-remove:hover { border-color: #d86666; color: #d86666; }
.lo-pack-hint { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11px; }
.lo-hint-text { color: var(--mute); }
.lo-pending { color: var(--gold); font-weight: 700; }
.lo-warn { color: #d86666; }
.lo-mini {
  background: var(--carbon); border: 1px solid var(--line2); color: var(--text);
  font-size: 11px; padding: 5px 10px; cursor: pointer; font-family: inherit;
}
.lo-mini:hover { border-color: var(--gold); color: var(--gold); }
.lo-add { border-color: var(--gold-dim); color: var(--gold); }

/* 配装码(分享与还原) */
.lo-share {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.lo-share-title { margin-bottom: 0; }
.lo-share-out {
  width: 100%; box-sizing: border-box; background: #08090a; border: 1px solid var(--line);
  color: var(--dim); font-size: 11px; line-height: 1.5; padding: 8px 10px; font-family: inherit;
  resize: vertical; word-break: break-all;
}
.lo-share-out:focus { outline: none; border-color: var(--gold-dim); }
.lo-share-actions { display: flex; align-items: center; gap: 10px; }
.lo-share-in-row { display: flex; gap: 8px; }
.lo-share-in {
  flex: 1; min-width: 0; background: #08090a; border: 1px solid var(--line);
  color: var(--text); font-size: 12px; padding: 8px 10px; font-family: inherit;
}
.lo-share-in:focus { outline: none; border-color: var(--gold); }
.lo-share-msg { font-size: 11px; color: var(--mute); }
.lo-share-msg.ok { color: var(--gold); }
.lo-share-msg.warn { color: #d86666; }

/* 物品选择弹层 */
.lo-picker-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lo-picker {
  width: 100%; max-width: 760px; max-height: 82vh; display: flex; flex-direction: column;
  background: var(--carbon); border: 1px solid var(--line2);
}
.lo-picker-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: #101214;
}
.lo-picker-title { font-size: 14px; font-weight: 700; }
.lo-picker-close { background: transparent; border: none; color: var(--mute); font-size: 16px; cursor: pointer; font-family: inherit; }
.lo-picker-close:hover { color: var(--gold); }
.lo-picker-body { padding: 14px 16px; overflow-y: auto; }
.lo-search {
  width: 100%; box-sizing: border-box; background: #08090a; border: 1px solid var(--line);
  color: var(--text); font-size: 13px; padding: 9px 12px; font-family: inherit; margin-bottom: 10px;
}
.lo-search:focus { outline: none; border-color: var(--gold); }
.lo-unequip {
  background: transparent; border: 1px solid var(--line2); color: var(--dim);
  font-size: 11px; padding: 6px 12px; cursor: pointer; font-family: inherit; margin-bottom: 10px;
}
.lo-unequip:hover { border-color: #d86666; color: #d86666; }
.lo-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.lo-pick-card {
  display: flex; flex-direction: column; gap: 4px; align-items: stretch;
  background: #101214; border: 1px solid var(--line); padding: 0; cursor: pointer;
  text-align: left; font-family: inherit; color: var(--text); transition: border-color .15s;
}
.lo-pick-card:hover { border-color: var(--gold); }
.lo-pick-img { height: 50px; display: flex; align-items: center; justify-content: center; background: #08090a; border-bottom: 1px solid var(--line); overflow: hidden; }
.lo-pick-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 3px; }
.lo-pick-name { font-size: 11px; padding: 6px 8px 0; line-height: 1.25; }
.lo-pick-name em { display: block; font-style: normal; font-size: 9px; color: var(--mute); }
.lo-pick-meta { font-size: 10px; color: var(--dim); padding: 0 8px 6px; font-variant-numeric: tabular-nums; }
.lo-pick-empty { grid-column: 1 / -1; text-align: center; color: var(--mute); font-size: 12px; padding: 24px 0; }

@media (max-width: 860px) {
  .lo-layout { flex-direction: column; }
  .lo-col, .lo-pack-col { flex: 1 1 auto; width: 100%; }
  .lo-stat-reset { margin-left: 0; }
}
