@-webkit-keyframes wobble {
  26% {
    transform: translateZ(0);
  }
  29% {
    transform: translate3d(-10%, 0, 0) rotate(-5deg);
  }
  35% {
    transform: translate3d(10%, 0, 0) rotate(3deg);
  }
  42% {
    transform: translate3d(-5%, 0, 0) rotate(-3deg);
  }
  50% {
    transform: translate3d(5%, 0, 0) rotate(2deg);
  }
  54% {
    transform: translate3d(-2%, 0, 0) rotate(-1deg);
  }
  60% {
    transform: translateZ(0);
  }
}
@keyframes wobble {
  26% {
    transform: translateZ(0);
  }
  29% {
    transform: translate3d(-10%, 0, 0) rotate(-5deg);
  }
  35% {
    transform: translate3d(10%, 0, 0) rotate(3deg);
  }
  42% {
    transform: translate3d(-5%, 0, 0) rotate(-3deg);
  }
  50% {
    transform: translate3d(5%, 0, 0) rotate(2deg);
  }
  54% {
    transform: translate3d(-2%, 0, 0) rotate(-1deg);
  }
  60% {
    transform: translateZ(0);
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
}

#body {
  margin: 0 auto;
  min-height: 100vh;
  background: #FFEACC;
  display: flex;
  flex-direction: column;
}

#header {
  width: 100%;
  height: 74px;
  background: url("../img/header.png") no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
}

#header img {
  height: 32px;
}

#main {
  width: 100%;
  flex: 1;
}

#main #category {
  display: flex;
  align-items: center;
  overflow-x: scroll;
  margin-top: 20px;
  padding: 0 10px;
}

#main #category::-webkit-scrollbar {
  display: none;
}

#main #category .category-item {
  padding: 5px 10px;
  border-radius: 20px;
  background: #C59F78;
  color: #fff;
  font-size: 12px;
  margin-right: 10px;
}

#main #category .category-item:last-child {
  margin-right: 0;
}

#main #category .active {
  font-weight: 700;
  background: linear-gradient(
    to bottom,
    #E86E00,
    #F18800,
    #F89E00,
    #FDAC00,
    #FFB100,
    #E86E00
  );
}

#main #list {
  padding: 0 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

#main #list .game-item {
  width: 33.3%;
  padding: 5px;
  aspect-ratio: 1;
}

#main #list .game-item img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #fff;
}

#main .main-content {
  padding: 10px;
  color: #333;
  font-size: 14px;
  line-height: 20px;
  text-indent: 2em;
}

#main .main-content h2 {
  text-align: center;
  margin-bottom: 10px;
}

#main .main-content .mian-content-contact {
  padding: 10px;
  border-radius: 10px;
  background: #C59F78;
  color: #fff;
  margin-top: 20px;
}
#main .main-content .mian-content-contact a {
  color: #009cff;
}

.main-detail {
  position: relative;
  width: 100%;
  height: 212px;
  overflow: hidden;
}

.main-detail-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(10px);
}

.main-detail-games {
  position: relative;
  display: flex;
  align-items: center;
  margin: 20px 0 0 20px;
}

.main-detail-games-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #fff;
  overflow: hidden;
}

.main-detail-games-avatar img {
  width: 100%;
  height: 100%;
}

.main-detail-games-info {
  margin-left: 20px;
}
.main-detail-games-info-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-weight: 700;
}

.main-detail-games-info-rate {
  color: #fff;
  height: auto;
  display: flex;
  align-items: center;
  margin-top: 5px;
}
.rating-star {
  width: 12px;
  height: 12px;
  font-size: 12px;
  position: relative;
  margin-right: 5px;
}

.full-star:before {
  color: #FEAF00;
  content: "\2605";
  position: absolute;
  left: 0;
  overflow: hidden;
}

.empty-star:before {
  content: "\2605";
  position: absolute;
  left: 0;
  overflow: hidden;
}

.half-star:before {
  color: #FEAF00;
  content: "\2605";
  width: 100%;
  position: absolute;
  left: 0;
  overflow: hidden;
}

.half-star:after {
  content: "\2605";
  position: absolute;
  width: 100%;
  left: 50%;
  text-indent: -50%;
  overflow: hidden;
}

.main-detail-btn {
  position: relative;
  margin: 60px auto 0;
  width: 60%;
  height: 40px;
  background: linear-gradient(
    to bottom,
    #E86E00,
    #F18800,
    #F89E00,
    #FDAC00,
    #FFB100,
    #E86E00
  );
  line-height: 40px;
  text-align: center;
  color: #fff;
  border-radius: 40px;
  font-size: 14px;
  -webkit-animation: wobble 3s linear infinite backwards;
  animation: wobble 3s linear infinite backwards;
}

.Recommend {
  position: relative;
  margin-top: 20px;
  height: 28px;
}
.recommend-title-bg {
  position: absolute;
  width: 100%;
  height: 28px;
  background: url("../img/play.png")no-repeat;
  background-size: 100% 100%;
}
.recommend-title-bg img {
  width: 100%;
  height: 100%;
}
.recommend-title {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  width: 146px;
  font-weight: 700;
  text-align: right;
  line-height: 28px;
}

.recommend-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.recommend-list .recommend-item {
  width: 25%;
  padding: 5px;
  aspect-ratio: 1;
}

.recommend-list .recommend-item img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #fff;
}

#intro {
  width: calc(100% - 20px);
  margin: 10px auto;
  border-radius: 10px;
  padding: 15px 10px;
  background: #C59F78;
  color: #fff;
}

#intro p {
  font-size: 16px;
  line-height: 20px;
  text-indent: 1em;
}

#intro li {
  font-size: 14px;
  line-height: 20px;
}

#intro h2 {
  font-size: 20px;
  text-align: center;
  font-weight: 700;
}

#footer {
  width: 100%;
  height: 130px;
  background: url("../img/footer.png") no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#footer img {
  height: 32px;
}

#footer #link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 50px;
  margin-top: 20px;
}

#link .a a {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 10px;
}

#link .a a:last-child {
  margin-bottom: 0;
}

#footer p {
  color: #fff;
  width: 90%;
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.gameIframe{
  width: 100%;
  height: 100%;
}
#backIcon{
  background: url("../img/backhome.png")no-repeat;
  width: 42px;
  height: 42px;
  background-size: 100% 100%;
  position: absolute;
  cursor: pointer;
  transition: left 0.3s ease;
}
#play{
  width: 100vw;
  height: 100vh;
}

@media screen and (min-width: 768px) {
  #header {
    background: url("../img/header_pc.png") no-repeat;
    background-size: 100% 100%;
  }
  #main{
    max-width: 1280px;
    margin: 0 auto;
  }
  #main #list .game-item{
    width: 16.66666667%;
  }

  #footer #link{
    width: 350px;
    margin: 0 auto;
  }

  .main-detail{
    height: 600px;
  }

  .main-detail-games-avatar{
    width: 120px;
    height: 120px;
  }
  .main-detail-games-info-name{
    font-size: 24px;
  }
  .rating-star{
    width: 18px;
    height: 18px;
    font-size: 18px;
    margin-right: 10px;
  }
  .main-detail-btn{

    width: 266px;
    margin: 350px auto 0;
  }
  .recommend-title-bg {
    background: url("../img/play_pc.png")no-repeat;
    background-size: 100% 100%;
    height: 40px;
  }

  .Recommend {
    height: 40px;
  }
  .recommend-title {
    line-height: 40px;
  }
  .recommend-list .recommend-item{
    width: 20%;
  }
  .main-detail{
    margin-top: 20px;
  }
}