html {
  background: #fff;
}

.game-park-modal-btn-text {
  font-size: 15px !important;
}
.page-mobile-index {
  width: 100%;
  height: auto;
  color: #0f172a;
  background: #fff;
  .user-center-mobile {
    padding: 12px;
    .section-card-grid {
      gap: 12px;
      flex-wrap: wrap;
      width: 100%;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-card {
      display: flex;
      flex-direction: column;
      color: #fff;
      text-decoration: none;
      overflow: hidden;

      &.deleted {
        opacity: 0.4;
      }

      .deleted-text {
        font-size: 14px;
        color: rgba(255, 26, 0, 1);
      }

      &:hover {
        .card-cover {
          .cover {
            transform: scale(1.05);
          }
        }
      }

      .card-cover {
        position: relative;
        width: 100%;
        /*height: auto;*/
        border-radius: 4px;
        overflow: hidden;
        height: 26vw;
        min-height: 80px;
        max-height: 200px;
        .cover {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center;
          transition: transform 0.2s ease;
        }

        .card-tag {
          position: absolute;
          top: 0;
          right: 0;
          width: 34px;
          height: 16px;
          border-top-right-radius: 4px;
          border-bottom-left-radius: 8px;
          background: linear-gradient(
            258.14deg,
            #fab157 -7495.68%,
            #fff3cc 1132.99%
          );
          display: flex;
          align-items: center;
          justify-content: center;
          color: rgba(102, 56, 0, 1);
          font-size: 10px;
          font-weight: 600;
          border-left: 1px solid #ebd58d;
          border-bottom: 1px solid #ebd58d;

          &.card-tag-free {
            background: radial-gradient(
                10000.06% 28181.97% at 109.93% 4923.15%,
                #baf5d2 0%,
                #5ce6a1 100%
              )
              /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
            color: #05331c;
            border-left: 1px solid #6cd8a0;
            border-bottom: 1px solid #6cd8a0;
          }
        }

        .game-info {
          position: absolute;
          bottom: 0;
          left: 0;
          right: 0;
          background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.2) 35%,
            rgba(0, 0, 0, 0.5) 100%
          );
          display: flex;
          align-items: center;
          justify-content: space-between;
          color: #ffffff;
          padding-left: 8px;
          padding-top: 12px;
          padding-right: 8px;
          height: 38px;

          .platform {
            display: flex;
            align-items: center;
            gap: 16px;

            .platform-item {
              display: flex;
              align-items: center;
              gap: 8px;
              position: relative;
              font-size: 12px;
              font-weight: 500;
              color: #fff;
              line-height: 10px;

              &::after {
                content: "";
                width: 1px;
                height: 8px;
                background: #fff;
                position: absolute;
                right: -8px;
              }

              &:last-child {
                &::after {
                  display: none;
                }
              }
            }
          }
        }

        .rate {
          display: flex;
          align-items: center;
          gap: 2px;
          font-size: 12px;
          font-weight: 600;

          .rate-fraction {
            font-size: 10px;
            font-weight: 600;
          }
        }
      }

      .game-title {
        margin-top: 4px;
        line-height: 20px;
        color: rgba(0, 0, 0, 1);
        font-weight: 400;
        font-size: 13px;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        -moz-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
      }
      .flex {
        display: flex;
        align-items: center;
      }
      .flex-1 {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      .card-bottom {
        height: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .time-text {
          font-size: 11px;
          color: rgba(118, 120, 123, 1);
        }

        .oprate {
          position: relative;
          display: flex;
          align-items: center;
          justify-content: center;

          .oprate-single {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: none;
            background: transparent;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s ease;

            img {
              width: 16px;
              height: 16px;
            }

            &:hover {
              background: #fff;

              img {
                opacity: 0.7;
              }
            }
          }

          .oprate-trigger {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: none;
            background: transparent;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s ease;

            &:hover,
            &:focus-visible {
              background: #fff;

              svg {
                opacity: 0.7;
              }
            }
          }
          .oprate-mask {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease;
            &.show {
              opacity: 1;
              pointer-events: auto;
            }
          }
          .oprate-menu {
            position: fixed;
            left: 0;
            bottom: 0;
            width: 100%;
            background: #fff;
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
            z-index: 10;
            /* 动画关键 */
            transform: translateY(100%);
            transition: transform 0.25s ease;
            will-change: transform;
            padding: 0 12px 12px;
            .menu-item {
              height: 48px;
              width: 100%;
              /* display: flex; */
              align-items: center;
              justify-content: center;
              gap: 8px;
              border: none;
              background: transparent;
              font-size: 14px;
              cursor: pointer;
              border-bottom: 1px solid #f5f5f5;
              &:last-child {
                border-bottom: 0;
              }
              img {
                width: 20px;
                height: 20px;
              }

              &:hover {
                background: #fff;
              }
            }

            &.show {
              display: block;
              transform: translateY(0);
            }
          }
        }
      }
      .game-card-price {
        display: flex;
        align-items: center;
        gap: 4px;
      }

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

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

      .discount-price-proportion {
        height: 14px;
        display: flex;
        padding: 0 6px;
        justify-content: center;
        align-items: center;
        font-size: 10px;
        line-height: 8px;
        font-weight: 600;
        color: #fff;
        border-radius: 15px;
        background: #67c23a;
        text-decoration: none;
        gap: 8px;
      }

      .game-card-price .price-final {
        color: #ed4840;
        font-size: 14px;
        font-weight: 600;
        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: 11px;
        text-decoration-line: line-through;
        line-height: 20px;
      }
    }

    .empty-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      padding: 36px 0;
      img {
        width: 96px;
        height: 96px;
      }
      .empty-title {
        font-size: 14px;
        line-height: 22px;
        color: rgba(118, 120, 123, 1);
      }

      &.empty-box-full {
        height: calc(100vh - 66px - 40px - 6px);
        justify-content: center;
        padding: 0;
      }
    }
  }

  /*// 分页器样式*/
  .game-list-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 16px;
  }

  .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    a {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 32px;
      height: 32px;
      border-radius: 4px;
      background-color: #ffffff;
      color: #1a1a1a;
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.2s ease;
      border: 1px solid #f0f0f0;

      &:hover:not(.disabled) {
        background-color: #fff;
      }

      &.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
      }
    }

    .current {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 32px;
      height: 32px;
      border-radius: 4px;
      background-color: #ff6b00;
      color: #ffffff;
      font-size: 14px;
      font-weight: 500;
    }

    .more {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 32px;
      height: 32px;
      color: #1a1a1a;
      font-size: 14px;
      font-weight: 500;
    }

    .prev,
    .next {
      width: 74px;
      height: 32px;
      padding: 0;
      justify-content: center;
      color: #1a1a1a;
      font-weight: 500;
      font-size: 14px;
    }
  }

  .pagination-jump {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;

    &-input {
      width: 40px;
      height: 32px;
      border: 1px solid #f0f0f0;
      border-radius: 4px;
      text-align: center;
      font-size: 14px;
    }

    &-btn {
      width: 60px;
      height: 32px;
      background-color: #ffffff;
      border: 1px solid #f0f0f0;
      border-radius: 4px;
      color: #1a1a1a;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      margin-left: 16px;

      &:hover {
        background-color: #fff;
      }
    }
  }
}

.pagination-mobile-component .pagination-mobile .page-prev,
.pagination-mobile-component .pagination-mobile .page-next {
  line-height: 28px;
}

.game-name {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #000000;
  font-size: 13px;
  overflow: hidden;
  margin: 4px 0;
  flex: 1;
}
.game-name .dot {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background-color: #000;
}
.game-name .name {
  flex: 1;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gift-btn {
  height: 28px;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.line-warp {
  display: flex;
  flex-direction: column;
  height: 16px;
  width: 16px;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  .line {
    background-color: #53565a;
    height: 2px;
    width: 12px;
    border-radius: 2px;
  }
}
.gift-card {
  border: 2px solid #744f9c;
  .gift-tag {
    position: absolute;
    left: -2px;
    top: -2px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    color: #e7d7ff;
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
    z-index: 2;
    background-image: url("/assets/images/mobile/gift/tag-bg-4.svg");
    background-size: 100% 100%;
    .dot {
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background-color: #eed7ff;
    }
  }
}

.gift-card-more {
  border: 2px solid #887149;
  .gift-tag {
    position: absolute;
    left: -2px;
    top: -2px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    color: #f6efd4;
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
    z-index: 2;
    background-image: url("/assets/images/mobile/gift/tag-gold-4.svg");
    background-size: 100% 100%;
    .dot {
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background-color: #f6efd4;
    }
  }
}
/* 抽屉样式 */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

.drawer-container {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  border-radius: 12px 12px 0 0;
}

.drawer-container.active {
  transform: translateY(0);
}

.drawer-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #e5e8ec;
  position: relative;
  flex-shrink: 0;
}

.drawer-title {
  font-weight: 600;
  font-size: 15px;
  color: #000000;
}

.drawer-close {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: #53565a;
  font-size: 12px;
}
.drawer-content {
  flex: 1;
  overflow-y: auto;
  background: #fff;
  box-sizing: border-box;
  padding: 0 12px;
}

.drawer-items-section {
  background: #ffffff;
  border-bottom: 1px dashed #f5f5f5;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #f5f5f5;
}

.drawer-item:last-child {
  border-bottom: none;
}

.drawer-item-image {
  width: 120px;
  height: 74px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.drawer-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.drawer-item-title {
  font-weight: 400;
  font-size: 14px;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-item-desc {
  font-weight: 400;
  font-size: 12px;
  color: #53565a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-item-platform {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 400;
  font-size: 12px;
  color: #76787b;
}

.drawer-item-status {
  font-weight: 400;
  font-size: 12px;
  color: #76787b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-item-status div {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  border-radius: 8px;
  height: 28px;
  width: 68px;
  justify-content: center;
  background-color: #3b3b3b;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.drawer-item-status div img {
  height: 16px;
  width: 16px;
}

.drawer-info-section {
  padding: 16px 0px;
  box-sizing: border-box;
}

.drawer-info-title {
  font-weight: 600;
  font-size: 15px;
  color: #000000;
  margin-bottom: 16px;
}

.drawer-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.drawer-info-item:last-child {
  margin-bottom: 0;
}

.drawer-info-label {
  font-weight: 400;
  font-size: 14px;
  color: #000000;
}

.drawer-info-value {
  font-weight: 400;
  font-size: 14px;
  color: #000000;
  text-align: right;
}

.drawer-info-value.highlight {
  color: #ea8101;
}

.drawer-info-value.long-text {
  max-width: 60%;
  word-break: break-all;
}
