/* 拓锦云 3DVR 全景 · 开场引导页 (tj-home)
   作用域全部限定在 #tjHome 内，不污染包内原有样式。
   配置区见 assets/tj-home.js 顶部 TJ_HOME_CONFIG。 */

#tjHome {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  overflow: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

#tjHome.tj-home-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}

/* 底图：默认直接露出 krpano 的实时全景画面，只压一层暗色遮罩
   第一层较深（把包内原生 UI 沉下去），第二层变浅（露出全景当大图） */
#tjHome .tj-home-mask {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 15, 26, .88);
  transition: background-color 1s ease;
}

#tjHome.tj-step2 .tj-home-mask {
  background: rgba(9, 15, 26, .5);
}

#tjHome.tj-home-imgmode .tj-home-mask {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#tjHome .tj-home-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  box-sizing: border-box;
}

/* logo：两层完全同位置，切换时不跳动（720云同款：徽标+大字名称）
   ★进场 = 三段「依次、从 0 缓慢放大」，且**前一段快收尾时下一段就要接上**（徐哥 09-27 二次校正：
       不是"上一个出完才出下一个"，要互相搭接、一气呵成）：
       ① 徽标图  0.20s 起，1.9s 放大出来（0.20 → 2.10s）
       ② 四个字  1.10s 起，1.9s 放大出来（徽标过半就接上，1.10 → 3.00s）
       ③ 开始播放钮 2.80s 起，1.9s 放大出来（四个字过半就接上，2.80 → 4.70s），4.70s 起呼吸
   注意：动画必须落在「图 / 字」两个子元素上，不能挂在 .tj-home-logo 上
   —— 挂父层会一次性把两者一起淡入，就成了徐哥说的"一次性快速出来"。 */
#tjHome .tj-home-logo {
  position: absolute;
  left: 0;
  right: 0;
  top: 4%;
  text-align: center;
}

/* ① 徽标：从 0 缓慢放大 */
#tjHome .tj-home-logo img {
  height: 132px;   /* 原图 278×280，132px 仍在原始像素内，不糊（DPR1/2 屏锐利） */
  width: auto;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
  animation: tjGrowIn 1.9s cubic-bezier(.22, .68, .24, 1) .2s both;
}

/* 通用「从 0 缓慢放大」关键帧（徽标图 / 四个字共用） */
@keyframes tjGrowIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 名称：书法体 + 鎏金渐变（720云书法校名的气势，配色贴拓锦银灰科技感） */
#tjHome .tj-home-logo-text {
  margin-top: 2px;
  font-family: "STXingkai", "华文行楷", "STKaiti", "华文楷体", "KaiTi", "楷体",
               "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 16px;
  text-indent: 16px; /* 抵消最后一字的字距，保证视觉居中 */
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 34%, #b7c4d4 56%, #f2f6fb 78%, #96a5b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .65)) drop-shadow(0 0 22px rgba(190, 215, 245, .28));
  /* ② 四个字：徽标放大过半就接上（搭接，不等徽标出完），从 0 缓慢放大 */
  animation: tjGrowIn 1.9s cubic-bezier(.22, .68, .24, 1) 1.1s both;
}

#tjHome .tj-home-logo-sub {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, .7);
}

/* ---- 中部文案：从放大收缩到正常（720云式：标题居中 + 正文衬线小字多行） ---- */
#tjHome .tj-home-desc {
  position: absolute;
  left: 50%;
  right: auto;
  top: 55%;
  width: min(88vw, 760px);
  box-sizing: border-box;
  padding: 26px 30px 24px;
  border-radius: 18px;
  /* 磨砂玻璃卡片：把正文从「白字直接压在场景上」改成有底衬的清晰卡片，
     顺带挡住原包水印从字间穿出来 */
  background: rgba(10, 18, 32, .55);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  /* ★ 徐哥 09-27 五次校正：收缩还要更慢（"缓慢的收缩要柔和，要让人看起来舒服" → "收缩还要慢"）。
     柔和三要素（幅度小 / 时长久 / 两端速度软）保持，时长再拉一档：
       ① 幅度：**1.28 倍 → 1.00 倍**（幅度不再放大，只拉长时间）
       ② 时长：2.8s → 4.2s → **6.0s**
       ③ 缓动：`cubic-bezier(.3,.08,.25,1)` 慢起—匀走—极缓收（终点斜率 0，最后一段几乎贴着地面滑到位）
     历史：.19,.8,.22,1（强 ease-out，前 1/4 走完 85%，被否）→ 2.8s → 4.2s → 本版 6.0s。
     透明度 3.0s ease 先到位：卡片先看清，才看得见它一直在慢慢缩。
     ★2026-09-28 徐哥定：动画改向 —— 不再「从大缩小」，改为「从小(0.3)缓慢长大」：
     起始 scale(0.3)（真 0 有空窗期，前 1 秒看不见反而突兀）、时长 4s、
     缓动用 logo 同款慢曲线（慢起缓收，终点速度 0，不突兀）；
     透明度 3s ease 保留：卡片先看清，才看得见它慢慢长大。 */
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  text-align: center;
  transition: transform 4s cubic-bezier(.22, .68, .24, 1), opacity 3s ease;
  pointer-events: none;
}

#tjHome.tj-step2 .tj-home-desc {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

#tjHome .tj-home-desc-title {
  font-family: "STZhongsong", "华文中宋", "SimSun", "宋体", "STSong", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 6px;
  text-indent: 6px;
  color: #f5eeda;
  margin-bottom: 9px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}

/* 正文：720云同款衬线宋体呈现；有卡片底衬后去掉描边阴影（原先叠在实景上会发糊发脏）
   ★09-27 徐哥二次校正：行距、字距都太大 → 整块文案被撑高，上下互相压着。
     · 行距 1.92 → 1.50（紧凑但不挤）
     · 字距 .5px → 0：宋体自带字身框，再叠 .5px 字距一整行就多出十几像素，
       这才是"字和字距离大"的主因（不是两端对齐本身）
     · 两端对齐保留：长段落里每行只差一两个字，均摊到字缝 < 1px，肉眼无感；
       换成居中会让每行左右参差、块状感尽失 */
#tjHome .tj-home-desc-text {
  font-family: "SimSun", "宋体", "NSimSun", "STZhongsong", "华文中宋", serif;
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(243, 236, 219, .97);
  max-width: 820px;
  margin: 0 auto;
  text-align: justify;
  text-justify: inter-ideograph;
}

#tjHome .tj-home-desc-text p {
  margin: 0;
  text-indent: 2em;
}

#tjHome .tj-home-desc-text p + p {
  margin-top: 1px;
}

/* ---- 按钮组：从两侧向中间靠拢（图片按钮，720云同款科技钮） ---- */
#tjHome .tj-home-btns {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 12%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;        /* 720云节奏：钮小、间距大 */
  flex-wrap: wrap;
}

/* 三钮尺寸对齐 720云（其钮约占屏宽 6%），比上一版再小一档 */
#tjHome .tj-home-btn {
  width: 88px;
  padding: 0;
  font-size: 16px;
  letter-spacing: 2px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  /* 入场初始态：左右两钮从两侧远处起步，缓慢向中间靠拢（徐哥要求：要慢） */
  transform: translateX(-180px) scale(.94);
  will-change: transform;  /* ★09-28 卡顿修复：提前提升合成层，滑入全程跑 GPU 不起步顿挫 */
  transition: transform 2.2s cubic-bezier(.22, .68, .24, 1), opacity 1.2s ease, filter .25s ease;
  -webkit-tap-highlight-color: transparent;
}

#tjHome .tj-home-btn img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

#tjHome .tj-home-btn:hover {
  filter: brightness(1.18) drop-shadow(0 6px 18px rgba(80, 170, 255, .45));
}

/* 中间钮：最后出现（原地淡入 + 放大），不参与左右靠拢 */
#tjHome .tj-home-btn:nth-child(2) {
  transform: translateX(0) scale(.82);
  transition-duration: 1.2s;
}

/* 右侧钮：从右向左靠拢，比左侧再晚一点起步 */
#tjHome .tj-home-btn:nth-child(3) {
  transform: translateX(180px) scale(.94);
}

#tjHome.tj-step2 .tj-home-btn {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ============ 常态：与「开始播放」一致的放大缩小呼吸 ============
   徐哥明确：不是上下浮动，是缩放呼吸（同开始播放钮的动感）。
   ★ keyframes 只动 transform，不动 filter —— 否则会压掉 hover 的发光。
   ★ animation-delay 必须大于该钮入场结束时间，否则进场被打断。
   出场顺序（点开始播放后）：
     0.0s 文案从放大慢慢收回到中间（1.8s）
     1.2s 左钮出发 / 1.4s 右钮出发，各 2.2s 缓慢靠拢
     2.8s 中间钮淡入放大出现（1.2s）
     之后三钮依次切入缩放呼吸 */
#tjHome.tj-step2 .tj-home-btn {
  animation: tjBtnPulse 3.2s ease-in-out infinite;
}

@keyframes tjBtnPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

#tjHome.tj-step2 .tj-home-btn:nth-child(1) { transition-delay: 1.2s;  animation-delay: 3.6s; }  /* 左：先出发 */
#tjHome.tj-step2 .tj-home-btn:nth-child(3) { transition-delay: 1.4s;  animation-delay: 3.9s; }  /* 右：紧随其后 */
#tjHome.tj-step2 .tj-home-btn:nth-child(2) { transition-delay: 2.8s;  animation-delay: 4.3s; }  /* 中：最后出现 */

/* ---- 第一层：开始播放（图片按钮居中，720云同款动态：呼吸缩放 + 高光扫过） ---- */
#tjHome .tj-home-enter {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 142px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 18px;
  transition: opacity .45s ease;
  /* ③ 最后出场：2.8s 起从 0 缓慢放大（1.9s），4.7s 后切入常态呼吸 */
  animation: tjEnterIn 1.9s cubic-bezier(.22, .68, .24, 1) 2.8s both,
             tjEnterPulse 2.8s ease-in-out 4.7s infinite;
  -webkit-tap-highlight-color: transparent;
}

@keyframes tjEnterIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

#tjHome .tj-home-enter img {
  width: 100%;
  display: block;
}

/* 高光扫过（720云按钮同款），椭圆弧线内裁切不穿帮 */
#tjHome .tj-home-enter::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -70%;
  width: 30%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .5) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: tjEnterSweep 3.4s ease-in-out 4.7s infinite;
  pointer-events: none;
}

/* 呼吸：缩放 + 辉光一起动，transform 里保留居中位移 */
@keyframes tjEnterPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1) drop-shadow(0 0 0 rgba(120, 200, 255, 0));
  }
  50% {
    transform: translate(-50%, -50%) scale(1.07);
    filter: brightness(1.16) drop-shadow(0 0 22px rgba(120, 200, 255, .6));
  }
}

@keyframes tjEnterSweep {
  0%        { left: -70%; }
  55%, 100% { left: 135%; }
}

#tjHome.tj-step2 .tj-home-enter {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

#tjHome.tj-step2 .tj-home-enter::after {
  animation: none;
  opacity: 0;
}

/* ---- 提示条 ---- */
#tjHome .tj-home-tip {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  background: rgba(0, 0, 0, .55);
  padding: 9px 18px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  white-space: nowrap;
}

#tjHome .tj-home-tip.tj-show {
  opacity: 1;
}

/* ---- 「返回首页」浮动按钮 ----
   ★基准 = 包内左上角那个原厂 logo（.iconLeftTop img），不是引导页的 logo：
     实测该图片框 = x 10~90 / y 50~105（桌面与移动端完全一致，均为 80×55）
   → 按钮水平中心 = 该 logo 的中轴 x = 50（left:50px + translateX(-50%)）
   → 按钮上沿 = logo 下沿 105 + 15px 间距 = 120px（★保证与 logo 不重叠）
   风格：圆形 48px 半透明深底，与右上角 krpano 原生图标列同风格
   状态：默认隐藏（display:none），进入场景后由 js 加 .tj-show 亮出 */
#tjHomeBack {
  position: fixed;
  left: 50px;
  top: 120px;
  z-index: 9500;
  width: 48px;
  height: 48px;
  padding: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #fff;
  background: rgba(15, 25, 40, .55);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, 0) scale(.8);
  transition: opacity .5s ease, transform .5s ease, background-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}

#tjHomeBack.tj-show {
  display: flex;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

#tjHomeBack:hover {
  background: rgba(15, 25, 40, .78);
}

#tjHomeBack span {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1px;
}

@media (max-width: 560px) {
  /* 原厂 logo 在移动端尺寸完全一致（80×55，x10 y50），故中轴与上沿沿用桌面值 */
  #tjHomeBack {
    width: 44px;
    height: 44px;
  }
}

/* ---- 移动端 ---- */
@media (max-width: 560px) {
  #tjHome .tj-home-mask { background: rgba(9, 15, 26, .82); }
  #tjHome.tj-step2 .tj-home-mask { background: rgba(9, 15, 26, .72); }
  #tjHome .tj-home-logo { top: 3.5%; }
  #tjHome .tj-home-logo img { height: 88px; }
  #tjHome .tj-home-logo-text { font-size: 36px; letter-spacing: 10px; text-indent: 10px; margin-top: 0; }
  #tjHome .tj-home-logo-sub { font-size: 12px; }
  #tjHome .tj-home-enter { width: 118px; border-radius: 15px; }
  #tjHome .tj-home-desc { top: 55%; width: min(92vw, 560px); padding: 14px 14px 13px; border-radius: 14px; }  /* ★09-28 51%→55%：下移远离「拓锦数科」、靠近底部三钮 */
  #tjHome .tj-home-desc-title { font-size: 15px; letter-spacing: 4px; text-indent: 4px; margin-bottom: 5px; }
  #tjHome .tj-home-desc-text p + p { margin-top: 1px; }
  #tjHome .tj-home-desc-text {
    font-size: 11.5px;
    line-height: 1.45;
    letter-spacing: 0;
    max-height: 62vh;          /* 常规文案一屏可完整放下，不滚动；仅超长文案才内滚动 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #tjHome .tj-home-desc-text::-webkit-scrollbar { display: none; }
  #tjHome .tj-home-btns { bottom: 4%; left: 14px; right: 14px; gap: 12px; flex-wrap: nowrap; }
  /* ★ 三钮必须一排 3 个：宽度按容器等分 ((100% - 两倍间距) / 3)，任何屏宽都不折行 */
  #tjHome .tj-home-btn { width: min(calc((100% - 24px) / 3), 100px); }
  /* 竖排：左右靠拢的位移收窄，避免从屏外飞进来 */
  #tjHome .tj-home-btn { transform: translateX(-110px) scale(.94); }
  #tjHome .tj-home-btn:nth-child(2) { transform: translateX(0) scale(.82); }
  #tjHome .tj-home-btn:nth-child(3) { transform: translateX(110px) scale(.94); }
  #tjHome.tj-step2 .tj-home-btn:nth-child(2) { transform: translateX(0) scale(1); }
  /* ★09-28 卡顿根因修复：移动端左右两钮缺 step2 归零覆盖，被上方 ±110 的特异性(1,2,0)压过，
     导致滑入 transition 失效、停在屏外侧直到 3.9s 被 tjBtnPulse 瞬间拽到中间（"卡/等才到位"）。
     补上 1/3 的 step2 归零，特异性(1,3,0) 必然压过，滑入过渡恢复 */
  #tjHome.tj-step2 .tj-home-btn:nth-child(1) { transform: translateX(0) scale(1); }
  #tjHome.tj-step2 .tj-home-btn:nth-child(3) { transform: translateX(0) scale(1); }
}

/* ============ 全局 UI 精简：全站永久移除两个多余图标 ============
   ① .clearScreen（清屏）：原包的清屏只藏 4 个角落按钮，热点一个都不动，
      达不到引导页要的干净背景；该功能已由本文件自己的清屏取代 → 移除
   ② .viewswitching（视角切换）：电脑右键 / 手机长按 已自带同样的视角菜单
      （正常视角 / 小行星 / 鱼眼…），按钮纯属占位 → 移除
   这两个位置空出来留给以后要加的按钮。
   需要恢复：把下面这段整段注释掉即可，不动任何原包文件。 */
.iconRight .clearScreen,
.iconRight .viewswitching {
  display: none !important;
}

/* ============ 右上角「自动旋转」开关（场景态） ============
   原包场景默认一直自动旋转，原生界面却没有任何开关能停它 → 补这一枚。
   由 tj-home.js 动态追加到原生图标列 .iconRight 的最后一位，
   也就是上面两个废钮删掉后腾出来的那一格。
   外观完全跟随原生：尺寸走 .iconRight div img（桌面 36px / 移动 24px）、
   间距走 .iconRight div（margin-bottom 10px）、图标是自绘 SVG
   （配方照抄原生 PNG：半透明黑圆盘 rgba(0,0,0,.3) + 白色线条）。
   引导层里整列 .iconRight 已被清屏隐藏，所以它天然只在进场景后出现。 */
.iconRight .tj-rotate img {
  display: block;
}

/* ============ 清屏：引导层激活时，背景只留纯净全景 ============
   清屏 = 只清「图标 / 按钮」，热点属于场景内容，不在清屏范围内（保持原样）。
   右上角原生图标列整列隐藏，改用引导页自己的音频按钮（见下）。
   进入场景时由 JS 移除 body.tj-home-active，全部还原。 */
body.tj-home-active .itemPreview,
body.tj-home-active .itemGroupList,
body.tj-home-active .itemGroup2SonList,
body.tj-home-active .itemMaterialPreview,
body.tj-home-active .iconLeftTop,
body.tj-home-active .iconBottomLeft,
body.tj-home-active .iconBottomRight,
body.tj-home-active .tj-btns,
body.tj-home-active .tj-views,
body.tj-home-active .marqueeTop,
body.tj-home-active .iconRight {
  display: none !important;
}

/* ============ 第二层右上角音频按钮 ============
   清屏状态下原生音乐按钮也被清掉了，所以自己做一套：
   · 音乐：点击等价于点原生音乐按钮（同一个 bgsnd 背景音），状态双向同步
   · 旁白：话筒图标，独立的 MP3 播放器（720云同款做法）
   第一层（封面）不显示任何图标，只在第二层出现。 */
#tjHome .tj-home-audio {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 6;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#tjHome.tj-step2 .tj-home-audio {
  display: flex;
}

/* 播放中有一圈呼吸光环，方便一眼看出在响 */
@keyframes tjAudioPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .30); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

#tjHome .tj-audio-btn {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #fff;
  background: rgba(15, 25, 40, .55);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  cursor: pointer;
  opacity: .82;
  transition: opacity .25s ease, background-color .25s ease, border-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}

#tjHome .tj-audio-btn:hover {
  opacity: 1;
  background: rgba(15, 25, 40, .8);
}

#tjHome .tj-audio-btn.tj-on {
  opacity: 1;
  background: rgba(30, 60, 100, .78);
  border-color: rgba(255, 255, 255, .7);
  animation: tjAudioPulse 2.2s ease-out infinite;
}

#tjHome .tj-audio-btn .tj-ico {
  display: none;
  line-height: 0;
}

#tjHome .tj-audio-btn .tj-ico-off { display: block; }
#tjHome .tj-audio-btn.tj-on .tj-ico-off { display: none; }
#tjHome .tj-audio-btn.tj-on .tj-ico-on { display: block; }

#tjHome .tj-audio-btn .cap {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .85);
}

@media (max-width: 560px) {
  #tjHome .tj-home-audio { right: 10px; top: 12px; gap: 12px; }
  #tjHome .tj-audio-btn { width: 42px; height: 42px; }
  #tjHome .tj-audio-btn .cap { font-size: 9px; }
}

/* ★09-28 修复原包 bug：横竖屏切换后「场景选择」缩略图从正方形变竖长方形。
   根因（dhvr_visit.js）：缩略图 .swiper-box 的宽高只在 Swiper init 回调里硬设成正方形
   （parseInt(slide宽度)-4），resize 回调是空的；横竖屏切换时 window.onresize 重新 new Swiper，
   宽高没被重新对齐 → 变形。缩略图原图是 500×500 正方形，background-size:cover 本就该正方形显示。
   修法（纯 CSS，不碰原包 JS）：
   ① width: calc(100% - 4px) !important —— 宽度永远跟随当前 slide 宽度（Swiper 在 resize 时会更新
      slide），横屏变宽、竖屏变窄都自适应，不会停留在旧方向写死的固定像素值；减 4px 是沿用原包
      「slide宽-4」的间隙设计，保证相邻缩略图不紧贴；
   ② aspect-ratio:1/1 + height:auto !important —— 高度永远等于宽度，锁死正方形。
   两条叠加：无论原包 JS 在横竖屏时怎么折腾宽高，缩略图永远自适应且永远正方形。 */
.itemPreview .itemSwiper .swiper-wrapper .swiper-slide .swiper-box {
  width: calc(100% - 4px) !important;
  max-width: none !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
}
