.timeline-wrap {
    position: relative;
    /* 相对定位，方便轴线定位 */
    padding: 48px 0 64px;
    /* 上下留白 */
    max-width: 100vw;
    /* 不超过视口宽度 */
    overflow: hidden;
    /* 超出部分隐藏 */
}

/* 顶部标题 */
.timeline-header {
    text-align: center;
    /* 标题居中 */
    margin-bottom: 20px;
    /* 与时间轴之间留白 */
}

.timeline-title {
    font-size: 22px;
    /* 字号 */
    font-weight: 600;
    /* 半粗体 */
    letter-spacing: 2px;
    /* 字间距 */
}

/* 横向滚动容器 */
.timeline-scroller {
    position: relative;
    /* 相对定位 */
    overflow-x: auto;
    /* 横向滚动 */
    overflow-y: hidden;
    /* 禁止纵向滚动 */
    scroll-behavior: smooth;
    /* 平滑滚动 */
    padding: 24px;
    /* 内边距 */
    max-width: 1200px;
    /* 最大宽度 */
    margin: 0 auto;
    /* 居中 */
    scrollbar-width: none;
    /* Firefox 隐藏滚动条 */
    -ms-overflow-style: none;
    /* IE 隐藏滚动条 */
}

.timeline-scroller::-webkit-scrollbar {
    display: none;
    /* Chrome / Safari 隐藏滚动条 */
}

/* 让容器有上下空间并以中线为参考 */
.timeline {
    position: relative;
    display: inline-flex;
    /* 关键：让容器宽度跟随内容 */
    width: max-content;
    /* 关键：总宽度 = 所有节点宽度之和 + 间距 */
    gap: 10px;
    /* 你的间距照旧 */
    align-items: center;
    /* 让中线在视觉中心 */
    padding: 0 20px;
    height: 360px;
    /* 上下交错所需高度 */
}

/* 轴线仍然在容器内，长度自适应内容宽度 */
.axis {
    position: absolute;
    left: 0;
    right: 0;
    /* left+right 让它充满整个 timeline 宽度 */
    top: 50%;
    transform: translateY(-1px);
    height: 2px;
    background: linear-gradient(90deg, transparent 0, #eaeaea 10%, #eaeaea 90%, transparent 100%);
    pointer-events: none;
    z-index: 0;

}

/* 基础节点样式 */
.t-item {
    position: relative;
    width: 150px;
    z-index: 1;
    /* 确保在轴线上方 */
}

/* —— 关键：用 nth-of-type，避免 .axis 影响奇偶 —— */
.timeline>.t-item:nth-of-type(odd) {
    align-self: flex-start;
    /* 上半区 */
    margin-top: 20px;
}

.timeline>.t-item:nth-of-type(even) {
    align-self: flex-end;
    /* 下半区 */
    margin-bottom: 20px;
}

/* 日期文字 */
.t-date {
    font-size: 12px;
    /* 小字号 */
    color: #ffffff;
    /* 灰色文字 */
    margin-bottom: 6px;
    /* 与标题分隔 */
    text-align: center;
    /* 居中 */
}

/* 标题文字 */
.t-title {
    font-size: 18px;
    /* 标题字号 */
    font-weight: 600;
    /* 半粗体 */
    margin-bottom: 6px;
    /* 与描述分隔 */
    text-align: center;
    /* 居中 */
    color: #ffffff;
}

/* 描述文字 */
.t-desc {
    font-size: 14px;
    /* 正文字号 */
    color: #ffffff;
    /* 深灰色 */
    line-height: 1.6;
    /* 行高 */
    text-align: center;
    /* 居中排版，更简洁 */
}

/* 小屏幕优化 */
@media (max-width:640px) {
    .timeline {
        gap: 40px;
        /* 间距缩小 */
        height: auto;
        /* 高度自适应 */
        flex-direction: column;
        /* 改为竖直排列，方便小屏阅读 */
    }

    .t-item {
        width: 100%;
        /* 宽度占满 */
        margin: 20px 0;
        /* 上下间距 */
        align-self: center;
        /* 居中 */
    }

    .axis {
        display: none;
    }

    /* 小屏隐藏中轴线 */
    .t-dot {
        display: none;
    }

    /* 小屏隐藏圆点 */
}