/* style.css —— DNF 装备模拟器 · 游戏内界面同款暗金主题 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0c0805;
  --panel: #1a120b;
  --panel2: #221709;
  --line: #4a3820;
  --line2: #6b5326;
  --gold: #f0d48a;
  --gold2: #c9a35a;
  --text: #d8c9a8;
  --text-dim: #8f7f5e;
  --red-bg: #3a120c;
}

html, body { height: 100%; }
body {
  background: linear-gradient(135deg, #1c1e21, #131416);
  color: var(--text);
  font-family: "Microsoft YaHei", "SimSun", sans-serif;
  font-size: 13px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

/* 固定舞台：锁定 1350×980 居中 */
.stage {
  width: 1350px;
  height: 980px;
  flex: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: 0 0 0 1px #000, 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* ---------- 标题栏 ---------- */
.titlebar {
  height: 34px;
  background: linear-gradient(#241809, #17100a);
  border-bottom: 1px solid var(--line2);
  display: flex;
  align-items: center;
  padding: 0 10px;
  flex: none;
}
.tb-left { color: var(--text-dim); font-size: 12px; }
.tb-title {
  flex: 1;
  text-align: center;
  color: var(--gold);
  font-weight: bold;
  letter-spacing: 4px;
  font-size: 15px;
}
.tb-close {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 22px; height: 22px;
  cursor: pointer;
  line-height: 1;
}
.tb-close:hover { color: #ff6b4a; border-color: #ff6b4a; }

/* ---------- 三栏布局 ---------- */
.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 370px 1fr 390px;
  gap: 6px;
  padding: 6px;
  min-height: 0;
}

/* ---------- 脚注：开源许可声明 ---------- */
.site-footer {
  flex: none;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: linear-gradient(#17100a, #120c07);
  border-top: 1px solid var(--line2, #6b5326);
  color: #b9a06a;
  font-size: 12px;
  line-height: 1.2;
}
.site-footer .ft-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-footer .ft-meta { flex: none; color: #8a7650; }
.site-footer a { color: #e8b23a; text-decoration: none; border-bottom: 1px dotted #6b5326; }
.site-footer a:hover { color: #ffd56b; border-bottom-color: #e8b23a; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.panel-head {
  background: linear-gradient(#3a2a14, #241809);
  border-bottom: 1px solid var(--line2);
  color: var(--gold);
  font-weight: bold;
  text-align: center;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
}
.panel-head span:first-child { flex: 1; text-align: center; }
.help {
  width: 16px; height: 16px;
  border: 1px solid var(--gold2);
  border-radius: 50%;
  color: var(--gold2);
  font-size: 11px;
  line-height: 15px;
  text-align: center;
  cursor: default;
}

/* ---------- 左：变动事项 ---------- */
.total-box {
  background: radial-gradient(ellipse at center, #4a180d 0%, var(--red-bg) 60%, #240a06 100%);
  border-bottom: 1px solid var(--line2);
  text-align: center;
  padding: 14px 8px 12px;
  flex: none;
}
.total-label {
  display: inline-block;
  background: linear-gradient(#5a3a1a, #3a240c);
  border: 1px solid var(--gold2);
  color: var(--gold);
  padding: 2px 26px;
  font-weight: bold;
  letter-spacing: 6px;
  margin-bottom: 8px;
}
.total-value {
  color: #ffe9b0;
  font-size: 21px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 200, 100, .35);
  letter-spacing: 1px;
}
.total-sub { color: var(--text-dim); font-size: 11px; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; }
.skill-table { flex: none; }
.skill-table th, .attr-table th {
  background: #2a1c0c;
  color: var(--gold);
  font-weight: normal;
  padding: 5px 6px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid #332413;
  text-align: center;
  font-size: 12px;
}
.skill-table td, .attr-table td {
  padding: 6px 6px;
  border-bottom: 1px solid #2c2013;
  border-right: 1px solid #2c2013;
  text-align: center;
  color: var(--text);
  font-size: 12px;
}
.skill-table td:first-child { width: 44px; }
.skill-table td.num { text-align: right; font-family: Consolas, monospace; }
.skill-table .sk-main { line-height: 1.25; }
.skill-table .sk-sub { font-size: 10px; color: #5b6472; margin-top: 1px; line-height: 1.2; }
.skill-table .sk-delta { color: #7fd67f; }
.skill-icon {
  width: 34px; height: 34px;
  border: 1px solid var(--gold2);
  background: linear-gradient(135deg, #3a2a14, #1c1208);
  color: var(--gold);
  font-size: 15px;
  font-weight: bold;
  line-height: 33px;
  margin: 0 auto;
  cursor: default;
}
.skill-icon-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pct-bar-wrap { position: relative; }
.pct-warn { color: #ffcf7a; }

/* 让技能表占中间可滚动区域，属性表贴底（固定在面板最下方，始终可见） */
.skill-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.attr-table { flex: none; border-top: 2px solid var(--line2); background: #1a120a; }
.attr-table th { background: #2a1c0c; }
.attr-table td:nth-child(2) { font-family: Consolas, monospace; }
.attr-delta { color: #7fd67f; }
.attr-delta.down { color: #ff8f6b; }

/* ---------- 中：装备变更 ---------- */
.tabs {
  display: flex;
  background: #17100a;
  border-bottom: 1px solid var(--line2);
  flex: none;
}
.tab {
  flex: 1;
  background: none;
  border: none;
  border-right: 1px solid var(--line);
  color: var(--text-dim);
  padding: 7px 0;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.tab.active {
  color: var(--gold);
  background: linear-gradient(#3a2a14, #241809);
  font-weight: bold;
}
.tab:hover { color: var(--gold); }

.char-row { padding: 8px 10px 6px; flex: none; }
.char-head { margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.class-select {
  flex: 1;
  position: relative;
}
/* 折叠职业选择控件（cate-toggle：大类 + 可展开子菜单） */
.cs-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #0f0a05;
  border: 1px solid var(--line2);
  color: var(--gold);
  padding: 4px 8px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.cs-trigger:hover { border-color: var(--gold); }
.cs-caret { color: var(--gold2); font-size: 11px; flex: none; }
.cs-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #140d05;
  border: 1px solid var(--line2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.7);
  max-height: 340px;
  overflow-y: auto;
  padding: 4px 0;
}
.cs-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  cursor: pointer;
  color: var(--gold);
  font-weight: bold;
  user-select: none;
}
.cs-cat:hover { background: #241809; }
.cs-cat.open { background: #1e1409; }
.cs-cat-toggle {
  width: 14px;
  text-align: center;
  color: var(--gold2);
  font-family: monospace;
  flex: none;
}
.cs-cat-count { color: var(--text-dim); font-weight: normal; font-size: 11px; margin-left: 2px; }
.cs-subcat { padding: 0 0 4px; }
.cs-item {
  padding: 4px 10px 4px 30px;
  cursor: pointer;
  color: var(--text);
  font-weight: normal;
  user-select: none;
}
.cs-item:hover { background: #2a1c0c; color: var(--gold); }
.cs-item.active { background: #33230f; color: #ffd88a; }
.cs-item.disabled { color: #6b5a3c; cursor: default; }
.cs-item.disabled:hover { background: transparent; color: #6b5a3c; }
.import-btn {
  flex: none;
  background: linear-gradient(145deg, #2a1c0c, #18100a);
  border: 1px solid var(--gold2);
  color: var(--gold);
  padding: 4px 12px;
  cursor: pointer;
  font-family: inherit;
}
.import-btn:hover { border-color: var(--gold); background: #33230f; }
.import-btn:active { background: #1c1308; }
.import-msg {
  flex: none;
  color: #8ee69a;
  font-size: 12px;
  margin-left: 4px;
}

.equip-grid {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: flex-start;
}
.slot-col { display: flex; flex-direction: column; gap: 6px; }
/* 左栏 5 格 = 2 列网格（行优先：头肩 上衣 / 下装 腰带 / 鞋 空）——
   ⚠️ 用 id 选择器：index.html 容器只有 slot-col 类，没有 left/right 类 */
#slotColLeft {
  display: grid;
  grid-template-columns: repeat(2, 46px);
  gap: 6px;
}
/* 右栏 8 格 = 2×4 网格（行优先：武器 称号 / 手镯 项链 / 左槽 戒指 / 耳环 右槽） */
#slotColRight {
  display: grid;
  grid-template-columns: repeat(2, 46px);
  gap: 6px;
}
/* 换装按钮（左栏鞋子正下方，仿游戏卡片按钮：深棕底 + 金边 + 金色循环箭头） */
.slot-swap-btn {
  grid-column: 1;               /* 钉在第 1 列，正好落在鞋子下面 */
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid #8a6d3b;
  border-radius: 3px;
  background:
    linear-gradient(145deg, #4a3320 0%, #33220f 55%, #241708 100%);
  box-shadow:
    inset 0 0 0 1px rgba(232, 196, 106, .28),
    inset 0 1px 2px rgba(255, 230, 160, .12),
    0 2px 4px rgba(0, 0, 0, .55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot-swap-btn:hover { filter: brightness(1.3); }
.slot-swap-btn:active { transform: translateY(1px); box-shadow: inset 0 0 0 1px rgba(232,196,106,.28), 0 1px 2px rgba(0,0,0,.5); }
.slot-box {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, #2a1c0c, #170f07);
  border: 1px solid var(--line2);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
  user-select: none;
}
.slot-box:hover { border-color: var(--gold); }
.slot-box.selected { border-color: #ffd88a; box-shadow: 0 0 6px rgba(255, 200, 100, .5); }
.slot-box .slot-txt { color: #7a6844; }
.slot-box .slot-item {
  color: var(--gold);
  font-size: 10px;
  line-height: 1.2;
  padding: 1px 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-all;
}
/* 槽位边框按稀有度着色（当前五档：太初>史诗>传说>神器>稀有） */
.slot-box.r-taichu    { border-color: #2f7fd6; box-shadow: 0 0 6px rgba(61, 154, 255, .45); }
.slot-box.r-epic      { border-color: #b8741a; }
.slot-box.r-legendary { border-color: #c94fb0; }
.slot-box.r-artifact  { border-color: #c23b4a; }
.slot-box.r-rare      { border-color: #8a56d6; }
.set-equip-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.item-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }

.fame-row {
  text-align: center;
  margin-top: 8px;
  color: var(--text);
}
.fame-label { color: var(--text-dim); margin-right: 8px; }
.fame-value { color: #ffe9b0; font-weight: bold; font-size: 14px; }
.worn-set-row {
  text-align: center;
  margin-top: 5px;
  color: #8fd0ff;
  font-size: 12px;
  min-height: 16px;
}
.mid-actions { text-align: center; margin-top: 6px; }
.btn-gold {
  background: linear-gradient(#5a3a1a, #3a240c);
  border: 1px solid var(--gold2);
  color: var(--gold);
  padding: 4px 18px;
  cursor: pointer;
  font-family: inherit;
}
.btn-gold:hover { border-color: var(--gold); }

.lib-head {
  background: #2a1c0c;
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  text-align: center;
  padding: 5px 0;
  flex: none;
}
/* 角色属性面板（游戏内属性框样式） */
.stat-panel {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 6px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 16px;
  align-content: start;
}
.stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
  border-bottom: 1px solid #241a0e;
  min-width: 0;
}
.stat-line.full { grid-column: 1 / -1; }
/* 属性面板内的分区标题（如：装备攻击信息） */
.stat-sec {
  grid-column: 1 / -1;
  color: var(--gold);
  text-align: center;
  font-weight: 600;
  padding: 7px 0 3px;
  margin-top: 4px;
  border-top: 1px solid #3a2c16;
}
.stat-line .lab {
  color: #cfc0a0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.stat-line .dot {
  width: 9px; height: 9px;
  display: inline-block;
  flex: none;
  background: #888;
  box-shadow: 0 0 3px rgba(0, 0, 0, .6);
}
.stat-line .val {
  color: #f0a43a;
  font-family: Consolas, monospace;
  white-space: nowrap;
}
.stat-line .val .elem-e { color: #e05555; }
.stat-line .val .elem-w { color: #5a9ae0; }
.stat-line .val .elem-l { color: #e8d44a; }
.stat-line .val .elem-d { color: #a86ae0; }
.stat-line .val.gt-green { color: #4ef07a; }

/* ---------- 右：装备选择 ---------- */
.right-tabs .tab { flex: none; padding: 7px 22px; }
.filter-row {
  display: flex;
  gap: 6px;
  padding: 8px 8px 4px;
  flex: none;
}
.filter-sel {
  flex: 1;
  background: #0f0a05;
  border: 1px solid var(--line2);
  color: var(--text);
  padding: 5px 6px;
  font-family: inherit;
}
/* ---------- 类别树形选择（仿游戏：+号展开子菜单） ---------- */
.cate-tree {
  flex: 1;
  position: relative;
}
.cate-toggle {
  background: #0f0a05;
  border: 1px solid var(--line2);
  color: var(--text);
  padding: 5px 6px;
  font-size: 12px;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}
.cate-tree.open .cate-toggle { border-color: var(--gold2); }
.cate-arrow { color: #b09550; font-size: 10px; }
.cate-pop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f0a05;
  border: 1px solid var(--gold2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
  z-index: 60;
  max-height: 240px;
  overflow-y: auto;
  padding: 2px;
}
.cate-tree.open .cate-pop { display: block; }
.cate-item {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 5px;
  color: #e8d9a8;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.cate-item:hover { background: rgba(240, 212, 138, 0.12); color: var(--gold); }
.cate-item.sel {
  box-shadow: 0 0 0 1px var(--gold) inset;
  background: rgba(240, 212, 138, 0.08);
  color: var(--gold);
}
.cate-plus {
  width: 12px;
  height: 12px;
  flex: none;
  border: 1px solid #6b5326;
  color: #b09550;
  font-size: 10px;
  line-height: 10px;
  text-align: center;
  font-style: normal;
  cursor: pointer;
  user-select: none;
}
.cate-plus:hover { border-color: var(--gold2); color: var(--gold); }
.cate-plus.on::before { content: '\2212'; }
.cate-plus:not(.on)::before { content: '+'; }
.cate-sub { display: none; }
.cate-sub.open { display: block; }
.cate-sub .cate-item { padding-left: 17px; }
.search-row {
  display: flex;
  gap: 6px;
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  flex: none;
}
.search-label { color: var(--text-dim); flex: none; }
.search-input {
  flex: 1;
  background: #0f0a05;
  border: 1px solid var(--line2);
  color: var(--text);
  padding: 5px 8px;
  font-family: inherit;
  outline: none;
}
.search-input:focus { border-color: var(--gold2); }
.btn-search {
  background: linear-gradient(#5a3a1a, #3a240c);
  border: 1px solid var(--gold2);
  color: var(--gold);
  padding: 5px 14px;
  cursor: pointer;
  font-family: inherit;
  flex: none;
}
.list-head {
  display: flex;
  justify-content: space-between;
  background: #2a1c0c;
  color: var(--gold);
  padding: 5px 10px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.item-list { flex: 1; overflow-y: auto; min-height: 0; }
.item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid #241a0e;
  cursor: pointer;
}
.item-row:hover { background: #241809; }
.item-row.equipped { background: #2a1f0e; }
.item-ico {
  width: 32px; height: 32px;
  border: 1px solid var(--line2);
  background: linear-gradient(135deg, #2a1c0c, #170f07);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
}
.item-name { flex: 1; line-height: 1.3; }
.item-name.custom::after {
  content: "自定义";
  color: #c07af0;
  font-size: 10px;
  border: 1px solid #c07af0;
  padding: 0 3px;
  margin-left: 5px;
}
.item-lv { color: var(--text-dim); font-family: Consolas, monospace; flex: none; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  background: #17100a;
  flex: none;
}
.pg-btn {
  background: none;
  border: 1px solid var(--line2);
  color: var(--gold);
  width: 24px; height: 22px;
  cursor: pointer;
}
.pg-btn:disabled { color: #54452c; cursor: default; }
#pageInfo { color: var(--text); font-family: Consolas, monospace; }

.history-head {
  background: #2a1c0c;
  color: var(--gold);
  text-align: center;
  padding: 5px 0;
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.history-list {
  height: 110px;
  overflow-y: auto;
  padding: 4px 8px;
  flex: none;
}
.history-item {
  padding: 3px 4px;
  border-bottom: 1px dashed #2c2013;
  font-size: 12px;
  cursor: pointer;
  color: var(--text);
}
.history-item:hover { color: var(--gold); background: #241809; }
.history-item .h-time { color: var(--text-dim); font-size: 11px; margin-right: 6px; }
.muted { color: var(--text-dim); text-align: center; padding: 8px 0; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #120c06; }
::-webkit-scrollbar-thumb { background: #4a3820; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6b5326; }

.placeholder-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 2px;
}

/* ---------- 誓约面板 ---------- */
.oath-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 4px 8px 8px;
}
.oath-board {
  position: relative;
  padding: 8px 4px 4px;
}
.oath-circle {
  position: absolute;
  left: 50%; top: 50%;
  width: 250px; height: 250px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(200,162,74,0.15));
}
.oath-mid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.oath-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oath-slot {
  width: 38px; height: 38px;
  border: 1px solid #5a4a2e;
  background:
    radial-gradient(circle at 50% 45%, rgba(122,96,48,0.25), transparent 70%),
    linear-gradient(145deg, #241a0e, #14100a);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.7);
  cursor: pointer;
  position: relative;
}
.oath-slot::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(138,106,46,0.45);
  transform: rotate(45deg);
}
.oath-slot:hover { border-color: var(--gold); }
.oath-slot.selected {
  border-color: #7ab0e8;
  box-shadow: 0 0 8px rgba(122,176,232,0.5), inset 0 0 6px rgba(0,0,0,0.7);
}
.oath-center {
  position: relative;
  width: 56px; height: 56px;
  border: 1px solid #6b8cb8;
  background: linear-gradient(145deg, #1a2436, #0c1220);
  box-shadow: 0 0 12px rgba(90,160,230,0.35), inset 0 0 8px rgba(0,0,0,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oath-gem {
  width: 34px; height: 34px;
  transform: rotate(45deg);
  background:
    radial-gradient(circle at 35% 30%, #dffbff 0%, #7fd8f0 30%, #2a9cc8 62%, #145a8a 100%);
  box-shadow: 0 0 10px rgba(120,220,255,0.7), inset 0 0 5px rgba(255,255,255,0.5);
  border: 1px solid rgba(220,250,255,0.6);
}
.oath-bottom-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.oath-info {
  margin-top: 14px;
  border-top: 1px solid #2c2013;
  padding-top: 10px;
  text-align: center;
}
.oath-fame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffe9b0;
  font-family: Consolas, monospace;
  font-size: 18px;
}
.wings-ico { width: 24px; height: 14px; }
.oath-fame-sub {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 2px;
}
.oath-hint {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 10px;
  letter-spacing: 1px;
}

/* ---------- 迷雾誓约等级块 ---------- */
.oath-level-block {
  margin: 14px auto 4px;
  max-width: 360px;
  background: linear-gradient(180deg, rgba(16, 14, 10, .92), rgba(10, 9, 7, .95));
  border: 1px solid #3a2d16;
  border-radius: 8px;
  padding: 10px 18px 12px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .55);
}
.oath-lv-title {
  text-align: center;
  color: #e8c56a;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.oath-lv-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.oath-lv-btn {
  background: linear-gradient(180deg, #3a2f1c, #241c10);
  border: 1px solid #5a4826;
  border-radius: 4px;
  color: #e8d5a0;
  font-size: 11px;
  line-height: 1;
  padding: 5px 8px;
  cursor: pointer;
}
.oath-lv-btn:hover { border-color: #c8a24a; color: #ffe9b0; }
.oath-lv-btn:active { transform: translateY(1px); }
.oath-lv-reset { margin-left: 14px; }
.oath-lv-num {
  min-width: 34px;
  text-align: center;
  color: #ffe9b0;
  font-family: Consolas, monospace;
  font-size: 16px;
  padding: 0 4px;
}
.oath-lv-rows { display: flex; flex-direction: column; gap: 3px; }
.oath-lv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1px 6px;
}
.oath-lv-label { color: #c9b184; font-size: 13px; letter-spacing: 1px; }
.oath-lv-val {
  color: #7ddf7d;
  font-family: Consolas, monospace;
  font-size: 13px;
}
.oath-lv-val.gold { color: #ffd766; }
.oath-lv-val.zero { color: #6a6a5a; }
.oath-lv-status {
  text-align: center;
  color: #7ddf7d;
  font-size: 12px;
  margin-top: 7px;
  letter-spacing: 1px;
}
.oath-level-block.inactive { opacity: .5; }
.oath-level-block.inactive .oath-lv-status { color: #c98a4a; }
.oath-level-block.inactive .oath-lv-val { color: #6a6a5a !important; }

/* 誓约槽内容（已穿图 / 空态类型名） */
.oath-slot-img { width: 100%; height: 100%; object-fit: cover; display: block; border: none; }
.oath-slot-label {
  position: absolute; left: 0; right: 0; bottom: 1px;
  text-align: center; font-size: 8px; line-height: 1;
  color: #9c855a; pointer-events: none; text-shadow: 0 0 3px #000;
}
.oath-slot.empty:hover { border-color: var(--gold); }
.oath-center.empty .oath-gem { opacity: .35; }

/* 誓约穿戴候选浮层 */
.oath-pick {
  position: fixed; z-index: 1000; width: 262px; max-height: 360px; overflow-y: auto;
  background: linear-gradient(180deg, #1c160e, #120d07);
  border: 1px solid #5a4826; border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .7); padding: 8px; color: #e8d5a0;
}
.oath-pick-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #e8c56a; margin-bottom: 6px;
  border-bottom: 1px solid #3a2d16; padding-bottom: 5px;
}
.oath-pick-close { cursor: pointer; color: #9c855a; font-size: 14px; }
.oath-pick-close:hover { color: #ffe9b0; }
.oath-pick-cur {
  font-size: 12px; color: #bcd3f0; margin-bottom: 6px; padding: 4px 6px;
  background: rgba(40, 60, 90, .4); border-radius: 4px;
}
.oath-pick-rel { color: #ff8f6a; cursor: pointer; float: right; }
.oath-pick-rel:hover { color: #ffb39a; }
.oath-pick-list { display: flex; flex-direction: column; gap: 4px; }
.oath-pick-item {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px; border: 1px solid transparent; border-radius: 5px; cursor: pointer;
}
.oath-pick-item:hover { background: rgba(200, 162, 74, .12); border-color: #5a4826; }
.oath-pick-item img {
  width: 34px; height: 34px; object-fit: cover; flex: 0 0 auto;
  border: 1px solid #4a3a1e; background: #0c0a06; display: block;
}
.oath-pick-noimg {
  width: 34px; height: 34px; flex: 0 0 auto; display: flex; align-items: center;
  justify-content: center; font-size: 9px; color: #6a6a5a; border: 1px solid #4a3a1e;
}
.oath-pick-meta { flex: 1; min-width: 0; }
.oath-pick-name {
  font-size: 12px; color: #ffe9b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oath-pick-sub { font-size: 10px; color: #9c855a; margin-top: 1px; }
.oath-pick-on { color: #7ddf7d; font-size: 13px; }

/* ---------- 辟邪玉面板 ---------- */
.jade-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 4px 8px 8px;
}
.jade-board {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}
.jade-disc {
  width: 280px;
  height: 280px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7));
}
.jade-slot {
  position: absolute;
  left: 50%; top: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, #0d0c08, #060504);
  border: 2px solid #46402e;
  box-shadow:
    0 0 0 3px rgba(20,17,10,0.9),
    inset 0 0 10px rgba(0,0,0,0.9);
  cursor: pointer;
}
.jade-slot:hover { border-color: var(--gold); }
.jade-info {
  position: relative;
  margin-top: 10px;
  border-top: 1px solid #2c2013;
  padding-top: 10px;
  text-align: center;
}
.jade-refresh {
  position: absolute;
  right: 4px;
  top: 14px;
  width: 26px; height: 26px;
  background: rgba(20,40,70,0.4);
  border: 1px solid #3a5a86;
  border-radius: 4px;
  cursor: pointer;
  padding: 3px;
}
.jade-refresh:hover { border-color: #5aa0e0; background: rgba(30,60,100,0.5); }
.jade-refresh svg { width: 100%; height: 100%; }
.jade-fame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffe9b0;
  font-family: Consolas, monospace;
  font-size: 18px;
}
.jade-fame-sub {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 2px;
}
.jade-hint {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 10px;
  letter-spacing: 1px;
}

/* ---------- 徽章面板 ---------- */
.emblem-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 4px 8px 8px;
  position: relative;
}
.emb-info-btn {
  position: absolute;
  right: 10px; top: 8px;
  width: 20px; height: 20px;
  background: #1a2436;
  color: #9fc4e8;
  border: 1px solid #3a5a86;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}
.emb-info-btn:hover { border-color: #5aa0e0; }
.emb-board {
  position: relative;
  width: 100%;
  margin: 30px auto 0;
  flex: none;
}
.emb-inner {
  position: absolute;
  top: 0; left: 0;
  width: 400px;
  height: 320px;
  transform-origin: top left;
}
.emb-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.emb-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 2;
  transform: translate(-50%, -50%);
}
.emb-node.n0 { left: 200px; top: 32.17px; }
.emb-node.n1 { left: 310.83px; top: 113px; }
.emb-node.n2 { left: 268.33px; top: 243px; }
.emb-node.n3 { left: 131.67px; top: 243px; }
.emb-node.n4 { left: 89.17px; top: 113px; }
.emb-hex {
  width: 58px; height: 64px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: #8a6a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.emb-hex::before {
  content: '';
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: radial-gradient(circle at 50% 40%, #2a2114 0%, #14100a 75%);
}
.emb-hex.t-gold { background: #a07820; }
.emb-hex.t-red { background: #8a3220; }
.emb-hex.t-blue { background: #2a5a8a; }
.emb-hex.t-green { background: #4a7a2a; }
.emb-hex.t-yellow { background: #9a7a14; }
.emb-hex:hover { filter: brightness(1.25); }
.emb-hex.sel { filter: brightness(1.4) drop-shadow(0 0 6px rgba(255, 215, 100, 0.6)); }
.emb-hex-wrap {
  position: relative;
  width: 58px;
  height: 64px;
}
.emb-cbox {
  position: absolute;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, #2a1c0c, #170f07);
  border: 1px solid var(--line2);
  border-radius: 3px;
  z-index: 4;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(255, 120, 30, 0.4);
}
.emb-cbox:hover { border-color: var(--gold); box-shadow: 0 0 6px rgba(255, 200, 80, 0.7); }
.emb-cbox.cb-t  { left: 20px; top: -9px; }
.emb-cbox.cb-tr { left: 49px; top: 7px; }
.emb-cbox.cb-br { left: 49px; top: 39px; }
.emb-cbox.cb-b  { left: 20px; top: 55px; }
.emb-cbox.cb-bl { left: -9px; top: 39px; }
.emb-cbox.cb-tl { left: -9px; top: 7px; }
.emb-ico {
  position: relative;
  z-index: 1;
  width: 62%;
  height: 62%;
  filter: drop-shadow(0 0 4px rgba(255, 200, 80, 0.5));
}
.emb-lv {
  background: #1c150c;
  border: 1px solid #8a6a2e;
  color: #e8c56a;
  font-size: 10px;
  line-height: 1;
  padding: 2px 5px;
}
.emb-corner {
  position: absolute;
  bottom: 53px;
  width: 26px; height: 26px;
  filter: drop-shadow(0 0 4px rgba(255, 100, 20, 0.55));
  opacity: 0.95;
  cursor: pointer;
  z-index: 3;
}
.emb-corner.cbl { left: 2px; }
.emb-corner.cbr { right: 2px; }
.emb-corner svg { width: 100%; height: 100%; }
.emb-fill-cell {
  position: absolute;
  bottom: 8px;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #2a1c0c, #170f07);
  border: 1px solid var(--line2);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.emb-fill-cell.cbl.near { left: 2px; }
.emb-fill-cell.cbl.far  { left: 48px; }
.emb-fill-cell.cbr.near { right: 2px; }
.emb-fill-cell.cbr.far  { right: 48px; }
.emb-fill-cell:hover { border-color: var(--gold); }
.emb-fill-cell .fc-ico { width: 20px; height: 20px; opacity: 0.55; }

/* ---------- 星徽综合属性表 ---------- */
.star-panel {
  flex: none;
  margin: -8px 0 8px;
  border: 1px solid var(--line2);
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(240, 212, 138, 0.06) inset;
}
.star-title {
  position: relative;
  height: 24px;
  line-height: 24px;
  text-align: center;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #3a2a12, #241806);
  border-bottom: 1px solid var(--line);
}
.star-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.star-table th,
.star-table td {
  border: 1px solid #2a2013;
  font-size: 12px;
  padding: 0 4px;
  height: 32px;
  text-align: center;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.star-table thead th {
  height: 24px;
  background: linear-gradient(180deg, #33240e, #261a08);
  color: var(--gold2);
  font-weight: normal;
}
.star-table tbody tr:nth-child(even) { background: rgba(240, 212, 138, 0.03); }
.star-table .c-ico  { width: 58px; }
.star-table .c-stage { width: 96px; }
.star-table .c-fame { width: 86px; }
.star-table .c-fix  { width: 158px; }
.star-table .c-res  { width: 96px; }
.star-table .c-eff  { width: 96px; }
.star-table .star-fix { color: #6fd7ff; }
.star-table .st-rare  { color: #b48cff; }
.star-table .st-dia   { color: #8a7ce8; letter-spacing: 2px; font-size: 11px; }
.star-table .st-none  { color: #6a6355; }
.star-ico {
  width: 22px; height: 22px;
  vertical-align: middle;
  filter: drop-shadow(0 0 3px rgba(240, 212, 138, 0.25));
}
.star-stage { color: #e8a33d; }

/* ---------- 徽章栏 ---------- */
.emblem-bar {
  flex: none;
  margin: -3px 0 6px;
  padding: 4px 8px 6px;
  border: 1px solid var(--line2);
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(240, 212, 138, 0.06) inset;
}
.emblem-bar-title {
  height: 20px;
  line-height: 20px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
  background: linear-gradient(180deg, #3a2a12, #241806);
  border: 1px solid var(--line);
  margin-bottom: 5px;
}
.emblem-bar-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: space-between;
}

/* ---------- 物品栏（辟邪玉下方，拉伸到面板底部） ---------- */
.item-bar {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 8px 0 0;
  padding: 4px 8px 6px;
  border: 1px solid var(--line2);
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(240, 212, 138, 0.06) inset;
}
.item-bar-title {
  flex: none;
  height: 24px;
  line-height: 24px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
  background: linear-gradient(180deg, #3a2a12, #241806);
  border: 1px solid var(--line);
  margin-bottom: 5px;
}
.item-bar-slots {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 5px;
  justify-content: flex-start;
  overflow: hidden;
}
.eb-slot {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #2a1c0c, #170f07);
  border: 1px solid var(--line2);
  border-radius: 3px;
  cursor: pointer;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
  transition: border-color .12s, box-shadow .12s;
}
.eb-slot:hover {
  border-color: var(--gold);
  box-shadow: 0 0 5px rgba(240, 212, 138, 0.4), inset 0 0 4px rgba(0, 0, 0, 0.5);
}

/* ---------- 宠物面板 ---------- */
.pet-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 4px 8px 8px;
}
.pet-board {
  flex: 1;
  display: flex;
  gap: 14px;
  padding: 10px 4px 4px;
}
.pet-portrait {
  width: 96px; height: 96px;
  flex: none;
  border: 1px solid #6b5326;
  background: radial-gradient(circle at 50% 40%, #1c150c, #0a0805);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pet-ph { width: 70px; height: 70px; }
.pet-side { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pet-name { color: var(--gold); font-size: 15px; }
.pet-row { font-size: 12px; display: flex; gap: 8px; }
.pet-k { color: var(--text-dim); width: 40px; flex: none; }
.pet-v { color: var(--text); }
.pet-equips { display: flex; gap: 8px; margin-top: 8px; }
.pet-eq {
  width: 38px; height: 38px;
  border: 1px solid #4a3a22;
  background: linear-gradient(145deg, #1c150c, #100c07);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-dim);
  cursor: pointer;
}
.pet-eq:hover { border-color: var(--gold); }
.pet-hint {
  margin-top: 12px;
  border-top: 1px solid #2c2013;
  padding-top: 10px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ---------- 技能代码导入模态框 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.62); display: flex; align-items: center; justify-content: center; }
.modal-box { width: 760px; max-width: 94vw; background: var(--panel, #17110a); border: 1px solid var(--line2, #6b5326); box-shadow: 0 0 0 1px rgba(240,212,138,0.08) inset, 0 10px 36px rgba(0,0,0,0.55); color: var(--text, #e8e0cf); padding: 16px 18px 18px; }
.modal-title { font-size: 15px; color: var(--gold, #f0d48a); letter-spacing: 1px; display: flex; justify-content: space-between; align-items: center; }
.modal-close { cursor: pointer; font-size: 20px; line-height: 1; color: var(--gold2, #c9a35a); }
.modal-close:hover { color: #fff; }
.modal-tip { font-size: 12px; color: #b8ac90; margin: 8px 0 10px; line-height: 1.5; }
.modal-textarea { width: 100%; height: 120px; resize: vertical; background: #0f0a05; border: 1px solid var(--line2, #6b5326); color: var(--text, #e8e0cf); padding: 8px; font-family: Consolas, monospace; font-size: 12px; box-sizing: border-box; }
.modal-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.modal-btn { background: #241806; border: 1px solid var(--line2, #6b5326); color: var(--gold, #f0d48a); padding: 6px 16px; cursor: pointer; font-family: inherit; font-size: 13px; }
.modal-btn:hover:not(:disabled) { border-color: var(--gold); background: #33230f; }
.modal-btn.primary { background: linear-gradient(180deg, #3a2a12, #241806); }
.modal-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.modal-msg { font-size: 12px; color: #b8ac90; }
.modal-result { margin-top: 12px; max-height: 230px; overflow: auto; font-size: 12px; background: #0f0a05; border: 1px solid var(--line2, #6b5326); padding: 8px; display: none; }
.modal-result.show { display: block; }
.modal-result .rk { color: var(--gold, #f0d48a); }
.modal-result .lv { color: #e8a33d; }
.modal-result pre { white-space: pre-wrap; word-break: break-all; color: #8a7d5e; margin: 6px 0 0; font-size: 11px; }
/* ---------- DNF 导入加点展示 ---------- */
.imported-skills { margin-top: 10px; border: 1px solid var(--line2, #6b5326); background: var(--panel, #17110a); padding: 8px 10px; }
.imported-head { font-size: 12px; color: var(--gold, #f0d48a); letter-spacing: 1px; margin-bottom: 6px; }
.imported-job { color: var(--gold2, #c9a35a); }
.imported-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.imported-list li { font-size: 12px; color: var(--text, #e8e0cf); }
.imported-list li .ilv { color: #e8a33d; }
/* ---------- 游戏风技能面板（解析结果下方，仿游戏内学习技能窗口） ---------- */
.skp { margin-top: 12px; background: #0b0e13; border: 1px solid #2a3242; color: #cfd6e4; font-size: 12px; user-select: none; }
.skp-tabs { display: flex; align-items: center; background: linear-gradient(180deg, #161c27, #0e1219); border-bottom: 1px solid #2a3242; }
.skp-tab { padding: 8px 14px; color: #7c8598; cursor: pointer; border-bottom: 2px solid transparent; letter-spacing: 1px; }
.skp-tab:hover { color: #b9c2d4; }
.skp-tab.on { color: #e8b23a; border-bottom-color: #e8b23a; }
.skp-tabs .skp-flex { flex: 1; }
.skp-btn { margin: 4px 6px; padding: 4px 12px; background: #1a2130; border: 1px solid #35415a; color: #cfd6e4; cursor: pointer; font-size: 12px; font-family: inherit; }
.skp-btn:hover { border-color: #e8b23a; color: #e8b23a; }
.skp-bar { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #0e1219; border-bottom: 1px solid #2a3242; }
.skp-menu { color: #cfd6e4; cursor: default; }
.skp-spnum { color: #e8b23a; font-weight: bold; }
.skp-lock { color: #5b6472; font-size: 11px; }
.skp-search { flex: 1; max-width: 230px; margin-left: auto; background: #090c11; border: 1px solid #2a3242; color: #cfd6e4; padding: 4px 8px; font-size: 12px; outline: none; font-family: inherit; }
.skp-search:focus { border-color: #4a5a7d; }
.skp-search::placeholder { color: #5b6472; }
.skp { position: relative; }
.skp-scroll { overflow-y: auto; max-height: 380px; }
.skp-band { border-bottom: 1px solid #1a2130; }
.skp-band-title { padding: 6px 14px; color: #e8b23a; font-size: 12px; letter-spacing: 1px; border-left: 3px solid #e8b23a; margin: 6px 0 2px; display: flex; align-items: center; gap: 8px; }
.skp-band-count { color: #7c8598; font-size: 11px; font-weight: normal; letter-spacing: 0; }
.skp-band-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px 8px; padding: 4px 14px 12px; }
.skp-common-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.skp-cell.empty { opacity: 0.5; cursor: default; }
.skp-cell.empty .skp-ico { border-style: dashed; color: #4a5468; background: transparent; box-shadow: none; }
.empty-ico { font-size: 20px; line-height: 46px; }
.skp-cell { text-align: center; }
.skp-ico { position: relative; width: 46px; height: 46px; margin: 0 auto; background: linear-gradient(145deg, #453a1c, #221b0c); border: 1px solid #6b5326; box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.65); display: flex; align-items: center; justify-content: center; font-size: 19px; color: #f0d48a; cursor: default; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.skp-cell:hover .skp-ico { border-color: #e8b23a; box-shadow: 0 0 7px rgba(232, 178, 58, 0.45), inset 0 0 10px rgba(0, 0, 0, 0.65); }
.skp-lv { margin-top: 3px; color: #e8b23a; }
.skp-lv.zero { color: #5b6472; }
.skp-combo { position: absolute; top: 76px; right: 12px; display: flex; align-items: flex-start; gap: 5px; }
.skp-combo .skp-cb-label { writing-mode: vertical-lr; letter-spacing: 3px; color: #7c8598; font-size: 11px; padding-top: 2px; }
.skp-cb-cell { width: 40px; height: 40px; background: linear-gradient(145deg, #1c2434, #10141d); border: 1px solid #35415a; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #7ec3e8; }
.skp-empty { padding: 20px; color: #5b6472; }
.skp-note { padding: 5px 12px 8px; color: #5b6472; font-size: 11px; border-top: 1px solid #1a2130; }

/* 有属性数据的技能格：可点击查看技能说明+成长 */
.skp-cell.has-db { cursor: pointer; }
.skp-cell.has-db .skp-ico { border-color: #4a8f5a; background: linear-gradient(145deg, #2b3a24, #162012); }
.skp-cell.has-db:hover .skp-ico { border-color: #7ec98a; box-shadow: 0 0 7px rgba(126, 201, 138, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.65); }
.skp-cell.has-db::after { content: "≣"; position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; line-height: 14px; font-size: 10px; color: #0b0e13; background: #7ec98a; border-radius: 50%; text-align: center; }

/* 技能详情浮层（技能说明 + 成长） */
.skp-detail { position: absolute; top: 8px; right: 8px; width: 320px; max-height: calc(100% - 16px); overflow-y: auto; background: #0e1219; border: 1px solid #e8b23a; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6); z-index: 20; padding: 0 0 10px; }
.skp-det-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; border-bottom: 1px solid #2a3242; position: sticky; top: 0; background: #0e1219; }
.skp-det-name { color: #e8b23a; font-size: 14px; font-weight: bold; }
.skp-det-sub { color: #7c8598; font-size: 11px; }
.skp-det-close { margin-left: auto; width: 22px; height: 22px; background: #1a2130; border: 1px solid #35415a; color: #cfd6e4; cursor: pointer; font-size: 12px; line-height: 1; }
.skp-det-close:hover { border-color: #e8b23a; color: #e8b23a; }
.skp-det-sec { padding: 8px 12px; border-bottom: 1px solid #161c27; }
.skp-det-t { color: #7ec98a; font-size: 12px; letter-spacing: 1px; margin-bottom: 5px; }
.skp-det-desc { color: #cfd6e4; font-size: 12px; line-height: 1.6; white-space: normal; }
.skp-det-meta { color: #9aa6bc; font-size: 11px; margin-bottom: 6px; }
.skp-det-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.skp-det-tbl th, .skp-det-tbl td { border: 1px solid #1a2130; padding: 3px 6px; text-align: left; }
.skp-det-tbl th { background: #161c27; color: #7c8598; font-weight: normal; }
.skp-det-tbl td { color: #e6ecf7; }
.skp-det-empty { color: #5b6472; font-size: 11px; }
.skp-det-note { padding: 6px 12px; color: #b08a4a; font-size: 11px; }

/* 技能图标：真实图片填充（替代文字占位，来源 assets/skills/berserker/<hash>.png） */
.skp-ico-img { width: 100%; height: 100%; object-fit: contain; border-radius: 2px; display: block; }
.skp-det-img { width: 40px; height: 40px; object-fit: contain; border: 1px solid #6b5326; background: #0b0e13; border-radius: 3px; flex: 0 0 auto; }
.skp-evo-img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 技能突破（TP）页：左效果说明+三行切换，右「目标技能」6×5 网格 */
.skp-bk-wrap { display: flex; gap: 10px; padding: 10px 12px 4px; }
.skp-bk-left { flex: 0 0 46%; background: linear-gradient(180deg, #12161f, #0c0f16); border: 1px solid #3a3425; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; }
.skp-bk-effs { display: flex; gap: 22px; justify-content: center; margin-bottom: 10px; }
.skp-bk-eff { text-align: center; color: #d8cba0; font-size: 12px; max-width: 130px; }
.skp-bk-eff-ico { width: 54px; height: 54px; margin: 0 auto 6px; border-radius: 50%; border: 2px solid #6b5326; background: radial-gradient(circle at 35% 30%, #3a3020, #17120a); color: #e8b23a; font-size: 24px; line-height: 50px; }
.skp-bk-eff-txt { line-height: 1.5; }
.skp-bk-arr { color: #e8b23a; font-size: 14px; }
.skp-bk-stage { display: flex; align-items: center; gap: 16px; margin: 8px 0; }
.skp-bk-rune { width: 52px; height: 40px; border: 2px solid #6b5326; background: linear-gradient(145deg, #2c2413, #171208); color: #e8b23a; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7); }
.skp-bk-arrow { color: #8a7a4a; font-size: 16px; }
.skp-bk-more { margin-top: 12px; color: #d8cba0; font-size: 12px; }
.skp-bk-right { flex: 1; min-width: 0; background: linear-gradient(180deg, #12161f, #0c0f16); border: 1px solid #3a3425; padding: 10px 12px; }
.skp-bk-title { text-align: center; color: #e8d9a0; font-size: 14px; letter-spacing: 4px; border-bottom: 1px solid #3a3425; padding-bottom: 6px; margin-bottom: 10px; text-shadow: 0 0 6px rgba(232, 178, 58, 0.35); }
.skp-bk-grid { display: grid; grid-template-columns: repeat(6, 46px); gap: 8px; justify-content: center; }
.skp-bk-cell { position: relative; width: 46px; height: 46px; background: linear-gradient(145deg, #453a1c, #221b0c); border: 1px solid #6b5326; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.65); overflow: visible; }
.skp-bk-cell.empty { background: #10131a; border-color: #232a38; box-shadow: none; }
.skp-bk-lv { position: absolute; top: -5px; left: -2px; z-index: 2; font-size: 10px; color: #f5d76e; text-shadow: 0 1px 2px #000, 0 0 4px rgba(0, 0, 0, 0.9); }
.skp-bk-foot { display: flex; gap: 10px; padding: 6px 12px 12px; }
.skp-bk-foot > div { flex: 1; height: 64px; background: #10131a; border: 1px solid #232a38; }

/* ---- 快捷栏（keybind 2 行可视化）---- */
.skp-keybar { padding: 6px 14px 12px; }
.skp-kb-title { color: #e8b23a; font-size: 12px; letter-spacing: 1px; border-left: 3px solid #e8b23a; padding-left: 8px; margin: 4px 0 8px; display: flex; align-items: center; gap: 8px; }
.skp-kb-title .skp-band-count { color: #7c8598; font-size: 11px; font-weight: normal; letter-spacing: 0; }
.skp-kb-top, .skp-kb-bottom { display: grid; grid-template-columns: repeat(7, 46px); gap: 10px; justify-content: center; }
.skp-kb-top { margin-bottom: 8px; }
.skp-kb-id { margin-top: 3px; color: #cfd6e4; font-size: 11px; max-width: 46px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto; margin-right: auto; }
.skp-kb-empty { width: 46px; height: 46px; border: 1px dashed #2a3242; background: transparent; box-sizing: border-box; }

/* ---------- 技能进化（VP）页签 ---------- */
.skp-evo-bar { display: flex; align-items: center; gap: 14px; padding: 6px 12px; background: #0e1219; border-bottom: 1px solid #2a3242; }
.skp-evo-list { padding: 6px 12px 12px; max-height: 380px; overflow-y: auto; }
.skp-evo-row { display: flex; align-items: stretch; gap: 14px; padding: 14px 2px; border-bottom: 1px dashed #1a2130; }
.skp-evo-row:last-child { border-bottom: none; }
.skp-evo-skill { flex: 0 0 150px; display: flex; align-items: center; gap: 8px; }
.skp-evo-lv { color: #e8b23a; font-size: 14px; }
.skp-evo-sname { color: #cfd6e4; font-size: 13px; }
.skp-evo-card { flex: 1; max-width: 230px; position: relative; text-align: center; padding: 10px 12px 12px;
  background: linear-gradient(180deg, #10151e, #0a0d12); border: 1px solid #2a3242; border-radius: 4px; }
.skp-evo-card.sel { border-color: #e8b23a; box-shadow: 0 0 8px rgba(232, 178, 58, 0.25); }
.skp-evo-ck { position: absolute; left: 8px; top: 8px; width: 13px; height: 13px; box-sizing: border-box;
  border: 1px solid #35415a; background: #090c11; }
.skp-evo-ck.on { background: #e8b23a; border-color: #f0d48a; box-shadow: 0 0 5px rgba(232, 178, 58, 0.5); }
.skp-evo-ico { position: relative; width: 46px; height: 46px; margin: 4px auto 6px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #9a86c9; background: linear-gradient(145deg, #241e33, #120e1a); border: 1px solid #3a2f52;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.65); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.skp-evo-ico.sel { color: #f0d48a; background: linear-gradient(145deg, #453a1c, #221b0c); border-color: #6b5326; }
.skp-evo-tier { position: absolute; right: 3px; bottom: 1px; font-size: 10px; color: #e8b23a; text-shadow: 0 1px 2px rgba(0,0,0,.9); }
.skp-evo-name { color: #7c8598; font-size: 13px; margin-bottom: 4px; letter-spacing: 1px; }
.skp-evo-name.sel { color: #e8b23a; font-weight: bold; }
.skp-evo-eff { color: #aab3c5; font-size: 11px; line-height: 1.6; }
.skp-evo-empty { padding: 28px; color: #5b6472; text-align: center; }

/* ---------- 游戏风格装备悬停弹窗 ---------- */
#gameTip {
  position: fixed; z-index: 9999; display: none; pointer-events: none;
  min-width: 210px; max-width: 340px; padding: 9px 16px 11px;
  background: linear-gradient(180deg, rgba(24,18,10,.97), rgba(10,8,5,.97));
  border: 1px solid #7a6238; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.85) inset, 0 0 10px rgba(0,0,0,.55), 0 6px 18px rgba(0,0,0,.7);
  font-size: 12px; line-height: 1.8; color: #e8e0d0; white-space: nowrap;
}
#gameTip .gt-name { font-size: 14px; font-weight: 600; text-shadow: 0 0 6px rgba(0,0,0,.9); }
#gameTip .gt-set { color: #4ef07a; }
#gameTip .gt-row2 { display: flex; justify-content: space-between; gap: 24px; }
#gameTip .gt-red { color: #ff5b5b; }
#gameTip .gt-enh { color: #4ec7ff; }
#gameTip .gt-fame-val { color: #9be22e; }
#gameTip .gt-stats { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(122, 98, 56, .45); }
#gameTip .gt-enchant { margin-top: 6px; padding-top: 4px; border-top: 1px solid rgba(122, 98, 56, .45); color: #b8a888; }
#gameTip .gt-active { margin-top: 6px; padding-top: 4px; border-top: 1px solid rgba(122, 98, 56, .45); color: #ffb84d; }
#gameTip .gt-active-desc { color: #cfc4b0; }
/* 技能悬停弹窗（复用 #gameTip） */
#gameTip .gt-skill-title { color: #4ef07a; }
#gameTip .gt-skill-desc { white-space: normal; max-width: 300px; margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(122, 98, 56, .45); }
#gameTip .gt-skill-meta { color: #c9a35a; margin-top: 2px; }   /* 等级上限 / 精通 */
#gameTip .gt-perlv { color: #8a9bb0; font-size: 11px; }       /* 每级成长注释 */
