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

html {
  font-size: calc(100vw / 7.5);
}

@media screen and (min-width: 750px) {
  html {
    font-size: 100px;
  }
}

body {
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, Helvetica, Segoe UI, Arial, Roboto, PingFang SC, miui, Hiragino Sans GB, Microsoft Yahei, sans-serif;
  background: #eef6ff;
}

.security-page {
  position: relative;
  width: 100%;
  max-width: 7.5rem;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
}

.security-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.security-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.security-shield {
  position: absolute;
  left: 50%;
  top: 2.08rem;
  transform: translateX(-50%);
  width: 4.3rem;
  height: 4.3rem;
  z-index: 1;
}

.security-shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

.security-title {
  position: absolute;
  left: 50%;
  top: 6.62rem;
  transform: translateX(-50%);
  font-size: 0.4rem;
  font-weight: 600;
  color: #4876ff;
  white-space: nowrap;
  z-index: 1;
}

.security-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  margin-top: 7.86rem;
  line-height: 0.88rem;
  height: 0.88rem;
}

.security-status .complete-icon {
  width: 1.49rem;
  height: 0.8rem;
  object-fit: contain;
  display: none;
  flex-shrink: 0;
}

.security-status.step2 .complete-icon {
  display: block;
}

.security-status .status-text {
  font-size: 0.24rem;
  font-weight: 400;
  color: #333;
  white-space: nowrap;
  line-height: 1.4;
}

.security-status.step1 .status-text {
  transform: translateX(0.185rem);
}

.security-status.step2 .status-text {
  padding-bottom: 0.04rem;
}

.security-btn-wrap {
  position: absolute;
  left: 50%;
  top: 8.86rem;
  transform: translateX(-50%);
  width: 3.16rem;
  height: 0.93rem;
  z-index: 1;
}

.security-btn {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.security-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.security-btn.disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.security-btn.disabled img {
  filter: grayscale(1);
  opacity: 0.45;
}

.security-btn:not(.disabled):active {
  transform: scale(0.98);
}

@media screen and (min-width: 750px) {
  body {
    display: flex;
    justify-content: center;
  }

  .security-bg {
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .security-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    padding: 0.6rem 0.4rem;
    min-height: 100vh;
  }

  .security-shield,
  .security-title,
  .security-status,
  .security-btn-wrap {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-top: 0;
  }

  .security-shield {
    width: 3.6rem;
    height: 3.6rem;
  }

  .security-title {
    font-size: 0.36rem;
  }

  .security-status .status-text {
    font-size: 0.22rem;
  }

  .security-status .complete-icon {
    width: 1.3rem;
    height: 0.7rem;
  }

  .security-btn-wrap {
    width: 3rem;
    height: 0.88rem;
    margin-top: 0.12rem;
  }
}
