/* 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: #050816;
  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;
}
.landing-page {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  margin-inline: auto;
  overflow: hidden;
  color: #fff;
  background: #1a0a2e;
  font-family:
    system-ui,
    -apple-system,
    "PingFang SC",
    "Segoe UI",
    sans-serif;
  -webkit-user-select: none;
  user-select: none;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.landing-stage {
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transform: translateX(-50%);
}
.landing-artboard {
  position: relative;
  width: 100%;
  max-width: 23.4375rem;
  height: 100%;
}
/* 铺满可用高度，文字和按钮分别按此容器的百分比定位。 */
.landing-content {
  position: absolute;
  inset: 0;
}
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 38%, rgb(0 0 0 / 8%) 57%, rgb(0 0 0 / 36%) 100%);
}
.enter-button-wrap {
  position: absolute;
  bottom: 9%;
  left: 7.333333%;
  width: 85.333334%;
  animation: in-up 0.65s ease-out 0.4s both;
}
.enter-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 582 / 144;
  border: none;
  padding: 0;
  border-radius: 0.875rem;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  animation: cta-breathe 2.4s ease-in-out 1.1s infinite;
}
.enter-button-face {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  box-shadow: 0 0.75rem 1.75rem rgb(0 0 0 / 28%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.enter-button-face img {
  width: 100%;
  height: auto;
}
.enter-button-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 35%) 49%, transparent 68%);
  transform: translateX(-130%);
  animation: cta-shine 3.6s ease-in-out 1.2s infinite;
  pointer-events: none;
}
.enter-button:active .enter-button-face {
  transform: translateY(0.25rem) scale(0.98);
  box-shadow: 0 0.375rem 1rem rgb(0 0 0 / 24%);
}
.enter-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}
@media (hover: hover) {
  .enter-button:hover .enter-button-face {
    filter: brightness(1.08);
  }
}
@keyframes in-up {
  from {
    opacity: 0;
    transform: translateY(0.875rem);
  }
}
@keyframes cta-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
@keyframes cta-shine {
  0%, 18% { transform: translateX(-130%); }
  58%, 100% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
  .enter-button-wrap,
  .enter-button,
  .enter-button-shine,
  .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%;
}
