/* Responsibility: Full-screen prompt on the apply page that moves WeChat visitors to a real browser. */

html.wechat-guide-open,
html.wechat-guide-open body {
  overflow: hidden;
}

.wechat-guide {
  position: fixed;
  inset: 0;
  z-index: 2100;
  overflow: hidden;
  color: var(--ink);
  font-family: "OPPO Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(70% 30% at 100% 0%, rgba(255, 226, 77, 0.5) 0%, rgba(255, 226, 77, 0) 100%),
    linear-gradient(180deg, #fffdf6 0%, var(--bg) 100%);
}

.wechat-guide-pointer {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--sun-yellow);
  box-shadow: 3px 4px 0 var(--ink);
  color: var(--ink);
  animation: wechat-guide-nudge 1.8s var(--ease-apple) infinite;
}

.wechat-guide-pointer svg {
  width: 38px;
  height: 38px;
}

@keyframes wechat-guide-nudge {
  0%,
  100% {
    transform: translate(0, 0);
  }

  45% {
    transform: translate(3px, -4px);
  }
}

.wechat-guide-body {
  height: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 26px 20px calc(12px + env(safe-area-inset-bottom));
}

.wechat-guide-title {
  margin: 0;
  padding-right: 84px;
  font-size: clamp(33px, 10.2vw, 40px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.wechat-guide-title:focus-visible {
  outline: none;
}

.wechat-guide-title em {
  display: inline-block;
  padding: 0 0.2em 0.04em;
  border-radius: 14px;
  background: var(--sun-yellow);
  font-style: normal;
}

.wechat-guide-lead {
  margin: 10px 0 0;
  color: #57544c;
  font-size: 15px;
  line-height: 1.6;
}

.wechat-guide-steps {
  margin: 20px 0 0;
  padding: 4px 16px;
  list-style: none;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 3px 4px 0 var(--ink);
}

.wechat-guide-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.wechat-guide-steps li + li {
  border-top: 1px solid var(--line);
}

.wechat-guide-step-no {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--sun-yellow);
  font-size: 15px;
}

.wechat-guide-dots {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 24px;
  margin: 0 3px;
  border-radius: 8px;
  background: var(--ink);
  vertical-align: middle;
  transform: translateY(-1px);
}

.wechat-guide-dots svg {
  width: 22px;
  height: 6px;
  display: block;
  fill: #fff;
}

.wechat-guide-job {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 2px 0;
  color: #57544c;
  font-size: 14px;
  line-height: 1.5;
}

.wechat-guide-job[hidden] {
  display: none;
}

.wechat-guide-job svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--accent-dark);
}

.wechat-guide-job b {
  color: var(--ink);
  font-weight: 700;
}

.wechat-guide-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 6px -20px -10px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.wechat-guide-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 320px;
  height: 150px;
  transform: translateX(-50%);
  background: radial-gradient(circle, #ffd23f 1.7px, transparent 2.1px) 0 0 / 11px 11px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
}

.wechat-guide-stage img {
  position: relative;
  width: 232px;
  height: auto;
  margin-bottom: -34px;
}

.wechat-guide-actions {
  position: relative;
  display: grid;
  gap: 2px;
}

.wechat-guide-copy {
  height: 50px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.wechat-guide-copy svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.wechat-guide-stay {
  height: 44px;
  border: 0;
  background: none;
  color: #6b685f;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wechat-guide-copy:focus-visible,
.wechat-guide-stay:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.wechat-guide-copy-source {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-height: 640px) {
  .wechat-guide-stage {
    display: none;
  }

  .wechat-guide-actions {
    margin-top: auto;
  }

  .wechat-guide-body {
    padding-top: 20px;
  }

  .wechat-guide-steps {
    margin-top: 14px;
  }

  .wechat-guide-steps li {
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wechat-guide-pointer {
    animation: none;
  }
}
