.main-box {
  padding-left: 0px;
  position: relative;
  /* overflow: hidden; */
}

.main-box.search-page,
.main-box.article-list-page {
  padding-left: 0;
}

.main-box .sidebar {
  position: absolute;
  left: 0;
  top: 0;
  margin-right: 20px;
  background: #28333d;
  border-radius: 4px;
  overflow: hidden;
  width: 200px;
  max-height: 800px;
  overflow-y: auto;
}

.main-box .sidebar .cat-swiper .swiper-wrapper {
  display: block;
}

.game-list-header {
  /*background: #1E2831;*/
  padding: 0;
  margin: 10px 0;
  font-size: 14px;
  font-weight: lighter;
  overflow: scroll;
  white-space: nowrap;
  scrollbar-width: none;
}

.game-list-header::-webkit-scrollbar,
.app-details-header::-webkit-scrollbar {
  display: none;
}

.game-list-header-menu {
  display: flex;
  padding: 0;
}

.game-list-header-menu li {
  margin-right: 16px;
}

.game-list-header-menu li a {
  display: inline-block;
  min-width: 68px;
  height: 35px;
  line-height: 35px;
  background: rgba(255, 255, 255, .05);
  border-radius: 4px;
  font-size: 14px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  padding: 0 10px;
}

.game-list-header-menu .tab-active,
.game-list-header-menu li a:hover {
  border-radius: 4px;
  background: rgba(0, 183, 201, .07);
  background-image: none;
  background-image: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" ><defs><linearGradient id="Gradient" x1="0" x2="100" y1="0" y2="0" gradientUnits="userSpaceOnUse"><stop stop-color="%2300CFB9" offset="0"/><stop stop-color="%2300A0D8" offset="1"/></linearGradient></defs><rect x="1" y="1" width="100%" height="100%" style="height:calc(100% - 2px);width:calc(100% - 2px)" rx="4" ry="4" stroke-width="1" fill="transparent" stroke="url(%23Gradient)"/></svg>');
  color: #00cce0;
}

.main-box .sidebar .cat-item {
  display: block;
  height: 70px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  padding-left: 24px;
  padding-right: 24px;
  color: #fff;
  opacity: 0.5;
  cursor: pointer;
  font-size: 13px;
}

.main-box .sidebar .cat-item.on,
.main-box .sidebar .cat-item:hover {
  opacity: 1;
  background: #304051;
}

.main-box .sidebar .cat-menu {
  position: absolute;
  right: 4px;
  top: 4px;
  display: block;
  width: 20px;
  height: 20px;
  background: url('../imgs/icon_hamburger.webp') no-repeat;
  background-size: 20px;
}

.main-box .sidebar .all-cat-menu {
  position: absolute;
  left: 0;
  top: 30px;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  background: #304051;
  overflow: hidden;
}

.main-box .sidebar .all-cat-menu li {
  float: left;
  line-height: 20px;
  padding: 0 10px;
  font-size: 13px;
}

.main-box .content-box {
  width: 100%;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}

.game-list .navigation {
  display: block;
  text-align: center;
  width: 100%;
  margin: 20px 0;
  padding: 0 10px;
  color: #ccc;
  box-sizing: border-box;
}

.game-list .navigation .screen-reader-text {
  display: none;
  font-size: 14px;
  margin-bottom: 10px;
}

.game-list .navigation .page-numbers {
  margin: 0 5px;
}

.game-list .navigation .page-numbers.current {
  color: #999;
  font-weight: bold;
}

.game-list .navigation a {
  color: #03c47e;
  text-decoration: underline;
}

.gameitem {
  box-sizing: border-box;
  overflow: hidden;
}

.gameitem .gameitem-info {
  margin: 10% 0 0 0;
  text-align: center;
}

.gameitem .subname {
  display: block;
}

.gameitem-img {
  width: 100%;
  padding-top: 100%;
  position: relative;
}

.gameitem-img img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.gameitem-cont {
  position: relative;
  display: block;
  border-radius: 4px;
  height: 100%;
  padding: 5%;
  box-sizing: border-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
  background: #28333d;
  border: 1px solid #28333d;
}

.gameitem-cont:hover {
  background: #37495a;
}

.gameitem-cont .discount {
  position: absolute;
  top: 10px;
  right: -30px;
  z-index: 2;
  width: 90px;
  height: 20px;
  line-height: 20px;
  font-size: 12px;
  color: #fff;
  text-align: center;
  background: red;
  transform: rotate(45deg);
  /* box-shadow: 0 0 2px #f3ae1f; */
}

.gameitem-name {
  font-weight: 400;
  font-size: 13px;
}

.gameitem-desc {
  color: #b4c0c9;
  font-size: 12px;
}

.gameitem-desc p {
  line-height: 20px;
  height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gameitem-btn {
  vertical-align: middle;
  text-align: center;
  padding: 0 32pxpx;
  height: 36px;
  line-height: 34px;
  display: inline-block;
  border-radius: 20px;
  box-sizing: border-box;
  white-space: nowrap;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid #03c47e;
  background: #03c47e;
  color: #fff;
  font-weight: 700;
  padding-left: 0;
  padding-right: 0;
  min-width: 80px;
  width: 80px;
  max-width: 100%;
  height: 30px;
  line-height: 28px;
  margin: 0 auto;
}

.gamegift-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
}

.gamegift-item a {
  display: flex;
  background: #28333d;
  border: 1px solid #28333d;
  align-items: center;
  flex-flow: row;
  flex-wrap: wrap;
}

.gamegift-item>a:hover {
  background: rgba(52, 65, 78, .5);
  border: 1px solid hsla(207, 9%, 58%, .25);
}

.gamegift-item .gamegift-left {
  display: flex;
  width: 80%;
  align-items: center;
}

.gamegift-item .gamegift-left img {
  margin-right: 10px;
  width: 50px;
}

.gamegift-item .gamegift-left .gamegift-title {
  font-size: 14px;
}

.gamegift-item .gamegift-left .gamegift-meta {
  width: inherit;
  font-size: 12px;
  text-wrap: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.gamegift-item .gamegift-left .gamegift-meta .gamegift-name {
  color: #f3ae1f;
}

.gamegift-item .gamegift-right {
  width: 20%;
  text-align: center;
}

.gamegift-item .gamegift-right .gamegift-btn {
  vertical-align: middle;
  text-align: center;
  padding: 0 16px;
  height: 36px;
  line-height: 34px;
  border-radius: 20px;
  box-sizing: border-box;
  white-space: nowrap;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  border: 1px solid #03c47e;
  background: #03c47e;
  color: #fff;
  font-weight: 700;
}

@media screen and (min-width: 1400px) {
  .game-list {
    grid-template-columns: repeat(10, 1fr);
  }
}

@media screen and (max-width: 1399px) {
  .game-list {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media screen and (max-width: 1200px) {
  .game-list {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media screen and (max-width: 1024px) {
  .game-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .gamegift-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .main-box {
    padding-left: 0;
  }

  .main-box .sidebar {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
  }

  .main-box .sidebar .cat-item {
    float: left;
    width: auto;
    height: 30px;
    padding: 0 10px;
  }

  .main-box .sidebar .cat-swiper .swiper-wrapper {
    display: flex;
  }

  .game-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .gamegift-list {
    grid-template-columns: repeat(1, 1fr);
  }

  .gameitem-cont {
    padding: 15px;
    align-items: center;
  }

  .gameitem-cont .discount {
    top: 10px;
    right: auto;
    left: -30px;
    transform: rotate(-45deg);
  }

  .gameitem-desc P {
    margin-bottom: 2px;
  }

  .gameitem-desc P:last-child {
    margin-bottom: 0;
  }

  .gameitem-name {
    padding: 0 0 5px 0;
  }

  .gameitem-img {
    min-width: 80px;
    width: 80px;
    padding-top: 80px;
  }
}

@media screen and (max-width: 576px) {
  .game-list {
    grid-template-columns: repeat(2, 1fr);
  }
}