/* 心理健康与团建在线样式 */
.mental-team-section {
  padding: 30px 0;
  background: #fff;
}

.mental-team-layout {
  display: flex;
  gap: 30px;
}

/* 左侧：心理健康 */
.mental-health {
  /* flex: 0 0 60%; */
  flex: 1;
  width: 50%;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mental-health .common-common-header,
.team-building .common-common-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mental-health .common-common-header h1,
.team-building .common-common-header h1 {
  font-size: 24px;
  font-weight: bold;
  color: rgb(200, 0, 0);
  margin: 0;
}

.mental-health .common-common-header a,
.team-building .common-common-header a {
  color: var(--blue-color);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-header a:hover {
  color: #dc3545;
}

.mental-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mental-item {
  padding: 10px 0;
  border-bottom: 1px dashed #e9ecef;
}

.mental-item:last-child {
  border-bottom: none;
}

.mental-item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}

.mental-title {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.mental-item:hover .mental-title {
  color: #dc3545;
}

.mental-date {
  font-size: 12px;
  color: #999;
}

/* 右侧：团建在线 */
.team-building {
  flex: 1;
  width: 48%;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
}

.team-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 上方图片区域 */
.team-image-wrapper {
  height: 140px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.team-image-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-image-item.active {
  opacity: 1;
}

.team-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右侧文章列表 */
.team-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.team-item {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.team-item:hover,
.team-item.active {
  background: #fff;
}

.team-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.team-title {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-item:hover .team-title,
.team-item.active .team-title {
  color: #dc3545;
}

.team-time {
  font-size: 11px;
  color: #999;
  margin: 0;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .mental-team-layout {
    flex-direction: column;
    gap: 20px;
  }
  
  .mental-health {
    flex: 1;
  }
}

@media (max-width: 576px) {
  .mental-team-section {
    padding: 20px 0;
  }
  
  .mental-health,
  .team-building {
    padding: 15px;
  }
  
  .section-header h2 {
    font-size: 16px;
  }
  
  .mental-title {
    font-size: 13px;
  }
  
  .mental-date {
    font-size: 11px;
  }
  
  .team-image-wrapper {
    height: 120px;
  }
  
  .team-title {
    font-size: 12px;
  }
  
  .team-time {
    font-size: 10px;
  }
}