/* 微沙盘 · 真机预览页样式
 * ------------------------------------------------------------------
 * 这一页是全屏的，尺寸由手机自己决定（编辑器里那个手机壳是 375×812 模拟的，
 * 这里是真机的真实尺寸）。
 *
 * 页面内部各元素的样式一律来自 pano-view.css —— 和编辑器的预览共用同一份。
 * 所以这一页只负责「铺满屏幕」和「状态提示」，不重复定义任何画面元素。
 * ------------------------------------------------------------------ */

:root {
  --brand: #3b6ef5;   /* 电话按钮底色，与编辑器一致 */
  --gold: #c39c7c;
}

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

html, body { height: 100%; overflow: hidden; background: #0b0c0f; }
body {
  font: 400 13px/1.6 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1a1c21;
  overscroll-behavior: none;   /* 关掉下拉刷新，拖动画面时别把页面拉走 */
}

.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: #0b0c0f;
  /* 刘海屏 / 底部横条：内容和安全区对齐，别被挡住 */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* canvas 上禁掉浏览器手势，不然手指拖画面会把整页带着滚 */
#panoCanvas { touch-action: none; }

/* ---------- 连接状态条（首次加载 / 电脑改完同步时冒一下） ---------- */
.pv-bar {
  position: fixed; left: 50%; z-index: 30;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px;
  max-width: 88vw;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px; line-height: 1.35;
  color: #fff;
  background: rgba(0, 0, 0, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  transition: opacity .35s;
}
.pv-bar.hide { opacity: 0; pointer-events: none; }
.pv-bar .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #35d07f; flex: none;
}
.pv-bar.warn .dot { background: #ffb020; }
.pv-bar.bad .dot { background: #ff5a5a; }

/* ---------- 「试用版」角标 ----------
 * 只出现在免费试用链接上。位置挑了很久：
 *   · 不能放底部（挡住底栏菜单）
 *   · 不能放正中（挡住全景主体和热点）
 *   · 品牌栏右侧最合适 —— 品牌栏本来就是「这楼盘叫什么」那一条，角标贴着它读者最自然，
 *     而且品牌栏每次 drawAll 都会 innerHTML 重写，所以这个元素挂在 .screen 上、靠定位压过去 */
.trial-badge {
  position: fixed; z-index: 25;
  top: calc(env(safe-area-inset-top, 0px) + 9px);
  right: 10px;
  display: flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px; line-height: 1.5;
  color: #4a3208;
  background: linear-gradient(180deg, #ffe8a8, #ffd166);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  pointer-events: none;   /* 绝不能挡住下面的按钮 */
}
.trial-badge b { font-weight: 600; }
.trial-badge span { opacity: .78; }

/* 加载失败时的整屏提示（比如预览码过期、被当成普通链接打开） */
.pv-fatal {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  padding: 32px;
  background: #0b0c0f;
  color: #e8ebf2;
  text-align: center;
}
.pv-fatal b { font-size: 16px; font-weight: 500; }
.pv-fatal p { font-size: 13px; line-height: 1.7; color: #8f97a8; max-width: 300px; }
.pv-fatal .ico { font-size: 30px; opacity: .5; }
