:root {
  --toast-bg: rgba(13, 45, 76, 0.92);
  --focus-ring: rgba(255, 255, 255, 0.96);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #6f8ec8;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(18, 31, 48, 0.26), rgba(18, 31, 48, 0.04), rgba(18, 31, 48, 0.26)),
    linear-gradient(145deg, #e9495b 0%, #c986a2 30%, #6f99dd 76%, #5f8ddb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button {
  font: inherit;
}

.landing {
  position: relative;
  width: min(100vw, 750px);
  aspect-ratio: 750 / 1624;
  min-height: min(100vh, 1624px);
  margin: 0 auto;
  overflow: hidden;
  background-image: url("assets/scnu-admission-design.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  box-shadow: 0 0 5rem rgba(12, 43, 77, 0.2);
}

.sr-only,
.hotspot span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.hotspot {
  position: absolute;
  display: block;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 1.2%;
  appearance: none;
}

.hotspot:focus-visible {
  outline: 0.2rem solid var(--focus-ring);
  outline-offset: 0.18rem;
}

.hotspot-video {
  left: 10.1%;
  top: 26.3%;
  width: 80.1%;
  height: 14.8%;
}

.hotspot-pdf {
  left: 10.1%;
  top: 43%;
  width: 80.1%;
  height: 14.8%;
}

.hotspot-qr {
  left: 10.1%;
  top: 59.8%;
  width: 80.1%;
  height: 14.8%;
}

.hotspot-more {
  left: 32.2%;
  top: 78.5%;
  width: 36%;
  height: 5.8%;
  border-radius: 2%;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.4rem, env(safe-area-inset-bottom));
  z-index: 10;
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.9rem 1.1rem;
  color: #ffffff;
  text-align: center;
  pointer-events: none;
  background: var(--toast-bg);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, 1rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 750px) {
  .landing {
    min-height: auto;
  }
}
