/* 优秀团队列表页 /team */

.page-banner {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

.team-section {
  padding: 40px 0 60px;
  background: #fff;
}

/* 内容区中部居中 Tab，每项 150px */
.team-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 auto 36px;
  max-width: 100%;
}

.team-tab {
  width: 150px;
  flex: 0 0 150px;
  box-sizing: border-box;
  padding: 12px 10px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  border: 1px solid #8B1C31;
  background: #fff;
  color: #8B1C31;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  user-select: none;
}

a.team-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

button.team-tab {
  appearance: none;
}

.team-tab:hover {
  background: rgba(139, 28, 49, 0.06);
}

.team-tab.is-active {
  background: #8B1C31;
  color: #fff;
  border-color: #8B1C31;
}

.team-tab-panel {
  display: none;
}

.team-tab-panel.is-active {
  display: block;
}

.team-section .team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.team-section .team-card {
  display: flex;
  gap: 0;
  border: 1px solid #eee;
  overflow: hidden;
  transition: all 0.4s;
  background: #fff;
  border-radius: 3px;
}

.team-section .team-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border-color: #ddd;
}

.team-section .team-photo {
  width: 220px;
  min-height: 280px;
  flex-shrink: 0;
  overflow: hidden;
}

.team-section .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}

.team-section .team-card:hover .team-photo img {
  transform: scale(1.03);
}

.team-section .team-detail {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

.team-section .team-detail h3 {
  font-size: 20px;
  color: #8B1C31;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-section .team-detail .position {
  font-size: 13px;
  color: #8B1C31;
  margin-bottom: 14px;
}

.team-section .team-detail ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
  flex: 1;
}

.team-section .team-detail ul li {
  font-size: 13px;
  color: #666;
  line-height: 2;
  position: relative;
  padding-left: 10px;
}

.team-section .team-detail ul li::before {
  content: '\00B7';
  position: absolute;
  left: 0;
  color: #999;
}

.team-section .team-detail .team-summary {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 16px;
  flex: 1;
}

.team-section .team-detail .btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid #8B1C31;
  font-size: 12px;
  color: #8B1C31;
  align-self: flex-start;
  transition: all 0.3s;
}

.team-section .team-detail .btn-detail:hover {
  background: #8B1C31;
  color: #fff;
}

.team-section .team-detail .btn-detail::after {
  content: '\203A';
  font-size: 14px;
}

.team-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 48px 0;
}

@media (max-width: 1024px) {
  .team-section .team-grid {
    gap: 16px;
  }

  .team-section .team-photo {
    width: 180px;
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .page-banner {
    height: 220px;
  }

  .team-section .team-grid {
    grid-template-columns: 1fr;
  }

  .team-section .team-photo {
    width: 160px;
    min-height: 220px;
  }

  .team-section .team-detail h3 {
    font-size: 17px;
  }

  .team-tab {
    width: 130px;
    flex: 0 0 130px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-banner {
    height: 160px;
  }

  .team-section .team-card {
    flex-direction: column;
  }

  .team-section .team-photo {
    width: 100%;
    min-height: 200px;
  }

  .team-tabs {
    gap: 8px;
  }

  .team-tab {
    width: 110px;
    flex: 0 0 110px;
    padding: 10px 6px;
    font-size: 13px;
  }
}
