/* 微沙盘 · 画面渲染共享样式
 * ------------------------------------------------------------------
 * 这份 CSS 同时被两个页面引用：
 *   ① editor/index.html  编辑器的右侧「手机预览」
 *   ② scan.html          手机扫码打开的真机预览页
 *
 * 为什么要共享：客户扫码看到的效果，必须和编辑里看到的一模一样。
 * 只要样式抄成两份，早晚会漂 —— 所以真机页是直接引这一份。
 *
 * 【数值来源】全部来自原案例 krpano 定义，不是拍脑袋定的：
 *   assets/zplus_pages/download2/vr/krpano/krpano2.xml
 *     wbkp_hotspotstyle_group      → .cat-pill
 *     wbkp_hotspotstyle_label_text → .hot-label
 *     wbkp_hotspotstyle_label_line → .hot-line
 *   主题色通过「胶囊底边那 1px 色边」体现（krpano 的 bgshadow "0 1 0 <色> 1"）
 * ------------------------------------------------------------------ */

/* 页面容器需要自己提供：--brand（电话按钮底色）、--gold（选中态描边） */

/* ================= 顶部品牌栏 ================= */
.ph-brand {
  /* 40px = 原案例 .wbsa_content 的高度（common/saas/saas.css: `height: 40px`，
     整份 CSS 里**没有任何媒体查询**，所以全平台都是 40）。我们原来写 56px，
     比原版高 40%，在手机上硬生生吃掉一截全景高度（客户 2026-09-24 反馈
     「上半部分被占据了」）。内部元素（logo 30 / 两行文字 32 / 拨号按钮 30）
     都塞得进 40，所以只动这一个数就够。 */
  height: 40px; flex-shrink: 0;
  display: flex; align-items: center; gap: 9px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.ph-brand .logo {
  width: 30px; height: 30px; border-radius: 5px; flex-shrink: 0;
  background: #f3f4f7; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ph-brand .logo img { width: 100%; height: 100%; object-fit: contain; }
.ph-brand .txt { flex: 1; min-width: 0; }
.ph-brand .nm {
  font-size: 15px; font-weight: 500; color: #1a1c21; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 副标题 = 销售电话。对齐原案例 .wbsa_userinfo_phone：12px × scale(.9) ≈ 10.8px、#555、正常字距
   （不再用给英文大写准备的 letter-spacing，否则数字会被拉开、还容易被截断） */
.ph-brand .sub { font-size: 10.8px; color: #555; }
.ph-brand .tel {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand, #1c93fa);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  text-decoration: none;   /* 它现在是个 <a href="tel:"> 一键拨号链接 */
}
.ph-brand .tel svg { width: 15px; height: 15px; fill: #fff; }

/* ================= 全景舞台 ================= */
.ph-stage { flex: 1; position: relative; overflow: hidden; background: #0b0c0f; }
/* 用 id 选择器（不是 class）：编辑器和真机页里的画布 id 都叫 panoCanvas，
   这样两边共用同一条规则，不改任何一方的 HTML。 */
#panoCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#panoCanvas:active { cursor: grabbing; }

/* ---------- 左上角分类 ----------
 * 黑底 50% + 白字 12px + 圆角 12 + 底边 1px 主题色（颜色就靠这条边体现）
 */
.ph-cats {
  position: absolute; left: 10px; top: 22px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 5;
}
.cat-pill, .hot-label {
  display: inline-flex; align-items: center;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border-radius: 12px;
  font-size: 12px; line-height: 16px;
  white-space: nowrap;
  /* 主题色 = 胶囊底边的那 1px 色边（krpano 的 bgshadow "0 1 0 <color> 1"） */
  box-shadow: 0 1px 0 0 var(--c, #1c93fa);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
  padding: 1px 8px;
}
.cat-pill { cursor: pointer; transition: background .15s; }
/* 选中态：品牌蓝实底（案例 wbkp_hotspot_show_group 里写死 0x1c93fa）。
   底边那条 1px 分类色线保持不变，所以选中后仍看得出属于哪一类 */
.cat-pill.on { background: #1c93fa; }
/* 真机页 / 只读模式：分类照样可点（切筛选），只是不要 hover 反馈 */
.pv-readonly .cat-pill { cursor: default; }

/* ---------- 标注层 ---------- */
.ph-hots { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6; }
/* 图片型热点（LOGO）独立一层：位置由浮动动画每帧刷新，不跟着标注层重建，
   层级比标注高 —— 案例里 logo 的 zorder=10，标注是默认 0 */
.ph-hots-img { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 7; }

/* 一个标注 = 文字胶囊（上） + 引线（下），整体底边中点落在球面点上 */
.hot {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.hot-label { padding: 1px 5px; pointer-events: auto; cursor: grab; }
.hot.dragging .hot-label { cursor: grabbing; }
/* 引线：1px 白线，长度 = foot - 4，胶囊与线之间留 4px（对应 foot 的定义） */
.hot-line {
  width: 1px; flex: none;
  margin-top: 4px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 2px rgba(0, 0, 0, .55);
}
/* 球面点上的小圆点（案例没有，编辑器里要有，否则不知道锚在哪） */
.hot-anchor {
  position: absolute; left: 50%; bottom: 0;
  width: 5px; height: 5px; margin-left: -2.5px; margin-bottom: -2.5px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.hot.on .hot-label { outline: 2px solid var(--gold, #d8a33a); outline-offset: 1px; }
.hot.on .hot-anchor { background: var(--gold, #d8a33a); }
/* 真机页：标注只做展示，不可拖 */
.pv-readonly .hot-label { cursor: default; }
.pv-readonly .hot-anchor { display: none; }
/* 图片型热点同理：不挡手势拖动，圆点也不画（案例本身就没有） */
.pv-readonly .hot-pin { pointer-events: none; cursor: default; }
.pv-readonly .hot-pin-dot { display: none; }

/* ---------- 图片型热点（项目 LOGO 图钉） ----------
   案例 hotspotstyle_image：type=image + edge=bottomcenter —— 图片底边中点贴住球面点。
   但案例那条 1px 引线是烧在 logo.png 里的（改不了长短、底端也没有圆点），
   所以这里拆成「卡片图 + 引线 + 圆点」三段，跟普通标注 .hot 用同一套模型。 */
.hot-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
  /* 编辑器里整块可点可拖；真机页由 .pv-readonly 覆盖成 none（见下方） */
  pointer-events: auto;
  cursor: grab;
}
.hot-pin.dragging { cursor: grabbing; }
.hot-pin .hot-img {
  display: block;
  pointer-events: none;          /* 拖动落在整块上，别被 <img> 自带的拖拽抢走 */
  user-select: none;
  -webkit-user-drag: none;
}
/* 引线：跟普通标注是同一根线。高度 = foot × 0.8。
   注意卡片浮动时引线会被 floatTicker 逐帧改高 —— 圆点始终钉在球面点上。 */
.hot-pin-line {
  width: 1px; flex: none;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 2px rgba(0, 0, 0, .55);
}
/* 球面锚点上的圆点（案例没有，编辑器里要有，否则不知道锚在哪） */
.hot-pin-dot {
  position: absolute; left: 50%; bottom: 0;
  width: 5px; height: 5px; margin-left: -2.5px; margin-bottom: -2.5px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, .55);
}

/* ---------- 右侧工具条（陀螺仪 / 自动旋转） ----------
   位置照抄案例 .wbkp_gyro/rotate_style_ctrl_button：
   右边缘 x=5、陀螺仪 y=330、自动旋转 y=290、按钮 32×32。
   注意案例的 y 是「距屏幕底」——它的 krpano 铺满整屏；我们的舞台上面还有品牌栏、
   下面还有 58px 底栏，所以要减掉底栏：290-58=232，这样离屏幕底还是 290px。
   容器高 32+8+32=72。 */
.ph-rightbar {
  position: absolute; right: 5px; bottom: 232px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 5;
}
.rb-btn {
  display: block; width: 32px; height: 32px;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.rb-btn img { width: 32px; height: 32px; display: block; }

/* ================= 底部菜单 ================= */
.ph-menu {
  height: 58px; flex-shrink: 0;
  display: flex; align-items: center;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .06);
}
.mi {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer;
}
.mi img { width: 26px; height: 26px; object-fit: contain; }
.mi span {
  font-size: 11px; color: #787878; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.mi.on span { color: #1c93fa; }

/* ================= 「更多」面板 =================
   案例 .wbui_firstmenu：白底、上圆角 10、贴着底栏、height 0→110 + opacity 0→1，
   transition 0.6s（菜单自己滑出来，不是弹窗）。
   我们的底栏是 58px，所以面板贴在它上面。 */
.more-panel {
  position: absolute; left: 0; right: 0; bottom: 58px;
  background: #fff;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 2px 0 #666;
  height: 0; opacity: 0; overflow: hidden;
  transition: height .6s, opacity .6s;
  z-index: 9;
}
.more-panel.on { height: 88px; opacity: 1; }

.mp-row { display: flex; justify-content: center; padding: 11px 0 0; }
.mp-btn {
  width: 68px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.mp-btn img { width: 26px; height: 26px; display: block; }
.mp-btn span { font-size: 11px; color: #787878; white-space: nowrap; }
.mp-btn.on span { color: #1c93fa; }

/* ================= 项目概况（上下翻页） =================
   案例 dzls2：一屏一页、纵向滑动切换，每页 = 固定页 jpg + 活动页 png，两层都铺满整屏，
   活动页带 1s 入场动画。
   铺满方式用 object-fit:cover（案例是硬拉伸 width:100vw/height:100vh ——
   素材比例 0.635 放到手机上会被纵向拉长约 37%，肉眼很明显）；
   要把某页做回案例那种硬拉，给它加 fit:'fill' 即可。 */
/* 项目概况要一屏一页地整屏翻，所以宿主不能再滚、还要当定位参照。
   .qw-host 本身是 flex:1 + overflow-y:auto（给区位页那种长页面用的），
   多一个 class 只在这一页覆盖掉，不碰区位页。 */
.qw-host.pg-fixed { position: relative; overflow: hidden; }
.gk-page { position: absolute; inset: 0; overflow: hidden; }

.gk {
  position: absolute; inset: 0;
  overflow: hidden; background: #0b0b0c;
  touch-action: none;              /* 手势归自己管，别让外层跟着滚 */
}
.gk-track {
  position: absolute; inset: 0;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.gk.drag .gk-track { transition: none; }

.gk-slide { position: absolute; left: 0; width: 100%; height: 100%; overflow: hidden; }
.gk-fixed, .gk-motion {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* 四种入场动画，keyframes 照抄案例 pageslider.css 的 wbps_* */
.gk-motion.run[data-effect="fadeInUp"] { animation: gkFadeInUp 1s both; }
.gk-motion.run[data-effect="fadeInDown"] { animation: gkFadeInDown 1s both; }
.gk-motion.run[data-effect="fadeInLeft"] { animation: gkFadeInLeft 1s both; }
.gk-motion.run[data-effect="fadeInRight"] { animation: gkFadeInRight 1s both; }

@keyframes gkFadeInUp { 0% { opacity: 0; transform: translate3d(0, -100%, 0); } 100% { opacity: 1; transform: none; } }
@keyframes gkFadeInDown { 0% { opacity: 0; transform: translate3d(0, 100%, 0); } 100% { opacity: 1; transform: none; } }
@keyframes gkFadeInLeft { 0% { opacity: 0; transform: translate3d(-100%, 0, 0); } 100% { opacity: 1; transform: none; } }
@keyframes gkFadeInRight { 0% { opacity: 0; transform: translate3d(100%, 0, 0); } 100% { opacity: 1; transform: none; } }

/* 只在第一页露一下的翻页提示，滑过就撤（案例没这个，是为了第一次用的人加的） */
.gk-hint {
  position: absolute; left: 50%; bottom: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: #fff; font-size: 11px; letter-spacing: 1px;
  transition: opacity .5s;
  pointer-events: none;
  animation: gkHintFloat 1.6s ease-in-out infinite;
}
/* 提示要压在任意底图上。项目概况第一页是米白纸纹，原来那版纯白字 + 白色竖线
 * 在上面等于隐形，所以文字自带一层半透明深色胶囊，箭头也改成深色加浅色描边，
 * 深底浅底都看得见。 */
.gk-hint span {
  padding: 5px 13px; border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.gk-hint i {
  width: 2px; height: 16px; border-radius: 1px;
  background: rgba(0, 0, 0, .34);
  box-shadow: 0 0 6px rgba(255, 255, 255, .75);
}
.gk-hint.off { opacity: 0; animation: none; }
@keyframes gkHintFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -5px); }
}

/* ================= 箭头跳转热点（景观鉴赏这种多场景漫游） =================
   数值全部来自案例 krpano2.xml：
     <style name="hotspotstyle_arrow" mode="forward" textshow="true"
            url="hostspot.png" edge="center"/>
     <action name="wbkp_cycle_animation"> crop = 128*方向 | 128*帧号 | 128 | 128
       帧率 60fps、共 25 帧 —— 也就是 hostspot.png 里「列=方向、行=帧」，
       列0 就是 forward。我们把它预先切成 assets/arrow-forward.png（128×3200）。
   edge=center → 64×64 的帧盒子中心落在球面点上；文字标签 edge=bottom、oy=0
   → 文字胶囊底边也落在球面点上。
   【别被「重叠」误导】箭头图元在 128 帧里只占下半部（实测 alpha>64 的 bbox 是
   x15~113、y63~108），按 0.5 缩放到 64 盒子里就是「贴着盒子中线往下 22px」，
   所以画面上看到的白色双箭头正好挂在球面点下方，胶囊(底边=球面点)就贴在它上方 ——
   案例实测：胶囊底 y≈410、箭头可见顶 y≈415，两者不重叠。 */
.hot-arrow { position: absolute; pointer-events: none; }
.hot-arrow-icon {
  position: absolute; left: 0; top: 0;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;   /* 中心对准球面点 */
  background: url(assets/arrow-forward.png) no-repeat 0 0;
  background-size: 64px 1600px;                          /* 25 帧 × 64px（2x 源图） */
  animation: hotArrowFlow .4167s steps(25) infinite;     /* 25 帧 ÷ 60fps */
  pointer-events: auto; cursor: pointer;
}
/* 逐帧跳：位移正好一张图的高度，steps(25) 的 25 个落点就是第 0~24 帧 */
@keyframes hotArrowFlow {
  from { background-position: 0 0; }
  to   { background-position: 0 -1600px; }
}
/* 文字胶囊：案例 wbkp_hotspotstyle_arrow_text
   （黑底 50% + 白字 12px + 圆角 5 + 下方 1px 黑影） */
.hot-arrow-label {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -100%);
  padding: 1px 4px; border-radius: 5px;
  background: rgba(0, 0, 0, .5);
  color: #fff; font-size: 12px; line-height: 16px;
  white-space: nowrap;
  text-shadow: 0 1px 0 #000;
  pointer-events: auto; cursor: grab;
}
.pv-readonly .hot-arrow-label { cursor: default; }
.pv-readonly .hot-arrow-icon { cursor: default; }

/* ================= 场景列表（左下角） =================
   案例 wbkp_thumbs_*：左下角一个「层叠」图标（buttons.png crop 1052|28|72|72，
   显示 40×40、alpha 0.8），点开展成一条白底圆角缩略图带。
   白条：宽 98%（左右各留 1%）、高 70、圆角 2、纯白无投影；
   项 80×60 圆角 2 底色 #888，首项左边距 5、项间距 5（案例 add(width,85)）；
   图 76×56 贴 (2,2)；名称条贴着项底、高 20、白字 12px、黑底 0.6。
   当前场景的项底和名称条都换成品牌蓝 0x1c93fa（案例原话）。
   垂直位置：案例底栏菜单占视口底 6~56px，白条底边在 62px →
   也就是「比底栏菜单顶边高 6px」。我们的 .ph-stage 底边就是底栏顶边，所以 bottom:6px。 */
.sc-bar {
  position: absolute; left: 1%; right: 1%; bottom: 6px;
  height: 70px; box-sizing: border-box; padding: 5px;
  background: #fff; border-radius: 2px;
  display: flex; gap: 5px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  z-index: 8;
}
.sc-bar::-webkit-scrollbar { display: none; }
.sc-bar.off { display: none; }
.sc-item {
  position: relative; flex: none;
  width: 80px; height: 60px;
  background: #888; border-radius: 2px;
  overflow: hidden; cursor: pointer;
}
.sc-item img {
  position: absolute; left: 2px; top: 2px;
  width: 76px; height: 56px; display: block;
  /* 必须 fill：案例 wbkp_thumbs_style_item_image 是 krpano type="image" + 显式宽高，
     也就是「硬拉到 76×56」。源 thumb.jpg 是 240×240 方图，案例就这么压扁显示。
     实测比对（案例截图 vs 两种渲染，平均绝对差）：fill 8.2 / cover 27.7 → fill 胜。 */
  object-fit: fill; -webkit-user-drag: none;
}
.sc-item span {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 20px; line-height: 20px;
  font-size: 12px; color: #fff; text-align: center;
  background: rgba(0, 0, 0, .6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-item.on { background: #1c93fa; }
.sc-item.on span { background: #1c93fa; }

/* 左下角那个「显示全景列表」的图标。
   案例 wbkp_thumbs_style_ctrl_container：align=leftbottom、x=2、y=底栏顶+16、40×40，
   wbkp_thumbs_style_ctrl_button：crop 1052|28|72|72 按 40×40 显示、alpha 0.8、无投影。
   （那张 72×72 里图标本体只占 44×40，所以实际画出来约 24×22 —— 案例就是这个大小。）
   两态：列表收起 → 图标可见（给用户点开）；列表展开 → **图标隐藏**（案例把容器高度收成 0
   把它裁掉）。案例收起列表靠「碰一下画面」，不需要图标关，所以图标只承担「打开」。 */
.sc-toggle {
  position: absolute; left: 2px; bottom: 16px;
  width: 40px; height: 40px; padding: 0; border: 0;
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 8;
}
.sc-toggle img {
  width: 40px; height: 40px; display: block;
  opacity: .8;
}
.sc-toggle.up { display: none; }

/* ---------- 户型赏析（落位页 / 详情页 / 3D 轴测）----------
   结构照案例 huxingjianshang1：一屏纵向叠两页 —— **落位在下、详情在上**，
   手指往下滑把上方的详情拉出来（=「下滑查看户型详情」），往上滑回落位。
   两页各自能左右滑换户型，两个横向位置双向同步。
   案例给的是 width:100vw + height:100vh 且不写 object-fit，即硬拉伸，这里照抄。 */

.hx {
  position: absolute; inset: 0; overflow: hidden; background: #fff;
  /* 手势全归自己管（横滑换户型 / 下滑看详情）。
     少了 touch-action:none，手机上按住拖会被浏览器当成页面滚动，
     它会在中途派发 pointercancel 把拖动打断 —— 表现就是滑不动或滑一半弹回，
     而且 headless 里用脚本派发事件测不出来（脚本不经过浏览器的滚动判定）。
     项目概况 .gk 一直是这个写法，这一页不能少。 */
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}

/* track 高 200%、每页占 50%；默认 translateY(-50%) = 显示下半「落位页」
   （案例 initialSlide: 1，进来就停在落位页，不是详情页） */
.hx-track {
  position: absolute; left: 0; top: 0; width: 100%; height: 200%;
  transform: translateY(-50%);
  transition: transform .34s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.hx.dragging .hx-track { transition: none; }      /* 跟手时不能有过渡 */

.hx-page {
  position: absolute; left: 0; width: 100%; height: 50%;
  overflow: hidden; background: #fff;
}
.hx-page[data-hx-page="dt"] { top: 0; }
.hx-page[data-hx-page="ov"] { top: 50%; }

.hx-bg {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: fill; pointer-events: none; user-select: none;
}

.hx-cutbox { position: absolute; inset: 0; overflow: hidden; }

/* 户型图 / 落位图（透明 PNG）横排成一条轨道，左右拖动位移 = 换户型。
   用 background 而不是 <img>：没给 src 的 img 在部分浏览器会出碎图标，
   background 天生没这个问题，透明通道一样能用。 */
/* ★ width:100% 不能省。
   `.hx-cuts` 是 absolute 定位，只给 left/top/height 的话宽度会按 **shrink-to-fit**
   算 —— 而它的内容 `.hx-cut` 是 `flex:0 0 100%`，那个 100% 又相对容器宽度，
   循环依赖下 CSS 会把它退化成 auto → 内容宽 0 → 整条轨道宽度塌成 0，
   **透明图一个字都看不见**（底图是独立元素，所以只有底图正常，特别能骗过眼睛）。
   实测：`getBoundingClientRect().w = 0` 而 `translateX` 位移完全正确，
   所以只读「位移/序号」这类状态出口是查不出来的 —— 必须量元素实际尺寸。 */
.hx-cuts {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  display: flex;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.hx.dragging .hx-cuts { transition: none; }
.hx-cut {
  flex: 0 0 100%; min-width: 0;
  background-repeat: no-repeat; background-position: center;
  background-size: 100% 100%;          /* fill：案例原样的硬拉伸 */
  pointer-events: none;
}
.hx-cut[data-fit="cover"]   { background-size: cover; }
.hx-cut[data-fit="contain"] { background-size: contain; }

/* 右上角户型胶囊。案例 .wbht_slider_menu：left 43.2vw、top 10.8vh、三个各 17vw 宽
   → 这里 left 43.2% / right 5.8%，三个 flex:1 正好各 17%。 */
.hx-pills {
  position: absolute; left: 43.2%; right: 5.8%; top: 10.8%;
  display: flex; z-index: 3;
}
.hx-pill {
  flex: 1; min-width: 0;
  appearance: none; cursor: pointer;
  padding: 5px 2px; border-radius: 0;
  background: rgba(0, 0, 0, .3); color: #fff;
  border: 1px solid rgba(255, 255, 255, .55); border-left: 0;
  font-size: 12px; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hx-pill:first-child { border-left: 1px solid rgba(255, 255, 255, .55); border-radius: 5px 0 0 5px; }
.hx-pill:last-child  { border-radius: 0 5px 5px 0; }
.hx-pill.on { background: var(--hx-acc, #b41a1b); border-color: var(--hx-acc, #b41a1b); }

/* 「进入样板间」「3D 轴测图」。位置由数据给（案例 left:73vw，纵坐标两页不同），
   高度按案例原按钮 361×91 的比例走，客户改字号不会把按钮撑变形。 */
.hx-op {
  position: absolute; z-index: 3;
  appearance: none; border: 0; cursor: pointer; padding: 0;
  aspect-ratio: 361 / 91;
  border-radius: 5px;
  font-size: 12px; line-height: 1.2; text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
}
.hx-op:active { filter: brightness(.9); }
.hx-op[hidden] { display: none; }

/* bottom 由 4.5% 收到 2.6%（客户 2026-09-23 报「挡住底图了」）。
   为什么原来会「挡」：底图是硬拉伸铺满整页的，所以图上的位置可以用比例算死 ——
   落位底图 overview-bg.jpg 的内容到 y=1886/2016 = **93.55%** 就结束了，下面是纯白留白；
   而 4.5% 时文字盒占 92.75%~95.50%，**正好压在 93.55% 那条内容下沿上**（字头压住图）。
   2.6% → 文字盒 94.6%~97.4%，字头离图约 1.7% 页高（真机约 12px），下面还剩 18px 才到页底。
   ⚠️ 详情页底图 detail-bg.jpg 内容到 90.92%，比落位页更早结束，同一条规则不会误伤。 */
.hx-hint {
  position: absolute; left: 0; right: 0; bottom: 2.6%;
  text-align: center; font-size: 12px; color: rgba(0, 0, 0, .4);
  pointer-events: none;
}

/* ---------- 3D 轴测查看器 ----------
   视频当「可拖动的 3D 旋转」用：拖动改 currentTime，松手停住。
   底色用案例轴测页背景 hxjs_bg.jpg 的 PIL 实测平均色 (248,248,248)。 */
.hx-axo {
  position: absolute; inset: 0; z-index: 9;
  background: #f8f8f8;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hx-axo.off { display: none; }
.hx-axo-v {
  width: 100%; height: 100%; object-fit: contain;
  pointer-events: none;               /* 拖拽交给外层容器（跟案例把手势绑在容器上一致） */
  user-select: none; -webkit-user-select: none;
}
.hx-axo-hint {
  position: absolute; left: 0; right: 0; bottom: 7%;
  text-align: center; font-size: 12px; color: rgba(0, 0, 0, .38);
  pointer-events: none;
  transition: opacity .2s ease;
}
/* 视频还在取（几 MB，移动网络要一两秒）——这时候拖动是没反应的，
   所以把提示文字说清楚并加深一点，别让客户以为坏了。
   等 metadata 到了由 _bindAxo 把 busy 摘掉、文字换回「按住拖动，转着看」。 */
.hx-axo-hint.busy { color: rgba(0, 0, 0, .62); }
/* 自动转完一圈 = 「轮到你拖了」。这一句是主动引导手动操作，要看得清：
   加深 + 加粗（客户 2026-09-24 点名要的"鼓励手动拖动"）。 */
.hx-axo-hint.ready { color: rgba(0, 0, 0, .58); font-weight: 500; }
/* 客户已经上手了，提示就别再占着画面 */
.hx-axo.dragging .hx-axo-hint { opacity: 0; }
.hx-axo-back {
  position: absolute; right: 4%; top: 4%;
  appearance: none; border: 0; cursor: pointer;
  padding: 7px 15px; border-radius: 15px;
  background: rgba(0, 0, 0, .42); color: #fff; font-size: 12.5px;
}
.hx-axo-back:active { filter: brightness(.9); }
