/* ============================================================
   属性 / 装备详情面板
   ============================================================ */

/* ---------- 卡片上的入口按钮 ---------- */
.info-btn {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #b8b2cc;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  opacity: .5;
  transition: opacity .18s, color .18s, border-color .18s, background .18s;
}
.info-btn:hover {
  opacity: 1;
  color: #f5c451;
  border-color: rgba(245, 196, 81, .5);
  background: rgba(245, 196, 81, .12);
}
.eq-row { cursor: pointer; }
.eq-row:hover .eq-slot { border-color: rgba(255, 255, 255, .2); }

/* ---------- 遮罩 ---------- */
.ins-overlay { z-index: 70; }

.ins-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 2.6vh, 30px) clamp(16px, 2.2vw, 30px) clamp(14px, 2vh, 22px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(600px 240px at 50% -8%, rgba(245, 196, 81, .12), transparent 70%),
    linear-gradient(180deg, rgba(24, 19, 36, .97), rgba(11, 9, 18, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .07);
  scrollbar-width: thin;
}
.ins-panel.foe-side {
  background:
    radial-gradient(600px 240px at 50% -8%, rgba(255, 60, 100, .14), transparent 70%),
    linear-gradient(180deg, rgba(32, 18, 26, .97), rgba(12, 8, 14, .98));
}

.ins-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: #b8b2cc;
  font-size: 12px;
  cursor: pointer;
  transition: color .18s, background .18s;
}
.ins-close:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------- 头部 ---------- */
.ins-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(12px, 1.8vh, 20px);
}
.ins-avatar {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, rgba(255, 255, 255, .14), rgba(0, 0, 0, .34));
  border: 1px solid rgba(255, 255, 255, .12);
}
.foe-side .ins-avatar { border-color: rgba(255, 90, 120, .32); }

.ins-kicker {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #f5c451;
  margin-bottom: 3px;
}
.foe-side .ins-kicker { color: #ff7a90; }

.ins-name {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 900;
  letter-spacing: .05em;
  color: #f2eefb;
}
.ins-sub {
  font-size: 11.5px;
  color: #9d97b5;
  letter-spacing: .05em;
  margin-top: 4px;
}
.ins-sub b { color: #f5c451; font-variant-numeric: tabular-nums; }
.ins-boss {
  color: #ffd76e;
  font-weight: 800;
  letter-spacing: .1em;
}

/* ---------- 分栏 ---------- */
.ins-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
  margin-bottom: clamp(10px, 1.4vh, 16px);
}
.ins-sec {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .26em;
  color: #7d7695;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ins-sec::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .14), transparent);
}
.ins-count {
  font-size: 10px;
  letter-spacing: .1em;
  color: #a79fbe;
  font-variant-numeric: tabular-nums;
}

/* ---------- 属性明细表 ---------- */
.ins-table {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .028);
  padding: 4px 10px;
}
.ins-row {
  display: grid;
  grid-template-columns: 1fr 46px 52px 58px;
  align-items: center;
  gap: 4px;
  padding: 7px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-variant-numeric: tabular-nums;
}
.ins-row:last-child { border-bottom: 0; }
.ins-row-head {
  font-size: 9.5px;
  letter-spacing: .16em;
  color: #6f6a85;
  text-transform: uppercase;
  padding-bottom: 5px;
}
.ins-row-k { display: flex; align-items: center; gap: 7px; color: #c9c3dd; }
.ins-row-k i { font-style: normal; font-size: 12px; opacity: .85; }
.ins-row-base, .ins-row-plus { text-align: right; color: #8b85a3; }
.ins-row-plus { color: #6ee7a8; }
.ins-row-total {
  text-align: right;
  font-weight: 900;
  font-size: 14px;
  color: #f2eefb;
}

/* ---------- 战斗参数 ---------- */
.ins-traits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 6px;
}
.ins-trait {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  font-size: 10.5px;
  color: #9d97b5;
}
.ins-trait b {
  font-size: 12px;
  font-weight: 800;
  color: #dcd7ec;
  font-variant-numeric: tabular-nums;
}
.ins-trait.on { border-color: rgba(110, 190, 255, .34); background: rgba(110, 190, 255, .1); }
.ins-trait.on b { color: #8fd0ff; }
.ins-trait.bad { border-color: rgba(255, 90, 120, .34); background: rgba(255, 90, 120, .1); }
.ins-trait.bad b { color: #ff8ea3; }

/* ---------- 对抗预估 ---------- */
.ins-duel {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .028);
  padding: 10px 12px;
  margin-bottom: clamp(10px, 1.4vh, 16px);
}
.ins-duel:empty { display: none; }
.ins-duel-label {
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #7d7695;
  margin-bottom: 7px;
}
.ins-duel-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11.5px;
  color: #8b85a3;
  padding: 3px 0;
  flex-wrap: wrap;
}
.ins-duel-row b {
  color: #ffe9a3;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.ins-duel-row.warn b { color: #ff8ea3; }
.ins-duel-row span:nth-of-type(2) { margin-left: auto; }

/* ---------- 装备明细 ---------- */
.ins-items {
  display: grid;
  gap: 7px;
}
.ins-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid var(--c, rgba(255, 255, 255, .18));
}
.ins-item.empty {
  border-left-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .02);
  opacity: .68;
}
.ins-item-ic {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 19px;
  line-height: 1;
  border-radius: 9px;
  background: rgba(0, 0, 0, .3);
}
.ins-item-body { flex: 1 1 auto; min-width: 0; }
.ins-item-top {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.ins-item-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #efebfa;
  letter-spacing: .03em;
}
.ins-item-lv { font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ins-item-rar { font-size: 9.5px; letter-spacing: .08em; opacity: .85; }
.ins-item-eff {
  font-size: 11px;
  line-height: 1.6;
  color: #9d97b5;
}
.ins-item-eff em {
  font-style: normal;
  font-weight: 800;
  color: #ffe9a3;
}

/* ---------- 底部提示 ---------- */
.ins-foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  text-align: center;
  font-size: 10px;
  letter-spacing: .12em;
  color: #625d78;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 640px) {
  .ins-panel { max-height: 92vh; padding: 16px 13px 12px; border-radius: 16px; }
  .ins-avatar { width: 46px; height: 46px; font-size: 24px; }
  .ins-cols { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ins-row { grid-template-columns: 1fr 40px 46px 52px; font-size: 11.5px; }
  .ins-row-total { font-size: 13px; }
  .ins-traits { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .info-btn { width: 15px; height: 15px; font-size: 10px; }
}
