/* 定义颜色变量 */
:root {
  --text-primary: #333;
  --text-secondary: #666;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-shadow: rgba(0, 0, 0, 0.05);
  --tag-bg: rgba(31, 41, 55, 0.1);
  --header-line: linear-gradient(90deg, #6366f1, #ec4899);
}

/* 深色模式覆盖 - 匹配Puock主题 */
body.puock-dark {
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --card-bg: rgba(17, 24, 39, 0.05);
  --card-shadow: rgba(0, 0, 0, 0.1);
  --tag-bg: rgba(255, 255, 255, 0.1);
  --header-line: linear-gradient(90deg, #818cf8, #f472b6);
}

/* 核心样式 */
.team-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-card {
  width: calc(25% - 1.5rem);
  min-width: 280px;
  flex-grow: 1;
  height: 420px;
  position: relative;
  background: var(--card-bg);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px var(--card-shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 
              0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.card-image-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.card-image {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  transform: scale(1);
  filter: brightness(0.8);
}

.team-card:hover .card-image {
  transform: scale(1.05);
  filter: blur(6px) brightness(0.6);
}

.card-content-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  z-index: 2;
}

.card-header {
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.position-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
  background-color: var(--tag-bg);
  color: var(--text-primary);
}

.name-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.75rem;
  color: var(--text-primary);
}

.position-text {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  color: var(--text-primary);
}

.card-details {
  margin-top: auto;
  transform: translateY(1rem);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .card-header,
.team-card:hover .card-details {
  opacity: 1;
  transform: translateY(0);
}

.detail-text {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--text-secondary);
}

.skills-container {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.25rem 0.5rem;
  background-color: var(--tag-bg);
  color: var(--text-secondary);
  font-size: 0.75rem;
  border-radius: 0.25rem;
}

.header-title {
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}

.header-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--header-line);
  border-radius: 2px;
}

/* 响应式设计 */
@media (max-width: 1279px) {
  .team-card {
    width: calc(33.333% - 1.5rem);
  }
}

@media (max-width: 1023px) {
  .team-card {
    width: calc(50% - 1.5rem);
  }
}

@media (max-width: 639px) {
  .team-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .team-grid {
    margin-top: 1rem;
  }
  
  .team-card {
    width: 100%;
    min-width: auto;
    height: 380px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
  }
}