body,
p,
ul,
li {
  margin: 0;
  padding: 0;
}

body {
  background: #00c4ff;
}

div {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

#app {
  width: 100%;
  height: 100%;
  padding-top: 0.225rem;
}

header {
  height: 0.625rem;
  width: 100%;
  background: #feff86;
}

header p {
  font-size: 0.3rem;
  padding-left: 0.25rem;
}

header .layui-input {
  width: 2.3rem;
  background: #008be0;
  border-radius: 0.25rem;
  color: #fff;
  height: 0.45rem;
}

header .layui-input::placeholder {
  color: #fff;
}

header .layui-icon-search {
  color: #fff;
  font-size: 0.3rem;
  position: relative;
  left: -0.45rem;
}

.navlist {
  padding: 0.275rem 0.1rem;
  box-sizing: border-box;
}

.navlist li:nth-of-type(3) p {
  margin: 0 -0.05rem;
}

.navlist li {
  width: 23.5%;
  height: 0.325rem;
  border-radius: 0.2375rem;
  background: #ffffff;
}

.navlist li p {
  font-size: 0.15rem;
  transform: scale(0.8);
  white-space: nowrap;
}

.navlist li img {
  width: 0.2rem;
  height: 0.2rem;
}

.advert {
  margin: 0.25rem auto;
  width: 3.8125rem;
  height: 3.1875rem;
}

.primarygame {
  width: 4.75rem;
  height: 4.65rem;
  border-radius: 8px;
}

.primarygame .title {
  height: 0.8rem;
  opacity: 0.8;
  position: absolute;
  bottom: 0;
  z-index: 999;
  padding: 7px 15px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.primarygame .title p {
  color: #3b3b3b;
}

.primarygame .title .Gamesbtn {
  width: auto;
  padding: 2px 8px;
  border: 1px solid #427aff;
  color: #427aff;
}

.primarygame {
  width: 99.2%;
  height: 100%;
  border-radius: 0.1rem;
}

.primarygame .title {
  height: 0.8rem;
  opacity: 0.8;
  position: absolute;
  bottom: 0;
  z-index: 999;
  padding: 0.0875rem 0.1875rem;
  border-bottom-left-radius: 0.1rem;
  border-bottom-right-radius: 0.1rem;
}

.primarygame .title p {
  color: #3b3b3b;
}

.primarygame .title .Gamesbtn {
  width: auto;
  padding: 2px 0.1rem;
  border: 1px solid #427aff;
  color: #427aff;
}

@media only screen and (min-width: 300px) and (max-width: 650px) {
  main {
    width: 100%;
  }
  main .gamelist li:nth-of-type(1),
  main .gamelisted li:nth-of-type(1) {
    width: 96%;
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    height: 96%;
  }
  main .gamelisted li:nth-of-type(12) {
    width: 96%;
    grid-column: 2 / span 2;
    grid-row: 7 / span 2;
    height: 96%;
  }
  main .gamelist li:nth-of-type(7),
  main .gamelisted li:nth-of-type(7) {
    width: 98%;
    grid-column: 1 / span 3;
    grid-row: 4 / span 2;
    height: 3.75rem;
  }
  main .gamelist,
  main .gamelisted {
    margin-top: 1.5rem;
    padding: 0 0.125rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, 34.15%);
  }
  main .gamelist li,
  main .gamelisted li {
    width: 92%;
    height: 1.5rem;
    border-radius: 0.1rem;
    margin-bottom: 0.1rem;
  }
  main .gamelist li img,
  main .gamelisted li img {
    border-radius: 0.1rem;
  }
  .model {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: 100vw;
    height: 400vh;
    background: rgba(255, 255, 255, 0.5);
  }
  @keyframes ball {
    0% {
      top: 0px;
      left: 0px;
    }
    100% {
      top: 0px;
      left: 2.175rem;
    }
  }
  @keyframes pro {
    0% {
      width: 0;
    }
    100% {
      width: 2.45rem;
    }
  }
  .model .progress {
    margin-left: 1.25rem;
  }
  .model .progress img {
    width: 1rem;
    height: 1rem;
    animation-name: ball;
    animation-duration: 5s;
    animation-fill-mode: forwards;
    left: -1rem;
  }
  .model .progress .proed {
    width: 2.45rem;
    height: 0.15rem;
    background: #fff;
  }
  .model .progress .proed div {
    animation-name: pro;
    animation-duration: 5s;
    height: 100%;
    animation-fill-mode: forwards;
    border-radius: 0.05rem;
  }
  .model .plan {
    margin-left: 1.25rem;
    width: 2.45rem;
    height: 0.5rem;
    color: #ff0000;
    background: #fff;
  }
}

@media only screen and (min-width: 650px) and (max-width: 950px) {
  main {
    width: 100%;
  }
  main .gamelist li:nth-of-type(1),
  main .gamelisted li:nth-of-type(1) {
    width: 96%;
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    height: 96%;
  }
  main .gamelisted li:nth-of-type(17) {
    width: 96%;
    grid-column: 3 / span 2;
    grid-row: 6 / span 2;
    height: 96%;
  }
  main .gamelist li:nth-of-type(10),
  main .gamelisted li:nth-of-type(10) {
    width: 98%;
    grid-column: 1 / span 4;
    height: 3.75rem;
  }
  main .gamelist,
  main .gamelisted {
    margin-top: 1.5rem;
    padding: 0 0.125rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, 25.5%);
  }
  main .gamelist li,
  main .gamelisted li {
    width: 92%;
    height: 1.2rem;
    border-radius: 0.1rem;
    margin-bottom: 0.1rem;
  }
  main .gamelist li img,
  main .gamelisted li img {
    border-radius: 0.1rem;
  }
}
