/* 关于我们页面样式 */

.page-header {
  background: linear-gradient(180deg, #1e88e5 0%, #00d4ff 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

/* 关于我们通用样式 */
.about-section {
  padding: 100px 20px;
  background: #fff;
}

.about-section.alt {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f3f8 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.section-header::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2c5aa0 0%, #5a8fd4 100%);
  margin: 20px auto 0;
  border-radius: 2px;
}

.section-header h2 {
  font-size: 2.4rem;
  color: #1890ff;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #999;
  font-weight: 300;
}

/* 公司简介 */
.intro-content {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(44,90,160,0.03) 0%, rgba(90,143,212,0.03) 100%);
  padding: 50px;
  border-radius: 15px;
  border-left: 5px solid #2c5aa0;
  box-shadow: 0 10px 40px rgba(44,90,160,0.08);
}

.intro-content p {
  font-size: 1.1rem;
  color: #555;
  line-height: 2;
  margin-bottom: 25px;
  text-align: justify;
}

.intro-content p:last-child {
  margin-bottom: 0;
}

/* 发展历程 */
.timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #2c5aa0 0%, #5a8fd4 50%, #2c5aa0 100%);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  flex: 0 0 140px;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #2c5aa0 0%, #5a8fd4 100%);
  padding: 20px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(44,90,160,0.3);
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-content {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  margin: 0 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border-left: 4px solid #2c5aa0;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(44,90,160,0.15);
}

.timeline-content h4 {
  color: #1890ff;
}

.timeline-content p {
  color: #666;
  line-height: 1.7;
  font-size: 1rem;
}

/* 企业文化 */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.culture-item {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.culture-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2c5aa0 0%, #5a8fd4 100%);
}

.culture-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(44,90,160,0.2);
  border-color: #2c5aa0;
}

.culture-icon {
  margin-bottom: 25px;
  color: #1890ff;
}

.culture-item:hover .culture-icon {
  transform: scale(1.15) rotate(5deg);
}

.culture-item h4 {
  font-size: 1.4rem;
  color: #1890ff;
}

.culture-item p {
  color: #666;
  line-height: 1.8;
  font-size: 1rem;
}

/* 公司展示 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  background: #f0f0f0;
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(44,90,160,0.2);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44,90,160,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-header {
    padding: 60px 20px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .about-section {
    padding: 60px 20px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .intro-content {
    padding: 30px;
  }

  .intro-content p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 100px;
    margin-bottom: 60px;
  }

  .timeline-marker {
    position: absolute;
    left: 0;
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    font-size: 1.5rem;
    padding: 0;
  }

  .timeline-content {
    margin: 0;
    width: 100%;
  }

  .culture-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .culture-item {
    padding: 30px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item {
    aspect-ratio: 16/9;
  }
}

/* 始终为滚动条保留位置，防止跨页跳转时 navbar 抖动 */
html { overflow-y: scroll; }