:root {
  color-scheme: dark;
  --pink: #ff20eb;
  --violet: #9b20ff;
  --blue: #38b9ff;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #050505; }
body {
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { margin: 0; padding: 0; border: 0; color: inherit; font: inherit; cursor: pointer; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  isolation: isolate;
  background: #050505;
}
.landing__art,
.landing__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.landing__art {
  z-index: 0;
  opacity: 0;
  filter: blur(4px) saturate(.96);
  transition:
    opacity 1.75s cubic-bezier(.4,0,.2,1),
    filter 1.75s cubic-bezier(.4,0,.2,1);
  will-change: opacity, filter;
}
.landing__art.is-active {
  z-index: 1;
  opacity: 1;
  filter: blur(0) saturate(1);
}
.landing__art img {
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}
.landing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.landing::after {
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), transparent 18%, transparent 76%, rgba(0,0,0,.18)),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(0,0,0,.14));
}

.brand-logo {
  position: absolute;
  z-index: 5;
  top: 3.2%;
  left: 3.2%;
  width: clamp(120px, 12vw, 220px);
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.45));
}

.nav-hotspots { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.nav-hotspot {
  position: absolute;
  top: 3.2%;
  height: 10.5%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: transparent;
  border-radius: 18px;
  pointer-events: auto;
}
.nav-hotspot__icon {
  display: block;
  width: clamp(24px, 2vw, 38px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.45));
}
.nav-hotspot__label {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: clamp(11px, .8vw, 15px);
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,.9);
  pointer-events: none;
}
.nav-hotspot--business { left: 83.4%; width: 4.8%; }
.nav-hotspot--community { left: 88.6%; width: 4.8%; }
.nav-hotspot--service { left: 93.8%; width: 4.8%; }
.nav-hotspot:focus-visible,
.download-hotspot:focus-visible,
.qr-hotspot:focus-visible {
  outline: 3px solid rgba(255,255,255,.95);
  outline-offset: 3px;
}

.install-guide {
  position: absolute;
  z-index: 6;
  left: 6%;
  top: 69.5%;
  width: min(38vw, 700px);
  display: grid;
  grid-template-columns: clamp(100px, 8.2vw, 154px) minmax(0, 1fr);
  column-gap: clamp(12px, 1vw, 20px);
  row-gap: clamp(5px, .42vw, 8px);
  align-items: start;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.95), 0 1px 2px #000;
}
.qr-hotspot {
  position: relative;
  grid-row: 1 / span 2;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8%;
  background: rgba(255,255,255,.96);
  box-shadow: 0 0 0 2px rgba(255,255,255,.72), 0 14px 38px rgba(0,0,0,.55);
}
.install-guide__title {
  grid-column: 2;
  margin: 0;
  font-size: clamp(18px, 1.35vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .03em;
}
.install-guide__title strong {
  color: #ff35ed;
  font-weight: 900;
}
.install-guide__title-h5 { display: none; }
.install-guide__tip {
  grid-column: 2;
  margin: 0;
  max-width: 470px;
  font-size: clamp(14px, .94vw, 18px);
  font-weight: 500;
  line-height: 1.52;
  letter-spacing: .01em;
}
.install-guide__tip strong { font-weight: 900; }
.qr-hotspot__box {
  position: absolute;
  inset: 7%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4%;
  background: #fff;
}
#downloadQr canvas,
#downloadQr > img:not(#downloadQrFallback) {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}
#downloadQrFallback { width: 42%; height: 42%; object-fit: contain; border-radius: 18%; }
.qr-hotspot.has-qr #downloadQrFallback { display: none; }

.download-hotspots { display: none; }
.landing-toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(26px + var(--safe-bottom));
  max-width: min(86vw, 420px);
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(10,8,15,.88);
  box-shadow: 0 12px 36px rgba(0,0,0,.48), 0 0 24px rgba(255,190,35,.22);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .24s ease, transform .24s ease;
  backdrop-filter: blur(12px);
}
.landing-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 768px) {
  body { overflow: hidden; }
  .landing {
    width: 100vw;
    height: 100svh;
    min-height: 520px;
  }
  .landing__art img { object-fit: cover; }
  .landing::after { background: linear-gradient(180deg, rgba(0,0,0,.04), transparent 80%, rgba(0,0,0,.12)); }

  .brand-logo {
    top: 2.2%;
    left: 3.2%;
    width: 27vw;
    max-width: 145px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.42));
  }

  .nav-hotspot { top: 2.2%; height: 7.5%; }
  .nav-hotspot__icon { width: 5vw; max-width: 28px; }
  .nav-hotspot__label { margin-top: 1vw; font-size: clamp(9px, 2.35vw, 12px); }
  .nav-hotspot--business { left: 63.5%; width: 10.4%; }
  .nav-hotspot--community { left: 75.1%; width: 10.2%; }
  .nav-hotspot--service { left: 86.5%; width: 10.5%; }

  .install-guide {
    left: 5.1%;
    top: 71.5%;
    width: 89.8%;
    grid-template-columns: 14.2vw minmax(0, 1fr);
    column-gap: 2.8vw;
    row-gap: 1.25vw;
    align-items: center;
  }
  .qr-hotspot {
    grid-row: 1;
  }
  .install-guide__title {
    font-size: clamp(14px, 4.15vw, 19px);
    line-height: 1.12;
    letter-spacing: .01em;
  }
  .install-guide__title-pc { display: none; }
  .install-guide__title-h5 { display: inline; }
  .install-guide__title strong { color: #ff35ed; }
  .install-guide__tip {
    grid-column: 1 / -1;
    width: 58%;
    max-width: none;
    font-size: clamp(9px, 2.55vw, 12px);
    line-height: 1.42;
    letter-spacing: 0;
  }
  .download-hotspots {
    position: absolute;
    z-index: 7;
    inset: 0;
    display: block;
    pointer-events: none;
  }
  .download-hotspot {
    position: absolute;
    top: 91.1%;
    height: 6.7%;
    border-radius: 999px;
    background: transparent;
    pointer-events: auto;
  }
  .download-hotspot--normal { left: 11.7%; width: 36.7%; }
  .download-hotspot--fast { left: 53.4%; width: 36.7%; }
  .landing-toast { bottom: calc(16px + var(--safe-bottom)); font-size: 13px; }
}

@media (max-width: 768px) and (max-aspect-ratio: 9/18.5) {
  .landing__art img { object-position: center top; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
