.icons {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
}

.icons .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6rem;
  color: #d18821;
}

.icons .item img {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.2rem;
}

.teachers {
  display: flex;
  flex-wrap: wrap;
}

.teachers .item-wrap {
  width: 33.3%;
  padding: 1.2rem;
}

.teachers .item {
  box-shadow: 0 0 15px #dadada;
  border-radius: 0.3rem;
  overflow: hidden;
  height: 15rem;
}

.teachers .item .left {
  background-color: rgba(255, 255, 255, 0.8);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 10rem;
  padding: 1rem 0.3rem;
  transition: width 0.5s ease, height 0.5s ease, background-color 0s ease;
}
.teachers .item .left img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.teachers .item .left .tag {
  padding: 4px 15px;
  font-size: 0.5rem;
  color: #fff;
  background: #d85e0e;
  border-radius: 8px 2px 8px 2px;
  margin: 0.3rem 0;
}

.teachers .item .left .btn {
  width: 100%;
  font-size: 0.5rem;
  background-color: #888587;
  opacity: 0.8;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem 0;
  text-align: center;
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
}

.teachers .item .left .btn a {
  color: #fff;
}

.teachers .item .left .name {
  color: #cd7400;
  text-align: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.teachers .item .right {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  height: 5rem;
}

.teachers .item .right .detail {
  font-size: 0.6rem;
  /* 溢出打点 */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  height: 4.8em;
  line-height: 1.2;
}

.teachers .item .right .btn {
  width: 3rem;
  font-size: 0.5rem;
  background-color: #949494;
  color: #fff;
  padding: 0.1rem 0;
  text-align: center;
  border-radius: 10px;
  display: none;
  cursor: pointer;
  margin: 0.3rem auto 0;
}

/* pc/笔记本 */
@media (min-width: 992px) {
  .teachers .item:hover {
    box-shadow: none;
  }

  .teachers .item:hover .left {
    background-color: transparent;
    height: 15rem;
    padding: 0;
  }

  .teachers .item:hover .left img {
    width: 100%;
    height: 15rem;
    border-radius: 0;
    border: none;
  }

  .teachers .item:hover .left .name {
    display: none;
  }
  .teachers .item:hover .left .tag {
    display: none;
  }
  .teachers .item:hover .left .btn {
    display: block;
  }

  .teachers .item:hover .right {
    padding: 0;
    height: 0;
    overflow: hidden;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .teachers .item-wrap {
    width: 50%;
  }
  .teachers .item .right .btn {
    display: block;
  }
}

/* 手机 */
@media (min-width: 0px) and (max-width: 767.98px) {
  .teachers .item-wrap {
    width: 100%;
  }
  .teachers .item .right .btn {
    display: block;
  }
}
