/* 7233 PC：与 muban 并存的小修补（详情区 amtc 结构在 tdxz 皮肤下的可读性） */

/* 专题详情 keyword.css 中按钮默认 display:none，原版由 JS 控制；用悬停露出 */
.hjapp_List li:hover .hjapp_btn,
.hjapp_List li:hover .hjapp_btn a {
  display: block;
}

.xqzDetailWrap .detailTopBox,
.xqzDetailWrap .detailContontBox,
.xqzTopicWrap,
.xqzTopicDetailWrap {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}
.f-backtop-btn.show{display:block}

/* www 详情大图：与 muban/www gameitem + down.js previmgshow 的 .g-previmg-show 一致（非 M 端 light-box） */
.g-previmg-show {
  width: 100%;
  height: 100%;
  display: none;
  overflow: hidden;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999;
  box-sizing: border-box;
}
.g-previmg-show .u-previmg-bg {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: block;
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  cursor: pointer;
}
.g-previmg-show .u-left-btn {
  width: 80px;
  height: 80px;
  left: 50px;
  top: 50%;
  margin: -40px 0 0;
  position: absolute;
  display: block;
  z-index: 5;
  cursor: pointer;
}
.g-previmg-show .u-left-btn:before {
  content: '';
  width: 57px;
  height: 5px;
  transform: rotate(45deg);
  background: #fff;
  display: block;
  overflow: hidden;
  position: absolute;
  right: 5px;
  top: 56px;
  z-index: 1;
  transition: right 0.3s;
}
.g-previmg-show .u-left-btn:after {
  content: '';
  width: 57px;
  height: 5px;
  transform: rotate(135deg);
  background: #fff;
  display: block;
  overflow: hidden;
  position: absolute;
  right: 5px;
  top: 19px;
  z-index: 1;
  transition: right 0.3s;
}
.g-previmg-show .u-left-btn:hover:before,
.g-previmg-show .u-left-btn:hover:after {
  box-shadow: 0 0 20px #6cf;
  right: 18px;
}
.g-previmg-show .u-right-btn {
  width: 80px;
  height: 80px;
  right: 50px;
  top: 50%;
  margin: -40px 0 0;
  position: absolute;
  display: block;
  z-index: 5;
  cursor: pointer;
}
.g-previmg-show .u-right-btn:before {
  content: '';
  width: 57px;
  height: 5px;
  transform: rotate(135deg);
  background: #fff;
  display: block;
  overflow: hidden;
  position: absolute;
  right: 5px;
  top: 56px;
  z-index: 1;
  transition: right 0.3s;
}
.g-previmg-show .u-right-btn:after {
  content: '';
  width: 57px;
  height: 5px;
  transform: rotate(-135deg);
  background: #fff;
  display: block;
  overflow: hidden;
  position: absolute;
  right: 5px;
  top: 19px;
  z-index: 1;
  transition: right 0.3s;
}
.g-previmg-show .u-right-btn:hover:before,
.g-previmg-show .u-right-btn:hover:after {
  box-shadow: 0 0 20px #6cf;
  right: -13px;
}
.g-previmg-show .g-previmg-cont {
  width: auto;
  max-width: 85%;
  height: 100%;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  display: block;
  overflow: hidden;
  z-index: 5;
  margin: 0;
  padding: 0;
  list-style: none;
}
.g-previmg-show .g-previmg-cont li {
  width: 100%;
  height: 100%;
  text-align: center;
  margin: 0;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}
.g-previmg-show .g-previmg-cont li.s7233-prev-visible {
  display: flex;
}
.g-previmg-show .g-previmg-cont li img {
  max-width: 100%;
  max-height: 80%;
  display: block;
  overflow: hidden;
  object-fit: contain;
}
.g-previmg-show .u-previmg-close {
  width: 40px;
  height: 40px;
  display: block;
  overflow: hidden;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 6;
  cursor: pointer;
}
.g-previmg-show .u-previmg-close:before {
  content: '';
  width: 30px;
  height: 8px;
  position: absolute;
  left: 5px;
  top: 17px;
  z-index: 1;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 8px;
}
.g-previmg-show .u-previmg-close:after {
  content: '';
  width: 30px;
  height: 8px;
  position: absolute;
  left: 5px;
  top: 17px;
  z-index: 1;
  background: #fff;
  transform: rotate(-45deg);
  border-radius: 8px;
}
.g-previmg-show .u-previmg-close:hover:before,
.g-previmg-show .u-previmg-close:hover:after {
  box-shadow: 0 0 20px #6cf;
}

/* 详情图全屏预览：与 muban/m gameitem detail.css .light-box 一致（s7233-detail-ui） */
.light-box {
  background: rgba(0, 0, 0, 0.9);
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999999999;
  box-sizing: border-box;
}
.light-box > div {
  margin: 0 auto;
  overflow: hidden;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}
.light-box li,
.light-box ul,
.light-box > div {
  height: 100%;
  width: 100%;
}
/* PC：勿用 -webkit-box，会与 Swiper 7 的 flex 布局冲突导致幻灯/分页错位 */
.light-box .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
}
.light-box .swiper-slide .swiper-zoom-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}
.light-box .swiper-slide img {
  line-height: 0;
  max-height: 85vh;
  max-width: min(92vw, 1200px);
  width: auto;
  height: auto;
  vertical-align: middle;
  object-fit: contain;
}
.light-box .swiper,
.light-box .swiper-container {
  height: 100%;
}
.light-box .swiper-wrapper {
  height: 100%;
  box-sizing: border-box;
}
.light-box.s7233-simple-lb-wrap .s7233-simple-lb {
  height: 100%;
}
.light-box.s7233-simple-lb-wrap .s7233-lb-main {
  height: 100%;
  box-sizing: border-box;
  padding: 48px 72px 40px;
}
@media (max-width: 640px) {
  .light-box.s7233-simple-lb-wrap .s7233-lb-main {
    padding: 56px 16px 32px;
  }
}
/* 分页数字用 px：避免与 M 站 adaptive 根 rem 放大叠加导致「1/4」过大 */
.light-box .swiper-container-horizontal > .swiper-pagination,
.light-box .swiper-horizontal > .swiper-pagination,
.light-box .swiper-pagination-fraction {
  color: #c5c5c5;
  display: inline-block;
  font-style: italic;
  font-size: 14px;
  line-height: 1.25;
  height: auto;
  right: 24px !important;
  text-align: right;
  top: calc(18px + env(safe-area-inset-top, 0px)) !important;
  width: auto;
  left: auto !important;
  bottom: auto !important;
  z-index: 20;
}
.light-box .swiper-pagination-current {
  color: #fff;
  font-size: 15px;
  font-weight: normal;
}
.light-box .swiper-pagination-total {
  font-size: 13px;
  color: #c5c5c5;
}
.light-box .close {
  cursor: pointer;
  display: block;
  font-size: 0;
  height: 40px;
  left: 20px;
  overflow: hidden;
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  width: 40px;
  z-index: 30;
}
.light-box .close:after,
.light-box .close:before {
  background: #ccc;
  content: '';
  display: block;
  font-size: 0;
  height: 22px;
  left: 19px;
  position: absolute;
  top: 9px;
  vertical-align: middle;
  width: 2px;
}
.light-box .close:before {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.light-box .close:after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/* 首页 role_box：三块 xyb_nr 与 tab_head2 对应，默认只显示第一块（muban index.js toggleOption） */
.role_con.tab_body2 > .xyb_nr {
  display: none;
}
.role_con.tab_body2 > .xyb_nr:first-child {
  display: block;
}
