:root {
  --sky: #4aa7ff;
  --sky-deep: #2e7fd6;
  --cloud: #f3f8ff;
  --orange: #ff8a2b;
  --orange-deep: #f06d10;
  --ink: #1d2a44;
  --panel: rgba(255, 255, 255, 0.92);
  --shadow: 0 12px 32px rgba(18, 56, 110, 0.22);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b1220;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  user-select: none;
  touch-action: none;
  -webkit-text-size-adjust: 100%;
}

/* 首页允许纵向滚动；地图区域单独接管手势 */
.home-screen,
.home-screen * {
  touch-action: pan-y;
}
.home-map-area,
.home-map-area * {
  touch-action: none;
}
.home-cta,
.music-btn,
.zoom-controls button {
  touch-action: manipulation;
}

/* 背景音乐开关：右上角 logo 下方 */
.music-btn {
  position: fixed;
  top: calc(52px + var(--safe-top));
  right: 14px;
  left: auto;
  bottom: auto;
  z-index: 90;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.35);
  color: #1d4f8c;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(30, 90, 160, 0.2);
  cursor: pointer;
}

.music-btn .icon-on { display: none; }
.music-btn .icon-off { display: block; }
.music-btn.is-on .icon-on { display: block; }
.music-btn.is-on .icon-off { display: none; }
.music-btn.is-on {
  color: #fff;
  background: rgba(255, 138, 43, 0.88);
}

.music-btn:active {
  transform: scale(0.94);
}


img {
  display: block;
  max-width: 100%;
  pointer-events: none;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
  background: none;
  color: inherit;
}

.screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hidden {
  display: none !important;
}

/* ========== Loading ========== */
.loading-screen {
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 0%, #7ec4ff 0%, transparent 55%),
    linear-gradient(180deg, #3b97ef 0%, #8ec8ff 45%, #eaf4ff 100%);
}

.loading-inner {
  text-align: center;
  color: #fff;
  padding: 24px;
}

.loading-orb {
  display: block;
  width: 200px;
  height: auto;
  margin: 0 auto 22px;
  transform-origin: center center;
  animation: loading-float 2.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(80, 140, 220, 0.35));
}

@keyframes loading-float {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(-2deg);
  }
  40% {
    transform: translateY(-10px) scale(1.06) rotate(2deg);
  }
  70% {
    transform: translateY(-4px) scale(1.02) rotate(-1deg);
  }
}

.loading-text {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 10px rgba(20, 70, 140, 0.35);
}

.loading-sub {
  margin: 8px 0 22px;
  font-size: 13px;
  opacity: 0.9;
}

.loading-bar {
  width: min(220px, 60vw);
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.loading-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff6c8, #ff8a2b);
  transition: width 0.2s ease;
}

/* ========== Home ========== */
.home-screen {
  z-index: 10;
  background: #5eb6ff;
  touch-action: pan-y;
  overflow: auto;
}

.home-layout {
  height: 100%;
  overflow-x: visible;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
}

/* 整图首页：设计稿为画布（overflow 可见，避免裁切地图） */
.home-hero {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1563 / 3125;
  min-height: 100%;
  overflow: visible;
  background: #5eb6ff;
}

.home-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  z-index: 0;
}

.home-cta {
  position: absolute;
  left: 50%;
  top: 15.6%;
  transform: translate(-50%, -50%);
  width: min(42vw, 220px);
  height: clamp(36px, 4.2vh, 48px);
  border-radius: 999px;
  background: transparent;
  color: transparent;
  font-size: 0;
  box-shadow: none;
  animation: none;
  z-index: 5;
}

.home-cta::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
}

.home-cta:active {
  transform: translate(-50%, -50%) scale(0.98);
}

/* 右下角广告标识 */
.ad-badge {
  position: absolute;
  right: max(10px, 2.5%);
  bottom: max(10px, calc(1.5% + var(--safe-bottom)));
  width: clamp(36px, 9.5vw, 48px);
  height: auto;
  z-index: 8;
  pointer-events: none;
  display: block;
}

/* 领取按钮右侧手指（白手指 + flash 闪烁，尺寸沿用原设定） */
.claim-finger {
  position: absolute;
  z-index: 6;
  width: clamp(26px, 7vw, 34px);
  height: clamp(26px, 7vw, 34px);
  pointer-events: none;
  transform: rotate(-3deg);
  transform-origin: 50% 50%;
  animation: fingerFlash 3s ease infinite backwards;
}

.claim-finger-hand {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

/* 首页内嵌交互地图：按地图比例完整展示，不裁剪 */
.home-map-area {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translateX(-50%);
  width: 100%;
  aspect-ratio: 5018 / 3512;
  z-index: 3;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
  filter: drop-shadow(0 8px 20px rgba(30, 90, 160, 0.2));
}

.home-map-area .map-viewport {
  position: absolute;
  inset: 0;
  flex: none;
  overflow: visible;
  background: transparent;
}

.home-map-area .map-img {
  object-fit: fill; /* 容器比例与地图一致，完整铺满不裁切 */
}

.home-map-area .zoom-controls {
  right: 8px;
  bottom: 8px;
}

/* 手指引导：简洁白描点击手势 */
.map-finger {
  position: absolute;
  right: 12%;
  bottom: 16%;
  width: 58px;
  height: 58px;
  pointer-events: none;
  z-index: 2;
  animation: fingerTap 1.15s cubic-bezier(.34, 1.4, .64, 1) infinite;
  transform-origin: 35% 85%;
}

.map-finger-hand {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

.map-finger-dot {
  display: none;
}

.map-finger-ripple {
  position: absolute;
  left: 10%;
  top: 4%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 138, 43, 0.7);
  background: rgba(255, 138, 43, 0.2);
  z-index: 1;
  animation: fingerRipple 1.15s ease-out infinite;
}

@keyframes fingerTap {
  0%, 100% { transform: translate(0, 0) rotate(-16deg) scale(1); }
  35% { transform: translate(-5px, 11px) rotate(-16deg) scale(0.9); }
  50% { transform: translate(-2px, 5px) rotate(-16deg) scale(0.95); }
  65% { transform: translate(0, 0) rotate(-16deg) scale(1); }
}

@keyframes fingerRipple {
  0%, 28% { transform: scale(0.4); opacity: 0; }
  40% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ========== Map ========== */
.map-screen {
  z-index: 20;
  /* 与封面一致的天蓝底 */
  background:
    radial-gradient(ellipse 90% 55% at 12% 18%, rgba(255, 255, 255, 0.55) 0%, transparent 52%),
    radial-gradient(ellipse 70% 45% at 88% 12%, rgba(255, 255, 255, 0.48) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 70% 78%, rgba(255, 255, 255, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 88%, rgba(255, 255, 255, 0.28) 0%, transparent 50%),
    linear-gradient(180deg, #5eb6ff 0%, #7ec4ff 38%, #a8d8ff 72%, #cfe9ff 100%);
  display: flex;
  flex-direction: column;
}

.map-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 18% at 28% 22%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.25) 40%, transparent 70%),
    radial-gradient(ellipse 36% 16% at 62% 16%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.2) 42%, transparent 72%),
    radial-gradient(ellipse 48% 20% at 78% 58%, rgba(255, 255, 255, 0.45) 0%, transparent 68%),
    radial-gradient(ellipse 40% 18% at 18% 68%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  opacity: 0.95;
}

.map-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + var(--safe-top)) 12px 10px;
  background: linear-gradient(180deg, rgba(46, 127, 214, 0.55), rgba(46, 127, 214, 0.12));
  color: #fff;
  z-index: 5;
  text-shadow: 0 1px 4px rgba(20, 70, 140, 0.35);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(30, 90, 160, 0.18);
}

.icon-btn:active {
  background: rgba(255, 255, 255, 0.42);
}

.map-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-title strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.map-title span {
  font-size: 11px;
  opacity: 0.88;
}

.map-tips {
  position: absolute;
  top: calc(64px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #1d4f8c;
  font-size: 12px;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(30, 90, 160, 0.15);
}

.map-tips.hide {
  opacity: 0;
}

.map-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  z-index: 1;
  background: transparent;
}

.map-viewport.grabbing {
  cursor: grabbing;
}

/* 进入地图时先套默认缩放再显示，避免露出 1 倍再放大 */
.map-screen.map-preparing {
  visibility: hidden;
}

.map-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
  transition: none;
}

.map-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hotspots {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.hotspot {
  position: absolute;
  /* 锚点在手指位置；热区主体向上覆盖插画/站牌 */
  transform: translate(-50%, -70%);
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: transform 0.18s ease, background 0.18s ease;
  z-index: 2;
  pointer-events: none; /* 点击由几何命中处理，避免与拖动手势抢事件 */
}

/* 圆点改为手指引导（参考设计） */
.hotspot::after {
  display: none;
}

/* 地图小手指：flash 闪烁，尺寸沿用原设定 */
.hotspot .hotspot-finger {
  position: absolute;
  left: 50%;
  top: 88%;
  width: clamp(15px, 3.6vw, 20px);
  height: clamp(15px, 3.6vw, 20px);
  margin: 0;
  object-fit: contain;
  pointer-events: none;
  transform: translate(-20%, -55%) rotate(-3deg);
  transform-origin: 50% 50%;
  filter: none;
  display: block;
  opacity: 1;
  animation-name: fingerFlash;
  animation-duration: 3s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  /* animation-delay 由 JS 错开：0 / -0.3 / 0.1 / 0.2 / 0.3s */
}

.hotspot.station .hotspot-finger {
  top: 94%;
}

/* 与参考页 animate.css flash 一致 */
@keyframes fingerFlash {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.hotspot .label {
  display: none !important;
}

.hotspot:active {
  transform: translate(-50%, -70%) scale(1.04);
  background: rgba(255, 255, 255, 0.12);
}

/* 调试模式：?debug=1 只显示热区范围，不显示文字 */
body.debug .hotspot {
  background: rgba(255, 80, 40, 0.28);
  outline: 1px dashed rgba(255, 255, 255, 0.7);
}

body.debug .hotspot.station {
  background: rgba(255, 200, 40, 0.32);
}

.map-legend {
  position: absolute;
  left: 12px;
  bottom: calc(18px + var(--safe-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #1d4f8c;
  font-size: 11px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(30, 90, 160, 0.16);
}

.map-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 4px;
}

.map-legend .dot.city {
  background: #ff8a2b;
}

.map-legend .dot.station {
  background: #ffd24a;
  border-radius: 2px;
}

.zoom-controls {
  position: absolute;
  right: 12px;
  bottom: calc(18px + var(--safe-bottom));
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zoom-controls button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(30, 90, 160, 0.2);
}

.zoom-controls button:active {
  transform: scale(0.95);
}

/* ========== Detail：居中卡片，参考设计稿 ========== */
/* 可用高度：扣除安全区与外边距，保证矮屏也能完整露出底部按钮 */
.detail-screen {
  --detail-pad-y: 16px;
  --detail-pad-x: 18px;
  --detail-max-h: calc(
    100dvh - var(--detail-pad-y) * 2 - var(--safe-top) - var(--safe-bottom)
  );
  position: fixed;
  inset: 0;
  z-index: 100; /* 高于音乐按钮(90)，避免挡住关闭 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--detail-pad-y) var(--detail-pad-x);
  padding-top: calc(var(--detail-pad-y) + var(--safe-top));
  padding-bottom: calc(var(--detail-pad-y) + var(--safe-bottom));
  touch-action: manipulation;
}

@supports not (height: 100dvh) {
  .detail-screen {
    --detail-max-h: calc(
      100vh - var(--detail-pad-y) * 2 - var(--safe-top) - var(--safe-bottom)
    );
  }
}

.detail-screen.hidden {
  display: none !important;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 30, 70, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.detail-screen.open .detail-mask {
  opacity: 1;
}

.detail-panel {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: min(86vw, 360px);
  height: auto;
  max-height: min(var(--detail-max-h), 780px);
  margin: 0 auto;
  border-radius: 18px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.detail-screen.open .detail-panel {
  transform: scale(1);
  opacity: 1;
}

.detail-close {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ff8a2b;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(255, 120, 30, 0.4);
}

.detail-close:active {
  transform: scale(0.94);
}

.detail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  max-height: min(var(--detail-max-h), 780px);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.detail-figure {
  position: relative;
  width: fit-content;
  max-width: 100%;
  max-height: min(var(--detail-max-h), 780px);
  /* 热区相对图片本身定位，避免矮屏缩放后错位 */
  line-height: 0;
}

.detail-scroll img#detailImg,
.detail-figure > img#detailImg {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(var(--detail-max-h), 780px);
  object-fit: contain;
  object-position: center top;
  display: block;
  border-radius: 14px;
}

/* 覆盖设计稿底部领取按钮区域（随图片缩放） */
.detail-cta {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 2.5%;
  height: 12%;
  min-height: 44px;
  max-height: 96px;
  border-radius: 16px;
  background: transparent;
  color: transparent;
  font-size: 0;
  z-index: 2;
}

.detail-cta:active {
  background: rgba(255, 138, 43, 0.18);
}

/* 领取按钮旁手指引导（参考设计） */
.detail-finger {
  position: absolute;
  right: 12%;
  bottom: 2.5%;
  width: clamp(32px, 12%, 48px);
  height: clamp(32px, 12%, 48px);
  z-index: 3;
  pointer-events: none;
  animation: detailFingerTap 1.15s cubic-bezier(.34, 1.4, .64, 1) infinite;
  transform-origin: 30% 80%;
}

.detail-finger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes detailFingerTap {
  0%, 100% { transform: translate(0, 0) rotate(-12deg) scale(1); }
  35% { transform: translate(-4px, 8px) rotate(-12deg) scale(0.9); }
  50% { transform: translate(-2px, 4px) rotate(-12deg) scale(0.95); }
  65% { transform: translate(0, 0) rotate(-12deg) scale(1); }
}

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

/* 跳转提示 / 开放标签面板 */
#jumpPanel {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.jump-panel-mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 24, 0.55);
}

.jump-panel-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 360px);
  max-height: 80vh;
  overflow: auto;
  padding: 18px 16px 14px;
  border-radius: 16px;
  background: #fff;
  color: #1d2a44;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.jump-panel-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.jump-panel-kind {
  margin: 0 0 10px;
  font-size: 13px;
  color: #ff8a2b;
  font-weight: 600;
}

.jump-panel-path {
  display: block;
  padding: 10px;
  border-radius: 10px;
  background: #f3f7fc;
  color: #1d4f8c;
  font-size: 11px;
  line-height: 1.45;
  word-break: break-all;
  white-space: pre-wrap;
}

.jump-panel-tip {
  margin: 10px 0 12px;
  font-size: 12px;
  color: #6a7a94;
  line-height: 1.45;
}

.jump-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jump-panel-btn,
.jump-panel-ok {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #ff8a2b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.jump-panel-btn {
  background: #2e7fd6;
}

/* —— 互跳模拟工具条 —— */
#simulateBar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9999;
  padding: 8px 10px 10px;
  background: rgba(12, 28, 52, 0.94);
  color: #e8f1ff;
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.sim-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sim-bar-env {
  opacity: 0.75;
  font-family: ui-monospace, Consolas, monospace;
}

.sim-bar-envs,
.sim-bar-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

#simulateBar button {
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  background: #2a4a72;
  color: #fff;
}

#simulateBar .sim-bar-envs button.on {
  background: #ff8a2b;
}

#simulateBar .sim-bar-jumps button {
  background: #1f7ad4;
}

.sim-bar-hint {
  margin: 0;
  opacity: 0.7;
  line-height: 1.4;
  font-size: 10px;
}

body.has-simulate-bar #home,
body.has-simulate-bar #loading {
  padding-top: 118px;
}

.weapp-launch-wrap {
  position: relative;
  width: 100%;
  height: 44px;
  margin-top: 4px;
}

.weapp-launch-tag {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 999px;
}

.weapp-launch-tag > * {
  width: 100%;
  height: 100%;
}

/* 盖在领取按钮上的开放标签：点击即出微信系统确认框 */
wx-open-launch-weapp.weapp-launch-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 20;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  border-radius: inherit;
}

wx-open-launch-weapp.weapp-launch-overlay > * {
  width: 100%;
  height: 100%;
  display: block;
}

/* Desktop preview */
@media (min-width: 768px) {
  body {
    background: #d7ecff;
  }

  .home-screen,
  .map-screen,
  .loading-screen {
    left: 50%;
    width: min(430px, 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.45);
  }

  .detail-screen {
    --detail-max-h: calc(
      100dvh - var(--detail-pad-y) * 2 - var(--safe-top) - var(--safe-bottom)
    );
    left: 50%;
    width: min(430px, 100%);
    transform: translateX(-50%);
  }

  .detail-panel {
    width: fit-content;
    max-width: min(86%, 340px);
    max-height: min(var(--detail-max-h), 720px);
  }

  .detail-scroll,
  .detail-figure,
  .detail-scroll img#detailImg,
  .detail-figure > img#detailImg {
    max-height: min(var(--detail-max-h), 720px);
  }
}
