/* 全局样式 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

.js {
  width: 100%;
  min-height: 800px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

/* 筛选区域样式 */
.teacher_sel {
  border-bottom: 1px #dddddd dashed;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0;
}

.teacher_sel dl {
  font-size: 14px;
  margin-bottom: 20px;
  overflow: hidden;
  margin-top: 15px;
}

.teacher_sel dl dt {
  float: left;
  width: 192px;
  text-align: center;
  font-weight: bold;
  background: #5a4398;
  color: #ffffff;
  padding: 5px 15px;
  border-radius: 5px;
  margin-right: 10px;
}

.teacher_sel dl dd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-left: 0;
}

.teacher_sel dl dd .filter-option {
  flex: 0 0 auto;
}

.teacher_sel dl dd .filter-items {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.teacher_sel dl dd .filter-items a {
  flex: 0 0 auto;
}

.teacher_sel dl dd a {
  padding: 5px 15px;
  color: #333333;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  white-space: nowrap;
  font-weight: 600;
}

.teacher_sel dl dd a.active {
  background: #5a4398c7;
  color: #ffffff;
  border-color: #5a4398c7;
}

/* 教师列表样式 */
.teacher_list {
  width: 90%;
  max-width: 1400px;
  margin: 20px auto;
}

.jsul {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-auto-rows: auto;
justify-content: flex-start;
gap: 20px;
padding: 0;
list-style: none;

}
.jsul {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 默认5列 */
  gap: 20px;
  padding: 0;
  list-style: none;
}

/* 响应式调整 */
@media (max-width: 1480px) {
  .jsul { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1160px) {
  .jsul { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .jsul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .jsul { grid-template-columns: 1fr; }
}

.jsul li {
  background-color: #6d5fa2d7;
  width: 250px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.jsk {
  display: flex;
  align-items: center;
  background-color: #6d5fa2d7;
  height: 150px;
  padding: 10px;
}

.jsk img {
  display: block;
  width: 90px;
  height: auto;
  max-width: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.jsxm {
  margin-top: 10px;
  margin-left: 10px;
  color: #fff;
}

.jsxm p:nth-child(1) {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.jsxm p:nth-child(2) {
  padding-top: 10px;
}

/* 去掉链接下划线 */
.teacher_list a {
  text-decoration: none;
  color: #fff;
}

/* 返回顶部按钮样式 */
.back-to-top {
  display: inline-flex;
  position: fixed;
  bottom: 256px;
  right: 20px;
  z-index: 999;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  background: none;
}

.back-to-top img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.back-to-top:hover img {
  transform: scale(1.2);
}

/* 响应式设计 */
@media only screen and (max-width: 600px) {
  .teacher_sel dl {
    display: flex;
    flex-direction: column;
  }

  .teacher_sel dl dt {
    width: auto;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .teacher_sel dl dd {
    width: 100%;
  }

  .jsul {
    justify-content: flex-start;
  }

  .jsk {
    height: auto;
  }

  .jsxm p {
    margin: 0;
  }

  .jsk img {
    object-fit: cover;
  }

  .jsul li {
    width: 100%;
    margin-bottom: 20px;
  }

  .teacher_sel dl dd .filter-option,
  .teacher_sel dl dd .filter-items {
    flex: 100% auto;
  }
}

/* 师资内容页样式 */

/* 教师信息区域 */
.teacher-content {
  width: 100%;
  background-color: #8e83b7;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  margin-top: 50px;
}

.teacher-content-img {
  padding-left: 4%;
  margin-top: 15px;
  text-align: center;
  margin-bottom: 20px;
}

.teacher-content-img img {
  width: 150px;
  height: 200px;
  border-radius: 5px;
}

.teacher-content-name {
  margin-top: 10px;
  line-height: 150%;
}

.teacher-content-name h1 {
  font-size: 2.4rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
}

.teacher-content-name p {
  font-size: 1.8rem;
  color: #fff;
  margin: 5px 0;
  line-height: 3rem;
}

.teacher-content-left,
.teacher-content-right {
  width: 42%;
  padding-left: 20px;
  padding-top: 5px;
  line-height: 40px;
  margin-bottom: 25px;
}

.teacher-content-left-1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  /* margin-top: 5px; */
  font-size: 1.8rem;
}
.teacher-content-left-1 a{
color: #fff;
}
.teacher-content-left-1 p:nth-child(1) {
  white-space: nowrap;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.teacher-content-left-1 p:nth-child(2) {
  padding-left: 10px;
  color: #fff;
  margin: 0;
  line-height: 3rem;
}

.teacher-content-right a {
  color: #fff;
  text-decoration: none;
}

.teacher-content-right a:hover {
  text-decoration: underline;
}

/* Tab 切换区域 */
.teacther-introduction {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.teacther-introduction-zise {
  width: 85%;
  background-color: #8e83b7;
  margin-top: 40px;
  border-radius: 8px;
  /* 增加圆角 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* 添加阴影 */
}

.teacher-tabs {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 50px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.teacher-tabs li {
  cursor: pointer;
  font-weight: 800;
  height: 100%;
  line-height: 50px;
  padding: 0 20px;
  transition: all 0.3s ease;
  /* 添加过渡效果 */
  color: #fff;
  position: relative;
  border-radius: 8px;
  /* 增加圆角 */
}

.teacher-tabs li:hover {
  background-color: rgba(255, 255, 255, 0.2);
  /* 悬停时背景变亮 */
}

.teacher-tabs li.active {
  background-color: #cecae0;
  color: #8e83b7;
  /* 激活时文字颜色变化 */
  font-weight: 800;
}

/* 添加底部指示条 */
.teacher-tabs li.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80%;
  height: 3px;
  background-color: #8e83b7;
  transform: translateX(-50%);
  border-radius: 2px;
}

.tab-content {
  display: none;
  width: 83%;
  margin-top: 30px;
  margin-bottom: 40px;
}

.tab-content.active {
  display: block;
}

/* 响应式布局 */
@media only screen and (max-width: 730px) {
  .teacher-content {
    flex-direction: column;
    align-items: center;
  }

  .teacher-content-left,
  .teacher-content-right {
    width: 90%;
  }

  .teacther-introduction-zise {
    width: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .teacther-introduction-zise {
    height: auto;
    margin-top: 0;
  }

  .teacher-tabs {
    flex-direction: column;
    height: auto;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .teacher-tabs li {
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }

  .teacher-tabs li.active::after {
    display: none;
    /* 小屏幕隐藏指示条 */
  }

  .tab-content.active {
    width: 95%;
  }
}