/* 团队页面样式 */

/* 页面头部样式 */
.page-header {
  padding-top: calc(var(--header-height) + var(--spacing-xxl));
  padding-bottom: var(--spacing-xl);
  background: linear-gradient(to bottom, var(--dark-color), #0f3460);
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/img/cases/header-bg-pattern.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 2.5rem;
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 38rem;
  margin: 0 auto;
}

/* 团队简介部分 */
.team-intro {
  padding: var(--spacing-xxl) 0;
}

.team-intro h2 {
  font-size: 1.875rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.team-intro p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* 服务理念样式 */
.service-principles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.principle-item {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principle-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.principle-icon {
  background-color: var(--primary-color);
  color: white;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 1rem;
}

.principle-icon i {
  font-size: 1.25rem;
}

.principle-item h3 {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.principle-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* 团队分布图样式 */
.team-distribution {
  padding: var(--spacing-xxl) 0;
  background-color: var(--bg-muted);
}

.team-distribution h2 {
  font-size: 1.875rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
}

.team-distribution p {
  color: var(--text-secondary);
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
}

#team-map {
  height: 400px;
  width: 100%;
  border-radius: 0.5rem;
  z-index: 1;
  box-shadow: var(--shadow);
}

.leaflet-popup-content {
  text-align: center;
}

/* 城市分布列表 */
.cities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .cities-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

.city-item {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.city-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.city-icon {
  margin-bottom: 0.75rem;
}

.city-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.city-item h3 {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.city-item p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0;
  text-align: center;
  max-width: none;
}

/* 团队组成部分 */
.team-composition {
  padding: var(--spacing-xxl) 0;
}

.team-composition h2 {
  font-size: 1.875rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
}

.team-composition p {
  color: var(--text-secondary);
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
}

/* 团队成员卡片 */
.member-card {
  background-color: var(--bg-card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.member-avatar {
  height: 16rem;
  overflow: hidden;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.member-card:hover .member-avatar img {
  transform: scale(1.05);
}

.member-card .p-6 {
  padding: 1.5rem;
  text-align: center;
}

.member-card h3 {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.member-card p.text-primary {
  color: var(--primary-color);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.member-card p.text-gray-600 {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* 技术栈标签 */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background-color: var(--bg-muted);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background-color: var(--primary-color);
  color: white;
}

/* 团队优势部分 */
.team-advantages {
  padding: var(--spacing-xxl) 0;
  background-color: rgba(var(--primary-rgb), 0.05);
}

.team-advantages h2 {
  font-size: 1.875rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
}

.team-advantages p {
  color: var(--text-secondary);
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
}

/* 优势卡片 */
.advantage-card {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.advantage-icon {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 2rem;
}

.advantage-card h3 {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.advantage-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
  max-width: none;
}

/* 联系咨询部分 */
.team-contact {
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.team-contact h2 {
  font-size: 1.875rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.team-contact p {
  color: var(--text-secondary);
  max-width: 38rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

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

.team-contact .btn {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.team-contact .btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.team-contact .btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.team-contact .btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
}

.team-contact .btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* 返回顶部按钮样式 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary-color);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .team-intro .row {
    gap: 2rem;
  }
  
  .team-contact .flex {
    flex-direction: column;
    align-items: center;
  }
  
  .team-contact .btn {
    margin: 0.5rem 0;
    width: 100%;
    max-width: 20rem;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-header p {
    font-size: 1.125rem;
  }
  
  .cities-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .member-card p.text-gray-600 {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .team-intro h2,
  .team-distribution h2,
  .team-composition h2,
  .team-advantages h2,
  .team-contact h2 {
    font-size: 1.5rem;
  }
  
  .cities-list {
    grid-template-columns: 1fr;
  }
  
  .member-avatar {
    height: 12rem;
  }
  
  .principle-icon {
    margin-right: 0.75rem;
  }
  
  .advantage-icon {
    font-size: 1.5rem;
  }
}
