.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.timeline-line {
    position: absolute;
    background-color: #286090;
    top: 50%;
    margin-top: -1px;
    height: 2px;
    z-index: 3;
}
.timeline-line2 {
    position: absolute;
    background-color: #8a8a8a;
    top: 50%;
    margin-top: -1px;
    height: 2px;
    width: 100%;
    z-index: 2;
}
.timeline-item {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #8a8a8a;
    z-index: 4;
    font-size: 14px;
    text-align: center;
    padding: 0 3px 0;
    max-width: 80px;
    box-sizing: border-box;
}
.timeline-item svg {
    height: 28;
    width: 28;
    fill: #8a8a8a;
    margin-bottom: 4px;
}
.timeline-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
     text-align: center;  /* 文本居中 */
    white-space: normal; /* 允许自动换行 */
}

/* 添加手机端垂直布局的媒体查询 */
@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        padding-left: 30px; /* 为垂直线腾出空间 */
    }
    
    .timeline-line,
    .timeline-line2 {
        /* 改为垂直线 */
        width: 2px;
        top: 10px;
        left: 15px; /* 线的位置 */
        margin-top: 0;
        max-height: calc(100% - 20px);
    }
    .timeline-line2 {
        height: 100%;
    }
    .timeline-item {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        max-width: none;
        width: 100%;
        height: 40px;
        position: relative;
    }
    
    .timeline-item svg {
        margin-bottom: 0;
        margin-right: 8px;
    }
    
    .timeline-item span:not(.timeline-time) {
        margin-right: 10px;
        font-weight: bold;
    }
    
    .timeline-time {
        margin-top: 0;
        text-align: left;
    }
}