/* 基础重置（补充，避免样式冲突） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #e0f7ff, #e8f5e8); /* 浅蓝紫渐变背景 */
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 通用区块样式 */
.section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #c5e4fc, #d7f2cc); /* 更浅的蓝紫渐变 */
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  color: #333;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #1a365d;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #b3d9f5;
  padding-bottom: 0.5rem;
}

/* 公司简介部分 */
.about-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.image-container {
  flex: 1;
  min-width: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.image-container:hover {
  transform: scale(1.02);
}

.content {
  flex: 2;
  min-width: 300px;
}

.content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #666;
}

.stats h3 {
  margin-bottom: 1rem;
  color: #2a78d4;
  font-weight: bold;
}

.stats ul {
  list-style: none;
  padding-left: 0;
}

.stats li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #666;
}

/* 企业文化 */
.culture-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.culture-content .item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #d0e0f0;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

/* 企业文化卡片动画延迟，依次显示 */
.culture-content .item:nth-child(1) { animation-delay: 0.1s; }
.culture-content .item:nth-child(2) { animation-delay: 0.2s; }
.culture-content .item:nth-child(3) { animation-delay: 0.3s; }

.culture-content .item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  border-color: #2a78d4;
}

.culture-content .item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #2a78d4, #5d9ce5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.culture-content .item:hover::before {
  opacity: 1;
}

.culture-content .item h3 {
  margin-bottom: 0.8rem;
  color: #2a78d4;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  padding-left: 2rem;
}

.culture-content .item .icon {
  position: absolute;
  left: 0.8rem;
  top: 0.5rem;
  font-size: 1.5rem;
  color: #2a78d4;
}

.culture-content .item p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

.culture-content .item ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.8rem;
}

.culture-content .item ul li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #666;
}

.culture-content .item ul li strong {
  color: #2a78d4;
}

/* 发展历程（带视频） */
.timeline-flex-container {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.timeline-content {
  flex: 1;
  position: relative;
  padding-left: 2rem;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #2a78d4, #5d9ce5);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 10px;
  width: 12px;
  height: 12px;
  background: #2a78d4;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #fff;
}

.year {
  font-weight: bold;
  color: #2a78d4;
  display: inline-block;
  width: 80px;
  margin-bottom: 0.5rem;
}

.video-section {
  flex: 1;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #d0e0f0;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-section h3 {
  color: #2a78d4;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.video-section video {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: #000;
  max-width: 100%;
  flex: 1;
}

/* 资质荣誉 */
.certificates {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.cert-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid #d0e0f0;
  text-align: center;
  width: 240px;
  height: 180px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 资质卡片动画延迟 */
.cert-item:nth-child(1) { animation-delay: 0.1s; }
.cert-item:nth-child(2) { animation-delay: 0.2s; }
.cert-item:nth-child(3) { animation-delay: 0.3s; }

.cert-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  border-color: #2a78d4;
}

.cert-item img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.cert-label {
  font-size: 0.85rem;
  color: #2a78d4;
  margin-top: 0.6rem;
  text-align: center;
  font-weight: 500;
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 1.5rem;
  background: #1a1a1a;
  color: white;
  margin-top: 2rem;
  border-top: 4px solid #2a78d4;
}

/* 关键帧动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================== 全局响应式适配 ====================== */
/* 平板设备 (最大宽度 992px) */
@media (max-width: 992px) {
  /* 公司简介适配 */
  .about-intro {
    flex-direction: column;
    gap: 20px;
  }

  /* 发展历程适配 */
  .timeline-flex-container {
    flex-direction: column;
    gap: 20px;
  }

  .video-section {
    min-height: 250px;
  }
}

/* 手机设备 (最大宽度 768px) */
@media (max-width: 768px) {
  /* 通用样式适配 */
  .container {
    padding: 10px;
  }
  .section {
    margin-bottom: 30px;
    padding: 1.5rem;
  }
  .section h2 {
    font-size: 1.5em;
  }

  /* 发展历程适配 */
  .timeline-content {
    padding-left: 20px;
  }
  .timeline-content::before {
    left: 5px;
  }
  .timeline-item::before {
    left: -25px;
    width: 15px;
    height: 15px;
  }

  /* 资质荣誉适配 */
  .certificates {
    flex-direction: column;
    align-items: center;
  }
  .cert-item {
    width: 100%;
    max-width: 250px;
  }
}

/* 小屏手机 (最大宽度 480px) */
@media (max-width: 480px) {
  .section {
    padding: 1rem;
  }
  .about-intro .content p {
    font-size: 1em;
  }
  .stats li {
    font-size: 0.95em;
  }
  .timeline-item .year {
    width: 70px;
    font-size: 1.1em;
  }
  .video-section {
    padding: 1rem;
    min-height: 200px;
  }
  .cert-item {
    height: 160px;
    width: 100%;
    max-width: 220px;
  }
  .cert-item img {
    height: 100px;
  }
}