/* 时间线实现代码 */
body {
  margin: 0;
  padding: 0;
}

.timeline {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 20px;
}

.timeline-item {
  width: 100%;
  padding: 20px;
  position: relative;
}

.timeline-box{
  height: 100%;
  width: 30%;
}

.timeline-item:nth-child(odd) .timeline-box{
  /* background-color: rgb(43, 228, 43); */
  text-align: right;
  float: right;

}

.timeline-item:nth-child(even) .timeline-box{
  /* background-color: rgb(43, 228, 43); */
  
  text-align: left;
  float: left;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 59.5%;
  transform: translateX(-50%);
  width: 6px;
  height: 100%;
  background-color: #231049;
}

.timeline-item .date {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ccc;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .timeline-item {
    width: 100%;
  }
}