﻿@media (min-width: 992px) {
    .vh-40 {
        height: 50vh;
    }

    /* 外部容器 */
    .timeline-wrapper {
        background-image: url('../image/licbg.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        overflow-x: hidden;
        /* 隐藏滚动条 */
        white-space: nowrap;
        /* 防止换行 */
        position: relative;
        padding: 1rem 0;
        cursor: grab;
        /* 鼠标形状为抓取 */
    }

    /* 时间轴容器 */
    .timeline {
        position: relative;
        display: flex;
        justify-content: start;
        /* 从左对齐 */
        align-items: center;
        /* 确保时间点居中对齐 */
        gap: 2rem;
        /* 时间点间距 */
        width: max-content;
        /* 动态宽度，适配内容 */
        height: 50vh;
        /* 足够高度以容纳交错内容 */
        transition: transform 0.2s ease-out;
        /* 平滑拖动效果 */
    }

    /* 横线 */
    .timeline::before {
        content: "";
        position: absolute;
        top: 50%;
        /* 垂直居中 */
        left: 0;
        height: 3px;
        background-color: #CDB48D;
        /* width: 150%; */
        min-width: 1440px;
        /* 覆盖整个时间轴 */
        z-index: 0;
    }

    /* 时间点 */
    .timeline-item {
        position: relative;
        width: 200px;
        /* 固定宽度，确保撑开 */
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
    }

    /* 时间点圆点 */
    .timeline-dot {
        width: 12px;
        height: 12px;
        background-color: #C81F3C;
        border-radius: 50%;
        position: absolute;
        top: -6px;
        left: -1px;
        z-index: 1;
    }

    /* 圆点上方的竖线 */
    .timeline-dot::before {
        content: "";
        position: absolute;
        width: 2px;
        background: linear-gradient(180deg, rgba(255, 178, 199, 1), rgba(200, 31, 60, 1));
        height: 180px;
        left: 50%;
        top: -180px;
        /* 默认向上 */
        transform: translateX(-50%);
        z-index: -1;
    }

    /* 圆点下方的竖线 */
    .timeline-dot::after {
        content: "";
        position: absolute;
        width: 2px;
        background: linear-gradient(180deg, rgba(255, 178, 199, 1), rgba(200, 31, 60, 1));
        height: 180px;
        left: 50%;
        bottom: -180px;
        /* 默认向下 */
        transform: translateX(-50%);
        z-index: -1;
    }

    /* 时间内容通用样式 */
    .timeline-content {
        position: absolute;
        width: 220px;
        padding: 0 0.875rem;
        text-align: center;
        white-space: normal;
        /* 允许内容换行 */
        z-index: 1;
    }

    .timeline-item:nth-child(odd) .timeline-dot::before {
        display: block;
        /* 上方竖线 */
    }

    .timeline-item:nth-child(odd) .timeline-dot::after {
        display: none;
        /* 隐藏下方竖线 */
    }

    /* 根据索引实现交错布局 */
    .timeline-item:nth-child(odd) .timeline-content {
        top: -200px;
        /* 奇数：上方 */
    }

    .timeline-item:nth-child(even) .timeline-dot::before {
        display: none;
        /* 隐藏上方竖线 */
    }

    .timeline-item:nth-child(even) .timeline-dot::after {
        display: block;
        /* 下方竖线 */
    }

    .timeline-item:nth-child(even) .timeline-content {
        top: 20px;
        /* 偶数：下方 */
    }

}

@media (min-width: 576px) and (max-width:991px) {
    .vh-40 {
        height: 70vh;
    }

    /* 时间轴容器 */
    .timeline-wrapper {
        background-image: url('../image/licbg.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        height: 30vh;
        /* 限制高度 */
        overflow-y: auto;
        /* 超出内容滚动 */
        position: relative;
        padding: 10px 0;
    }

    /* 时间轴主体 */
    .timeline {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }

    /* 中间的时间线 */
    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 4px;
        background: #ddd;
        transform: translateX(-50%);
        z-index: 1;
    }

    /* 时间轴条目 */
    .timeline-item {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 30px 0;
    }

    /* 时间点圆圈 */
    .timeline-dot {
        width: 12px;
        height: 12px;
        background: #e74c3c;
        border-radius: 50%;
        z-index: 2;
        border: 2px solid #fff;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
        position: relative;
    }

    /* 时间点上的横线 */
    .timeline-dot::before {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        height: 2px;
        width: 35vw;
        /* 横线长度 */
        background: linear-gradient(180deg, rgba(255, 178, 199, 1), rgba(200, 31, 60, 1));
    }

    .timeline-content.top~.timeline-dot::before {
        right: -45%;
        /* 横线位于左侧 */
    }

    .timeline-content.bottom~.timeline-dot::before {
        left: -45%;
        /* 横线位于右侧 */
    }

    /* 时间轴内容块 */
    .timeline-content {
        width: 45%;
        /* 内容宽度 */
        padding: 10px 15px;
        background: #f5f5f5;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 2;
        position: relative;
        margin-top: 20px;
        /* 与时间点的间距 */
    }

    /* 左右内容块 */
    .timeline-content.top {
        text-align: right;
        margin-right: auto;
    }

    .timeline-content.bottom {
        text-align: left;
        margin-left: auto;
    }

    /* 内容块箭头 */
    .timeline-content::after {
        content: '';
        position: absolute;
        top: -10px;
        /* 箭头对齐圆点 */
        width: 0;
        height: 0;
        border-style: solid;
    }

    .timeline-content.top::after {
        right: -10px;
        border-width: 5px;
        border-color: transparent transparent #f5f5f5 transparent;
    }

    .timeline-content.bottom::after {
        left: -10px;
        border-width: 5px;
        border-color: transparent transparent transparent #f5f5f5;
    }

    /* 滚动条样式（可选） */
    .timeline-wrapper::-webkit-scrollbar {
        width: 6px;
    }

    .timeline-wrapper::-webkit-scrollbar-thumb {
        background: #bbb;
        border-radius: 5px;
    }


}

.pl-min {
    padding-left: 15px;
    text-align: left;
}

.text-red {
    color: #C81F3C;
}

.text-blod {
    font-weight: bold;
}

.liuchenv2 {
    background-image: url('../image/nrbg.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: #FFFFFF;
}
