* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --menu-panel-color: #3a0909;
  --menu-intro-bg-color: #ffded7;
  --menu-intro-font-color: #191919;
  --menu-bg-color: #fff;
  --rate-color: #fed431;
  --rate-empty-color: #b2a8be;
  --detail-btn-color: linear-gradient(to bottom, #ff3c3c, #ff7436);
  --detail-btn-active-color: linear-gradient(to bottom, #ff7436, #ff3c3c);
}

.hidden {
  display: none;
}

body {
  background: #f0f0f0;
}

.body {
  max-width: 450px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  width: 100%;
  height: 82px;
  background: linear-gradient(to bottom, #ffa688, #ff5050);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  position: sticky;
  top: 0;
  z-index: 9;
}

header .menu {
  width: 42px;
  height: 38px;
}

header img {
  width: 100%;
  height: 100%;
}

header .logo {
  width: 146.59px;
  height: 33.67px;
}

header .search {
  width: 42px;
  height: 38px;
}

header .search-input {
  width: 200px;
  height: 38px;
}

header .search-input input {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  color: #333;
  padding: 0 10px;
  font-size: 16px;
  outline: none;
  border-radius: 38px;
}

header .search-input input::placeholder {
  color: #a7a5a9;
}

.btn:active {
  transform: scale(0.9);
}

header .menu-panel {
  position: absolute;
  top: 65px;
  left: 0;
  background: url("../img/menuPanel.png") no-repeat;
  background-size: 100% 100%;
  width: 173px;
  min-height: 537px;
  color: var(--menu-panel-color);
  padding: 30px 0 0 20px;
  font-size: 15px;
  z-index: 9;
}

header .menu-panel .menu-panel-item {
  margin-top: 22px;
}

main {
  background: var(--menu-bg-color);
  flex: 1;
  position: relative;
}

main .games {
  padding: 10px;
}

main .gameList,
.info-recommend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

main .gameList .gameItem,
.info-recommend .recommend-item {
  width: 33.3%;
  padding: 2px 4px;
  aspect-ratio: 1;
}

main .gameList .gameItem img,
.info-recommend .recommend-item img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: #333;
}


main .moreGame {
  width: 90%;
  height: 48px;
  background: var(--detail-btn-color);
  border-radius: 10px;
  text-align: center;
  line-height: 48px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 10px auto 0;
}

main .moreGame:active {
  background: var(--detail-btn-active-color);
  transform: scale(0.95);
}
main .introduce {
  padding: 10px;
  background: #d2d4da;
  background: var(--menu-intro-bg-color);
  color: var(--menu-intro-font-color);
}

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

main .introduce p {
  text-indent: 2em;
  line-height: 1.5;
}

footer {
  height: 190px;
  width: 100%;
  background: linear-gradient(to bottom, #ffa688, #ff5050);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  
}

footer .line {
  margin-bottom: 10px;
}

footer .line a {
  color: #fff;
}

.info-game-rate {
  color: var(--rate-empty-color);
  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: var(--rate-color);
  content: "\2605";
  position: absolute;
  left: 0;
  overflow: hidden;
}

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

.half-star:before {
  color: var(--rate-color);
  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;
}

.info {
  padding: 20px;
}

.info-game {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.info-game-pic {
  width: 88px;
  height: 88px;
  border-radius: 5px;
  background: #333;
}
.info-game-name {
  font-size: 15px;
  font-weight: 700;
  margin-top: 28px;
}

.info-game-type {
  font-size: 12px;
  color: #2d1c41;
  margin-top: 5px;
}

.info-btn {
  width: 100%;
  height: 38px;
  text-align: center;
  line-height: 38px;
  background: var(--detail-btn-color);
  border: #ba0202 solid 1px;
  color: #fff;
  border-radius: 38px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 30px;
  animation: scale 1s infinite alternate;
}

@keyframes scale {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.info-btn:active {
  background: var(--detail-btn-active-color);
}
.info-recommend {
  margin-top: 20px;
}

.game_content {
  width: 100%;
  margin: 0 auto;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  position: absolute;
  overflow: hidden;
}

.game_bg {
  position: absolute;
  filter: brightness(50%) blur(10px);
  width: 200vh;
  height: 120%;
  left: -10%;
  top: -10%;
  padding: 10%;
}

.game_cover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.game_pic {
  width: 160px;
  border: 1px solid var(--menu-panel-color);
  border-radius: 15px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: top;
  cursor: pointer;
  box-shadow: 3px 4px 5px #9e9e9e, 0 0 #012f47;
}
.game_title {
  font-size: 30px;
  color: #fff;
  margin-top: 20px;
  font-weight: 700;
}
.game_play {
  width: 210px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--detail-btn-color);
  border-radius: 42px;
  border: 1px solid #ba0202;
  margin-top: 42px;
  cursor: pointer;
}
.game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: #fff;
}
.backIcon {
  background: url("../img/home.png") no-repeat;
  width: 42px;
  height: 42px;
  background-size: 100% 100%;
  position: absolute;
  cursor: pointer;
  transition: left 0.3s ease;
  z-index: 100;
}
.text-content {
  padding: 20px;
}
.text-content h2 {
  text-align: center;
  margin-bottom: 10px;
}

.text-content p {
  text-indent: 1em;
  line-height: 1.5;
  font-size: 14px;
}
.text-content li,
.text-content ol {
  line-height: 1.5;
  font-size: 14px;
}
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: var(--menu-intro-bg-color);
  color: var(--menu-intro-font-color);
  margin-top: 20px;
}
main .main-content .mian-content-contact a {
  color: #009cff;
}
