/* ==========================================================================
   全景查看器（Pannellum 本地版）
   —— 全屏黑底，右上角关闭，自动旋转，鼠标拖拽 / 手指滑动
   ========================================================================== */

.pano-ov {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #000;
  animation: panoIn .25s ease;
}
@keyframes panoIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#pano-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 关闭按钮：右上角，够大好点 */
.pano-x {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: calc(14px + env(safe-area-inset-right));
  z-index: 910;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .18s, transform .18s;
}
.pano-x:hover { background: rgba(0, 0, 0, .8); }
.pano-x:active { transform: scale(.94); }
.pano-x svg { width: 20px; height: 20px; }

/* 底部提示 */
.pano-hint {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 910;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  color: rgba(255, 255, 255, .82);
  font: 12px/1 "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: .06em;
  white-space: nowrap;
  pointer-events: none;
  animation: panoHint 5s ease forwards;
}
@keyframes panoHint {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

/* 加载中 */
.pano-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 905;
  color: rgba(255, 255, 255, .6);
  font: 13px/1.6 "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: .08em;
  pointer-events: none;
}

/* Pannellum 自带的工具栏在手机上太挤，藏掉 */
.pano-ov .pnlm-controls-container { display: none !important; }
.pano-ov .pnlm-load-button { display: none !important; }

/* 详情页的「全景」按钮：和别的按钮同一套样式即可，这里只加个小强调 */
.actrow .btn-pano {
  border-color: color-mix(in srgb, var(--bronze) 55%, transparent);
  color: var(--bronze);
}
.actrow .btn-pano:hover {
  background: color-mix(in srgb, var(--bronze) 12%, transparent);
}

/* 卡片上的 360° 全景角标 */
.card-pano {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(21, 20, 15, .72);
  color: #F3EDE1;
  font: 600 10px/1 "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: .04em;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .5);
  pointer-events: none;
}
html[data-theme="dark"] .card-pano {
  background: rgba(251, 248, 242, .82);
  color: #15140F;
}
.card { position: relative; }
/* 手机上角标缩小一点，避免抢画面 */
@media (max-width: 900px) {
  .card-pano { top: 6px; right: 6px; height: 18px; font-size: 10px; min-width: 34px; }
}
