/* --- 历史时间轴专用样式 --- */
.custom-history-timeline {
  width: 100% !important;
  padding: 40px 0 !important;
  background-color: #ffffff !important;
}

.tl-wrapper {
  position: relative !important;
  max-width: 960px !important;
  margin: 0 auto !important;
}

/* 中央蓝色竖线 */
.tl-vertical-line {
  position: absolute !important;
  top: 15px !important;
  bottom: 15px !important;
  left: 50% !important;
  width: 2px !important;
  background-color: #0b5c96 !important;
  transform: translateX(-50%) !important;
  z-index: 1 !important;
}

/* 每一行 flex 对齐 */
.tl-row {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  margin-bottom: 50px !important;
  z-index: 2 !important;
}

.tl-empty {
  flex: 1 !important;
}

/* 图文盒子结构 */
.tl-content-left {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
}

.tl-content-right {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 18px !important;
}

/* 文字区排版 */
.tl-text {
  max-width: 200px !important;
}

.left-row .tl-text {
  text-align: right !important;
}

.right-row .tl-text {
  text-align: left !important;
}

.tl-year {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0b5c96 !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.2 !important;
}

.tl-text p {
  font-size: 13px !important;
  color: #555555 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* 图片统一尺寸控制 */
.tl-img {
  width: 170px !important;
  height: 110px !important;
  flex-shrink: 0 !important;
}

.tl-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 3px !important;
  display: block !important;
}

/* 节点与连接横线 */
.tl-connector {
  width: 60px !important;
  height: 1px !important;
  background-color: #d1d5db !important;
  flex-shrink: 0 !important;
}

.tl-node {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
  border: 3px solid #0b5c96 !important;
  flex-shrink: 0 !important;
  margin: 0 -7px !important;
  z-index: 3 !important;
}

/* 高亮设置 */
.highlight-txt { color: #ffb400 !important; }
.highlight-node { border-color: #ffb400 !important; background-color: #ffb400 !important; }

/* 手机端响应式 */
@media (max-width: 768px) {
  .tl-vertical-line { left: 20px !important; }
  .tl-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-left: 35px !important;
  }
  .tl-node {
    position: absolute !important;
    left: -22px !important;
    top: 0 !important;
  }
  .tl-connector, .tl-empty { display: none !important; }
  .tl-content-left, .tl-content-right {
    flex-direction: column-reverse !important;
    align-items: flex-start !important;
  }
  .left-row .tl-text, .right-row .tl-text {
    text-align: left !important;
    max-width: 100% !important;
  }
  .tl-img {
    width: 100% !important;
    height: 160px !important;
  }
}