/*
 * WGACA Frontend - About Page Styles
 * 关于我们页面样式
 */

/* 页面 Banner */
.page-banner {
  position: relative;
  height: 350px;
  margin-top: 70px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner .title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-banner .subtitle {
  font-size: 16px;
  opacity: 0.9;
}

/* 关于我们 - 介绍 */
.about-intro {
  padding: 60px 0;
}

.about-intro .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-intro .image-wrap {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.about-intro .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-intro .content {
  flex: 1;
}

.about-intro .content h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-intro .content p {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 15px;
}

.about-intro .content .signature {
  font-style: italic;
  color: #999;
  margin-top: 30px;
  font-size: 14px;
}

/* 使命愿景 */
.about-mission {
  padding: 60px 0;
  background: #fafafa;
}

.about-mission .title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 50px;
}

.about-mission .grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

.about-mission .item {
  background: #fff;
  padding: 40px 30px;
  text-align: center;
  border-radius: 12px;
  transition: all 0.3s;
}

.about-mission .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.about-mission .item .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: #000;
  color: #fff;
  border-radius: 50%;
}

.about-mission .item h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.about-mission .item p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* 历史时间线 */
.about-history {
  padding: 60px 0;
}

.about-history .title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 50px;
}

.about-history .timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.about-history .timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 100%;
  background: #ddd;
}

.about-history .timeline-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: 40px;
}

.about-history .timeline-item::before {
  content: '';
  position: absolute;
  /* 移动布局：中线在 .timeline::before left:20px 处。
     .timeline-item 占满 width 100%（未限制 width），且 padding-left:60px，
     所以 .timeline-item 内的 20px 位置恰好对应 .timeline 的 20px 中线。
     用 left:20px + translateX(-50%) 让圆点中心精确落在中线。*/
  left: 20px;
  top: 5px;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #000;
  flex: 0 0 auto;
  display: block;
  box-sizing: border-box;
  z-index: 1;
}

.about-history .timeline-item .year {
  font-size: 24px;
  font-weight: bold;
  color: #000;
  margin-bottom: 10px;
}

.about-history .timeline-item .event {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* 数据统计 */
.about-stats {
  padding: 60px 0;
  background: #000;
  color: #fff;
}

.about-stats .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  text-align: center;
}

.about-stats .item .number {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 10px;
}

.about-stats .item .label {
  font-size: 14px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 团队 */
.about-team {
  padding: 60px 0;
  background: #fafafa;
}

.about-team .title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 15px;
}

.about-team .subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

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

.about-team .member {
  text-align: center;
}

.about-team .member .avatar {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

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

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

.about-team .member h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.about-team .member .position {
  font-size: 13px;
  color: #999;
}

/* 响应式 */
@media (min-width: 768px) {
  .page-banner {
    height: 400px;
    margin-top: 80px;
  }

  .page-banner .title {
    font-size: 48px;
  }

  .about-intro .container {
    flex-direction: row;
    align-items: center;
  }

  .about-mission .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-stats .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-team .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-history .timeline::before {
    left: 50%;
  }

  .about-history .timeline-item {
    width: 50%;
    padding-left: 0;
  }

  .about-history .timeline-item:nth-child(odd) {
    padding-right: 50px;
    text-align: right;
  }

  .about-history .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 50px;
  }

  .about-history .timeline-item:nth-child(odd)::before {
    /* 桌面布局 odd 行：.timeline-item 起点 0%，宽 50%，右边界 = 50% = 中线。
       圆点用 right:0 让右缘贴 .timeline-item 右边界，translateX(50%) 推圆心到中线外 8px = 中线位置 */
    left: auto;
    right: -1px;
    top: 12px;
    transform: translateX(50%);
    margin-left: 0;
  }

  .about-history .timeline-item:nth-child(even)::before {
    /* 桌面布局 even 行：.timeline-item 起点 50% = 中线，宽 50%，
       左边界 = 50% = 中线。圆点 left:0 + translateX(-50%) 推圆心到中线 */
    left: 1px;
    right: auto;
    top: 12px;
    transform: translateX(-50%);
    margin-left: 0;
  }
}

@media (min-width: 992px) {
  .page-banner .title {
    font-size: 56px;
  }

  .about-intro {
    padding: 80px 0;
  }

  .about-intro .content h2 {
    font-size: 40px;
  }
}
