.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-bottom: 40px;
  font-size: 14px;
  font-weight: lighter;
  overflow: scroll;
  white-space: nowrap;
}

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

.game-list-header-menu {
  display: flex;
  border-bottom: 1px solid hsla(0, 0%, 100%, .06);
  padding: 0;
}

.game-list-header-menu>li {
  padding: 10px;
  opacity: .5;
}

.tab-active {
  border-bottom: 3px solid #03c47e;
  box-shadow: 0 10px 10px -10px #03c47e;
  opacity: 1 !important;
  font-weight: bold;
}

.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);
}

.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;
  padding: 8px;
  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;
}

@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);
  }
}

@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);
  }

  .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);
  }
}