/* ============ 各面板内容 ============ */

/* ---- 素材图 ---- */
.cur-ico.img-fill, .mat-dot.img-fill {
  background-size: cover !important;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(212,175,55,.35), inset 0 0 3px rgba(0,0,0,.5);
}
.item-img {
  display: block;
  width: 66%;
  height: 52%;
  margin: 4px auto 2px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.6));
  image-rendering: auto;
}
.skill-glyph {
  background-repeat: no-repeat;
  background-color: var(--ink-3);
  border-radius: 6px;
}
.codex-ico.has-art {
  background-repeat: no-repeat;
  background-color: rgba(232,220,192,0.06);
}
.ferry-img {
  width: 78%;
  max-height: 150px;
  object-fit: contain;
  margin: 4px auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(74,144,194,.35));
}
.ui-img { max-width: 100%; }
.login-logo {
  display: block;
  width: 230px;
  margin: 0 auto 2px;
}
#respawn-img {
  width: 150px;
  margin-bottom: 4px;
  opacity: .92;
}
#light-pillar-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 96%;
  width: auto;
  max-width: none;
}

/* ---- 装备格 / 物品格 ---- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.slot-cell {
  position: relative;
  aspect-ratio: 1;
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-radius: 6px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  overflow: hidden;
}
.slot-cell .slot-empty-ico { font-size: 22px; opacity: .22; font-family: var(--font-kai); color: var(--paper-dim); }
.slot-cell .slot-name { font-size: 10px; color: var(--paper-dim); letter-spacing: 1px; font-family: var(--font-kai); }
.slot-cell .item-name-mini {
  font-size: 10px;
  max-width: 92%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-kai);
}
.slot-cell .item-power-mini { font-size: 9px; color: var(--paper-dim); font-variant-numeric: tabular-nums; }
.slot-cell.filled { cursor: pointer; }
.slot-cell.filled:active { filter: brightness(1.25); }

/* 背包网格 */
.inv-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.inv-cell {
  position: relative;
  aspect-ratio: 1;
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-kai);
  font-size: 15px;
  cursor: pointer;
  overflow: hidden;
}
.inv-cell:active { filter: brightness(1.3); }
.inv-cell .uidot {
  position: absolute; top: 2px; right: 3px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--azure);
  box-shadow: 0 0 4px var(--azure);
}
.inv-cell.newdrop { animation: dropGlow 1s; }
@keyframes dropGlow { 0% { box-shadow: 0 0 14px 3px currentColor; } 100% { box-shadow: none; } }

/* ---- 傀儡面板 ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 8px;
  font-size: 12px;
}
.stat-grid .k { color: var(--paper-dim); }
.stat-grid .v { color: var(--paper); text-align: right; font-variant-numeric: tabular-nums; }
.affix-line { font-size: 12px; line-height: 1.7; }
.affix-line .tier-tag {
  font-size: 9px;
  padding: 0 3px;
  border: 1px solid currentColor;
  border-radius: 2px;
  margin-right: 4px;
  opacity: .8;
}
.skill-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px dashed var(--ink-4);
}
.skill-row:last-child { border-bottom: none; }
.skill-glyph {
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--ink-4);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-kai);
  font-size: 20px;
  background: var(--ink-2);
}

/* ---- 深度选择 ---- */
.depth-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-radius: 6px;
  margin-bottom: 7px;
  cursor: pointer;
}
.depth-row.current { border-color: var(--gold); box-shadow: 0 0 12px rgba(212,175,55,.18); }
.depth-row.locked { opacity: .45; }
.depth-row:active { filter: brightness(1.2); }
.depth-num {
  font-family: var(--font-kai);
  font-size: 20px;
  color: var(--gold);
  min-width: 40px;
  text-align: center;
}
.depth-info { flex: 1; min-width: 0; }
.depth-name { font-size: 13px; font-family: var(--font-kai); letter-spacing: 1px; }
.depth-sub { font-size: 11px; color: var(--paper-dim); }

/* ---- 深潜 ---- */
.floor-path { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px 0; }
.floor-node {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--ink-4);
  background: var(--ink-2);
  flex: none;
}
.floor-node.done { background: var(--malachite); border-color: var(--malachite); }
.floor-node.cur { background: var(--gold); border-color: var(--gold-bright); box-shadow: 0 0 8px rgba(255,215,106,.6); }
.floor-node.ferry { border-radius: 2px; transform: rotate(45deg); border-color: var(--azure); }
.floor-link { width: 8px; height: 1px; background: var(--ink-4); flex: none; }
.mingge-card {
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-radius: 8px;
  padding: 14px 12px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  overflow: hidden;
}
.mingge-card:active { transform: scale(.97); }
.mingge-card .mg-name {
  font-family: var(--font-kai);
  font-size: 19px;
  letter-spacing: 3px;
  margin-bottom: 6px;
}
.mingge-card .mg-desc { font-size: 12px; color: var(--paper-dim); line-height: 1.6; }
.mingge-card.mg-rare { border-color: var(--r-epic); }
.mingge-card.mg-rare .mg-name { color: var(--r-epic); }
.mingge-card.mg-legend { border-color: var(--r-legend); box-shadow: 0 0 16px rgba(255,155,47,.25); }
.mingge-card.mg-legend .mg-name { color: var(--r-legend); text-shadow: 0 0 12px rgba(255,155,47,.5); }
.mg-grade {
  position: absolute; top: 8px; right: 10px;
  font-size: 10px; letter-spacing: 1px; opacity: .7;
}

/* ---- 天工坊 ---- */
.ws-station { margin-bottom: 14px; }
.ws-bar {
  height: 8px;
  background: #0a0806;
  border: 1px solid var(--ink-4);
  border-radius: 3px;
  overflow: hidden;
  margin: 5px 0;
}
.ws-bar .ws-bar-fill { height: 100%; background: linear-gradient(90deg, #5f4712, var(--gold)); }
.mat-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-radius: 10px;
  padding: 2px 9px;
  font-size: 12px;
  margin: 2px 4px 2px 0;
  font-variant-numeric: tabular-nums;
}
.mat-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---- 过滤器 ---- */
.filter-rule {
  display: flex; align-items: center; gap: 6px;
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-radius: 5px;
  padding: 7px 9px;
  margin-bottom: 6px;
  font-size: 12px;
}
.filter-rule .fr-x { color: var(--cinnabar); font-size: 15px; padding: 0 3px; }
select, input[type="number"], input[type="text"] {
  background: var(--ink-3);
  border: 1px solid var(--ink-4);
  color: var(--paper);
  border-radius: 4px;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 12px;
  max-width: 100%;
}

/* ---- 鬼市 ---- */
.stall-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px;
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-radius: 5px;
  margin-bottom: 6px;
}
.shop-goods {
  display: flex; align-items: center; gap: 8px;
  padding: 8px;
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-radius: 5px;
  margin-bottom: 6px;
}
.codex-entry {
  display: flex; gap: 8px;
  padding: 6px 4px;
  border-bottom: 1px dashed var(--ink-4);
  font-size: 12px;
  align-items: center;
}
.codex-entry.locked { opacity: .35; }
.codex-art {
  width: 200px; height: 200px;
  margin: 0 auto 6px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  font-size: 64px;
  font-family: var(--font-kai);
  border: 1px solid var(--ink-4);
}
.codex-art.no-art { background: var(--ink-2); }
.codex-ico {
  width: 34px; height: 34px; flex: none;
  border-radius: 5px;
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.ach-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed var(--ink-4); font-size: 12px; }
.ach-row.done .ach-name { color: var(--gold); }
.talent-node {
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 7px;
  font-size: 12px;
}
.talent-node.maxed { border-color: var(--gold); }
