/* 业务占位与现有卡片布局；价签内部样式由公共组件维护。 */
.page-main #FindGame [data-home-purchase-price] {
  /* 价签独占价格行，避免行内基线将其下推后被定高卡片裁掉。 */
  display: flex;
  align-items: center;
  vertical-align: middle;
  max-width: 100%;
  height: 16px;
  min-height: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-main #FindGame [data-home-purchase-price]:not([data-gs-price-tag="2.0.2"]) {
  visibility: hidden;
}

/* 隔离旧商城价格节点的隐藏和加粗规则，仅作用于已挂载的新版购买价。 */
.page-main #FindGame [data-purchase-price-module="store"] [data-home-purchase-price][data-gs-price-tag="2.0.2"] {
  visibility: visible;
  font-weight: 400;
}

/* 现价沿用公共组件的字号和字重，暂无价格等状态文字保留组件的普通字重。 */
.page-main #FindGame [data-purchase-price-module="store"] [data-home-purchase-price][data-gs-price-tag="2.0.2"] .gs-price-tag__current:not(.gs-price-tag__status) {
  font-size: 11px;
  font-weight: 500;
}

/* 四个购买价卡片模块：券独立放在封面左下角，不占用下方价格行。 */
.page-main #FindGame [data-purchase-price-module] .find-game__media-card-cover,
.page-main #FindGame [data-purchase-price-module] .find-game__row-card-cover {
  position: relative;
}

.page-main #FindGame [data-purchase-price-module] [data-purchase-cover-coupon] {
  /* 块级文本让 80px 小封面的长券文案显示省略号，完整文案保留在 title。 */
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  max-width: 100%;
  height: 16px;
  padding: 2px 4px;
  border-radius: 0 4px 0 4px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  background: var(--GamerSky-EB413D, #eb413d);
  color: var(--GamerSky-FFFFFD, #fffffd);
  font-family: "PingFang SC", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
}

/* Steam 最新上市选中框显隐均保留过渡，避免取消选中时瞬间消失。 */
.page-main #FindGame .find-game__steam-card::after {
  transition-duration: 180ms;
}

/* 右侧预览正文由 homeMain.js 重绘；共享购买价容器随正文移入标题行。 */
.page-main #FindGame [data-purchase-price-preview] .js-find-game-preview {
  position: relative;
}

.page-main #FindGame [data-purchase-price-preview] .psi_top_right {
  display: none;
}

.page-main #FindGame [data-purchase-price-preview] .find-game__preview-top {
  gap: 6px;
}

.page-main #FindGame [data-purchase-price-preview] .find-game__preview-top > span:first-child {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.page-main #FindGame .home-steam-purchase-price {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  /* 按内容展开，真正超过标题行的一半时才由组件缩略辅助信息。 */
  width: max-content;
  min-width: 88px;
  max-width: 50%;
  height: 64px;
}

.page-main #FindGame .find-game__preview-top > .home-steam-purchase-price {
  position: static;
  flex: 0 0 auto;
}

.page-main #FindGame .home-steam-purchase-price .gs-price-tag__icon {
  /* 隔离标题区 i 标签的尺寸和 background 简写，避免图标被按原图大小裁切。 */
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
}

.page-main #FindGame .home-steam-purchase-current {
  display: block;
  min-width: 44px;
  height: 20px;
  color: var(--GamerSky-222222, #222);
  font-family: var(--gs-font-number, sans-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  text-align: right;
  white-space: nowrap;
}

.page-main #FindGame .home-steam-purchase-price .gs-price-tag__price-group:empty {
  padding: 0;
  background: none;
}

/* Hover 游戏信息面板：保持旧数据和媒体结构，仅覆盖本次购买价接入的实例。 */
.gameInfoFixed[data-home-purchase-popup] {
  --game-info-popup-border-width: 0.5px;
  width: 290px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gameInfoFixed[data-home-purchase-popup]::before {
  border-width: var(--game-info-popup-border-width);
  border-color: var(--GamerSky-E5E7E9, #e5e7e9);
}

.gameInfoFixed[data-home-purchase-popup]::after,
.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 145px;
  border-radius: var(--game-info-popup-radius, 8px);
}

.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_content {
  padding: 12px;
}

.gameInfoFixed[data-home-purchase-popup] .home-game-purchase-header {
  display: flex;
  align-items: center;
  width: 266px;
  min-height: 40px;
  margin-bottom: 10px;
}

.gameInfoFixed[data-home-purchase-popup] .home-game-purchase-info {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_title {
  width: 100%;
  height: 20px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_playInfo {
  width: 100%;
  height: 16px;
  margin: 0;
  font-size: 11px;
  line-height: 16px;
}

.gameInfoFixed[data-home-purchase-popup] .home-game-purchase-price {
  /* 暂时隐藏 hover 右上角购买价区域，恢复时改回 flex。 */
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  /* 91px 为设计基准；较长原价及史低标签按内容扩宽，避免金额只剩货币符号。 */
  width: max-content;
  min-width: 91px;
  max-width: 50%;
  height: 35px;
}

.gameInfoFixed[data-home-purchase-popup] .home-game-purchase-current {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  height: 16px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--GamerSky-EB413D, #eb413d), var(--GamerSky-FF884D, #ff884d));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--gs-font-number, sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  text-align: right;
  white-space: nowrap;
}

.gameInfoFixed[data-home-purchase-popup] [data-home-purchase-price="hover"] {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  max-width: 100%;
  height: 16px;
  min-height: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.gameInfoFixed[data-home-purchase-popup] [data-home-purchase-price="hover"]:not([data-gs-price-tag="2.0.2"]) {
  visibility: hidden;
}

.gameInfoFixed[data-home-purchase-popup] [data-home-purchase-price="hover"] .gs-price-tag__icon {
  flex-basis: 12px;
  width: 12px;
  height: 12px;
}

.gameInfoFixed[data-home-purchase-popup] [data-home-purchase-price="hover"] .gs-price-tag__original,
.gameInfoFixed[data-home-purchase-popup] [data-home-purchase-price="hover"] .gs-price-tag__discount,
.gameInfoFixed[data-home-purchase-popup] [data-home-purchase-price="hover"] .gs-price-tag__history {
  font-size: 10px;
  line-height: 16px;
}

.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_info,
.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_priceList,
.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_mediaList {
  width: 266px;
}

.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_priceList {
  grid-template-columns: repeat(2, 131px);
  gap: 4px;
}

.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_priceItem {
  justify-content: flex-start;
  width: 131px;
  height: 42px;
  padding: 8px 8px 4px;
  box-sizing: border-box;
}

.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_priceValue,
.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_scoreValue,
.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_steamValue {
  font-family: var(--gs-font-number, sans-serif);
  font-weight: 600;
}

.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_priceValue span {
  margin-left: 2px;
  color: var(--GamerSky-666666, #666);
  font-family: var(--gs-font-number, sans-serif);
  font-weight: 600;
  line-height: 14px;
}

.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_scoreList,
.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_steamList {
  gap: 8.5px;
  width: 266px;
  height: 40px;
  padding: 5px 8px;
  box-sizing: border-box;
}

.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_scoreItem,
.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_steamItem {
  position: relative;
}

.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_scoreItem:not(:first-child)::before,
.gameInfoFixed[data-home-purchase-popup] .gameInfoFixed_steamItem:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -4.5px;
  width: 0.5px;
  height: 20px;
  background: var(--GamerSky-EEEEEE, #eee);
  pointer-events: none;
}
