@keyframes modal-overlay-spinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes modal-button-spinner {
  to {
    transform: rotate(360deg);
  }
}
.game-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  min-width: 0;
}

.game-card .game-card-header {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  overflow: hidden;
  z-index: 0;
  border-radius: 12px;
  cursor: pointer;
}

.game-card-header .game-card-header-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  display: block;
  cursor: pointer;
  object-fit: cover;
}

.game-card-header .game-card-tag {
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
  text-align: center;
  line-height: 20px;
  height: 20px;
  z-index: 10;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 12px;
}

.game-card-tag-vip {
  color: #663800;
  font-weight: 500;
  font-size: 12px;
  background: #FEEABD;
}

.game-card-tag-svip {
  color: #fff;
  font-weight: 500;
  font-size: 12px;
  background: linear-gradient(270deg, #8B9EFF 0%, #D68AFF 100%);
}

.game-card-tag-free {
  color: #05331c;
  font-weight: 500;
  font-size: 12px;
  background: radial-gradient(28189% 17279.27% at 109.93% 4923.15%, #baf5d2 0%, #5ce6a1 100%);
}

.game-card-versionRate {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 8px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.game-card-version {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: hidden;
}

.game-card-version .version-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-version-line {
  height: 12px;
  width: 1px;
  background-color: #d9d9d9;
}

.game-card-versionRate .rate {
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-card-name {
  margin-top: 8px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.9);
}

.game-card-name .name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.game-card-name .name-icon {
  height: 22px;
  width: 22px;
}

.game-card-price {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-card-price .price-free {
  color: #27c4a4;
  font-size: 16px;
  font-weight: 600;
}

.game-card-price .price-disconut {
  display: flex;
  align-items: center;
  gap: 4px;
}

.discount-price-proportion {
  width: 40px;
  height: 20px;
  padding: 2px 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  border-radius: 15px;
  background: #27c4a4;
}

.game-card-price .price-final {
  color: rgba(0, 0, 0, 0.9);
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: baseline;
}

.game-card-price .price-final .price-symbol {
  font-size: 12px;
}

.game-card-price .price-original {
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  text-decoration-line: line-through;
  line-height: 20px;
}

.game-card-overlay,
.game-card-visible,
.game-card-hide {
  position: absolute;
  width: 432px;
  max-width: 432px;
  min-height: 300px;
  color: #fff;
  z-index: 20;
  opacity: 0;
  display: none;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
  height: fit-content;
  cursor: pointer;
}

.game-card-overlay.game-card-visible {
  display: block;
  pointer-events: auto;
  animation: previewIn_bdweo 0.305s forwards !important;
}

.game-card-overlay.game-card-hide {
  animation: previewOut_bdweo 0.305s forwards !important;
}

@keyframes previewIn_bdweo {
  0% {
    opacity: 0;
    transform: scale(0.6667);
  }
  60% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes previewOut_bdweo {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    display: none;
    transform: scale(0.6667);
  }
}
.game-card-overlay .game-card-overlay-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: fill;
}

.game-overlay-content {
  padding: 12px 20px;
  color: #000;
}

.game-card-overlay .overlay-version {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-card-overlay .overlay-version .version-item {
  display: flex;
  gap: 4px;
  font-size: 12px;
}

.overlay-game-name-rate {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  margin-top: 16px;
}

.overlay-game-name-rate .name-icon {
  height: 20px;
  width: 20px;
  cursor: pointer;
}

.overlay-game-name-rate .name-text {
  flex: 1;
  color: var(---, var(---, rgba(0, 0, 0, 0.9)));
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-game-name-rate .rate {
  display: flex;
  gap: 4px;
  color: #000;
  font-size: 16px;
  font-weight: 500;
}

.overlay-game-types,
.overlay-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
  align-items: center;
}

.overlay-game-short_description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 16px;
}

.overlay-game-types .type-name {
  display: flex;
  height: 32px;
  padding: 2px 12px;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  background: #e9e9e9;
  color: #757575;
  font-size: 12px;
}

.game-card-overlay-video {
  position: relative;
}

.game-card-list .card-list-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.card-list-header .card-list-title {
  flex: 1;
  width: 100%;
  font-size: 28px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.9);
}

.card-list-header a {
  text-decoration: none;
}

.card-list-header .card-list-more {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.game-card-list .card-list-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
body {
  background-color: #f5f5f5;
}

.hide {
  display: none !important;
}

.page-index {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.page-index .page-index-content {
  flex: 1;
  margin: auto;
  max-width: 1270px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 88px;
}

/* PC端活动banner */
.pc-activity-banners {
  display: flex;
  gap: 16px;
  width: 100%;
}

.pc-activity-banner-left,
.pc-activity-banner-right {
  flex: 1;
  min-width: 0;
}

.pc-activity-banner-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.2s;
}

.pc-activity-banner-link:hover {
  opacity: 0.9;
}

.pc-activity-banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 活动结束奖励弹窗 */
.reward-end-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.reward-end-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.reward-end-content {
  position: relative;
  width: 300px;
  background: linear-gradient(180deg, #FFE8CC 0%, #FFFFFF 100%);
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: rewardEndFadeIn 0.3s ease;
}

.reward-end-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.reward-end-header .wheat-icon {
  width: 18px;
  height: 24px;
  flex-shrink: 0;
}

.reward-end-header .wheat-icon.right {
  transform: scaleX(-1);
}

.reward-end-header .reward-end-title {
  text-align: center;
  font-weight: 600;
  color: #000;
}

.reward-end-header .title-line1 {
  font-size: 17px;
  line-height: 1.4;
}

.reward-end-header .title-line2 {
  font-size: 18px;
  line-height: 1.4;
}

.reward-end-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.reward-end-icon {
  position: relative;
  width: 62px;
  height: 72px;
}

.reward-end-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reward-end-value {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 600;
  color: #EA8101;
  white-space: nowrap;
}

.reward-end-desc {
  font-size: 16px;
  font-weight: 600;
  color: #ED4840;
  text-align: center;
}

.reward-end-tip {
  font-size: 13px;
  color: #53565A;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.reward-end-tip .bold {
  font-weight: 600;
}

.reward-end-footer {
  display: flex;
  gap: 8px;
}

.reward-end-footer .btn-close,
.reward-end-footer .btn-action {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.reward-end-footer .btn-close:active,
.reward-end-footer .btn-action:active {
  transform: scale(0.98);
}

.reward-end-footer .btn-close {
  background: #91969C;
}

.reward-end-footer .btn-action {
  background: #EA8101;
}

@keyframes rewardEndFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.page-index .gift-card-list .gift-list-content {
  width: 100%;
  height: 446px;
  position: relative;
}
.page-index .gift-card-list .gift-list-content .slide-left,
.page-index .gift-card-list .gift-list-content .slide-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 56px;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  left: -28px;
  z-index: 9;
  border-radius: 50%;
  border: none;
  padding: 0;
  transition: opacity 0.2s, visibility 0.2s;
}
.page-index .gift-card-list .gift-list-content .slide-left.slick-arrow-hidden,
.page-index .gift-card-list .gift-list-content .slide-right.slick-arrow-hidden {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}
.page-index .gift-card-list .gift-list-content .slide-right {
  right: -28px;
  left: initial;
}
.page-index .gift-card-list .gift-feature {
  background-color: #333333;
  display: flex;
  gap: 12px;
  gap: 20px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.page-index .gift-card-list .gift-feature .gift-background-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  filter: blur(100px);
}
.page-index .gift-card-list .gift-gallery {
  position: relative;
  flex: 1 1 72%;
  min-width: 0;
  overflow: hidden;
  height: 446px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}
.page-index .gift-card-list .gift-main {
  width: 100%;
  height: 100%;
  overflow: hidden;
  flex: 1;
}
.page-index .gift-card-list .gift-main-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-top-left-radius: 10px;
  cursor: pointer;
}
.page-index .gift-card-list .gift-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}
.page-index .gift-card-list .gift-nav:hover {
  background: rgba(0, 0, 0, 0.6);
}
.page-index .gift-card-list .gift-nav-prev {
  left: 12px;
}
.page-index .gift-card-list .gift-nav-next {
  right: 12px;
}
.page-index .gift-card-list .gift-nav-icon {
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}
.page-index .gift-card-list .gift-thumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  height: 64px;
  scrollbar-width: none;
  background: #333;
  border-bottom-left-radius: 12px;
}
.page-index .gift-card-list .gift-thumbs::-webkit-scrollbar {
  display: none;
}
.page-index .gift-card-list .left-icon,
.page-index .gift-card-list .right-icon {
  width: 28px;
  cursor: pointer;
  height: 56px;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.page-index .gift-card-list .left-icon.disabled,
.page-index .gift-card-list .right-icon.disabled {
  cursor: not-allowed;
  pointer-events: none;
}
.page-index .gift-card-list .left-icon.disabled .icon,
.page-index .gift-card-list .right-icon.disabled .icon {
  color: rgba(255, 255, 255, 0.4) !important;
}
.page-index .gift-card-list .gift-thumb {
  flex: 0 0 auto;
  width: 100px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.page-index .gift-card-list .img-warp {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
}
.page-index .gift-card-list .gift-thumb.active {
  border-color: #FFFFFF;
}
.page-index .gift-card-list .gift-thumb.active .img-warp {
  display: none;
}
.page-index .gift-card-list .gift-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-index .gift-card-list .gift-panel {
  width: 386px;
  border-top-right-radius: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.page-index .gift-card-list .gift-panel .gift-panel-img {
  height: 216px;
  object-fit: cover;
}
.page-index .gift-card-list .gift-panel .gift-panel-content {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
}
.page-index .gift-card-list .gift-panel .gift-panel-title_warp {
  height: 102px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.0784313725);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.page-index .gift-card-list .gift-panel-title {
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-index .gift-card-list .gift-panel-title span {
  text-align: center;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.page-index .gift-card-list .gift-panel-title .wheat {
  width: 18px;
  height: 24px;
}
.page-index .gift-card-list .gift-panel-desc {
  color: rgb(255, 255, 255);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}
.page-index .gift-card-list .gift-panel-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.page-index .gift-card-list .gift-panel-final {
  display: flex;
  align-items: baseline;
  font-size: 28px;
  font-weight: 600;
  line-height: 26px;
  gap: 2px;
}
.page-index .gift-card-list .gift-panel-final .symbol {
  font-size: 14px;
  font-weight: 600;
  line-height: 26px;
}
.page-index .gift-card-list .gift-panel-origin {
  color: #fff;
  font-size: 14px;
  text-decoration-line: line-through;
}
.page-index .gift-card-list .gift-panel-save {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 8px;
  border-radius: 100px;
  background: #67C23A;
  color: #fff;
  font-weight: 500;
  font-size: 12px;
}
.page-index .gift-card-list .gift-buy-btn {
  margin-top: 20px;
  height: 44px;
  border: none;
  border-radius: 100px;
  background: #EA8101;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.page-index .gift-card-list .gift-buy-btn.loading {
  cursor: not-allowed !important;
  pointer-events: none;
}
.page-index .gift-card-list .gift-buy-btn.loading::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 1.5px solid #FFFFFF;
  border-top-color: transparent;
  border-radius: 50%;
  animation: modal-button-spinner 0.8s linear infinite;
  box-sizing: border-box;
}

.gift-list-content {
  position: relative;
  margin-bottom: 8px;
  width: 100%;
}
.gift-list-content .gift-games-list {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gift-list-content .gift-games-list::-webkit-scrollbar {
  display: none;
}
.gift-list-content .gift-tag {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  color: #E7D7FF;
  font-size: 13px;
  font-weight: 500;
  height: 26px;
  z-index: 2;
  background-image: url("/assets/images/gift/tag-12.svg");
  background-position: 0 0;
  background-attachment: scroll;
  background-size: cover;
}
.gift-list-content .gift-tag .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #E7D7FF;
}
.gift-list-content .gift-tag-more {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  color: #F6EFD4;
  font-size: 13px;
  font-weight: 500;
  height: 26px;
  z-index: 2;
  background-image: url("/assets/images/gift/tag-gold-12.svg");
  background-position: 0 0;
  background-attachment: scroll;
  background-size: cover;
}
.gift-list-content .gift-tag-more .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #F6EFD4;
}
.gift-list-content.slick-slider {
  display: block;
}
.gift-list-content .slick-list {
  overflow: hidden;
}
.gift-list-content .slick-dots {
  position: absolute;
  bottom: -16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gift-list-content .slick-dots li {
  width: 12px;
  height: 4px;
  border-radius: 2px;
  margin: 0;
}
.gift-list-content .slick-dots li button {
  padding: 0;
  width: 100%;
  height: 100%;
}
.gift-list-content .slick-dots li button:before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  background: rgba(145, 150, 156, 0.4);
  border-radius: 999px;
  opacity: 1;
}
.gift-list-content .slick-dots li.slick-active {
  width: 20px;
}
.gift-list-content .slick-dots li.slick-active button:before {
  background: #EA8101;
  width: 20px;
}