:root {
  color-scheme: dark;
  font-family:
    "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: #090909;
  font-synthesis: none;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  overflow: hidden;
  background: #090909;
}

button {
  font: inherit;
}

.desktop-intro {
  display: none;
}

.landing-page {
  --scale: min(100vw, 402px) / 402;

  position: relative;
  width: min(100vw, 402px);
  height: 100dvh;
  min-height: 640px;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  background: #111;
}

.landing-page__background,
.landing-page__shade {
  position: absolute;
  inset: 0;
}

.landing-page__background {
  z-index: -3;
  background:
    url("/BL-JS-59/assets/media/bg.png")
    center / cover no-repeat;
}

.landing-page__shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 15%), rgb(0 0 0 / 62%)),
    linear-gradient(90deg, rgb(0 0 0 / 24%), transparent 55%);
}

.landing-page__figure {
  position: absolute;
  z-index: -1;
  top: clamp(12px, 2vh, 24px);
  left: 0;
  width: auto;
  height: min(78dvh, 682px);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.landing-page__figure.is-changing {
  opacity: 0.18;
  transform: translateY(6px);
}

.quiz-card,
.pick-panel,
.success-card {
  position: absolute;
  left: 50%;
  width: calc(100% - 40px);
  max-width: 362px;
  transform: translateX(-50%);
  color: #090909;
  filter: drop-shadow(0 22px 34px rgb(0 0 0 / 34%));
  isolation: isolate;
}

.quiz-card {
  top: clamp(255px, 35dvh, 305px);
  min-height: 408px;
  padding: 30px 22px 24px;
}

.panel-shape {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.quiz-card__heading {
  display: flex;
  min-height: 74px;
  padding: 0 8px 0 30%;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: center;
}

.quiz-card__eyebrow,
.success-card__eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: rgb(0 0 0 / 35%);
}

.quiz-card h1 {
  margin-top: 5px;
  width: 100%;
  font-size: clamp(19px, 5.4vw, 23px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.quiz-card__content {
  min-height: 188px;
  padding: 32px 20px 24px;
  border-radius: 18px;
  background: rgb(255 255 255 / 68%);
}

.quiz-card__question {
  font-size: clamp(18px, 5.1vw, 21px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.quiz-card__description {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.55;
  color: rgb(0 0 0 / 70%);
}

.quiz-card__progress {
  height: 5px;
  margin: 17px 13px 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgb(0 0 0 / 10%);
}

.quiz-card__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #d70d38;
  transition: width 220ms ease;
}

.quiz-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 17px;
}

.quiz-card__actions.has-three-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quiz-card__actions.has-three-options .quiz-option {
  padding-inline: 8px;
  font-size: 14px;
}

.quiz-card__actions.has-long-options {
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 12px;
}

.quiz-card__actions.has-long-options .quiz-option {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 15px;
  white-space: normal;
}

.quiz-option,
.primary-button {
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  background: #050505;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.quiz-option:hover,
.primary-button:hover {
  background: #d70d38;
  box-shadow: 0 10px 24px rgb(215 13 56 / 28%);
  transform: translateY(-2px);
}

.quiz-option:active,
.primary-button:active {
  transform: scale(0.98);
}

.quiz-option:focus-visible,
.primary-button:focus-visible {
  outline: 3px solid rgb(215 13 56 / 35%);
  outline-offset: 3px;
}

.landing-page.is-picking .landing-page__figure {
  display: none;
}

.pick-panel {
  top: clamp(115px, 19dvh, 166px);
  height: 487px;
  padding: 25px 20px 18px;
}

.pick-panel h2 {
  position: relative;
  z-index: 1;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.pick-panel__description {
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgb(10 10 10 / 76%);
}

.pick-grid {
  position: absolute;
  z-index: 1;
  inset: 136px 14px 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px 0;
}

.pick-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.pick-item:nth-child(odd) {
  transform: translateX(8px);
}

.pick-item:nth-child(even) {
  transform: translateX(-8px);
}

.pick-item__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pick-item__image {
  position: absolute;
  z-index: 1;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  padding: 0;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transition: transform 180ms ease;
}

.pick-item:nth-child(1) .pick-item__image {
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.pick-item:nth-child(2) .pick-item__image {
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.pick-item:nth-child(3) .pick-item__image {
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}

.pick-item:nth-child(4) .pick-item__image {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 18% 100%);
}

.pick-item:hover .pick-item__image,
.pick-item:focus-visible .pick-item__image {
  transform: scale(1.06);
}

.pick-item.is-selected .pick-item__image {
  transform: scale(0.96);
}

.success-card {
  top: 50%;
  max-height: calc(100dvh - 24px);
  padding: 26px 18px 20px;
  overflow-y: auto;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 24px;
  text-align: center;
  background: rgb(247 247 247 / 93%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 42%);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
  scrollbar-width: none;
}

.success-card::-webkit-scrollbar {
  display: none;
}

.success-card__eyebrow {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: rgb(0 0 0 / 38%);
}

.success-card h2 {
  margin-top: 3px;
  font-size: 30px;
}

.success-card > h3 {
  margin-top: 8px;
  font-size: 18px;
}

.success-card__summary {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: rgb(0 0 0 / 65%);
}

.success-card__rules {
  margin-top: 16px;
  text-align: left;
}

.success-card__rules h3,
.download-card h3 {
  font-size: 17px;
}

.success-card__rules ol {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  padding-left: 22px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.download-card {
  margin-top: 16px;
}

.download-card__icon {
  position: relative;
  width: 92px;
  height: 92px;
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
  border: 3px solid #e41d46;
  border-radius: 23px;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 10px 28px rgb(215 13 56 / 22%);
  animation: download-icon-bounce 1.15s ease-in-out infinite;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.download-card__icon:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgb(215 13 56 / 32%);
}

.download-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
}

@keyframes download-icon-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 28px rgb(215 13 56 / 22%);
  }

  45% {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 18px 34px rgb(215 13 56 / 38%);
  }

  65% {
    transform: translateY(1px) scale(0.99);
  }
}

.download-card p {
  margin-top: 8px;
  color: #e41d46;
  font-size: 16px;
  font-weight: 900;
}

.download-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}

.download-steps span {
  display: flex;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  background: rgb(255 255 255 / 85%);
}

.download-steps b {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #e20e38;
}

.success-card .primary-button {
  width: 100%;
  margin-top: 14px;
}

.notice-modal {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.notice-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 62%);
  backdrop-filter: blur(8px);
  animation: modal-fade-in 180ms ease both;
}

.notice-modal__dialog {
  position: relative;
  width: min(100%, 330px);
  padding: 30px 24px 24px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 28px;
  color: #0a0a0a;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgb(255 255 255 / 95%), transparent 42%),
    linear-gradient(160deg, rgb(255 255 255 / 96%), rgb(225 225 225 / 94%));
  box-shadow: 0 26px 80px rgb(0 0 0 / 48%);
  animation: modal-pop-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1.05) both;
}

.notice-modal__dialog::before {
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 3px;
  border-radius: 99px;
  content: "";
  background: linear-gradient(90deg, transparent, #d70d38, transparent);
}

.notice-modal__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(145deg, #ed2550, #a80025);
  box-shadow: 0 10px 24px rgb(215 13 56 / 35%);
}

.notice-modal__eyebrow {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: rgb(0 0 0 / 36%);
}

.notice-modal__dialog h2 {
  margin-top: 5px;
  font-size: 26px;
}

.notice-modal__message {
  margin-top: 15px;
  font-size: 16px;
  line-height: 1.65;
  color: rgb(0 0 0 / 68%);
}

.notice-modal .primary-button {
  width: 100%;
  margin-top: 22px;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
}

@keyframes modal-pop-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
  }
}

[hidden] {
  display: none !important;
}

@media (max-height: 720px) {
  .landing-page__figure {
    height: 72dvh;
  }

  .quiz-card {
    top: 218px;
    min-height: 385px;
    padding-top: 24px;
  }

  .quiz-card__content {
    min-height: 165px;
    padding-top: 25px;
  }

  .quiz-card__description {
    margin-top: 16px;
  }
}

@media (min-width: 700px) {
  :root {
    color-scheme: light;
    background: #f7f8fc;
  }

  body {
    position: relative;
    display: grid;
    min-height: 100dvh;
    padding: 36px;
    place-items: center;
    isolation: isolate;
    overflow: auto;
    background:
      radial-gradient(circle at 16% 20%, rgb(255 104 169 / 17%), transparent 18%),
      radial-gradient(circle at 85% 78%, rgb(94 137 255 / 16%), transparent 20%),
      linear-gradient(rgb(21 29 48 / 3%) 1px, transparent 1px),
      linear-gradient(90deg, rgb(21 29 48 / 3%) 1px, transparent 1px),
      #f8f9fc;
    background-size:
      auto,
      auto,
      48px 48px,
      48px 48px,
      auto;
  }

  body::before,
  body::after {
    position: fixed;
    z-index: -1;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    content: "";
    filter: blur(70px);
    pointer-events: none;
  }

  body::before {
    top: 8%;
    left: 8%;
    background: rgb(255 88 158 / 25%);
  }

  body::after {
    right: 6%;
    bottom: 8%;
    background: rgb(70 118 255 / 22%);
  }

  .landing-page {
    width: min(402px, calc(100vw - 72px));
    height: min(820px, calc(100dvh - 72px));
    min-height: 640px;
    margin: 0;
    border: 8px solid rgb(255 255 255 / 92%);
    border-radius: 46px;
    box-shadow:
      0 38px 80px rgb(23 31 50 / 24%),
      0 8px 24px rgb(23 31 50 / 12%),
      inset 0 0 0 1px rgb(13 21 38 / 8%);
  }

  .landing-page::before {
    position: absolute;
    z-index: 30;
    top: 10px;
    left: 50%;
    width: 92px;
    height: 25px;
    border-radius: 999px;
    content: "";
    background: #050505;
    box-shadow: 0 2px 8px rgb(0 0 0 / 24%);
    transform: translateX(-50%);
    pointer-events: none;
  }

  .landing-page::after {
    position: absolute;
    z-index: 30;
    bottom: 9px;
    left: 50%;
    width: 112px;
    height: 4px;
    border-radius: 999px;
    content: "";
    background: rgb(255 255 255 / 74%);
    transform: translateX(-50%);
    pointer-events: none;
  }
}

@media (min-width: 1000px) {
  body {
    grid-template-columns: minmax(360px, 520px) 402px;
    gap: clamp(60px, 8vw, 130px);
    place-content: center;
  }

  .desktop-intro {
    position: relative;
    display: block;
    max-width: 520px;
    color: #121827;
  }

  .desktop-intro::before {
    position: absolute;
    z-index: -1;
    top: -72px;
    left: -68px;
    width: 145px;
    height: 145px;
    border: 1px solid rgb(211 24 82 / 16%);
    border-radius: 50%;
    content: "";
    box-shadow:
      0 0 0 22px rgb(211 24 82 / 4%),
      0 0 0 44px rgb(211 24 82 / 2%);
  }

  .desktop-intro__eyebrow {
    color: #d31852;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
  }

  .desktop-intro h1 {
    margin-top: 18px;
    font-size: clamp(42px, 4.5vw, 64px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.045em;
  }

  .desktop-intro h1 span {
    color: transparent;
    background: linear-gradient(100deg, #d31852, #7848f4 65%, #3565dc);
    background-clip: text;
    -webkit-background-clip: text;
  }

  .desktop-intro__description {
    max-width: 470px;
    margin-top: 24px;
    color: #697084;
    font-size: 17px;
    line-height: 1.85;
  }

  .desktop-intro__features {
    display: grid;
    gap: 11px;
    margin-top: 30px;
  }

  .desktop-intro__features span {
    display: flex;
    width: fit-content;
    min-width: 230px;
    padding: 11px 16px 11px 12px;
    align-items: center;
    gap: 12px;
    border: 1px solid rgb(22 31 51 / 7%);
    border-radius: 999px;
    color: #343b4c;
    font-size: 14px;
    font-weight: 700;
    background: rgb(255 255 255 / 72%);
    box-shadow: 0 8px 24px rgb(30 42 68 / 6%);
    backdrop-filter: blur(8px);
  }

  .desktop-intro__features b {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    background: linear-gradient(145deg, #e5235d, #8e3de2);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 微信/QQ 遮罩与轻提示 ===== */
#wechat-mask { display: none; }
.wechat-mask-bg {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100001;
}
.wechat-mask-pop {
  position: fixed; top: 50%; left: 50%;
  width: 85%; max-width: 320px;
  transform: translate(-50%, -50%);
  background: #fff; border-radius: 20px;
  z-index: 100002; overflow: hidden;
  padding: 24px; box-sizing: border-box;
}
.wechat-mask-header { display: flex; align-items: center; margin-bottom: 20px; }
.wechat-mask-logo {
  width: 50px; height: 50px; border-radius: 12px; object-fit: cover;
}
.wechat-mask-info { margin-left: 12px; }
.wechat-mask-title { font-size: 16px; font-weight: 600; color: #333; }
.wechat-mask-subtitle { font-size: 13px; color: #999; margin-top: 4px; }
.wechat-mask-steps {
  background: #f7f8fa; border-radius: 12px; padding: 16px;
}
.wechat-mask-steps p {
  font-size: 14px; color: #333; line-height: 2;
  display: flex; align-items: center;
}
.wechat-mask-steps b { color: #2f7bff; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; background: #2f7bff; color: #fff;
  border-radius: 50%; font-size: 12px; font-weight: 600;
  margin-right: 8px; flex-shrink: 0;
}
.wechat-mask-divider {
  text-align: center; margin: 18px 0; position: relative;
  font-size: 12px; color: #ccc;
}
.wechat-mask-divider::before,
.wechat-mask-divider::after {
  content: ""; position: absolute; top: 50%;
  width: 25%; height: 1px; background: #e5e5e5;
}
.wechat-mask-divider::before { left: 0; }
.wechat-mask-divider::after { right: 0; }
.wechat-mask-copy {
  position: relative; height: 40px;
  background: #f1f6f9; border-radius: 20px; overflow: hidden;
}
.wechat-mask-copy input {
  width: 100%; height: 100%; border: none; outline: none;
  background: transparent; padding: 0 80px 0 16px;
  font-size: 13px; color: #999; box-sizing: border-box;
}
.wechat-mask-copy button {
  position: absolute; right: 0; top: 0; height: 100%;
  padding: 0 18px;
  background: linear-gradient(90deg, #4f9dff, #2f7bff);
  color: #fff; border: none; border-radius: 0 20px 20px 0;
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.bl-toast {
  position: fixed; left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 24px);
  max-width: calc(100vw - 40px);
  padding: 12px 18px; border-radius: 999px;
  background: rgba(10, 12, 20, 0.92); color: #fff;
  font-size: 13px; line-height: 1.4; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 100003;
}
.bl-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
