/* GMS-Style Tooltip Overrides */

.item-main-border {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-radius: 6px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.1);
  color: #1e293b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 14px;
  padding: 10px;
  width: 295px; /* 增加宽度以匹配游戏截图比例 */
  box-sizing: border-box;
  position: relative; /* 覆盖 starforce.css 中的 position: absolute */
}

/* 右上角：Currently Equipped / 标签（按截图风格） */
.item-main-border .item-main-header {
  display: block;
  position: relative;
  height: 56px;
}

.item-main-border .reboot-header-right {
  display: block;
  position: absolute;
  right: 10px;
  top: 115px;
  width: 150px;
  text-align: right;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 14px;
  color: rgba(30, 41, 59, 0.55);
}

.item-main-border .reboot-header-cpi {
  color: rgba(30, 41, 59, 0.55);
  font-size: 11px;
  font-weight: 400;
  margin-bottom: 8px;
}

.item-main-border .reboot-header-equipped {
  margin-top: 8px;
  color: rgba(30, 41, 59, 0.9);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* 更换字体 */
}

.item-main-border .reboot-header-tags {
  position: absolute;
  top: 55px;
  margin-top: 6px;
}

.item-main-border .reboot-tag {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  position: static;
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 10px;
  background: rgba(78, 88, 104, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: rgba(30, 41, 59, 0.75);
  font-size: 11px;
}

.item-main-border .item-main-header,
.item-main-border .item-main-gloss,
.item-main-border .item-main-bottom,
.item-main-border .item-main-body {
  background-image: none;
  width: 100%;
  height: auto;
  position: static;
}

.item-main-border .item-drag-header {
  display: none;
}

.item-main-border .item-title-description {
  text-align: center;
  margin-top: 0;
  padding: 2px 0 4px 0;
  background: none; /* 移除黑色遮罩 */
}

.item-main-border .item-star-container {
  margin-bottom: 6px;
  position: relative;
  top: -2px; /* 向上微调，更贴近顶部 */
}

.item-main-border .item-name {
  font-size: 14px;
  font-weight: 600; /* 从 700 降低到 600，使字体不那么粗 */
  color: #1e293b;
  position: static;
}

.item-main-border .item-current-name {
  width: 100%;
}

.item-main-border .item-sub-description {
  color: #ffb020;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  display: block;
  margin-top: 3px;
  position: static;
}

.item-main-border .item-dash-border {
  background-image: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  height: 1px;
  margin: 8px 0;
  width: 100%;
}

.item-main-border .item-pic-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: auto;
  margin-top: 2px;
}

/* Required Job / Required Level（纯文本行） */
.item-main-border .item-req-lines {
  margin: 4px 0 6px 0;
  padding: 0 2px;
  display: none;
  gap: 10px;
  justify-content: flex-start;
}

.item-main-border .item-req-lines .item-req-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-main-border .item-req-lines .item-req-line {
  color: rgba(30, 41, 59, 0.8);
  font-size: 12px;
  line-height: 14px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.55);
}

.item-main-border .item-req-lines .item-req-line .req-value {
  color: rgba(30, 41, 59, 0.92);
}

.item-main-border .item-container {
  position: static;
  margin-right: 0;
}

.item-main-border .item-requirements-container {
  font-size: 12px;
  color: rgba(30, 41, 59, 0.88);
  line-height: 14px;
}

.item-main-border .item-stats {
  padding: 0;
  line-height: 10px; /* 紧凑行距 */
}

.item-main-border .item-cube {
  margin-top: 8px;
}

.item-main-border .item-potential {
  padding-top: 4px;
}
