.teacher-box {
  /* margin-top: -375px; */
  position: relative;
  z-index: 0;
  background-color: #fff;
  background-image: url("../images/teacher/teacher-back.png");
  background-size: cover;
}

.teacher-center {
  padding: 0 8%;
}
.teacher-center-center {
  margin-top: 55px;
}
.teacher-center-center .filter-box {
  width: 100%;
  /* height: 66px; */
  padding: 26px 16px 16px 16px;
  border: 1px solid #e5e4e4;
}
.teacher-center-center .filter-box .letter-box {
  display: flex;
  flex-wrap: wrap;
}
.teacher-center-center .filter-box .letter-box .letter {
  font-size: 18px;
  color: #2e2e2e;
  font-family: "Microsoft Ya Hei";
  padding: 2px 6px;
  /* background: #fff; */
  margin-right: 14px;
  cursor: pointer;
}
.teacher-center-center .filter-box .letter-box .letter:nth-child(1) {
  margin-right: 20px;
}
.teacher-center-center .filter-box .letter-box .letter-change {
  color: #ffffff;
  background: #b30000;
}
.teacher-center-center .filter-box .letter-box .letter:hover {
  background: #b30000;
  color: #fff;
}
.teacher-center-center .filter-search {
  width: 600px;
  height: 58px;
  border: 1px solid #b30000;
  display: flex;
  justify-content: space-between;
}
.teacher-center-center .filter-search .left {
  width: 269px;
  height: 100%;
  background: #b30000;
  font-size: 18px;
  color: #ffffff;
  font-family: "Microsoft Ya Hei";
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.teacher-center-center .filter-search .left p {
  width: 20px;
  height: 10px;
  background-image: url("../images/teacher/redjiantou.png");
  position: absolute;
  bottom: -10px;
  left: 129px;
}
.teacher-center-center .filter-search .right {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.teacher-center-center .filter-search .right span {
  font-size: 18px;
  color: #2e2e2e;
  font-family: "Microsoft Ya Hei";
  margin-left: 30px;
}
.teacher-center-center .filter-search .right p {
  width: 12px;
  height: 6px;
  background-image: url(../images/teacher/jiantou.png);
  margin-right: 38px;
}

.teacher-center-bottom {
  display: flex;
  /* justify-content: space-between; */
  flex-wrap: wrap;
  gap: 44px;
}
.teacher-center-bottom .teacher-msg-box {
  width: 31%;
  height: 623px;
  border: 1px solid #e5e4e3;
  position: relative;
  margin-top: 56px;
  cursor: pointer;
  overflow: hidden;
}
.teacher-center-bottom .teacher-msg-box .teacher-msg-center {
  width: 100%;
  height: 526px;
  margin: 0 auto;
  /* margin-top: 18px; */
  background: #a9a6a6;
  overflow: hidden;
}
.teacher-center-bottom .teacher-msg-box .teacher-msg-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.teacher-center-bottom .teacher-msg-box .teacher-name {
  text-align: center;
  font-size: 18px;
  letter-spacing: 1px;
  color: #2e2e2e;
  font-family: "Microsoft Ya Hei";
  margin-top: 28px;
}
.teacher-center-bottom .teacher-msg-box .line-red {
  position: absolute;
  height: 4px;
  width: 100%;
  background-image: url("../images/teacher/cai_line.png");
  bottom: -2px;
  display: none;
}
.teacher-center-bottom .teacher-msg-box:hover .teacher-name {
  color: #990000;
}
.teacher-center-bottom .teacher-msg-box:hover .line-red {
  display: block;
}
.teacher-center-bottom .teacher-msg-box .hui-line {
  height: 9px;
  width: 100%;
  position: absolute;
  bottom: -10px;
  background: #f5f5f5;
}
.teacher-center-bottom .teacher-msg-box:hover img {
  transform: scale(1.1);
  transition: all 0.2s;
}

/* 原有.right样式保持不变 */
.teacher-center-center .filter-search .right {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
}

/* 下拉框样式 - 保持原有风格 */
.subject-select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 18px;
  color: #2e2e2e;
  font-family: "Microsoft Ya Hei";
  background: transparent;
  margin-left: 30px;
  padding-right: 30px; /* 为下拉箭头留空间 */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
}

/* 自定义下拉箭头 - 替换原来的p标签 */
.filter-search .right::after {
  content: "";
  width: 12px;
  height: 6px;
  background-image: url(../images/teacher/jiantou.png);
  position: absolute;
  right: 38px;
  pointer-events: none;
}

/* 下拉选项样式 */
.filter-search .subject-select option {
  font-size: 16px;
  color: #2e2e2e;
  padding: 8px;
}

/* 移除默认的下拉箭头图标 (IE) */
.subject-select::-ms-expand {
  display: none;
}
/* 移动端 */
@media screen and (max-width: 1500px) {
  .teacher-center-bottom {
    gap: 2.5rem;
  }
}
@media screen and (max-width: 1000px) {
  .teacher-box {
    margin-top: 0;
  }
  .teacher-center {
    padding: 0 0.18rem;
  }
  .teacher-center-center .filter-search {
    width: 6.9rem;
    height: 0.62rem;
    border: 1px solid #b30000;
    display: flex;
    justify-content: space-between;
  }
  .teacher-center-center .filter-search .left {
    width: 2.7rem;
    font-size: 0.25rem;
  }
  .teacher-center-center .filter-search .left p {
    left: 2rem;
  }
  .teacher-center-center .filter-search .right {
    position: relative;
  }
  .subject-select {
    font-size: 0.25rem;
    padding-right: 0.4rem;
    margin-left: 0.3rem;
    display: flex;
  }
  .filter-search .right::after {
    width: 0.12rem;
    height: 0.06rem;
    right: 0.36rem;
    background-size: 100%;
  }
  .subject-select option {
    font-size: 0.22rem;
    padding: 0.1rem;
  }
  .teacher-center-bottom {
    margin-bottom: 0.6rem;
    gap: 0.28rem;
  }
  .teacher-center-bottom .teacher-msg-box {
    width: 48%;
    height: auto;
    margin-top: 0.4rem;
  }
  .teacher-center-bottom .teacher-msg-box .teacher-msg-center {
    height: 4.24rem;
  }
  .teacher-center-bottom .teacher-msg-box .teacher-name {
    margin-top: 0.22rem;
    margin-bottom: 0.22rem;
    font-size: 0.25rem;
  }
}
