@charset "UTF-8";

/*  */
.about-history-section {
  background-color: #fff;
}

.about-history {
  margin-top: 50px;
}

.about-history-content {
  width: 50%;
  position: relative;
  z-index: 1;
  background: #f8faff;
  padding: 50px;
}

.about-history-ctrl {
  position: absolute;
  bottom: 50px;
  left: 40px;
  width: 140px;
  height: 50px;
  z-index: 1;
}

.about-history-poster {
  width: 50%;
}

.about-history-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.about-history-content .swiper-slide {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.about-history-content .item-content {
  position: relative;
}

.about-history-content .item-content h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

/*  */
.about-history-year {
  margin-top: 40px;
}

.about-history-line {
  flex-direction: column-reverse;
}

.about-history-line .item-lines {
  justify-content: space-between;
  align-items: flex-end;
  height: 120px;
}

.about-history-line .item-year {
  text-align: center;
}

.about-history-line .item-line {
  width: 2px;
  background-color: #434343;
  background: linear-gradient(to bottom, #ccc, transparent);
  border-radius: 4px;
}

.about-history-line .item-line:nth-child(1) {
  height: 50px;
}

.about-history-line .item-line:nth-child(2),
.about-history-line .item-line:nth-child(10) {
  height: 60px;
}

.about-history-line .item-line:nth-child(3),
.about-history-line .item-line:nth-child(9) {
  height: 70px;
}

.about-history-line .item-line:nth-child(4),
.about-history-line .item-line:nth-child(8) {
  height: 80px;
}

.about-history-line .item-line:nth-child(5),
.about-history-line .item-line:nth-child(7) {
  height: 90px;
}

.about-history-line .item-line:nth-child(6) {
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, #ccc, transparent);
}

.about-history-line .item-line:nth-child(11) {
  width: 0;
}

.about-history-year .swiper-slide-active .item-year {
  color: var(--color-primary);
}

.about-history-year .swiper-slide-active .item-line:nth-child(6) {
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    #a0c8ff,
    transparent
  );
}

.about-history-content .swiper-slide-active {
  opacity: 1;
  visibility: visible;
}

/* 移动端：50% 分栏堆叠、历史控件改为静态，避免溢出 */
@media (max-width: 768px) {
  .about-history {
    margin-top: 30px;
  }
  .about-history-content,
  .about-history-poster {
    width: 100%;
  }
  .about-history-content {
    padding: 30px 20px;
  }
  .about-history-ctrl {
    position: static;
    left: 0;
    margin-top: 20px;
  }
  .about-history-line .item-lines {
    height: 80px;
  }
}
