/* teacher.css - 教师列表页面样式 */

.teacher-grid {
  margin-top: 30px;
  /* 顶部外边距 */
  margin-left: -124px;
}

.main-menu-container {
  top: 700px !important;
}

.main-menu-container .second-active {
  margin-left: 20px;
}

.main-menu-container .third-active {

}

.teacher-item {
  /* background-color: #f8f9fa;  可选：添加背景色 */
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  /* 添加过渡效果 */
  width: 161px;
  /* 设置固定宽度 */
  height: 246px;
  /* 设置固定高度 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 64px;
  /* 设置下外边距 */
  margin-left: 124px;
  /* 设置右外边距 */
  box-shadow: 0px 1px 4px 0px rgba(68, 68, 68, 0.1);
  /* 添加阴影 */
}

/*
.teacher-item:hover {
  transform: translateY(-5px); /* 悬停时轻微上移 */
/*  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影 */
/*}
*/

.teacher-item a {
  text-decoration: none;
  /* 去除链接下划线 */
  color: inherit;
  /* 继承父元素颜色 */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.teacher-photo {
  /* max-width: 100%; 图片最大宽度 */
  /* height: auto; 高度自适应 */
  /* aspect-ratio: 3 / 4; 设置图片宽高比，可以根据实际图片调整 */
  height: 200px;
  width: 161px;
  object-fit: cover;
  border: 1px solid #eee;
  /* 图片边框 */
  /* margin-bottom: 10px; 图片下方间距 */
  /* width: 100%; /* 移动到移动端样式 */
}

.teacher-name {
  font-size: 16px;
  /* 教师姓名文字大小 */
  font-weight: bold;
  /* 字体加粗 */
  color: #333;
  /* 文字颜色 */
  margin-top: 13px;
  /* 将名字推到底部 */
}

/* Banner样式 */
.banner-container {
  height: 780px;
  width: 1920px;
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 1920px;
  height: 915px;
}

/* 移动端Banner样式 */
.banner-container-mobile {
  height: 302px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.banner-image-mobile {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 移动端样式 */
@media (max-width: 767px) {
  main {
    padding: 0 12px;
  }

  .teacher-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* 在项目之间分配空间 */
    margin-left: 0;
    /* 重置PC端的左边距 */
    margin-top: 20px;
    /* 调整移动端上边距 */
    margin-bottom: 20px;
    /* 添加移动端下边距 */
    width: 100%;
    /* 确保占据父容器宽度 */
  }

  .teacher-item {
    flex: 0 0 calc(33.333% - 8px);
    /* 每个项目占据约1/3宽度，减去间隙 */
    width: calc(33.333% - 8px);
    /* 明确宽度 */
    margin-left: 0;
    /* 重置PC端的左边距 */
    margin-bottom: 20px;
    /* 调整移动端下边距 */
    height: auto;
    /* 高度自适应 */
    box-shadow: 0px 1px 4px 0px rgba(68, 68, 68, 0.1);
    /* 添加阴影 */
    border-radius: 2px;
    /* 添加圆角 */
  }

  .teacher-photo {
    /* height: auto; /* 图片高度自适应 */
    height: 155px;
    /* 设置移动端固定高度 */
    object-fit: cover;
    /* 保持宽高比并裁剪 */
    width: 100%;
    /* 图片宽度充满容器 */
    /* aspect-ratio: 1 / 1; /* 可选：设置固定宽高比 */
  }

  .teacher-name {
    margin-top: 9px;
    /* 设置移动端上边距 */
    margin-bottom: 9px;
    /* 设置移动端下边距 */
    font-size: 14px;
    /* 调整字体大小 */
    font-weight: normal;
    /* 取消加粗 */
  }
}

/* 教师简介页面样式 */
.teacher-profile-container {
  padding: 20px 0;
}

.profile-section {
  margin-bottom: 40px;
}

.section-header {
  background-color: #d32f2f;
  color: white;
  padding: 15px 20px;
  margin-bottom: 30px;
  /* border-radius: 4px; */
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.single-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* max-width: 226px; */
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.profile-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 226px;
}

.profile-photo {
  width: 226px;
  height: 300px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

.photo-placeholder {
  width: 226px;
  height: 300px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
}

.profile-name {
  width: 226px;
  height: 81px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0px;
  line-height: 36px;
  color: rgba(0, 0, 0, 1);
  text-align: left;
  vertical-align: top;
  text-align: center;
  line-height: 81px;
  border-bottom: 3px solid rgba(193, 52, 50, 1);
}

.profile-name:hover {
  background-color: #d32f2f;
  color: white;
}

.profile-name-1 {

  background-color: #d32f2f;


  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0px;
  color: rgba(255, 255, 255, 1);
  text-align: left;
  vertical-align: top;
  text-align: center;
  line-height: 81px;
}

/* 移动端样式 */
@media (max-width: 767px) {

  .mobile-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    min-height: auto;
    margin-bottom: 20px;
    margin-top: 10px;
  }

  .mobile-profile-grid .mobile-profile-item {
    width: 100px;
    height: 180px !important;
  }

  .mobile-profile-grid .mobile-profile-item .mobile-profile-name {
    /** 文本1 */
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 36px;
    color: rgba(56, 56, 56, 1);
    width: 100%;
    box-sizing: border-box;


  }

  .mobile-profile-grid .mobile-profile-item .mobile-profile-photo img {
    width: 100px !important;
    height: 130px !important;
    margin: 0 !important;
  }

  .section-title {
    /** 文本1 */
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 36px;
    color: rgba(0, 0, 0, 1);
  }

  .mobile-profile-item {
    /* width: 342px; */
    /* height: 343px; */
  }

  .mobile-profile-item {
    height: 489px;
  }

  .mobile-profile-item .mobile-profile-name {
    text-align: center;
    width: 120px;
    margin: 0 auto;
    border-bottom: 2px solid #d32f2f;


    /** 文本1 */
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 36px;
    color: rgba(56, 56, 56, 1);
  }

  .mobile-profile-item .mobile-profile-photo {
    /* height: 343px !important; */
  }

  .mobile-profile-item .mobile-profile-photo img {
    height: 343px !important;
  }

  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .profile-photo {
    width: 100px;
    height: 125px;
  }

  .profile-name {
    font-size: 12px;
    padding: 6px 12px;
    min-width: 60px;
  }

  .section-header h2 {
    font-size: 18px;
  }

  /* 移动端banner高度优化 */
  .banner-container-mobile {
    height: 302px !important;
    width: 100% !important;
  }

  .banner-image-mobile {
    width: 100% !important;
    height: 302px !important;
    object-fit: cover;
    position: relative !important;
    z-index: 0 !important;
  }

  /* 移动端内容区域样式 */
  .mobile-content.pcHidden {
    padding: 20px 15px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 0;
  }

  /* 移动端文章标题样式 */
  .mobile-content.pcHidden .articleTitle {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    text-align: left;
    line-height: 1.4;
  }

  /* 移动端文章元信息样式 */
  .mobile-content.pcHidden .articleMeta {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    text-align: left;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  /* 移动端教师简介区域样式 */
  .mobile-content.pcHidden .mobile-profile-section {
    margin-bottom: 32px;
  }

  .mobile-content.pcHidden .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e5e5;
  }

  /* 移动端教师简介网格样式 */
  .mobile-content.pcHidden .mobile-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
  }

  /* 移动端教师简介项目样式 */
  .mobile-content.pcHidden .mobile-profile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mobile-content.pcHidden .mobile-profile-photo {
    width: 80px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .mobile-content.pcHidden .mobile-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-content.pcHidden .mobile-profile-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    word-break: break-all;
    padding-bottom: 8px;
    border-bottom: 2px solid #d32f2f;
    width: 100%;
    box-sizing: border-box;
  }

  /* 移动端容器样式优化 */
  .partybuildingworkList.mt-4 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .partybuildingworkList.mt-4 .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .partybuildingworkList.mt-4 .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .partybuildingworkList.mt-4 .pcHidden {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* 超小屏幕优化 */
@media (max-width: 576px) {
  .mobile-content.pcHidden {
    padding: 12px 10px;
    margin: 0;
    border-radius: 8px;
  }

  .mobile-content.pcHidden .mobile-profile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .mobile-content.pcHidden .mobile-profile-photo {
    width: 70px;
    height: 88px;
  }

  .mobile-content.pcHidden .mobile-profile-name {
    font-size: 13px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d32f2f;
  }
}

/* 中等屏幕优化 */
@media (min-width: 577px) and (max-width: 768px) {
  .mobile-content.pcHidden {
    margin: 0;
  }

  .mobile-content.pcHidden .mobile-profile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .mobile-content.pcHidden .mobile-profile-photo {
    width: 90px;
    height: 112px;
  }

  .mobile-content.pcHidden .mobile-profile-name {
    font-size: 14px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d32f2f;
  }

  .mobile-content.pcHidden .articleTitle {
    font-size: 26px;
  }
}

@media screen and (max-width: 768px) {
 
 .banner-container-mobile .lanmu{
position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 36px;
    color: rgba(255, 255, 255, 1);
    text-align: center;
    white-space: nowrap;

}
}