* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
html {
  min-height: 100vh;
  font-size: calc(100vw / 7.5);
}

body {
  margin: 0 auto;
  width: 100%;
  max-width: 640px;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Microsoft Yahei', sans-serif;
  font-size: 0.28rem;
  line-height: 1;
  background: #2396ff;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
}
a {
  text-decoration: none;
  color: #333;
}

img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

ul,
li {
  padding: 0;
  margin: 0;
  list-style: none;
}

p {
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* 富文本 */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 0.28rem;
}
.game-page,
.home-page,
.home {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  max-width: 7.5rem;
  overflow: hidden;
}
.home-page {
  position: relative;
}
.home {
  background: transparent url(../img/home_bg.jpg) no-repeat top center / 100% auto;
}
.home-top {
  position: absolute;
  top: 0.6rem;
  width: 100%;
  z-index: 5;
}
.logo {
  margin: 0 auto;
  width: 6rem;
  height: 0.6rem;
  background: url(../img/logo.png) no-repeat 0 0 / 100% 100%;
}
/* .slogan {
  margin: 0.5rem auto 0;
  width: 6.3rem;
  height: 2.2rem;
  background: url(../img/slogan.png) no-repeat 0 0 / 100% 100%;
} */

.home-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10.48rem;
  width: 5.96rem;
}
.btn-flex {
  margin-top: 0.2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.3rem;
}

.home-btn a {
  display: block;
  width: 100%;
  height: 0.9rem;
  font-size: 0.36rem;
  color: #fff;
  line-height: 0.9rem;
  text-align: center;
  background: #ff3c00;
  border-radius: 0.2rem;
}
.btn-flex a {
  width: 50%;
  color: #666666;
  background: #fff;
}
/* 游戏页 */
.game-page {
  display: none;
  padding-bottom: 0.8rem;
  background: url(../img/draw/draw_bg.jpg) no-repeat top center / 100% auto;
}
.game-page .slogan {
  margin: 0.5rem 0 0 0.3rem;
  width: 4.8rem;
  height: 1.52rem;
}
/* .syboml {
  position: absolute;
  right: 0;
  top: 0.8rem;
  width: 2.8rem;
  height: 5.2rem;
  background: url(../img/syboml.png) no-repeat 0 0 / 100% 100%;
  z-index: 3;
} */
.box-wrap {
  /* position: absolute; */
  margin: 4rem auto 0;
  /* left: 50%; */
  /* transform: translateX(-50%); */
  width: 6.92rem;
  /* height: calc(100vh - 6.2rem); */
  z-index: 2;
}
.box-top {
  padding: 0.28rem 0.5rem 0;
  height: 1.43rem;
  background: url(../img/box1.png) no-repeat 0 0 / 100% 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: top;
}
.box-content {
  width: 100%;
  height: calc(100% - 3.47rem);
  min-height: 4rem;
  background: url(../img/box2.png) no-repeat 0 0 / 100% 100%;
}
.box-footer {
  margin-top: -0.01rem;
  width: 100%;
  height: 0.62rem;
  background: url(../img/box3.png) no-repeat 0 0 / 100% 100%;
}
.progress-title,
.progress-text {
  font-size: 0.3rem;
  line-height: 0.72rem;
}
.progress-title {
  color: #333;
}
.progress-text span {
  padding-left: 0.05rem;
  color: #fff;
  font-weight: 500;
}
.progress-text b {
  font-weight: 500;
}
.progress-bar {
  margin-top: 0.05rem;
  width: 100%;
  height: 0.1rem;
  background: #e2f4fd;
  border-radius: 0.05rem;
}
.progress-bar-inner {
  width: 20%;
  height: 100%;
  background: #0970bb;
  border-radius: 0.05rem;
}
.box-content {
  padding: 0.1rem 0 0;
}
.quiz {
  padding: 0 0.5rem;
  height: 100%;
  overflow-x: visible;
  overflow-y: auto;
}
.title {
  font-size: 0.36rem;
  color: #333;
  line-height: 0.48rem;
  text-align: left;
  font-weight: 500;
}
.item {
  margin-top: 0.3rem;
  width: fit-content;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 0.3rem;
  line-height: 0.5rem;
  color: #333;
}
.item span {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  color: #fff;
  line-height: 0.5rem;
  text-align: center;
  /* background: #fff; */
  background: linear-gradient(#0ba7fd, #0f51de);
  border: 0.01rem solid #d8d8d8;
  border-radius: 50%;
}
.item p {
  flex: 1;
  margin-left: 0.2rem;
  font-size: 0.28rem;
  color: #333;
  line-height: 0.44rem;
}
.item.w span {
  font-size: 0;
  color: transparent;
  background: #e15047 url(../img/icon_w.png) no-repeat center center / 0.3rem;
  border-color: #e15047;
}
.item.w p {
  color: #e15047;
}
.item.r p {
  color: #46b779;
}
.item.r span {
  font-size: 0;
  color: transparent;
  background: #46b779 url(../img/icon_r.png) no-repeat center center / 0.3rem;
  border-color: #46b779;
}
.tips {
  margin-top: 0.3rem;
  font-size: 0.24rem;
  color: #333;
  line-height: 0.34rem;
}
.f-flex {
  padding: .2rem .75rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.f-logo {
  width: 1.63rem;
  height: 1.39rem;
  background: url(../img/dyk_logo.png) no-repeat 0 0 / 100% 100%;
    }
.game-btn {
  /* position: absolute; */
  /* left: 50%; */
  /* margin-left: -1.25rem; */
  /* bottom: 0.7rem; */
  width: 2.1rem;
  font-size: 0.34rem;
  color: #2396ff;
  line-height: .76rem;
  text-align: center;
  background: #fff;
  border-radius: .38rem;
  z-index: 10;
}
.game-btn.disabled {
  filter: grayscale(80%);
  cursor: not-allowed;
}
.ani {
  animation: scalePulse 0.3s ease;
}
@keyframes scalePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* 答题弹窗 */
.pop-modal {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5.2rem;
  height: 4.61rem;
  background: url(../img/modal_bg.png) no-repeat 0 0 / 100% 100%;
  border-radius: 0.08rem;
  z-index: 999999;
}
.modal-content {
  margin: 1.5rem 0.5rem 0;
}
.modal-icon {
  margin: 0 auto 0.1rem;
  width: 1.2rem;
  height: 1.2rem;
}
.modal-content p {
  font-size: 0.3rem;
  line-height: 1.6rem;
  text-align: center;
}
.modal-content p.w {
  color: #ff3333;
}
.modal-content p.r {
  color: #20acfd;
}
.modal-btn {
  display: block;
  margin: 0.2rem auto 0;
  width: 4.18rem;
  height: 0.8rem;
  font-size: 0.34rem;
  color: #fff;
  line-height: 0.8rem;
  text-align: center;
  background: linear-gradient(#0ca8fe, #1e54ed);
  border-radius: 0.2rem;
}
/* 弹窗 */
.pop,
.pop-up {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: rgba(51, 51, 51, 0.5);
  z-index: 999998;
}
.pop-box {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86%;
  max-width: 5.5rem;
  background-color: #fff;
  border-radius: 0.08rem;
  z-index: 999999;
}
.pop-box h1 {
  padding: 0.3rem 0 0;
  font-size: 0.32rem;
  text-align: center;
}
.pop-box p {
  margin: 0;
  padding: 0.15rem 0.3rem 0.3rem;
  font-size: 0.28rem;
  color: #777;
  line-height: 0.48rem;
  text-align: center;
}
.pop-box .pop-btn {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-self: center;
  border-top: 0.02rem solid #eee;
}
.pop-box .pop-btn a {
  display: block;
  height: 0.8rem;
  font-size: 0.28rem;
  color: #8e8e93;
  line-height: 0.8rem;
  text-align: center;
  text-decoration: none;
}
.pop-box .pop-btn a:first-child {
  flex: 1;
}
.pop-box .pop-btn a:last-child {
  color: #1264e0;
}
.pop-box .pop-btn a.primary {
  width: calc(50% - 0.02rem);
  border-left: 0.02rem solid #eee;
}
.toast {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 0.3rem;
  width: fit-content;
  font-size: 0.28rem;
  color: #fff;
  line-height: 0.72rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 0.08rem;
  z-index: 999999;
}

.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.1rem;
  height: 2.1rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0.2rem;
  z-index: 98;
}
.loading p {
  font-size: 0.26rem;
  color: #fff;
  text-align: center;
}
.loading-spinner {
  margin: 0.5rem auto 0.2rem;
  width: 0.6rem;
  height: 0.6rem;
  background: url('../img/loading.png') no-repeat center center / 100% 100%;
  animation: turn 3s linear infinite;
  z-index: 99;
}

@keyframes turn {
  0% {
    -webkit-transform: rotate(0deg);
  }
  25% {
    -webkit-transform: rotate(90deg);
  }
  50% {
    -webkit-transform: rotate(180deg);
  }
  75% {
    -webkit-transform: rotate(270deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@-webkit-keyframes turn {
  0% {
    -webkit-transform: rotate(0deg);
  }
  25% {
    -webkit-transform: rotate(90deg);
  }
  50% {
    -webkit-transform: rotate(180deg);
  }
  75% {
    -webkit-transform: rotate(270deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@media (min-width: 640px) {
  html {
    font-size: 85.2px;
  }
  .game-page,
  .home-page,
  .home {
    min-height: 1100px;
  }
}
