/* 加载动画 */
#loading-page {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}
/* 加载动画 */

/* 团体照片 */
.photo-container {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  /* max-width: 800px; */
  /* 最大宽度，根据需要调整 */
  margin: auto;
  /* 居中 */
}

.team-photo {
  width: 70%;
  height: auto;
  border-radius: 1cm;
  /* 圆形边框 */
  box-shadow: 0 20px 20px rgb(232, 131, 131), /* 第一层阴影 */ 0 26px 30px pink;
  /* 第二层阴影 */
  transition: transform 0.3s ease;
  /* 鼠标悬停时的动画效果 */
  position: relative;
  /* 图片也设置为相对定位，以便伪元素绝对定位 */
  overflow: hidden;
  /* 隐藏超出图片边框的文字部分 */
}
.team-photo:hover {
  transform: scale(1.15);
  /* 鼠标悬停时放大 */
}

/* 团体照片 */

/* 个人介绍卡片 */
.introduction-card {
  color: rgb(193, 0, 93);
  font-family: 'xiangsu', Arial, sans-serif;
  background-color: rgb(250, 234, 235);
  padding: 20px;
  /* 内部的padding */
  border-radius: 8px;
  box-shadow: 0 8px 16px pink;
  border: 10px solid rgb(255, 161, 170); /* 文本框边框颜色 */
  text-align: center;
  transition: transform 0.3s;
  /* 平滑过渡效果 */
}

.profile-pic {
  width: 6cm;
  /* 可以根据头像大小调整 */
  /* height: 6cm; */
  border-radius: 50%;
  margin: 0 auto 20;
  /* 距20px，左右自动适应 */

}

@keyframes shake {
  0% {
    -webkit-box-shadow: 0 0 pink, 0 0 pink, 0 0 pink, 0 0 pink, 0 0 pink;
    box-shadow: 0 0 pink, 0 0 pink, 0 0 pink, 0 0 pink, 0 0 pink;
    -webkit-transform: translateX(0) translateY(0);
    transform: translateX(0) translateY(0);
  }

  100% {
    -webkit-box-shadow: 1px -1px pink, 2px -2px pink, 3px -3px pink,
      4px -4px pink, 5px -5px pink;
    box-shadow: 1px -1px pink, 2px -2px pink, 3px -3px pink, 4px -4px pink,
      5px -5px pink;
    -webkit-transform: translateX(-5px) translateY(5px);
    transform: translateX(-5px) translateY(5px);
  }
}

/* 测试 方案一 */
/*
  * Scut, a collection of Sass utilities
  * to ease and improve our implementations of common style-code patterns.
  * v1.3.0
  * Docs at https://davidtheclark.github.io/scut
  */

.wrapper--team {
  margin: 0;
  padding: 2rem 1rem;
  /* background-color: #E9E7D0; */
}

.wrapper--team p {
  text-indent: 0px;
}

.l-container {
  margin: 0 auto;
}

@media screen and (min-width: 64em) {
  .l-container {
    max-width: 64rem;
  }
}

@media screen and (min-width: 75em) {
  .l-container {
    max-width: 75rem;
  }
}

.team-grid {
  margin: 70px;
  text-align: center;
  /* *zoom: 1; */
}

.team-grid:before,
.team-grid:after {
  content: " ";
  display: table;
}

.team-grid:after {
  clear: both;
}

.team-grid__member {
  font-family: ff-tisa-web-pro;
  max-width: 100%;
  padding: 0.5rem;
  margin: 0 0 0.5rem;
  display: inline-block;
  float: none;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

@media screen and (min-width: 28em) {
  .team-grid__member {
    width: 49%;
    max-width: none;
  }
}

@media screen and (min-width: 42em) {
  .team-grid__member {
    width: 32.5%;
  }
}

@media screen and (min-width: 62em) {
  .team-grid__member {
    width: 19.45%;
  }
}

.team-grid__member {
  position: relative;
  overflow: hidden;
  width: 8cm;
  /* 调整大小，十厘米一下是三个一排，以上是两个一排 */
}

.member__info {
  color: #fff;
  height: auto;
  width: auto;
  opacity: 0;
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(243, 36, 81, 0.85);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: opacity 1.2s ease-in-out;
}

.member__name {
  color: white;
  font-size: 1.7rem;
  /* 角色大小 */
  letter-spacing: 1px;
  line-height: 1.2rem;
  margin-bottom: 0;
  padding: 0 12px;
}

.member__title {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  /* 段落大小 */
  font-weight: normal;
  line-height: 1.5rem;
  padding: 0 1.5rem;
  text-align: left;
  /* 整体靠右避免空格 */
}

.team-grid__member:hover .member__info {
  animation: shake 1.2s;
  animation-fill-mode: forwards;
  opacity: 1;
}

.member__info:before {
  content: "";
  /* display: inline-block; */
  height: 100%;
  vertical-align: middle;
  margin-right: -0.25em;
}

.center-vert-content {
  display: inline-block;
  vertical-align: middle;
}
