*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* 375 设计宽：1rem = 16px；随屏宽缩放，避免过小/过大 */
  font-size: clamp(14px, 4.267vw, 18px);
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  /* 与设计稿森林绿一致，避免跳转/加载时闪黑 */
  background: #324e43;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

/* —— 设计稿整图 + 热区（宽 100% / 热区用 % 锚定） —— */
.stage {
  position: relative;
  width: 100%;
  max-width: 46.875rem; /* 750px @ 16px */
  /* Height must follow .design — min-height:100dvh breaks % hotspots when image < viewport */
  margin: 0 auto;
  line-height: 0;
  overflow: hidden;
  background: #324e43;
}

.design {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

picture .design,
picture > img.design {
  width: 100%;
  height: auto;
  display: block;
}

.design.is-ready {
  opacity: 1;
}

.hot {
  position: absolute;
  display: block;
  border: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  z-index: 5;
  text-decoration: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.08);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 0.625rem 1.125rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
}

/* 地图选择 sheet（info 页） */
.map-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.map-sheet.show {
  display: flex;
}

.map-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.map-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 46.875rem;
  padding: 0 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  z-index: 1;
}

.map-sheet-item,
.map-sheet-cancel {
  display: block;
  width: 100%;
  border: none;
  background: #fff;
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.2;
  padding: 1rem 0.75rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}

.map-sheet-item:first-child {
  border-radius: 0.75rem 0.75rem 0 0;
}

.map-sheet-item + .map-sheet-item {
  border-top: 1px solid #eee;
}

.map-sheet-panel > .map-sheet-item:nth-last-child(2) {
  border-radius: 0 0 0.75rem 0.75rem;
}

.map-sheet-cancel {
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #0a2a1c;
}
