/* index.html 页面专属css */

.character-title {
  height: 100vh;
  width: 100vw;
  background-color: #f2f2f2;
  height: 100vh;
  background-color: #f2f2f2;
  /* 保留背景色作为后备选项 */
  background-image: url('../img/character/bg4.png');
  /* 添加背景图片 */
  /* background-size: cover; */
  background-size: 100% 100%;
  /* 使背景图片覆盖整个div */
  background-position: center;
  /* 背景图片居中显示 */
  background-repeat: no-repeat;
  /* 防止背景图片重复 */
  background-attachment: scroll;
  /* 背景图片固定，可选 */

  position: relative;
}

.peopleBox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 2.6rem;

  position: absolute;
  /* 启用绝对定位 */
  top: 54%;
  /* 从顶部向下移动50% */
  left: .2rem;
  /* 从左侧向右移动50% */
  transform: translate(0%, -50%);
}

.story {
  cursor: pointer;
}

/* 角色播放视频按钮 */
.video {
  /* position: absolute; */
  /* top: 46%; */
  /* right: -17%; */
  width: .7rem;
  cursor: pointer;
}

.detail-box {
  position: absolute;
  top: 40%;
  left: 65.95%;
}

.people-detail {
  width: 95px;
}

.people-item {
  position: relative;
  /* 设置为相对定位 */
  width: 1.3rem;
  height: 1.1rem;
}

.people-item .people {
  filter: grayscale(50%);
  transition: filter 0.5s ease-in-out;
}

.people-item:hover .people {
  filter: grayscale(0%);
}

.apeople {
  position: absolute;
  top: 0;
  left: -0.07rem;
  z-index: 2;
  display: none;
  height: 1.15rem;
  width: 1.12rem;
}

.detail-item-box {
  animation: slideInFromRight 0.5s ease-in-out;
}

/* 从右边插入 */
@keyframes slideInFromRight {
  from {
    transform: translateX(200%);
  }

  to {
    transform: translateX(0);
  }
}

.people-team {
  font-size: .22rem;
  color: #c9cff0;
}

.people-name {
  font-size: .73rem;
  font-weight: 800;
  margin-top: 1px;
  color: white;
  display: flex;
  align-items: center;
  /* justify-content: center; */
}

.people-friends {
  font-size: .14rem;
  padding: .06rem .12rem;
  /* max-width: 310px; */
  margin-bottom: .33rem;
  background-color: #3874d5;
  border-radius: 17px;
  border: 1px solid #d4e4f8;
  color: #d4e4f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.people-friends span:first-child {
  margin-right: 10px;
}


/* 故事弹窗 */
#story-popup {
  display: none;
  position: fixed;
  left: 52%;
  top: 40%;
  transform: translate(-50%, -50%);
  /* background-color: white; */
  padding: 20px;
  z-index: 1000;

  /* display: flex; */
  justify-content: center;
  /* align-items: center; */
}

.story-popup-line {
  background-image: url('../img/character/story-line-box.png');
  /* 添加背景图片 */
  background-size: cover;
  /* 使背景图片覆盖整个div */
  background-position: center;
  /* 背景图片居中显示 */
  background-repeat: no-repeat;
  width: 813px;
  height: 413px;
  position: relative;
  padding: 60px 40px 60px 40px;
  
  box-sizing: border-box;

}
.story-popup-title{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 26px;
  z-index: 2;
  font-size: 20px;
  color: #d9a43e;
  font-weight: 700;
}

.story-detail {
  box-sizing: border-box;
  color: #a19b92;
  word-wrap: break-word;
  text-align: justify;
  height: 300px;
  overflow-y: auto;
  padding-right: 20px;
  font-size: .16rem;
}
.story-detail::-webkit-scrollbar {
  width: 12px;
  /* 垂直滚动条的宽度 */
  height: 12px;
  /* 水平滚动条的宽度 */
}

/* 设置滚动条轨道的颜色 */
.story-detail::-webkit-scrollbar-track {
  background: #312b22;
  /* 滚动条轨道的颜色 */
  border-radius: 6px;
}

/* 设置滚动条的颜色 */
.story-detail::-webkit-scrollbar-thumb {
  background: #826e4c;
  /* 滚动条的颜色 */
}

/* 设置滚动条的边框 */
.story-detail::-webkit-scrollbar-thumb {
  border-radius: 6px;
  /* border: 3px solid #f1f1f1;  */
}
  

.story-detail p {
  text-indent: 2em;
  /* 设置首行缩进为2em */
  margin: 1em 0;
  /* 设置段落之间的间距 */
}

/* 角色视频弹窗 */
#people-video-popup {
  display: none;
  position: fixed;
  left: 52%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* background-color: white; */
  padding: 20px;
  z-index: 1000;

  /* display: flex; */
  justify-content: center;
  /* align-items: center; */
}

.people-video-popup {
  background-image: url(../img/video-linebox.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 950px;
  height: 552px;

  position: relative;
}

#people-video {
  padding-top: 1.13vw;
  padding-left: 1.2vw;
  width: 60.8vw;
  height: 34.4vw;
}

.people {
  width: 1rem;
  cursor: pointer;

}


/* 1111 */

.skills-box {
  display: flex;

}

.skills {
  width: 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
}

.skills-item {
  width: .7rem;
}

.paopao {
  width: .95rem;
  height: .43rem;
}

.skills-type {
  position: absolute;
  top: .05rem;
  color: white;
  font-size: .16rem;
}