body {
  overflow: hidden;
  max-width: none;
}

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

#panorama {
  width: 100%;
  height: 100%;
}

.controls {
  position: absolute;
  bottom: 50px; /* 调整底部距离 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 100;
}

.fullscreen {
  padding: 8px 16px;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.7);
}

.fullscreen:hover {
  background: rgba(0, 0, 0, 0.8);
}

.address-tip {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  max-width: 90vw;
  word-break: break-all;
  z-index: 100;
}

/* 全屏模式下的样式 */
:fullscreen .controls,
:-webkit-full-screen .controls,
:-moz-full-screen .controls,
:-ms-fullscreen .controls {
  display: none !important;
}

:fullscreen .address-tip,
:-webkit-full-screen .address-tip,
:-moz-full-screen .address-tip,
:-ms-fullscreen .address-tip {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  bottom: 50px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10000 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  text-align: center !important;
  white-space: nowrap !important;
  padding: 5px 10px !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border-radius: 4px !important;
  max-width: 90vw !important;
  word-break: break-all !important;
}
.loading {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  /* 确保居中显示，假设父容器允许 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #333333; /* 深灰色文字，适配白色背景 */
  z-index: 9999;
  justify-content: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95); /* 半透明白色背景 */
}

.loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(51, 51, 51, 0.2); /* 浅灰色边框 */
  border-top-color: #333333; /* 深灰色旋转部分 */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@keyframes scene2HotspotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.48);
    opacity: 0.96;
  }
  60% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    opacity: 0.96;
  }
}

.hotspot-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: rgba(20, 20, 20, 0.82);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  font-size: 16px;
  letter-spacing: 0.5px;
  animation: scene2HotspotPulse 1.8s ease-in-out infinite;
  display: none;
  visibility: hidden;
}

.hotspot-btn:focus,
.hotspot-btn:active {
  outline: none;
  box-shadow: none;
}

.hotspot-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 35px;
  height: 35px;
  background-image: url("./vr_qianjin.png");
  background-repeat: no-repeat;
  background-position: center 0;
  background-size: 100% auto;
  will-change: background-position;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35));
  cursor: pointer;
  z-index: 1002;
  pointer-events: none;
  opacity: 0;
  display: none;
  visibility: hidden;
}

.hotspot-arrow-reverse {
  transform: rotate(180deg) !important;
}

.turn-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  width: 42px;
  height: 42px;
  background-repeat: no-repeat;
  background-position: 50% 0;
  background-size: 100% auto;
  will-change: background-position;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35));
  cursor: default;
  z-index: 1002;
  pointer-events: none;
  opacity: 0;
  display: none;
  visibility: hidden;
}
.rotate320 {
  transform: rotate(320deg);
}
@keyframes bizWindowDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.85);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.biz-window-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 1003;
  padding: 8px 13px;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.biz-window-hotspot::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  animation: bizWindowDotPulse 1.6s ease-out infinite;
}

.biz-window-hotspot:focus,
.biz-window-hotspot:active {
  outline: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.biz-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 26, 64, 0.35);
  display: none;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.biz-modal-panel {
  width: min(983px, 90vw);
  max-height: 78vh;
  overflow: hidden;
  border-radius: 6px;
  background-image: linear-gradient(
      14deg,
      rgba(0, 65, 103, 0.6) 6%,
      rgba(6, 70, 215, 0.6) 100%
    ),
    linear-gradient(
      0deg,
      rgba(11, 77, 160, 0.6) 0%,
      rgba(7, 104, 225, 0.6) 100%
    );
  color: #dff6ff;
  padding-top: 17px;
  padding-bottom: 18px;
  position: relative;
}

.biz-modal-header {
  position: relative;
  text-align: center;
  padding: 0 48px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #dff6ff;
}
.biz-modal-header::before,
.biz-modal-header::after {
  content: "";
  width: 215px;
  height: 21px;
  background: url(./vr_pop_tit_l.png);
  background-size: 100% 100%;
  position: absolute;
  left: 18%;
  top: 50%;
  transform: translateY(-50%);
}
.biz-modal-header::after {
  background: url(./vr_pop_tit_r.png);
  background-size: 100% 100%;
  left: auto;
  right: 18%;
}
.biz-modal-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: url(./vr_p_close.png);
  background-size: 100% 100%;
  cursor: pointer;
}

.biz-modal-list {
  margin-top: 27px;
  padding: 0 18px;
  overflow: auto;
  max-height: calc(78vh - 100px);
}

.biz-modal-item {
  display: block;
  margin-top: 19px;
  padding: 10px 60px 10px 16px;
  border-radius: 6px;
  background-color: rgba(0, 236, 255, 0.3);
  color: #e8fbff;
  font-size: 18px;
  line-height: 50px;
  position: relative;
  text-decoration: none;
  line-height: 30px;
}
.biz-modal-item:first-of-type {
  margin-top: 0;
}
.biz-modal-item:visited,
.biz-modal-item:hover,
.biz-modal-item:active,
.biz-modal-item:focus {
  color: #e8fbff;
  text-decoration: none;
}

.biz-modal-item::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: url(./vr_pop_r1.png);
  background-size: 100% 100%;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.biz-modal-item:hover {
  background-color: rgba(0, 236, 255, 0.64);
}
.biz-modal-item:hover::after {
  background: url(./vr_pop_r2.png);
  background-size: 100% 100%;
}
@media screen and (max-width: 768px) {
  .fullscreen {
    display: none !important;
  }
  .fullscreen,
  .hotspot-btn {
    font-size: 0.3rem;
    padding: 0.1rem 0.25rem;
    border-radius: 0.06rem;
  }
  .biz-window-hotspot {
    font-size: 0.3rem;
    padding: 0.1rem 0.2rem;
    border-radius: 0.06rem;
  }
  .biz-window-hotspot::before {
    left: -0.36rem;
    top: 50%;
    width: 0.16rem;
    height: 0.16rem;
    margin-top: -0.06rem;
  }
  .biz-modal-panel {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }
  .biz-modal-header::before,
  .biz-modal-header::after {
    display: none;
  }
  .biz-modal-header {
    font-size: 0.4rem;
    padding: 0 0.5rem;
  }
  .biz-modal-close {
    width: 0.4rem;
    height: 0.4rem;
    top: 0.1rem;
    right: 0.1rem;
  }
  .biz-modal-list {
    padding: 0 0.25rem;
    margin-top: 0.25rem;
  }
  .biz-modal-item {
    padding: 0.12rem 0.8rem 0.15rem 0.2rem;
    font-size: 0.3rem;
    margin-top: 0.2rem;
    line-height: .5rem;
  }
  .biz-modal-item::after {
    width: 0.38rem;
    height: 0.38rem;
    right: 0.2rem;
  }
  .address-tip {
    width: 90%;
  }
}
