/* yawei_history v3 组件样式 - 点击展开 */
.yawei-history {
  padding: 88px 0 118px;
  background: #F8F8F8;
  font-family: 'Arimo',var(--font-family);
}

.yawei-history .container{
  padding-left: 15px;
  padding-right: 15px;
}

.yawei-history .history-title {
  text-align: center;
  margin-bottom: 72px;
}

.yawei-history .history-title h2 {
  font-size: 40px;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0;
  position: relative;
  line-height: 68px; /* 141.667% */
letter-spacing: -1.2px;
}



/* 年代选择按钮 */
.yawei-history .decade-buttons {
  padding: 0 81px;
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-bottom: 72px;
}

.yawei-history .decade-btn {
  padding: 15px 0;
  text-align: center;
  background: #EBEBEB;
  border-radius: 10px;
  cursor: pointer;
  line-height: 42px;
  transition: all 0.3s ease;
  font-size: 30px;
  font-weight: 700;
  color: #0A0A0A;
  flex: 1;
  font-family: var(--title-font-family);
}

.yawei-history .decade-btn:hover , .yawei-history .decade-btn.active {
  background: #E6002D;
  color: #fff;
}

/* 时间轴容器 */
.yawei-history .timeline-container {
  position: relative;
  min-height: 300px;
}

.yawei-history .timeline-decade-content {
  display: none;
}

.yawei-history .timeline-decade-content.active {
  display: block;
}

/* 时间轴主线 */
.yawei-history .timeline-line {
  position: absolute;
  bottom: 44px;
  left: 0;
  right: 0;
  height: 9px;
  background: url('https://okki-shop.oss-cn-hangzhou.aliyuncs.com/templates/shop-default/5c8aa651-f5ee-45c8-8d4c-26e521ae927d-uobiao.png') no-repeat center center;
  background-size: 100% 100%;
  border-radius: 2px;
  z-index: 1;
}

/* 年份容器 */
.yawei-history .timeline-years {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 2;
  min-height: 360px;
}

/* 年份项目 */
.yawei-history .year-item {
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* padding: 0 23px; */
  height: 361px;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;

}

.yawei-history .year-item.expanded {
  width: 500px;
 
}

/* 年份标记点 */
.yawei-history .year-mark {
  position: absolute;
  width: 1px;
  height: 56px;
  background: #0A0A0A;
  z-index: 3;
  transition: height 0.3s ease;
  bottom: 46px;
  left: 40px;
}

.yawei-history .year-item.expanded .year-mark {
  height: 316px;
  background: #E6002D;
}

/* 年份数字 */
.yawei-history .year-number {
  font-size: 16px;
  font-weight: 700;
  color: #0D0D0D;
  padding: 9px 23px;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 3;
  position: relative;
}

.yawei-history .year-item.expanded .year-number {
  color: #E6002D;
}

/* 年份内容容器 */
.yawei-history .year-content {
  position: absolute;
  top: 0;
  left: -290px;
  display: flex;
  gap: 97px;
  opacity: 0;
  background: transparent;
  padding: 0;
  z-index: 4;
}

.yawei-history .year-item.expanded .year-content {
  opacity: 1;
}

/* 年份图片 */
.yawei-history .year-image {
  flex-shrink: 0;
  width: 284px;
  height: auto;
  overflow: hidden;
  max-height: 175px;
    aspect-ratio: 284 / 175;
}

.yawei-history .year-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.yawei-history .year-item.expanded .year-image img {
  /*transform: scale(1.05);*/
}

/* 年份文本 */
.yawei-history .year-text {
  width: 447px;
}

.yawei-history .year-text h4 {
  font-size: 30px;
  font-weight: 700;
  color: #676767;
  margin: 0 0 13px 0;
  line-height: 42px;
}

.yawei-history .year-text p {
  font-size: 18px;
  color: #676767;
  margin: 0;
  line-height: 1.4;
}

/* 响应式设计 */
@media (min-width: 1900px) {
  .yawei-history .container{
    max-width: calc(100% - 422px);
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 1500px) {
  .yawei-history .year-item.expanded{
      width: 400px;
  }
}
@media (max-width: 1400px) {
  .yawei-history .year-item.expanded{
      width: 200px;
  }
}
/*@media (max-width: 1200px) {*/
/*    .yawei-history .history-title h2 {*/
/*        font-size: 40px;*/
/*    }*/
/*    .yawei-history .year-text{*/
/*      width: 300px;*/
/*    }*/
/*    .yawei-history .year-content{*/
/*    left: -230px;*/
/*    gap:40px;*/
/*  }*/
/*  .yawei-history .timeline-years{*/
/*     gap: 10px;*/
/*  }*/
/*    .yawei-history .year-item.expanded{*/
/*      width: 100px;*/
/*    }*/
/*}*/
@media (max-width: 1200px) {
  .yawei-history .timeline-years {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .yawei-history .year-item {
    width: 50px;
  }
  
  .yawei-history .year-item.expanded {
    width: 100px;
  }
  
  .yawei-history .year-content {
    width: 700px;
    left: -263px;
  }
  .yawei-history .year-text{
    width: 270px;
  }
  .yawei-history .year-image{
    width:250px;
  }
  .yawei-history .year-content{
    left: -230px;
    gap:40px;
  }
}

@media (max-width: 991px) {
  .yawei-history {
    padding: 15px 0 20px;
  }
  
  .yawei-history .history-title {
    margin-bottom: 10px;
  }
  
  .yawei-history .history-title h2 {
    font-size: 40px;
    /*line-height: 25px;*/
    text-align: left;
  }
  
  .yawei-history .decade-buttons {
    flex-wrap: wrap;
    row-gap: 5px;
    column-gap: 10px;
    margin-bottom: 20px;
    font-size: 20px;
    padding: 0;
  }
  
  .yawei-history .decade-btn {
    padding: 0;
    line-height: 36px;
    flex: 0 0 calc(50% - 5px);
    font-size: 20px;
  }
  
  /* 移动端主容器 */
  .yawei-history .timeline-container {
    min-height: auto;
  }
  
  .yawei-history .timeline-years {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    min-height: auto;
  }
  
  /* 移动端内容展示区域 */
  .yawei-history .mobile-year-display {
    margin-bottom: 10px;
  }
  
  .yawei-history .mobile-year-image {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
  }
  
  .yawei-history .mobile-year-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  .yawei-history .mobile-year-text {
    text-align: left;
  }
  
  .yawei-history .mobile-year-text h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0d0d0d;
    margin: 0;
    line-height: 1.7;
  }
  
  .yawei-history .mobile-year-text p {
    font-size: 16px;
    color: #676767;
    margin: 0;
    line-height: normal;
  }
  
  /* 移动端坐标轴容器 */
  .yawei-history .mobile-timeline-wrapper {
    position: relative;
    overflow: hidden;
    padding:  0;
  }
  
  .yawei-history .mobile-timeline-swiper {
    padding: 0 22px;
    height: 50px;
  }
  
  .yawei-history .mobile-timeline-swiper .swiper-wrapper {
    align-items: center;
  }
  
  .yawei-history .mobile-timeline-swiper .swiper-slide {
    /* width: auto !important;
    margin-right: 40px; */
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  
  /* 移动端年代切换 */
  .yawei-history .mobile-timeline-decade {
    display: none;
    position: relative;
  }
  
  .yawei-history .mobile-timeline-decade.active {
    display: block;
  }
  
  .yawei-history .mobile-year-point {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    text-align: center;
  }
  
  .yawei-history .mobile-year-point.active .mobile-year-number {
    color: #E6002D;
    font-weight: 700;

  }
  
  .yawei-history .mobile-year-point.active .mobile-year-dot {
    background: #E6002D;
    transform: scale(1.2);
  }
  
  .yawei-history .mobile-year-dot {
    position: absolute;
    left: 50%;
    top: 10px;
    width: 1px;
    height: 15px;
    background: #0A0A0A;
    transition: all 0.3s ease;
  }
  
  .yawei-history .mobile-year-number {
    font-size: 14px;
    font-weight: 500;
    color: #0A0A0A;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: var(--title-font-family);
  }
  
  /* 坐标轴主线 */
  .yawei-history .mobile-timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 -24px;
    height: 2px;
    background: url('https://okki-shop.oss-cn-hangzhou.aliyuncs.com/templates/shop-default/215c4fd7-344a-46ca-8489-004642e0e7bc-zb.png') repeat-x center center / auto 100%;
    transform: translateY(-50%);
    z-index: 1;
  }
  
  /* 滑动控制按钮 */
  .yawei-history .timeline-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 0;
  }
  
  .yawei-history .timeline-nav-btn {
    position: absolute;
    top: -24px;
    width: 30px;
    height: 30px;
    color: #0d0d0d;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #f8f8f8 !important;
  }
  .yawei-history .timeline-nav-btn.timeline-nav-prev{
    left: 0;
  }
  .yawei-history .timeline-nav-btn.timeline-nav-next{
    right: 0;
  }
  
  .yawei-history .timeline-nav-btn:disabled {
    color: #ccc;
  }
  
  /* 隐藏PC端元素 */
  .yawei-history .year-item {
    display: none;
  }
  
  .yawei-history .timeline-line {
    display: none;
  }
} 

@media (max-width: 768px) {
  .yawei-history .history-title h2 {
    font-size: 24px;
    line-height: 25px;
    text-align: left;
  }
}