/* 蓝色系变量 */
:root {
  --blue-primary: #0A66C2;
  --blue-light: #3A86FF;
  --blue-gradient: linear-gradient(135deg, #0A66C2, #3A86FF);
  --card-bg: linear-gradient(135deg, #f7faff 0%, #edf5ff 100%);
  --border-light: rgba(10, 102, 194, 0.15);
  --card-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.08);
}

.ytht-history-main {
  padding-top: 40px;
  padding-bottom: 60px;
  background: #ffffff;
  overflow-x: hidden;
}

/* 标题 */
.timeline-main-title {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 32px;
  background: linear-gradient(120deg, #1A2A3A, var(--blue-primary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
}
.timeline-main-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--blue-gradient);
  border-radius: 4px;
}

/* 时间轴容器 */
.history .list {
  position: relative;
  margin: 40px 0 0;
}

/* 中心线 */
.history .list::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 18px,
    var(--blue-primary) 18px,
    var(--blue-light) 24px,
    transparent 30px
  );
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(58, 134, 255, 0.25);
}

/* 时间轴项目 */
.history .item {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

/* 圆点 —— 完全保留你原来的样式 */
.history .item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--blue-gradient);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.2), 0 0 0 8px rgba(10, 102, 194, 0.05);
  z-index: 2;
  transition: all 0.3s ease;
}
.history .item:hover::after {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 0 6px rgba(58,134,255,0.3), 0 0 0 12px rgba(10,102,194,0.1);
}

/* 时间标签：水平居中 + 更长更醒目 */
.history .item .date {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--blue-gradient);
  border-radius: 50px;
  padding: 0 30px;
  height: 44px;
  line-height: 44px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(10, 102, 194, 0.3);
  z-index: 1;
}

/* 奇数项：时间在左，卡片在右 */
.history .item:nth-child(odd) .date {
  right: calc(50% + 30px);
}
.history .item:nth-child(odd) .content {
  left: calc(50% + 20px);
  text-align: left;
}

/* 偶数项：时间在右，卡片在左 */
.history .item:nth-child(even) .date {
  left: calc(50% + 30px);
}
.history .item:nth-child(even) .content {
  right: calc(50% + 20px);
  text-align: right;
}

/* 内容卡片：浅蓝色背景 + 美观大方 */
.history .item .content {
  position: absolute;
  width: 40%;
  padding: 26px 28px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

/* 悬浮效果 */
.history .item .content:hover {
  transform: translateY(-3px);
  border-color: var(--blue-light);
  box-shadow: 0 24px 36px -14px rgba(10, 102, 194, 0.15);
}

/* 文字 */
.history .item .content p {
  font-size: 17px;
  color: #2C3E4E;
  line-height: 1.5;
  margin: 0;
}
.history .item .content p + p {
  margin-top: 10px;
}

/* 隐藏旧箭头 */
.history .item .content::before,
.history .item .content::after {
  display: none;
}

/* 移动端 */
@media screen and (max-width: 768px) {
  .history .item {
    display: block;
    margin-bottom: 40px;
  }
  .history .list::before { left: 20px; }
  .history .item::after { left: 20px; top: 32px; transform: translateY(-50%); }
  
  .history .item .date {
    position: relative;
    left: 40px !important;
    right: auto !important;
    margin-bottom: 12px;
  }
  .history .item .content {
    position: relative;
    left: auto !important;
    right: auto !important;
    width: 100%;
    padding: 18px 20px 18px 45px;
    border-left: 3px solid var(--blue-primary);
    border-radius: 16px;
    text-align: left !important;
    background: var(--card-bg);
  }
}