/* 主要内容区域样式 */
main {
  flex: 1;
  padding: 40px 0;
}

/* 团队介绍样式 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.team-member {
  background: rgba(74, 108, 247, 0.05);
  border-radius: var(--border-radius);
  padding: 25px;
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), #8b5cf6);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.team-member h4 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
}

.team-role {
  color: #64748b;
  font-style: italic;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.team-bio {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 时间线样式 */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
}

.timeline-content {
  background-color: var(--light-card);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
}

body.dark-mode .timeline-content {
  background-color: var(--dark-card);
}

.timeline-content::after {
  content: '';
  position: absolute;
  border-style: solid;
  width: 0;
  height: 0;
  top: 20px;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--light-card);
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::after {
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--light-card) transparent transparent;
  left: -10px;
}

body.dark-mode .timeline-item:nth-child(odd) .timeline-content::after {
  border-color: transparent transparent transparent var(--dark-card);
}

body.dark-mode .timeline-item:nth-child(even) .timeline-content::after {
  border-color: transparent var(--dark-card) transparent transparent;
}

.timeline-year {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 20px;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::after,
  .timeline-item:nth-child(even) .timeline-content::after {
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--light-card) transparent transparent;
    left: -10px;
  }
  
  body.dark-mode .timeline-item:nth-child(odd) .timeline-content::after,
  body.dark-mode .timeline-item:nth-child(even) .timeline-content::after {
    border-color: transparent var(--dark-card) transparent transparent;
  }
  
  .timeline-dot {
    left: 21px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* 联系方式卡片容器 */
.contact-card {
    background-color: var(--contact-bg); /* 使用自定义浅蓝色背景 */
    border: 1px solid var(--contact-border); /* 浅蓝色边框 */
    border-radius: var(--border-radius); /* 圆角 */
    overflow: hidden; /* 隐藏溢出内容 */
    margin-top: 30px; /* 顶部间距 */
    position: relative; /* 相对定位 */
    z-index: 1; /* 堆叠顺序 */
    transition: var(--transition); /* 平滑过渡效果 */
}

/* 深色模式适配 */
body.dark-mode .contact-card {
    background-color: rgba(41, 53, 86, 0.3); /* 深蓝色半透明背景 */
    border-color: rgba(255, 255, 255, 0.1); /* 浅灰色边框 */
}

/* 卡片悬停效果 */
.contact-card:hover {
    transform: translateY(-3px); /* 上移3px */
    box-shadow: 0 8px 20px rgba(91, 124, 250, 0.15); /* 添加阴影 */
}

/* 卡片头部样式 */
.contact-header {
    padding: 25px 30px; /* 内边距 */
    text-align: center; /* 居中文本 */
    background-color: rgba(91, 124, 250, 0.05); /* 浅蓝色背景 */
    border-bottom: 1px solid var(--contact-border); /* 底部边框 */
}

/* 深色模式头部 */
body.dark-mode .contact-header {
    background-color: rgba(91, 124, 250, 0.1); /* 深色背景 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 深色边框 */
}

/* 头部标题 */
.contact-header h4 {
    font-size: 1.8rem; /* 字体大小 */
    margin-bottom: 10px; /* 底部间距 */
    color: var(--contact-primary); /* 主色调 */
}

/* 头部描述文本 */
.contact-header p {
    color: #64748b; /* 灰色文本 */
    font-size: 1.05rem; /* 字体大小 */
}

/* 深色模式描述文本 */
body.dark-mode .contact-header p {
    color: #94a3b8; /* 浅灰色文本 */
}

/* 联系方式主体区域 */
.contact-body {
    padding: 35px 30px; /* 内边距 */
    display: grid; /* 网格布局 */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 自适应列 */
    gap: 30px; /* 网格间距 */
}

/* 单个联系方式项 */
.contact-method {
    display: flex; /* 弹性布局 */
    align-items: flex-start; /* 顶部对齐 */
    padding: 20px; /* 内边距 */
    border-radius: 8px; /* 圆角 */
    background: white; /* 白色背景 */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05); /* 轻微阴影 */
    transition: var(--transition); /* 平滑过渡 */
}

/* 深色模式联系方式项 */
body.dark-mode .contact-method {
    background-color: rgba(255, 255, 255, 0.05); /* 半透明白色 */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15); /* 深色阴影 */
}

/* 联系方式项悬停效果 */
.contact-method:hover {
    transform: translateY(-5px); /* 上移5px */
    box-shadow: 0 8px 20px rgba(91, 124, 250, 0.2); /* 增强阴影 */
}

/* 联系方式图标容器 */
.contact-icon {
    width: 50px; /* 宽度 */
    height: 50px; /* 高度 */
    border-radius: 50%; /* 圆形 */
    background-color: rgba(91, 124, 250, 0.1); /* 浅蓝色背景 */
    display: flex; /* 弹性布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    margin-right: 20px; /* 右侧间距 */
    font-size: 1.3rem; /* 图标大小 */
    flex-shrink: 0; /* 防止缩小 */
    color: var(--contact-primary); /* 图标颜色 */
}

/* 联系方式详情区域 */
.contact-details h5 {
    font-size: 1.1rem; /* 标题大小 */
    margin-bottom: 8px; /* 底部间距 */
    font-weight: 600; /* 字体粗细 */
    color: var(--contact-primary); /* 主色调 */
}

.contact-details p {
    font-size: 1rem; /* 文本大小 */
    line-height: 1.6; /* 行高 */
    color: var(--text-color); /* 文本颜色 */
}

/* 深色模式文本 */
body.dark-mode .contact-details p {
    color: #e2e8f0; /* 浅灰色文本 */
}

/* 联系方式链接 */
.contact-details a {
    color: var(--contact-primary); /* 主色调 */
    text-decoration: none; /* 无下划线 */
    transition: var(--transition); /* 平滑过渡 */
    display: block; /* 块级显示 */
    margin-top: 5px; /* 顶部间距 */
}

/* 链接悬停效果 */
.contact-details a:hover {
    text-decoration: underline; /* 添加下划线 */
    opacity: 0.9; /* 轻微透明 */
}

/* 社交媒体链接区域 */
.social-links {
    display: flex; /* 弹性布局 */
    justify-content: center; /* 水平居中 */
    gap: 15px; /* 间距 */
    padding: 25px 30px; /* 内边距 */
    background-color: rgba(91, 124, 250, 0.03); /* 浅蓝色背景 */
    border-top: 1px solid var(--contact-border); /* 顶部边框 */
}

/* 深色模式社交媒体区域 */
body.dark-mode .social-links {
    background-color: rgba(91, 124, 250, 0.05); /* 深色背景 */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* 深色边框 */
}

/* 社交媒体图标 */
.social-links a {
    display: flex; /* 弹性布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    width: 45px; /* 宽度 */
    height: 45px; /* 高度 */
    border-radius: 50%; /* 圆形 */
    background-color: white; /* 白色背景 */
    color: var(--contact-primary); /* 主色调 */
    font-size: 1.2rem; /* 图标大小 */
    transition: var(--transition); /* 平滑过渡 */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
}

/* 深色模式社交媒体图标 */
body.dark-mode .social-links a {
    background-color: rgba(255, 255, 255, 0.1); /* 半透明白色 */
    color: #e2e8f0; /* 浅灰色图标 */
}

/* 社交媒体图标悬停效果 */
.social-links a:hover {
    background-color: var(--contact-primary); /* 主色调背景 */
    color: white; /* 白色图标 */
    transform: translateY(-3px); /* 上移3px */
}

/* 响应式设计 - 小屏幕 */
@media (max-width: 480px) {
    .contact-method {
        flex-direction: column; /* 垂直布局 */
        align-items: flex-start; /* 左对齐 */
    }
    
    .contact-icon {
        margin-bottom: 15px; /* 底部间距 */
    }
}