:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #eef2f7;
}

* {
  box-sizing: border-box;
}

html {
  background: #eef2f7;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #eef2f7;
}

button {
  font: inherit;
}

.phone-canvas {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 32px rgb(42 70 98 / 12%);
}

.page-stage {
  position: relative;
  width: 100%;
}

.page-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hotspot:active,
.hotspot.is-pressed {
  background: rgb(22 119 255 / 18%);
}

.hotspot:focus-visible {
  outline: 2px solid #1677ff;
  outline-offset: -2px;
}

.loading,
.error-state {
  margin: 0;
  padding: 48px 24px;
  color: #526071;
  text-align: center;
}

.error-state button {
  margin-top: 16px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #1677ff;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));
  max-width: min(78vw, 320px);
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgb(27 35 48 / 88%);
  box-shadow: 0 8px 24px rgb(10 24 42 / 18%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .toast {
    transition: none;
  }
}
