/* 375 × 812 原稿；CSS 在首屏直接完成缩放，不等待脚本加载。 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  width: 100%;
  height: 100%;
}
html {
  font-size: 16px;
  font-size: min(4.266667vw, 1.970443vh, 18.346667px);
  font-size: min(4.266667vw, 1.970443dvh, 18.346667px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: linear-gradient(160deg, #2a0845, #11071a 40% 60%, #1a0630);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "PingFang SC",
    "Segoe UI",
    sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .guide-safari-hand--large,
  .guide-safari-hand-dot {
    animation: none !important;
  }
}

/* Safari 引导精灵图与定位。 */

.guide-safari-mask {
  --guide-safari-image: url(../assets/images/open-in-safari-guide.webp);
}

.guide-safari-mask {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000b3;
}
.guide-safari-top {
  position: absolute;
  right: 1rem;
  top: 5%;
  width: 11.8125rem;
  height: 5.875rem;
  background: var(--guide-safari-image) -24.375rem -0.3125rem;
  background-size: 36.5rem 28.4375rem;
}
.guide-safari-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 27.8125rem;
  background: var(--guide-safari-image) -0.3125rem -0.3125rem;
  background-size: 36.5rem 28.4375rem;
}
@media screen and (max-height: 740px) {
  .guide-safari-top,
  .guide-safari-bottom {
    transform: scale(0.9);
    transform-origin: center bottom;
  }
}
@media screen and (max-height: 670px) {
  .guide-safari-top,
  .guide-safari-bottom {
    transform: scale(0.82);
  }
}
.guide-safari-graphic {
  position: absolute;
  bottom: 13.4375rem;
  left: 7.1875rem;
  width: 10.625rem;
  height: 3.5rem;
  background: var(--guide-safari-image) -24.375rem -6.8125rem;
  background-size: 36.5rem 28.4375rem;
  z-index: 1;
}
.guide-safari-hands {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  pointer-events: none;
}
.guide-safari-hand {
  position: absolute;
  width: 3.4375rem;
  height: 3.9375rem;
  background: var(--guide-safari-image) -24.375rem -10.9375rem;
  background-size: 36.5rem 28.4375rem;
  z-index: 2;
  transform-origin: 60% 70%;
}
.guide-safari-hand--large {
  left: 6rem;
  bottom: 9.8125rem;
  --tap-delay: 0.15s;
  animation: handFloatLarge-9c2d48b0 1.8s ease-in-out infinite;
}
.guide-safari-hand-dot {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: #f4cded;
  box-shadow: 0 0 0.375rem #fffc;
  opacity: 0;
  animation: tapPulseSync-9c2d48b0 1.8s ease-out infinite;
  animation-delay: var(--tap-delay, 0s);
  z-index: -1;
}
@keyframes tapPulseSync-9c2d48b0 {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  10% {
    transform: scale(0.6);
    opacity: 0.3;
  }
  18% {
    transform: scale(1);
    opacity: 1;
  }
  30% {
    transform: scale(1.4);
    opacity: 0.04;
  }
  to {
    transform: scale(0.4);
    opacity: 0;
  }
}
@keyframes handFloatLarge-9c2d48b0 {
  0% {
    transform: translate(0) rotate(0);
  }
  40% {
    transform: translate(0.375rem, -0.375rem) rotate(-4deg);
  }
  70% {
    transform: translateY(-0.1875rem) rotate(2deg);
  }
  to {
    transform: translate(0) rotate(0);
  }
}
.guide-safari-close {
  position: fixed;
  top: 25%;
  right: 0.75rem;
  width: 1.625rem;
  height: 1.625rem;
  z-index: 1100;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.guide-safari-close:hover {
  opacity: 0.8;
}

.guide-safari-close {
  border: 0;
  padding: 0;
  background: transparent;
}

.guide-safari-close img {
  width: 100%;
  height: 100%;
}
