body {
  margin: 0;
  position: relative;
}

#web3d-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, #dce7fd, #aebee0); /* 渐变色 */
}

#web3d-popup {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 437px;
  max-width: 100%;
  max-height: 100%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(30px);
  color: white;
  border-radius: 20px;
  padding: 40px 30px;
  display: none;
  justify-content: center;
  align-items: start;
  flex-direction: row;
  z-index: 20;
  gap: 40px;
  box-sizing: border-box;
}

#web3d-popup .close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0px;
}

#web3d-popup .popup-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  text-align: left;
  gap: 15px;
  height: 150px;
}

#web3d-popup .popup-image {
  width: 150px;
  height: 150px;
}

#web3d-popup .popup-title {
  font-family: Roboto, sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0px;
  vertical-align: middle;
  color: #2c2c2c;
  margin: 0px;
}

#web3d-popup .popup-description {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.15px;
  color: #2c2c2c;
  margin: 0px;
}

#web3d-popup .jump-button {
  align-self: self-end;
  cursor: pointer;
  width: 12px;
  margin-top: auto;
  overflow: hidden;
}
#web3d-popup .jump-button img {
  width: 12px;
  object-fit: cover;
}

#web3d-popup .jump-button:hover img {
  /* 先裁掉右上角，再逐渐恢复左下角 */
  object-fit: cover;
  animation: flyLoop 0.6s linear;
}

@keyframes flyLoop {
  0% {
    transform: translate(0%, 0%) scale(1);
    opacity: 1;
  }
  45% {
    transform: translate(100%, -100%) scale(1);
    opacity: 0;
  }
  55% {
    transform: translate(-100%, 100%) scale(1);
    opacity: 0;
  }
  100% {
    transform: translate(0%, 0%) scale(1);
    opacity: 1;
  }
}

#loading-container {
  width: 100%;
  height: 100%;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}
#loading-container .loading {
  --uib-size: 60px;
  --uib-color: #2566fe;
  --uib-speed: 2.6s;
  --uib-dot-size: calc(var(--uib-size) * 0.33);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--uib-size);
  height: var(--uib-dot-size);
  filter: url("#uib-jelly-ooze");
}

.dot {
  position: absolute;
  top: calc(50% - var(--uib-dot-size) / 2);
  left: calc(0px - var(--uib-dot-size) / 2);
  display: block;
  height: var(--uib-dot-size);
  width: var(--uib-dot-size);
  border-radius: 50%;
  background-color: var(--uib-color);
  animation: stream var(--uib-speed) linear infinite both;
  transition: background-color 0.3s ease;
}

.dot:nth-child(2) {
  animation-delay: calc(var(--uib-speed) * -0.2);
}

.dot:nth-child(3) {
  animation-delay: calc(var(--uib-speed) * -0.4);
}

.dot:nth-child(4) {
  animation-delay: calc(var(--uib-speed) * -0.6);
}

.dot:nth-child(5) {
  animation-delay: calc(var(--uib-speed) * -0.8);
}

@keyframes stream {
  0%,
  100% {
    transform: translateX(0) scale(0);
  }

  50% {
    transform: translateX(calc(var(--uib-size) * 0.5)) scale(1);
  }

  99.999% {
    transform: translateX(calc(var(--uib-size))) scale(0);
  }
}

#loading-container #loading-progress {
  font-size: 16px;
  color: #648ffc;
  text-align: center;
}

#loading-container .loading-text {
  position: absolute;
  bottom: 140px;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(
    135deg,
    #9cc715,
    #009fe8
  ); /* 135deg = 左下到右上 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* 兼容部分浏览器 */
  background-clip: text;
  color: transparent;
}

#web3d-container .product-hotspot {
  width: 72px;
  height: 72px;
  border-radius: 100%;
  position: absolute;
  z-index: 10;
  padding: 10px;
  cursor: pointer;
  transform: translate(-50%, -120px);
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.5)), radial-gradient(circle at left top, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 1));
  background-origin: border-box;
}



/* 连接线 */
#web3d-container .product-hotspot::after {
  content: "";
  position: absolute;
  bottom: -68px;
  left: 50%;
  width: 1px;
  height: 68px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.1));
  transform: translateX(-50%);
  pointer-events: none;
}

/* 悬停效果 */
#web3d-container .product-hotspot:hover {
  transform: translate(-50%, -120px) scale(1.05);
  transition: all 0.3s ease;
}

#web3d-container .product-hotspot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 100%;
  position: relative;
  z-index: 1;
  display: block;
}

#web3d-container #web3d-scene-buttons {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: absolute;
  bottom: 20px;
  left: 0;
  z-index: 2000;
  opacity: 0;
}

#web3d-container #web3d-scene-buttons .scene-button {
  font-size: 16px;
  font-weight: 500;
  color: #2c2c2c;
  cursor: pointer;
  border-radius: 76px;
  padding: 15px;
  flex: 1;
  max-width: 160px;
  background: linear-gradient(
    268.98deg,
    rgba(255, 255, 255, 0.2) 4.85%,
    rgba(255, 255, 255, 0.4) 97.94%
  );
  border: 2px #ffffff30 solid;
}

#web3d-container #web3d-scene-buttons .scene-button:hover,
#web3d-container #web3d-scene-buttons .scene-button.active {
  background: #ffffff;
}

#web3d-container #animation-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 1000;
  font-family: Arial, sans-serif;
  text-align: center;
  display: none;
}

#web3d-container #animation-indicator .indicator-icon {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
