/* 教师卡片容器 */
.teacher-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 80px;  /* 上下20px，左右80px的间距 */
  margin-top: 40px;
}

/* 教师卡片样式 */
.teacher-card {
  width: calc(50% - 40px);  /* 调整宽度以适应80px的左右间距 */
  display: flex;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  height: 162px;
  background-color: #f5f5f5;
  color: #333;
}

/* 卡片悬停效果 */
.teacher-card:hover {
  background: linear-gradient(0deg, #850C0D 0%, #B81E2C 100%);
  color: #fff;
}

/* 教师照片 */
.teacher-photo {
  width: 138px;
  height: 162px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 照片尺寸标记 */
.photo-size {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 10px;
  padding: 2px 4px;
}

/* 教师信息 */
.teacher-info {
  padding: 20px 15px;
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 教师姓名 */
.teacher-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;  /* 调整下边距 */
}

/* 教师职位信息 */
.teacher-position {
  font-size: 16px;  /* 修改为16px，符合正文字体大小要求 */
  line-height: 1.6;
  margin-bottom: 5px;
}

/* 查看更多链接 */
.view-more {
  position: absolute;
  bottom: 20px;
  right: 83px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: inherit;
  text-decoration: none;
}

/* 箭头图标 */
.arrow-icon {
  width: 30px;
  height: 6px;
  margin-right: 5px;  /* 改为右边距，因为图标现在在文字前面 */
  margin-left: 0;     /* 移除左边距 */
}

/* 悬停时更换箭头图标 */
.teacher-card:hover .arrow-icon {
  content: url("../images/2022_ibs_19@2xactive.png");
}

/* 校徽图标 */
.school-emblem {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 70px;  /* 调整宽度 */
  height: 67px;  /* 调整高度 */
  opacity: 0.8;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .teacher-grid {
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
    background-color: #fff;
  }
  
  .content-header {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }
  
  .section-title {
    font-size: 18px;
    margin: 0;
  }
  
  .teacher-card {
    width: 100%;
    height: 102px;
    margin-bottom: 15px;
    box-shadow: none;
    background-color: #F6F6F6;
    border-bottom: none;
    padding: 0;
    display: flex;
    align-items: center;
  }
  
  .teacher-card:hover {
    background: #F6F6F6;
    color: #333;
  }
  
  .teacher-photo {
    width: 70px;
    height: 102px;
    border-radius: 0;
    margin: 0;
    margin-right: 15px;
  }
  
  .teacher-photo img {
    width: 70px;
    height: 102px;
    object-fit: cover;
  }
  
  .teacher-info {
    padding: 0 0 0 10px;
    justify-content: center;
  }
  
  .teacher-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
  }
  
  .teacher-position {
    font-size: 14px;
    margin-bottom: 6px;
    color: #666;
    line-height: 1.3;
  }
  
  .view-more {
    display: none;
  }
  
  .school-emblem {
    display: none;
  }
  
  /* 移动端内容区域调整 */
  .content-body {
    padding: 0;
  }
  
  .content-main {
    padding: 0;
  }
} 