/* ================== 移动端横屏样式 - 重新设计 ================== */

/* 移动端隐藏PC端元素 */
.m {
  display: none;
}
body {
  background-color: #000;
}
/* 移动端横屏容器 */
.wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vh !important; /* 横屏：高度变成宽度 */
  height: 100vw !important; /* 横屏：宽度变成高度 */
  transform: rotate(90deg) translateY(-100vw);
  transform-origin: top left;
  background: #000;
  overflow: hidden !important;
}
.preload-progress-container {
  display: none;
}
/* 帧容器 */
.frame-container {
  /* position: absolute;
  width: 100vw !important;
  height: 100vh !important;
  top: 0;
  left: 0; */
  position: absolute;
  width: 19.573333rem;
  height: 10rem;
  top: 4.8rem;
  left: -4.8rem;
  transform: rotate(90deg);
}

/* 当前帧图片 - 16:9 铺满 */
#current-frame {
  position: absolute;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Logo样式 */
#logo {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 5.333333rem;
  height: auto;
  z-index: 100;
  transition: transform 1s ease-out, opacity 1s ease-out;
}

/* 隐藏PC端控件 */
.frame-info,
.speed-control,
.instructions {
  display: none !important;
}

/* 移动端音乐按钮样式 */
.music-button {
  position: absolute;
  top: 0.2667rem;
  left: 1.3rem;
  width: 0.8rem;
  height: 0.8rem;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 51;
  /* transform: rotate(90deg); */
  transition: background-color 0.3s ease;
  pointer-events: auto;
}

/* 移动端回家按钮样式 */
.mobile-home-button {
  position: absolute;
  top: 0.2667rem;
  right: 0.5rem; /* 放在音乐按钮左侧 */
  width: 0.8rem;
  height: 0.8rem;
  background-color: rgba(1, 247, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 51;
  /* transform: rotate(90deg); */
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 0 0.1rem rgba(1, 247, 255, 0.8);
}

.mobile-home-button img {
  width: 0.5rem;
  height: 0.5rem;
  object-fit: contain;
}

.music-button:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.music-icon {
  width: 0.4rem;
  height: 0.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z'/%3E%3C/svg%3E")
    no-repeat center center;
  background-size: contain;
  transition: background-image 0.3s ease;
}

.music-button.playing .music-icon {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z'/%3E%3C/svg%3E")
    no-repeat center center;
  background-size: contain;
}

/* 移动端指示器 */
.mobile-indicator {
  position: absolute;
  top: 0.2667rem;
  right: 0.2667rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.1333rem 0.2667rem;
  border-radius: 0.1333rem;
  font-size: 0.32rem;
  z-index: 100;
  display: none;
}

.mobile-hint {
  position: absolute;
  bottom: 0.5333rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.2133rem 0.4267rem;
  border-radius: 0.1333rem;
  font-size: 0.32rem;
  text-align: center;
  z-index: 100;
}

/* 第1-3帧显示的提示样式 */
.frame-specific-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.4267rem;
  font-weight: bold;
  text-align: center;
  z-index: 10;
  display: none;
  padding: 0.2667rem 0.5333rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0.2667rem;
}

/* 右下角AI生成提示 */
.ai-generated-hint {
  position: absolute;
  bottom: 0.5333rem;
  right: 0.5333rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.24rem;
  z-index: 10;
}

/* 左侧弹窗 */
.left-popup {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  padding: 0.5333rem;
  border-radius: 0.2rem;
  color: white;
  font-size: 0.32rem;
  line-height: 1.5;
  max-width: 70%;
  z-index: 200;
  display: none;
}

/* 顶部标题 */
.top-title {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.4267rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.2133rem;
  z-index: 200;
  display: none;
}

/* 左侧标题 */
.left-title {
  min-width: 3.333333rem;
  height: 1.533333rem;
  background: url(../images/address-20251222.png) no-repeat;
  background-size: 100% 100%;
  position: absolute;
  left: 6.8rem;
  top: 0.8rem;
  color: white;
  font-size: 0.346667rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 35px 20px;
  box-sizing: border-box;
  gap: 0.2133rem;
  z-index: 1;
  display: none;
}
.left-title2 {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
}
.left-title5 {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
}
.left-title3 {
  position: absolute;
  left: 4.2rem;
  top: 5.8rem;
}
.left-title4 {
  position: absolute;
  left: 4.2rem;
  top: 1.5rem;
}
/* 定位图标 */
.location-icon {
  font-size: 0.48rem;
}
/* 页面左侧的帧进度条容器（在 .frame-container 内定位） */
.frame-progress {
  position: absolute;
  left: 0.55625rem;
  top: 50%;
  transform: translateY(-50%);
  bottom: 0.15625rem;
  height: 6.125rem;
  width: 0.0585rem;
  pointer-events: auto;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.frame-progress .track {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px; /* 轨道为 1px */
  top: 0;
  bottom: 0;
  background: #01f7ff;
  opacity: 0.9;
}
.frame-progress .progress-thumb-container {
  position: absolute;
  left: 0;
  width: auto;
  height: auto;
  cursor: pointer;
  /* display: flex;
  align-items: center; */
  z-index: 60;
}

.frame-progress .thumb {
  width: 0.0585rem; /* 9px */
  height: 0.416667rem; /* 初始高度（可视化），约 20px */
  background: #01f7ff;
  border-radius: 0.130208rem; /* 圆角 */
  box-shadow: 0 0.0104rem 0.0208rem rgba(0, 0, 0, 0.15);
}

/* 进度条圆形节点样式 */
.frame-progress .progress-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0.2625rem;
  height: 0.25625rem;
  background: #01f7ff; /* 蓝色圆形背景 */
  border-radius: 50%; /* 圆形 */
  cursor: pointer;
  z-index: 70; /* 确保在进度条上方显示 */
  box-shadow: 0 0 0.078125rem rgba(1, 247, 255, 0.7); /* 蓝色光晕效果 */
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* 回家节点样式 - 使用特定类名 */
.frame-progress .progress-node.home-node {
  width: 0.35625rem;
  height: 0.35625rem;
  padding: 0.026042rem;
  box-sizing: border-box;
}
/* 节点内图片样式 */
.frame-progress .progress-node img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* 鼠标悬停效果 */
.frame-progress .progress-node:hover {
  transform: translateX(-50%) scale(1.3); /* 放大效果 */
  box-shadow: 0 0 0.125rem rgba(1, 247, 255, 0.7); /* 增强光晕 */
}

/* 进度条标题长方块样式 */
.frame-progress .progress-title-box {
  position: relative;
  left: 0.078125rem; /* 滑块右侧位置 */
  padding: 0.0625rem 0.15625rem;
  background: rgba(1, 247, 255, 0.2); /* 滑块颜色加透明度 */
  color: #01f7ff; /* 与滑块相同的颜色 */
  font-size: 0.34167rem;
  font-weight: bold;
  white-space: nowrap; /* 不换行 */
  z-index: 65; /* 确保在滑块上方但在节点下方 */
  border-radius: 0.03125rem; /* 轻微圆角 */
  backdrop-filter: blur(0.015625rem); /* 轻微模糊背景 */
  transform: translateY(-50%); /* 垂直居中对齐滑块 */
  margin-top: -0.208333rem; /* 手动调整垂直居中（0.416667rem / 2） */
}
/* 波纹容器 - 位置需要根据横屏调整 */
.ripple-container {
  position: absolute;
  top: 0;
  left: 0;
  /* width: 7.111111rem; 
  height: 3.472222rem;
  top: 4.466667rem;
  left: 4.982222rem;  */
  width: 100%;
  height: 100%;
  z-index: 50;
}

/* 波纹按钮 */
.frame-button {
  position: absolute;
  top: 4.666667rem;
  left: 5.266667rem;
  width: 0.7111rem;
  height: 0.7111rem;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.frame-button:focus {
  outline: none;
}

.frame-button .ripple-inner,
.frame-button .ripple-outer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  border-radius: 50%;
  will-change: transform, opacity;
  pointer-events: none;
}

.frame-button .ripple-inner {
  width: 0.3556rem;
  height: 0.3556rem;
  background: #01f7ff;
  box-shadow: 0 0.0711rem 0.2133rem rgba(255, 80, 80, 0.15);
  animation: rippleInner 1s ease-out infinite;
}

.frame-button .ripple-outer {
  width: 0.7111rem;
  height: 0.7111rem;
  background: rgba(1, 247, 255, 0.5);
  animation: rippleOuter 1.6s ease-out infinite;
}
.frame-button-2 .ripple-inner {
  width: 0.3556rem;
  height: 0.3556rem;
  background: #ff4901;
  box-shadow: 0 0.0711rem 0.2133rem rgba(255, 80, 80, 0.15);
  animation: rippleInner 1s ease-out infinite;
}
.frame-button-2 .ripple-outer {
  width: 0.7111rem;
  height: 0.7111rem;
  background: rgba(255, 73, 1, 0.5);
  animation: rippleOuter 1.6s ease-out infinite;
}
.frame-button-2 {
  position: absolute;
  left: 12.066667rem;
  top: 3.566667rem;
}

.frame-button-3 {
  position: absolute;
  top: 6.366667rem;
  left: 7.266667rem;
}
.frame-button-4 {
  position: absolute;
  top: 4.066667rem;
  left: 10.666667rem;
}
.frame-button-11 {
  position: absolute;
  top: 1.666667rem;
  left: 4.266667rem;
}
.frame-button-12 {
  position: absolute;
  top: 3.666667rem;
  left: 10.266667rem;
}
.frame-button-13 {
  position: absolute;
  top: 5.666667rem;
  left: 10.666667rem;
}
.frame-button-16 {
  position: absolute;
  top: 1.666667rem;
  left: 10.266667rem;
}
.frame-button-20 {
  position: absolute;
  top: 4.666667rem;
  left: 9.366667rem;
}
@keyframes rippleInner {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 1;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0.15;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

@keyframes rippleOuter {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }
}

/* 点击查看提示 */
.click-hint {
  position: absolute;
  left: 6.066667rem;
  top: 5.566667rem;
  transform: translateY(-50%);
  color: white;
  font-size: 0.2933rem;
  font-weight: 500;
  white-space: nowrap;
  display: none;
  z-index: 49;
}
.click-hint-2 {
  position: absolute;
  top: 4.966667rem;
  left: 12.566667rem;
}
.click-hint-3 {
  position: absolute;
  left: 8.066667rem;
  top: 7.566667rem;
}
.click-hint-4 {
  position: absolute;
  left: 11.666667rem;
  top: 5.066667rem;
}
.click-hint-11 {
  position: absolute;
  left: 5.066667rem;
  top: 2.566667rem;
}
.click-hint-12 {
  position: absolute;
  left: 11.666667rem;
  top: 4.566667rem;
}
.click-hint-13 {
  position: absolute;
  left: 12.066667rem;
  top: 6.566667rem;
}
.click-hint-16 {
  position: absolute;
  left: 11.066667rem;
  top: 2.566667rem;
}
.click-hint-20 {
  position: absolute;
  left: 10.566667rem;
  top: 5.566667rem;
}
/* 横线 */
.hengxian {
  position: absolute;
  top: -0.5333rem;
  left: -0.3556rem;
  height: 0.0178rem;
  width: 3.5556rem;
  margin-left: 0.1778rem;
  background: #01f7ff;
  transform: rotate(-45deg);
  z-index: 48;
  display: none;
}

/* 弹窗标题背景 */
.titleBg {
  width: 14rem;
  min-height: 0.4267rem;
  height: auto;
  color: #fff;
  font-size: 0.346667rem;
  font-weight: 600;
  text-align: center;
  line-height: 0.5rem;
  position: absolute;
  top: 1.5067rem;
  left: 50%;
  transform: translateX(-50%);
  overflow: visible;
  white-space: normal;
  word-wrap: break-word;
}

/* 弹窗容器 */
.modelCon {
  width: 100%;
  height: 100%;
  /* width: 5.6889rem;
  height: 2.6667rem; */
  background-color: rgba(0, 0, 0, 0.8);
  /* background: url(../images/modelCon3-m-20251222.png) no-repeat;
  background-size: 100% 100%; */
  position: absolute;
  /* top: -4rem;
  right: 0.7111rem; */
  /* display: none; */
  z-index: 201;
}
/* 弹窗内容 */
.modelContainer {
  width: 86%;
  height: 90%;
  background: url(../images/modelCon3-m-20251222.png) no-repeat;
  background-size: 100% 100%;
  font-size: 0.32rem;
  color: #fff;
  line-height: 0.48rem;
  overflow: hidden;
  overflow-y: auto;
  margin: 0.64rem auto;
  /* 移除 padding，交给 .modelContent-inner 处理 */
  padding: 0;
  /* padding-top: 20px; */
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 移动端内部内容容器 */
.modelContent-inner {
  width: 89%;
  height: 83%;
  /* padding: 1.666667rem 0.8rem 1rem 0.8rem; */
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  overflow: auto;
  padding-right: 0.133333rem;
  padding: 0 0.666667rem;
}
.modelContent-inner p,
.modelContent-inner span,
.modelContent-inner section {
  background: none !important;
  background-color: none !important;
  color: #fff !important;
}
.modelContent-inner img,
.modelContent-inner video {
  display: block; /* 关键：改为块级元素 */
  width: auto;
  max-width: 100% !important;
  margin: 0.133333rem auto;
  object-fit: cover;
}
.modelContainer {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #01f7ff transparent; /* Firefox 滑块 颜色 + 轨道 */
}
.modelContainer::-webkit-scrollbar {
  width: 0.133333rem; /* 滑块宽度 */
}
.modelContainer::-webkit-scrollbar-track {
  background: transparent; /* 轨道透明，使用中心线实现 1px 视觉效果 */
}
.modelContainer::-webkit-scrollbar-track:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0.04rem; /* 轨道视觉为 1px */
  top: 0;
  bottom: 0;
  background: #01f7ff;
}
.modelContainer::-webkit-scrollbar-thumb {
  background: #01f7ff; /* 滑块颜色 */
  border-radius: 6px; /* 圆角 */
  border: 0; /* 无边框 */
}

/* 全屏加载遮罩 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vh !important;
  height: 100vw !important;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
  transform: rotate(90deg) translateY(-100vw);
  transform-origin: top left;
}

.loading-spinner {
  width: 1.7778rem;
  height: 1.7778rem;
  border: 0.1778rem solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
  margin-bottom: 0.8889rem;
}

.loading-text {
  color: white;
  font-size: 0.5689rem;
  text-align: center;
}

.loading-progress {
  margin-top: 0.8889rem;
  color: #aaa;
  font-size: 0.4978rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 预加载图片隐藏 */
.preload-images {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}

/* 确保所有元素可见 */
* {
  box-sizing: border-box;
}

.diolag {
  max-width: 3.333333rem;
  min-height: 0.15625rem;
  background: linear-gradient(
    135deg,
    rgba(1, 247, 255, 0.15) 0%,
    rgba(0, 150, 255, 0.25) 50%,
    rgba(1, 247, 255, 0.15) 100%
  );
  padding: 0.093333rem;
  box-sizing: border-box;
  font-size: 0.24rem;
  border-radius: 0.052083rem;
  position: absolute;
  top: 2rem;
  left: 3rem;
  line-height: 0.266667rem;
  color: #ffffff;
  text-align: center;
  transform: rotate(90deg);
  z-index: 150;
  pointer-events: none;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(1, 247, 255, 0.8);
  box-shadow: 0 0 15px rgba(1, 247, 255, 0.5),
    inset 0 0 10px rgba(1, 247, 255, 0.2), 0 0 5px rgba(0, 150, 255, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 0.2rem;
}
.diolags {
  max-width: 2.933333rem;
  min-height: 0.15625rem;
  background: linear-gradient(
    135deg,
    rgba(1, 247, 255, 0.15) 0%,
    rgba(0, 150, 255, 0.25) 50%,
    rgba(1, 247, 255, 0.15) 100%
  );
  padding: 0.093333rem;
  box-sizing: border-box;
  font-size: 0.24rem;
  border-radius: 0.052083rem;
  position: absolute;
  top: 9rem;
  left: 3.2rem;
  transform: rotate(90deg);
  line-height: 0.266667rem;
  color: #ffffff;
  text-align: center;
  z-index: 150;
  pointer-events: none;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(1, 247, 255, 0.8);
  box-shadow: 0 0 15px rgba(1, 247, 255, 0.5),
    inset 0 0 10px rgba(1, 247, 255, 0.2), 0 0 5px rgba(0, 150, 255, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 0.2rem;
}
.diolag22 {
  top: 7.8rem;
  left: 4rem;
}
.diolag3 {
  top: 1rem;
  left: 8rem;
}
.diolag33 {
  top: 5.2rem;
  left: 7.8rem;
}
.diolag4 {
  top: 7.5rem;
  left: 4.2rem;
}
.diolag44 {
  top: 12.8rem;
  left: 4.2rem;
}
.diolag5 {
  top: 15rem;
  left: 5.3rem;
}
.diolag55 {
  top: 3.5rem;
  left: 7.2rem;
}
.diolag6 {
  top: 6rem;
  left: 3.5rem;
}
.diolag66 {
  top: 14rem;
  left: 3.5rem;
}
.diolag7 {
  top: 5rem;
  left: 3.6rem;
}
.diolag77 {
  top: 10rem;
  left: 4.2rem;
}

.diolag::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    rgba(1, 247, 255, 0.5),
    rgba(0, 150, 255, 0.5),
    rgba(1, 247, 255, 0.5)
  );
  border-radius: 0.052083rem;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite;
}

.diolags::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    rgba(1, 247, 255, 0.5),
    rgba(0, 150, 255, 0.5),
    rgba(1, 247, 255, 0.5)
  );
  border-radius: 0.052083rem;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%,
  100% {
    opacity: 0.3;
    filter: brightness(0.8);
  }
  50% {
    opacity: 0.5;
    filter: brightness(1);
  }
}
