/* ============================================================
 * Team list + detail styles.
 * Desktop: 2-col cards with avatar left / info right.
 * Mobile:  single column, stacked avatar + info.
 * ============================================================ */

/* ---------- Theme strip (management page only, kffund.cn parity) ---------- */
.team-themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 40px;
  padding: 32px 0;
  border-bottom: 1px solid #e3e8f0;
}
.team-theme { padding: 0 16px; }
.team-theme-num {
  font-family: 'Georgia', serif;
  font-size: 36px;
  color: #1a5490;
  line-height: 1;
  margin-bottom: 8px;
  font-weight: 600;
}
.team-theme-title {
  font-size: 18px;
  color: #1a2940;
  margin: 0 0 6px;
  font-weight: 600;
}
.team-theme-desc {
  font-size: 14px;
  color: #6c7891;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 768px) {
  .team-themes { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 0; margin-bottom: 24px; }
  .team-theme { padding: 0; }
  .team-theme-num { font-size: 28px; }
}

/* ---------- List ---------- */
.team-list-page .team-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.team-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.team-card .team-avatar img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  display: block;
}
.team-card .team-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.team-card .team-name {
  font-size: var(--fs-xl);
  color: var(--text-1);
  margin: 0;
  font-weight: var(--fw-semibold);
}
.team-card .team-title-pos {
  color: var(--primary);
  font-size: var(--fs-md);
  margin: 0;
}
.team-card .team-summary {
  color: var(--text-2);
  font-size: var(--fs-sm);
  margin: 0;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-card .team-more {
  align-self: flex-start;
  margin-top: 10px;
}

/* ---------- Detail ---------- */
.team-detail-page .team-profile {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
}
.team-detail-page .team-profile-avatar img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  background: var(--bg-2);
  display: block;
}
.team-detail-page .team-profile-info h1 {
  margin: 0 0 12px;
  font-size: var(--fs-xxl);
  color: var(--text-1);
  font-weight: var(--fw-semibold);
}
.team-detail-page .team-profile-info .team-title-pos {
  color: var(--accent);
  font-size: var(--fs-lg);
  margin: 0 0 16px;
}
.team-detail-page .team-profile-info .team-education {
  color: var(--text-2);
  font-size: var(--fs-md);
  margin: 0;
}
.team-detail-page .team-profile-info .team-education .iconfont {
  color: var(--primary);
  margin-right: 6px;
}
.team-detail-page .team-summary-section,
.team-detail-page .team-resume-section {
  margin-bottom: 48px;
}
.team-detail-page .section-title {
  font-size: var(--fs-xl);
  color: var(--text-1);
  margin: 0 0 20px;
  font-weight: var(--fw-semibold);
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.team-detail-page .team-summary-section p {
  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: 1.85;
  margin: 0;
}
.team-detail-page .team-detail-actions {
  margin-top: 48px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .team-list-page .team-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .team-card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }
  .team-detail-page .team-profile {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    text-align: center;
  }
  .team-detail-page .team-profile-avatar {
    max-width: 240px;
    margin: 0 auto;
  }
  .team-detail-page .team-profile-info h1 {
    font-size: var(--fs-xl);
  }
}

@media (max-width: 480px) {
  .team-card {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .team-card .team-avatar {
    max-width: 160px;
    margin: 0 auto;
  }
  .team-card .team-more {
    align-self: center;
  }
}
