@media screen and (max-width: 560px) {

    .timeline-title {
        text-align: center;
        color: #333;
        margin-bottom: 40px;
        font-size: 2.2rem;
        position: relative;
    }

    .timeline-title::after {
        content: '';
        display: block;
        width: 100px;
        height: 4px;
        background: linear-gradient(to right, transparent, #3498db, transparent);
        margin: 15px auto 0;
    }

    /* 时间轴容器样式 */
    .timeline {
        position: relative;
        width: 100%;
        margin: 0 auto;
        padding: 40px 0;
    }

    /* 时间轴线样式 - 两头颜色逐渐减淡效果 */
    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 8px;
        transform: translateX(-50%);
        /*background: linear-gradient(to bottom,*/
        /*    rgba(52, 152, 219, 0) 0%,*/
        /*    rgba(52, 152, 219, 1) 15%,*/
        /*    rgba(52, 152, 219, 1) 85%,*/
        /*    rgba(52, 152, 219, 0) 100%);*/
        background: linear-gradient(180deg, rgba(120, 183, 255, 0) 0%, #78B7FF 50%, rgba(120, 183, 255, 0) 100%);
        z-index: 1;
    }

    /* 时间点项目容器 */
    .timeline-item {
        padding: 10px 20px;
        position: relative;
        width: 50%;
        box-sizing: border-box;
    }

    /* 时间点项目 - 右侧布局 */
    .timeline-item:nth-child(odd) {
        left: 0;
    }

    /* 时间点项目 - 左侧布局 */
    .timeline-item:nth-child(even) {
        left: 50%;
    }

    /* 时间节点样式 - 圆圈，与时间轴大小一样 */
    .timeline-item::after {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        right: -3px;
        top: 49%;
        border-radius: 50%;
        background-color: #3498db;
        z-index: 2;
    }

    /* 调整偶数项（左侧）的节点位置 */
    .timeline-item:nth-child(even)::after {
        left: -3px;
    }

    /* 调整偶数项（左侧）的节点位置 */
    .timeline-item:nth-child(odd)::after {
        right: -3px;
    }

    /* 虚线连接线 */
    .timeline-content {
        position: relative;
        /*padding: 20px;*/
        background-color: white;
        border-radius: 6px;
        width: 48%;
        height: auto;
        /*border: solid 1px #ccc;*/
        /*height: 270px;*/
        /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* 左边的内容 */
    .timeline-item:nth-child(odd) .timeline-content {
        /*background: red;*/
        /*float: left;*/
    }

    /* 右边的内容 */
    .timeline-item:nth-child(even) .timeline-content{
        /*background: yellow;*/
    }

    /* 为右侧项目添加虚线连接 */
    .timeline-item:nth-child(odd) .timeline-content::before {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        /*border: 15px solid transparent;*/
        border-left-color: white;
        right: -30px;
        top: 50%;
    }

    /* 为左侧项目添加虚线连接 */
    .timeline-item:nth-child(even) .timeline-content::before {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        /*border: 15px solid transparent;*/
        border-right-color: white;
        left: -30px;
        top: 50%;
    }

    /* 左边的时间 */
    .timeline-item:nth-child(odd) .timeline-date {
        position: absolute;
        top: 10%;
        left: 110%;
        width: 100%;
        font-size: 0.8rem;
    }

    /* 右边的时间 */
    .timeline-item:nth-child(even) .timeline-date {
        width: 100%;
        position: absolute;
        top: 0%;
        font-size: 0.8rem;
        left: -120%;
    }



    /* 左边标题 */
    .timeline-item:nth-child(odd) .timeline-title-card {
        position: absolute;
        top: 49%;
        right: -125%;
        width: 120%;
    }

    /* 右边标题 */
    .timeline-item:nth-child(even) .timeline-title-card {
        position: absolute;
        top: 49%;
        left: -115%;
        width:100%;
    }

    .timeline-item img {
        width: 100%;
        height: 100%;
    }

    /* 左边的虚线 */
    .timeline-item:nth-child(odd)::before {
        content: '';
        position: absolute;
        width: 50%;
        height: 2px;
        background: repeating-linear-gradient(90deg, #e6e6e6, #d8d8da 5px, transparent 5px, transparent 10px);
        right: 0;
        top: 50%;
    }

    /*****右边内容******/
    .timeline-item:nth-child(even) .timeline-content {
        right: -50%;
        /*background: #1e7e34;*/
    }

    /* 右边的虚线 */
    .timeline-item:nth-child(even)::before {
        content: '';
        position: absolute;
        width: 50%;
        height: 2px;
        background: repeating-linear-gradient(90deg, #e6e6e6, #d8d8da 5px, transparent 5px, transparent 10px);
        /*background: #ccc;*/
        left: 0;
        top: 50%;
    }

    /* 时间点内容样式 */
    .timeline-date {
        font-weight: bold;
        color: #000000;
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

    .timeline-title-card {
        font-size: 0.8rem;
        color: #000000;
        font-weight: 400;
    }

    .timeline-description {
        color: #555;
        margin-bottom: 15px;
    }

    .timeline-icon {
        margin-right: 10px;
        color: #3498db;
    }

    /* 悬停效果 */
    .timeline-content:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    }

    /* 滚动到顶部按钮 */
    .scroll-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        background-color: #3498db;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
        z-index: 1000;
    }

    .scroll-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top:hover {
        background-color: #2980b9;
        transform: translateY(-3px);
    }


}

@media screen and (min-width: 560px) and (max-width: 1200px) {
    .timeline-title {
        text-align: center;
        color: #333;
        margin-bottom: 40px;
        font-size: 2.2rem;
        position: relative;
    }

    .timeline-title::after {
        content: '';
        display: block;
        width: 100px;
        height: 4px;
        background: linear-gradient(to right, transparent, #3498db, transparent);
        margin: 15px auto 0;
    }

    /* 时间轴容器样式 */
    .timeline {
        position: relative;
        width: 100%;
        margin: 0 auto;
        padding: 40px 0;
    }

    /* 时间轴线样式 - 两头颜色逐渐减淡效果 */
    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 8px;
        transform: translateX(-50%);
        /*background: linear-gradient(to bottom,*/
        /*    rgba(52, 152, 219, 0) 0%,*/
        /*    rgba(52, 152, 219, 1) 15%,*/
        /*    rgba(52, 152, 219, 1) 85%,*/
        /*    rgba(52, 152, 219, 0) 100%);*/
        background: linear-gradient(180deg, rgba(120, 183, 255, 0) 0%, #78B7FF 50%, rgba(120, 183, 255, 0) 100%);
        z-index: 1;
    }

    /* 时间点项目容器 */
    .timeline-item {
        padding: 10px 20px;
        position: relative;
        width: 50%;
        box-sizing: border-box;
    }

    /* 时间点项目 - 右侧布局 */
    .timeline-item:nth-child(odd) {
        left: 0;
    }

    /* 时间点项目 - 左侧布局 */
    .timeline-item:nth-child(even) {
        left: 50%;
    }

    /* 时间节点样式 - 圆圈，与时间轴大小一样 */
    .timeline-item::after {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        right: -3px;
        top: 49%;
        border-radius: 50%;
        background-color: #3498db;
        z-index: 2;
    }

    /* 调整偶数项（左侧）的节点位置 */
    .timeline-item:nth-child(even)::after {
        left: -3px;
    }

    /* 调整偶数项（左侧）的节点位置 */
    .timeline-item:nth-child(odd)::after {
        right: -3px;
    }

    /* 虚线连接线 */
    .timeline-content {
        position: relative;
        /*padding: 20px;*/
        background-color: white;
        border-radius: 6px;
        width: 48%;
        height: auto;
        /*border: solid 1px #ccc;*/
        /*height: 270px;*/
        /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* 左边的内容 */
    .timeline-item:nth-child(odd) .timeline-content {
        /*background: red;*/
        /*float: left;*/
    }

    /* 右边的内容 */
    .timeline-item:nth-child(even) .timeline-content{
        /*background: yellow;*/
    }

    /* 为右侧项目添加虚线连接 */
    .timeline-item:nth-child(odd) .timeline-content::before {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        /*border: 15px solid transparent;*/
        border-left-color: white;
        right: -30px;
        top: 50%;
    }

    /* 为左侧项目添加虚线连接 */
    .timeline-item:nth-child(even) .timeline-content::before {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        /*border: 15px solid transparent;*/
        border-right-color: white;
        left: -30px;
        top: 50%;
    }

    /* 左边的时间 */
    .timeline-item:nth-child(odd) .timeline-date {
        position: absolute;
        top: 33%;
        left: 110%;
        width: 100%;
        font-size: 0.8rem;
    }

    /* 右边的时间 */
    .timeline-item:nth-child(even) .timeline-date {
        width: 100%;
        position: absolute;
        top: 30%;
        font-size: 0.8rem;
        left: -110%;
    }



    /* 左边标题 */
    .timeline-item:nth-child(odd) .timeline-title-card {
        position: absolute;
        top: 49%;
        right: -125%;
        width: 120%;
    }

    /* 右边标题 */
    .timeline-item:nth-child(even) .timeline-title-card {
        position: absolute;
        top: 49%;
        left: -110%;
        width:100%;
    }

    .timeline-item img {
        width: 100%;
        height: 100%;
    }

    /* 左边的虚线 */
    .timeline-item:nth-child(odd)::before {
        content: '';
        position: absolute;
        width: 50%;
        height: 2px;
        background: repeating-linear-gradient(90deg, #e6e6e6, #d8d8da 5px, transparent 5px, transparent 10px);
        right: 0;
        top: 50%;
    }

    /*****右边内容******/
    .timeline-item:nth-child(even) .timeline-content {
        right: -50%;
        /*background: #1e7e34;*/
    }

    /* 右边的虚线 */
    .timeline-item:nth-child(even)::before {
        content: '';
        position: absolute;
        width: 50%;
        height: 2px;
        background: repeating-linear-gradient(90deg, #e6e6e6, #d8d8da 5px, transparent 5px, transparent 10px);
        /*background: #ccc;*/
        left: 0;
        top: 50%;
    }

    /* 时间点内容样式 */
    .timeline-date {
        font-weight: bold;
        color: #000000;
        margin-bottom: 10px;
        font-size: 1rem;
    }

    .timeline-title-card {
        font-size: 0.8rem;
        color: #000000;
        font-weight: 400;
    }

    .timeline-description {
        color: #555;
        margin-bottom: 15px;
    }

    .timeline-icon {
        margin-right: 10px;
        color: #3498db;
    }

    /* 悬停效果 */
    .timeline-content:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    }

    /* 滚动到顶部按钮 */
    .scroll-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        background-color: #3498db;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
        z-index: 1000;
    }

    .scroll-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top:hover {
        background-color: #2980b9;
        transform: translateY(-3px);
    }
}
