* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: url('./ct.jpg') center center / cover no-repeat fixed;
  color: #111;
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  display: none;
}

button {
  border: 0;
  outline: 0;
  font: inherit;
  cursor: pointer;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  width: 88%;
  max-width: 520px;
  min-height: 360px;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screen {
  display: none;
  width: 100%;
  max-width: 620px;
}

.screen.active {
  display: block;
}

.status-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  color: #e60033;
  font-size: 0.95rem;
  font-weight: 800;
}

h1 {
  margin-bottom: 0.9rem;
  font-size: 2.1rem;
  color: #e60033;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  line-height: 1.35;
}

p {
  font-size: 1.05rem;
  line-height: 1.65;
}

.primary-btn,
.option-list button,
.download-btn {
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #ff5d7d, #e60033);
  box-shadow: 0 8px 22px rgba(230, 0, 51, 0.28);
}

.primary-btn {
  margin-top: 1.6rem;
  min-width: 210px;
  height: 52px;
  font-size: 1.18rem;
  font-weight: 900;
}

.step-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(230, 0, 51, 0.1);
  color: #e60033;
  font-weight: 900;
}

.option-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.option-list button {
  min-width: 160px;
  height: 50px;
  padding: 0 1.4rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.final-screen h2 {
  color: #e60033;
  font-size: 2rem;
}

.match-text {
  margin-bottom: 1rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.match-text strong {
  color: #e60033;
  font-size: 1.35em;
}

.result-list {
  margin: 1rem auto;
  text-align: left;
  max-width: 360px;
}

.result-list p {
  margin-bottom: 0.25rem;
  font-size: 1.08rem;
  font-weight: 800;
}

.download-area {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.download-btn {
  width: min(88vw, 320px);
  height: 58px;
  font-size: 1.35rem;
  font-weight: 900;
  animation: downloadPulse 1.25s ease-in-out infinite alternate;
}

.download-btn.is-loading {
  opacity: 0.72;
  pointer-events: none;
  animation: none;
}

.download-hint {
  max-width: 92%;
  color: #e60033;
  font-size: 1.18rem;
  line-height: 1.45;
  font-weight: 900;
  cursor: pointer;
}

@keyframes downloadPulse {
  from { transform: scale(1); }
  to { transform: scale(1.055); }
}

@media (max-width: 575px) {
  body {
    background-attachment: scroll;
  }

  .page {
    align-items: center;
    padding: 0.8rem;
  }

.card {
    width: 92%;
    max-width: 420px;
    min-height: 320px;
    padding: 1.2rem .9rem;
    border-radius: 14px;
}

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  p {
    font-size: 0.98rem;
  }

  .status-bar {
    font-size: 0.86rem;
  }

  .option-list {
    gap: 0.8rem;
  }

  .option-list button {
    width: 46%;
    min-width: 0;
    height: 48px;
    padding: 0 0.6rem;
    font-size: 1rem;
  }

  .download-btn {
    width: 100%;
    max-width: 320px;
    font-size: 1.28rem;
  }

  .download-hint {
    font-size: 1.08rem;
  }
}
