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

html {
  height: 100%;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}

body.cover-body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1a3340;
  background: #dff0f8;
  -webkit-font-smoothing: antialiased;
}

/* 设计稿强制一屏铺满，不出现纵向滚动 */
.cover {
  position: relative;
  max-width: 7.5rem;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

.cover-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* 叠在人物下方、页脚说明上方：计数 + 开始测试 */
.cover-actions {
  position: absolute;
  left: 0;
  right: 0;
  top: 78%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.48rem;
  z-index: 2;
}

.cover-count {
  margin: 0 0 0.16rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a4a6e;
  font-size: 0.24rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.cover-start {
  display: block;
  width: 62%;
  max-width: 4.66rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  animation: cover-float 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0.08rem 0.12rem rgba(0, 80, 160, 0.22));
}

.cover-start img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes cover-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.06rem);
  }
}

.cover-start:active {
  transform: scale(0.97) translateY(0.02rem);
  animation: none;
}

.cover-start.is-text {
  height: 0.88rem;
  background: #1f9fe8;
  clip-path: polygon(6% 0, 94% 0, 100% 28%, 100% 72%, 94% 100%, 6% 100%, 0 72%, 0 28%);
  color: #fff;
  font-size: 0.36rem;
  font-weight: 700;
  line-height: 0.88rem;
  filter: drop-shadow(0 0.1rem 0 #0d6cb8);
}

.cover-start.is-text img {
  display: none;
}

.cover-secondary {
  display: block;
  width: 62%;
  max-width: 4.66rem;
  margin: 0.16rem auto 0;
  height: 0.72rem;
  border: 0.03rem solid #2f9fd6;
  border-radius: 0.36rem;
  background: rgba(255, 255, 255, 0.88);
  color: #1f6f9a;
  font-size: 0.28rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.cover-status {
  margin-top: 0.12rem;
  font-size: 0.2rem;
  color: #4a7a92;
  text-align: center;
  min-height: 0.28rem;
  text-shadow: 0 0 0.12rem rgba(255, 255, 255, 0.9);
}

@media (max-height: 640px) {
  .cover-actions {
    top: 75%;
  }
  .cover-start {
    width: 56%;
  }
  .cover-count {
    font-size: 0.2rem;
    margin-bottom: 0.12rem;
  }
}
