﻿/* web css    */
* {
  margin: 0;
  padding: 0;
}

a {
  position: relative;
  left: 25%;
  color: white;
  text-decoration: none;
  top: 25%;
}

.logo {
  position: absolute;
  width: 400px;
  height: 40px;
  bottom: 0px;
  right: 0px;

}

html {
  /* font-size: 100px; */
  height: 100%;
  width: 100%;
}

body {
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;

  background-color: #000000;
  position: relative;
}

@font-face {
  font-family: 'MyXingshu';
  src: url('SIMLI.woff2') format('woff2'),
    /* url('path-to-xingshu-font.ttf') format('truetype'); */
    font-weight: normal;
  font-style: normal;
}

.text_window {
  font-family: 'MyXingshu', "KaiTi", "Microsoft YaHei", cursive;
}

/*解说窗口*/
.text_window {
  position: absolute;
  background-color: black;
  color: #FFFFFF;
  top: 20%;
  left: 8%;
  width: 20%;
  height: auto;
  max-height: 60%;
  opacity: 0.6;
  user-select: none;
  font-family: "MyXingshu", Arial, Helvetica, sans-serif;
  line-height: 1.5;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 0 0 1px #faf6c5;
  /* 外部描边 */
}

.header {
  display: flex;
  /* 使用 Flexbox 布局 */
  align-items: center;
  /* 垂直居中对齐 */
  justify-content: center;
  /* 水平居中 */
  margin-bottom: 10px;
  /* 为标题与内容之间添加间距 */
}

.num {
  font-family: "黑体", SimHei, Arial, sans-serif;
  /* 设置字体为黑体 */
  color: #000000;
  font-size: 15px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: yellow;
  user-select: none;
  margin-right: 10px;
  /* 添加与标题的间距 */
}

.titlewindow {
  letter-spacing: 1px;
  color: rgb(228, 228, 60);
  font-size: clamp(5px, 4vw, 20px);
  text-align: center;
  line-height: 15px;
  font-weight: normal;
}

.textwindow {
  margin: 10px 8px;
  line-height: 25px;
  font-size: clamp(4px, 2vw, 15px);
  font-weight: normal;
  text-align: justify;
}

/*解说人物*/
.commentary {
  position: absolute;
  bottom: -40px;
  right: -20px;
  width: 196px;
  height: 230px;
  cursor: pointer;
  background-image: url("../media/person.png");
  background-repeat: no-repeat;
  background-position: 0 0;
  -webkit-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -o-transform: scale(1.2);
  transform: scale(1.2);
  transform-origin: right bottom;
}

.commentary-title {
  position: absolute;
  width: 0.27rem;
  height: 0.94rem;
  background-image: url("../media/jieshuo-title.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  bottom: 0.54rem;
  right: 0.3rem;
}

/* 说话动画状态，调节速度 */
.commentary.speaking {
  animation: speakingAnimation 10s steps(79) infinite;
}


/* 说话动画关键帧 */
@keyframes speakingAnimation {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -15484px 0;
    /* 计算：-(196px * 79) = -15288px */
  }
}


.iframe {
  position: absolute;
  top: 0%;
  width: 100%;
  height: 100%;
  left: 0%;
  border-top-width: 0px;
  border-right-width: 0px;
  border-bottom-width: 0px;
  border-left-width: 0px;
}

/* 顶部按钮区 */
.top-title {
  position: absolute;
  top: 10px;
  width: 100%;
  height: 62px;
}

.open-mod {
  top: 0px;
  left: 10px;
  width: 62px;
  background-image: url("../media/Upload.png");

}

.download-mod {
  top: 0px;
  left: 82px;
  width: 62px;
  background-image: url("../media/download.png");

}

.jishu-yd {
  top: 0px;
  right: 154px;
  width: 62px;
  background-image: url("../media/jishu.png");

}

.help {
  top: 0px;
  right: 82px;
  width: 62px;
  background-image: url("../media/help.png");

}

.jishu-pic {
  position: absolute;
  right: 15%;
  top: 20%;
  width: 20%;
  /* 默认宽度 */
  max-width: 690px;
  /* 限制最大宽度为图片实际宽度 */
  aspect-ratio: 690 / 1168;
  /* 使用 aspect-ratio 保持容器宽高比 */
  height: auto;
  /* 高度根据宽度自动调整 */
  max-height: 60%;
  /* 限制最大高度 */
  color: #000000;
  background-size: cover;
  /* 背景图片填满容器，保持比例 */
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("../media/jushu bg.png");
  user-select: none;
  font-family: "MyXingshu", Arial, Helvetica, sans-serif;
  line-height: 1.5;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* 使内容从顶部开始布局 */
  align-items: center;
  text-align: center;
  overflow: hidden;
  /* 防止内容溢出 */
  display: none;
}

.jishu-title {
  letter-spacing: 1px;
  color: rgb(0, 0, 0);
  font-size: clamp(5px, 4vw, 20px);
  text-align: center;
  line-height: 15px;
  font-weight: normal;
}

.jishu-text {
  margin: 10px 8px;
  line-height: 25px;
  font-size: clamp(4px, 2vw, 15px);
  font-weight: normal;
  text-align: justify;
}


.help-pic {
  position: absolute;
  top: 80px;
  right: 220px;
  width: 250px;
  /* 初始宽度 */
  height: 100%;
  /* 高度设置为100%适应窗口 */
  background-image: url("../media/help-pic.png");
  background-size: contain;
  /* 背景图片等比例缩放以适应容器 */
  background-repeat: no-repeat;
  /* 防止背景图片重复 */
  z-index: 1;
  display: none;

}

.fs-button {
  position: absolute;
  top: 0px;
  right: 10px;
  width: 62px;
  height: 62px;

}

.fs-open {
  background-image: url("../media/fullscreen_open.png");
}

.fs-close {
  background-image: url("../media/fullscreen_close.png");
}



/*   加载模型提示信息  */
.Prompt {
  position: absolute;
  padding: 20px;
  background-color: black;
  color: white;
  opacity: 0.8;
  transition: opacity 0.6s;
  left: 0px;
  right: 0px;
  bottom: 0px;
  font-family: sans-serif;
  text-align: center;
  letter-spacing: 2px;
  display: none;

}

.close_btn {
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.button {
  position: absolute;
  left: 0%;
  top: 0%;
  right: 0%;
  bottom: auto;
  cursor: pointer;
  display: inline;

  width: 34px;
  /* 初始宽度固定 */
  height: 60px;
  /* 初始高度固定 */
  background-image: url("../media/arrow.png");
  background-size: contain;
  /* 背景图片适应元素，保持比例 */
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center;
  /* 缩放以中心为基准 */
  transition: transform 0.3s ease;
  /* 平滑缩放效果 */

}

/* 鼠标悬停时切换背景图片 */
.button:hover {
  background-image: url("../media/arrow_hove.png");
  /* 悬停时的背景图片 */
}

/*    left  */
.left-arrow {
  transform: scale(0.9);
}

.left-panel {
  position: absolute;
  left: 0px;
  top: auto;
  bottom: 0px;
  width: 0px;
  height: 100px;
  margin-bottom: -50px;
  margin-left: 40px;
}

.left-panel-position {
  position: absolute;
  margin-left: 10px;
  left: 0%;
  top: 0%;
  width: 0px;
  height: 50%;
}

/*    rigth  */
.right-arrow {
  transform: scaleX(-1) scale(0.9);

}

.right-panel {
  position: absolute;
  right: 0px;
  top: auto;
  bottom: 0px;
  width: 0px;
  height: 100px;
  margin-bottom: -50px;
  margin-right: 80px;
}

.right-panel-position {
  position: absolute;
  right: 0px;
  top: 0px;
  width: 0px;
  height: 50%;
  margin-right: 10px;
}

/* .logo {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-image: url("../media/title.png");
  background-repeat: no-repeat;
  background-size: contain;
  width: clamp(200px, 80%, 600px);
  
  height: auto;
  aspect-ratio: 1024 / 165;

} */







/*指示器按钮*/
.btn-position {
  position: absolute;
  width: auto;
  min-width: 240px;
  max-width: 90%;
  height: auto;
  min-height: 40px;
  border-radius: 20px;
  left: 50%;
  bottom: 2.5%;
  transform: translateX(-50%);
  /* background-color: rgb(0, 0, 0);
  opacity: 0.4; */
  user-select: none;
  padding: 5px 10px;
  overflow-y: hidden;
}

.btn-position>ul {
  padding: 0;
  margin: 0;
  list-style: none;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  min-width: min-content;
}

.btn-position li {
  min-width: 60px;
  height: 30px;
  /* border-radius: 15px; */
  background-image: url("../media/but.png");
  background-size: cover;
  /* 背景图片自动适应 div */
  background-position: center;
  /* 背景图片居中 */
  background-repeat: no-repeat;
  /* 防止背景图片重复 */
  /* background-color: rgb(185, 185, 185); */
  font-family: "MyXingshu", Arial, Helvetica, sans-serif;
  margin: 5px 4px;
  text-align: center;
  line-height: 30px;
  /* font-weight: bold; */
  color: rgb(96, 96, 47);
  cursor: pointer;
  user-select: none;
  font-size: clamp(10px, 1.5vw, 15px);
  padding: 0 1em;
  white-space: nowrap;
}

.btn-position li:hover {
  /* background-color: #fff; */
  color: #000000;
  user-select: none;
}



/*指示器按钮结束*/

/*  Media  */
@media screen and (max-width: 767px) {
  .text_window {
    display: none;
    /* 隐藏窗口 */
  }

  .btn-position {
    min-width: 200px;
    min-height: 70px;
    padding: 3px 8px;
  }

  .help-pic {
    width: 20%;
    right: 20px;
    /* 缩小宽度 */
  }

  .svg-icon {
    width: 40px;
    height: 40px;
    fill: currentColor;
    overflow: hidden;
  }

  .left-panel {
    margin-left: 0px;
  }

  .right-panel {
    margin-right: 20px;
  }



  .button {
    transform: scale(0.8);

    /* 水平镜像背景图片 */
  }

  .right-arrow {
    transform: scaleX(-1) scale(0.8);

  }


  .logo {
    letter-spacing: 2px;
  }

  .num {
    bottom: calc(6% + 85px);
    font-size: 14px;
    width: 28px;
    height: 28px;
  }

  @media screen and (max-width: 479px) {
    .btn-position {
      min-width: 150px;
      min-height: 60px;
      padding: 3px 5px;
    }

    .btn-position li {
      height: 22px;
      line-height: 22px;
      min-width: 30px;
      margin: 2px;
      padding: 0 0.8em;
      /* font-size: 25px; */
    }

    .button {
      transform: scale(0.4);
    }

    .right-arrow {
      transform: scaleX(-1)scale(0.4);

    }

    .open-mod {
      display: none;
    }

    .logo {
      letter-spacing: 1px;
      top: 15px;
    }

    .num {
      bottom: calc(6% + 75px);
      font-size: 12px;
      width: 25px;
      height: 25px;
    }
  }

  @media screen and (max-width: 320px) {
    .btn-position {
      min-height: 55px;
      padding: 2px 4px;
    }

    .btn-position li {
      height: 20px;
      line-height: 20px;
      margin: 2px;
      padding: 0 0.6em;
      /* font-size: 9px; */
    }

    .num {
      bottom: calc(6% + 70px);
      font-size: 11px;
      width: 22px;
      height: 22px;
    }
  }
}



.btn-position::-webkit-scrollbar {
  height: 4px;
}

.btn-position::-webkit-scrollbar-track {
  background: transparent;
}

.btn-position::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

@media screen and (min-width: 1200px) {
  .btn-position {
    max-width: 1000px;
  }

  .btn-position li {
    /* font-size: 12px; */
    margin: 5px 6px;
  }
}