/* 首页工厂实景/产品制造/合作沟通交互按钮与全屏 360° 全景弹窗样式 */
.factory-points .factory-point-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.factory-points .factory-point-btn:hover,
.factory-points .factory-point-btn:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  border-color: #fff;
  color: var(--blue-dark, #0758b7);
  box-shadow: 0 12px 28px rgba(3, 22, 46, .24);
  outline: none;
}

.factory-points .factory-point-btn > span:first-child {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
}

.factory-points .factory-point-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #d9eeff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  transition: background-color .2s ease, color .2s ease;
}

.factory-points .factory-point-btn:hover .factory-point-tag,
.factory-points .factory-point-btn:focus-visible .factory-point-tag {
  background: rgba(20, 121, 232, .12);
  color: var(--blue, #1479e8);
}

/* 全屏 360° 弹窗容器 */
.pano-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  flex-direction: column;
  background: #040d18;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}

.pano-modal.open {
  display: flex;
}

.pano-stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background: radial-gradient(circle at center, #0e2540 0%, #040d18 75%);
}

.pano-stage.is-dragging {
  cursor: grabbing;
}

.pano-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* 顶部栏 */
.pano-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(4, 13, 24, .82) 0%, rgba(4, 13, 24, 0) 100%);
  pointer-events: none;
}

.pano-title-wrap,
.pano-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.pano-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(134, 197, 255, .42);
  border-radius: 999px;
  background: rgba(20, 121, 232, .28);
  color: #b7deff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.pano-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

.pano-hint {
  margin-left: 8px;
  color: rgba(226, 240, 255, .75);
  font-size: 12px;
  font-weight: 600;
}

.pano-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
  background: rgba(9, 25, 44, .68);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.pano-btn:hover,
.pano-btn:focus-visible {
  background: rgba(20, 121, 232, .82);
  border-color: rgba(158, 208, 255, .75);
  outline: none;
}

.pano-btn.is-active {
  background: rgba(20, 121, 232, .85);
  border-color: #86c5ff;
}

.pano-close {
  width: 40px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

/* 加载中 / 错误提示层 */
.pano-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(4, 13, 24, .72);
  text-align: center;
  pointer-events: none;
}

.pano-status[hidden] {
  display: none;
}

.pano-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, .22);
  border-top-color: #4aa3ff;
  border-radius: 50%;
  animation: panoSpin .85s linear infinite;
}

.pano-status.is-error .pano-spinner {
  display: none;
}

.pano-status p {
  margin: 0;
  max-width: 460px;
  color: #e6f2ff;
  font-size: 14px;
  font-weight: 600;
}

@keyframes panoSpin {
  to {
    transform: rotate(360deg);
  }
}

/* 底部视频控制栏 */
.pano-video-bar {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(6, 18, 34, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pano-video-bar[hidden] {
  display: none;
}

.pano-seek {
  flex: 1 1 auto;
  min-width: 80px;
  accent-color: #1479e8;
  cursor: pointer;
}

.pano-time {
  min-width: 88px;
  text-align: center;
  color: rgba(226, 240, 255, .9);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

@media (max-width: 820px) {
  .pano-topbar {
    flex-wrap: wrap;
    padding: 14px 14px;
  }

  .pano-hint {
    display: none;
  }

  .pano-title {
    font-size: 16px;
  }

  .pano-btn {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .pano-close {
    width: 36px;
  }

  .pano-video-bar {
    bottom: 14px;
    gap: 8px;
    padding: 8px 10px;
  }

  .pano-time {
    min-width: 72px;
    font-size: 11px;
  }
}
