@charset "utf-8";
/* CSS Document */

/* 进度条容器 */
        .timeline-container {
            width: 100%;
            margin-top: clamp(40px, 3.125vw, 60px);
            padding: 0 clamp(20px, 5vw, 60px); /* 防止贴死屏幕边缘 */
            float: left;
        }

        /* 进度条主体 */
        .timeline {
            display: flex;
            justify-content: space-between;
            position: relative;
            list-style: none;
            /* 核心修改1：利用负边距抵消节点宽度，使首尾圆点完美贴边 */
            margin-left: calc(100px / -2); 
            margin-right: calc(100px / -2);
        }

        /* 每个进度节点 */
        .timeline-item {
            /* 核心修改2：设定固定基准宽度，方便计算连线长度 */
            width: 100px;
            text-align: center;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center; /* 圆点和内容居中 */
            z-index: 1;
        }

        /* =========================================
           核心修改3：绝对连续不断的线 
           ========================================= */
        .timeline-item::after {
            content: '';
            position: absolute;
            /* 高度自适应，并设为圆点的一半，使其与圆心垂直对齐 */
            top: calc(clamp(16px, 1.5vw, 24px) / 2); 
            /* 从当前圆点正中心向右画 */
            left: 50%; 
            /* 宽度跨越到下一个圆心：节点宽度的100% + 节点宽度的一半 */
            width: calc(320% + 50px);
            /* 线宽随屏幕缩放，最小 2px，最大 4px */
            height: clamp(2px, 0.25vw, 4px); 
            background-color: #019080;
            z-index: -1; /* 核心：线在底层，圆点在上层盖住线头，保证不断开 */
        }
        .timeline-item-1::after{
			width: calc(420% + 50px);
			}
        /* 最后一个节点不画线 */
        .timeline-item:last-child::after {
            display: none;
        }
		.timeline-item-2::after{
         background-color: transparent;
            background-image: linear-gradient(to right, #ccc 50%, transparent 50%);
            background-size: clamp(8px, 0.8vw, 16px) 100%;
            background-repeat: repeat-x;}
			
        /* 状态：未完成 (无缝虚线) */
        .timeline-item.current::after {
            background-color: transparent;
            background-image: linear-gradient(to right, #ccc 50%, transparent 50%);
            background-size: clamp(8px, 0.8vw, 16px) 100%;
            background-repeat: repeat-x;
        }
        .timeline-item .content-1::after {
            background-color: transparent;
            background-image: linear-gradient(to right, #ccc 50%, transparent 50%);
            background-size: clamp(8px, 0.8vw, 16px) 100%;
            background-repeat: repeat-x;
        }
        /* =========================================
           圆点样式
           ========================================= */
        .timeline-dot {
            /* 圆点尺寸：最小 16px，最大 24px，跟随视口缩放 */
            width: clamp(16px, 1.5vw, 24px);
            height: clamp(16px, 1.5vw, 24px);
            border-radius: 50%;
            background-color: #019080;
            position: relative;
            z-index: 2; 
            display: flex;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
        }

        /* 状态：未完成 (空心圆) */
        .timeline-item.pending .timeline-dot {
            background-color: #fff;
            border: clamp(2px, 0.2vw, 3px) solid #ccc;
        }

        /* 状态：推进中 (红色靶心) */
        .timeline-item.current .timeline-dot {
            /* 尺寸比普通圆点大一圈 */
            width: clamp(24px, 2.2vw, 34px);
            height: clamp(24px, 2.2vw, 34px);
            background-color: #A62035;
            border: clamp(3px, 0.4vw, 5px) solid #fff;
            box-shadow: 0 0 0 clamp(2px, 0.2vw, 3px) #a61c35;
            /* 因为尺寸变大，计算负边距使其中心点依然对齐 */
            margin-top: calc((clamp(16px, 1.5vw, 24px) - clamp(24px, 2.2vw, 34px)) / 2);
            margin-left: calc((clamp(16px, 1.5vw, 24px) - clamp(24px, 2.2vw, 34px)) / 2);
        }

        /* 红色靶心内圆 */
        .timeline-item.current .timeline-dot::before {
            content: '';
            width: clamp(6px, 0.6vw, 10px);
            height: clamp(6px, 0.6vw, 10px);
            background-color: #fff;
            border-radius: 50%;
        }

        /* =========================================
           文本内容区域 (居中显示)

           ========================================= */
        .content {
            margin-top: clamp(12px, 1.2vw, 20px);
            text-align: center; /* 文字居中 */
            width: auto;
            /* 取消 padding-right，让文字在100px宽度内居中对齐 */
        }

        .title {
            font-size: clamp(14px, 1.5vw, 22px);
            color: #333;
            margin-bottom: clamp(2px, 0.4vw, 6px);
            font-weight: 400;
            white-space: nowrap; /* 保证标题不换行 */
        }

        .subtitle {
            font-size: clamp(12px, 1vw, 16px);
            color: #888;
            white-space: nowrap; /* 保证副标题不换行 */
        }

        /* 状态：推进中 的红色字体 */
        .timeline-item.current .title,
        .timeline-item.current .subtitle {
            color: #a61c35;
        }
        .timeline-item.current .title {
            font-weight: 500;
        }
		
		@media (min-width:1000px) and  (max-width:1360px){
		.timeline-item::after {
            width: calc(200% + 50px);
        }
		  .timeline-item-1::after{
			width: calc(250% + 50px);
			}
		}

        /* =========================================
           极窄屏幕处理 (手机端)
           ========================================= */
        @media (max-width: 550px) {
            .timeline {
                flex-direction: column;
                padding: 0;
                /* 重置负边距 */
                margin-left: 0;
                margin-right: 0;
            }

            .timeline-item {
                flex-direction: row; 
                align-items: flex-start;
                padding-bottom: 30px;
                width: 100%; /* 纵向时宽度占满 */
                text-align: left;
            }

            .timeline-item:last-child {
                padding-bottom: 0;
            }

            /* 垂直重绘线 */
            .timeline-item::after {
                top: 20px; 
                left: 10px; /* 与圆点中心对齐 */
                width: 3px;
                height: 100%;
                /* 重置 calc 宽度 */
                width: 3px; 
            }
.timeline-item-2::after{
         background-color: transparent;
            background-image: linear-gradient(to right, #ccc 50%, transparent 50%);
            background-size: clamp(8px, 0.8vw, 16px) 100%;
            background-repeat: repeat-x;}
            /* 垂直虚线 */
            .timeline-item.current::after {
                background-image: linear-gradient(to bottom, #ccc 50%, transparent 50%);
                background-size: 100% 8px;
                background-repeat: repeat-y;
            }

            /* 重置手机端尺寸和边距 */
            .timeline-dot {
                width: 20px;
                height: 20px;
            }
            
            .timeline-item.current .timeline-dot {
                width: 28px;
                height: 28px;
                margin-top: 0;
                margin-left: -4px;
            }

            .content {
                margin-top: 0;
                margin-left: 15px;
                text-align: left;
            }
            
            .title, .subtitle {
                white-space: normal; /* 手机端允许文字换行 */
            }
        }