/* ===== History Page ===== */

/* Banner */
.inside-banner {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.inside-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* History Header Section */
.history-header {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #036eb7 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.history-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
  background-size: 80px 80px;
}

.history-header-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.history-header-content h1 {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 4px;
}

.history-header-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.history-header-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  margin: 0 auto;
}

/* History Tabs */
.history-tabs {
  background: #fff;
  padding: 0;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.history-tab-menu {
  display: flex;
  gap: 0;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.history-tab-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 30px;
  font-size: 18px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  background: #fff;
}

.history-tab-item .tab-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-tab-item .tab-icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.history-tab-item:hover {
  color: #036eb7;
  background: #f8fafc;
}

.history-tab-item:hover .tab-icon svg {
  transform: scale(1.1);
}

.history-tab-item.active {
  color: #036eb7;
  border-bottom-color: #036eb7;
  background: #fff;
}

.history-tab-item.active .tab-icon svg {
  color: #036eb7;
}

/* History Section */
.history-section {
  padding: 60px 0 100px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  min-height: 500px;
}

.history-content {
  transition: opacity 0.3s ease;
}

/* 公司发展历程 - 带图片的时间轴 */
.history-timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0 20px;
}

.timeline-item {
  display: flex;
  align-items: stretch;
  gap: 60px;
  margin-bottom: 80px;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.25s; }
.timeline-item:nth-child(3) { animation-delay: 0.4s; }
.timeline-item:nth-child(4) { animation-delay: 0.55s; }

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-img {
  flex-shrink: 0;
  width: 380px;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.4s ease;
  height: 180px;
}

.timeline-item:hover .timeline-img {
  box-shadow: 0 16px 50px rgba(3, 110, 183, 0.25), 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.timeline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.timeline-item:hover .timeline-img img {
  transform: scale(1.1);
}

.timeline-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.timeline-year {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  display: none;
}

.timeline-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
  background: #fff;
  border-radius: 10px;
  margin-left: 60px;
   box-shadow: 0 4px 20px rgba(3, 110, 183, 0.08);
}

.timeline-date {
  font-size: 28px;
  font-weight: 700;
  color: #036eb7;
  margin-bottom: 4px;
  position: relative;
  display: inline-block;
  padding-left: 24px;
}

.timeline-date::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #036eb7;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(3, 110, 183, 0.2);
  display: none;
}

.timeline-date::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 24px;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #036eb7, rgba(3, 110, 183, 0.3));
  border-radius: 2px;
  display: none;
}

.timeline-text {
  font-size: 16px;
  line-height: 2;
  color: #444;
  padding-left: 24px;
  
  padding-top: 5px;
  padding-bottom: 15px;
  padding-right: 24px;
 
  
  transition: all 0.3s ease;
}



/* 时间轴竖线 */
.history-timeline::before {
  content: '';
  position: absolute;
  left: 440px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #036eb7 0%, rgba(3, 110, 183, 0.4) 30%, rgba(3, 110, 183, 0.2) 70%, #e5e9eb 100%);
  border-radius: 2px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left:432px;
  top: 30px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  border: 4px solid #036eb7;
  box-shadow: 0 0 0 6px rgba(3, 110, 183, 0.15);
  z-index: 1;
  transition: all 0.4s ease;
}

.timeline-item:hover::before {
  transform: scale(1.1);
  box-shadow: 0 0 0 10px rgba(3, 110, 183, 0.25);
  background: #036eb7;
}

/* 行业发展历程 - 简洁样式 */
.history-timeline-simple {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 30px;
}

.history-timeline-simple::before {
  content: '';
  position: absolute;
  left: 214px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #036eb7 0%, rgba(3, 110, 183, 0.3) 50%, #e5e9eb 100%);
}

.timeline-simple-item {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 10px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.timeline-simple-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-simple-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-simple-item:nth-child(3) { animation-delay: 0.15s; }
.timeline-simple-item:nth-child(4) { animation-delay: 0.2s; }
.timeline-simple-item:nth-child(5) { animation-delay: 0.25s; }
.timeline-simple-item:nth-child(6) { animation-delay: 0.3s; }
.timeline-simple-item:nth-child(7) { animation-delay: 0.35s; }
.timeline-simple-item:nth-child(8) { animation-delay: 0.4s; }
.timeline-simple-item:nth-child(9) { animation-delay: 0.45s; }
.timeline-simple-item:nth-child(10) { animation-delay: 0.5s; }

.timeline-simple-item:last-child {
  margin-bottom: 0;
}

.timeline-simple-item:hover {
  transform: translateX(10px);
}

.timeline-simple-item::before {
    content: '';
    position: absolute;
    left: 177px;
    top: 40px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #036eb7;
    box-shadow: 0 0 0 4px rgba(3, 110, 183, 0.1);
    z-index: 1;
    transition: all 0.3s ease;
}
.timeline-simple-item:hover::before {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(3, 110, 183, 0.2);
}

.timeline-simple-date {
  flex-shrink: 0;
  width: 200px;
  font-size: 30px;
  font-weight: 700;
  color: #036eb7;
  padding-top: 5px;
}

.timeline-simple-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.timeline-simple-item:hover .timeline-simple-text {
  box-shadow: 0 4px 20px rgba(3, 110, 183, 0.12);
  background: linear-gradient(135deg, #fff, #f8fafc);
}

/* 响应式 */
@media (max-width: 992px) {
  .history-header {
    padding: 50px 0;
  }

  .history-header-content h1 {
    font-size: 36px;
  }

  .history-tab-item {
    font-size: 16px;
    padding: 20px 20px;
  }

  .timeline-item {
    flex-direction: column;
    gap: 30px;
  }

  .timeline-img {
    width: 100%;
    max-width: 500px;
    height: 180px;
    margin: 0 auto;
  }

  .timeline-info {
    padding-top: 0;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
  }

  .timeline-date {
    padding-left: 0;
    font-size: 28px;
  }

  .timeline-date::before {
    display: none;
  }

  .timeline-text {
    padding-left: 0;
    border-left: none;
    text-align: left;
    border-radius: 12px;
  }

  .history-timeline::before {
    display: none;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-simple-item {
    gap: 30px;
  }

  .history-timeline-simple::before {
    left: 110px;
  }

  .timeline-simple-item::before {
    left: 105px;
  }
}

@media (max-width: 768px) {
  .history-header {
    padding: 40px 0;
  }

  .history-header-content h1 {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .history-header-content p {
    font-size: 14px;
  }

  .history-tab-menu {
    flex-direction: column;
    max-width: 100%;
  }

  .history-tab-item {
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .history-tab-item.active {
    border-bottom-color: transparent;
    border-left-color: #036eb7;
    background: #f8fafc;
  }

  .history-section {
    padding: 50px 0 70px;
  }

  .timeline-img {
    height: 200px;
  }

  .timeline-year {
    font-size: 24px;
    display: none;
  }

  .timeline-date {
    font-size: 24px;
  }

  .timeline-text {
    font-size: 15px;
  }

  .history-timeline-simple {
    padding-left: 0;
  }

  .timeline-simple-item {
    flex-direction: column;
    gap: 15px;
  }

  .history-timeline-simple::before {
    left: 40px;
  }

  .timeline-simple-item::before {
    left: 35px;
    top: 23px;
  }

  .timeline-simple-date {
    width: auto;
    padding-left: 60px;
    padding-top: 0;
  }

  .timeline-simple-text {
    padding-left: 60px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .history-header-content h1 {
    font-size: 24px;
  }

  .timeline-img {
    height: 180px;
  }

  .timeline-year {
    font-size: 20px;
  }

  .timeline-date {
    font-size: 20px;
  }

  .timeline-text {
    font-size: 14px;
    line-height: 1.8;
  }
}
