/*
 * 进度条宽度与上方「关于我们」.section-inner 内容区一致（头像左缘对齐）
 */
.home-production-progress-wrap {
    width: 100%;
    margin: clamp(80px, 10vw, 200px) 0 clamp(6px, 0.75vw, 10px);
    padding: 0;
    overflow: visible;
    box-sizing: border-box;
}

.home-finish-time {
    --progress-font: 'Source Han Sans CN', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

    width: 100%;
    margin: 0 0 clamp(48px, 6vw, 96px);
    padding: 0;
    box-sizing: border-box;
    font-family: var(--progress-font);
    font-weight: 400;
    font-style: normal;
    font-size: clamp(18px, 1.8vw, 28px);
    line-height: 1.2;
    color: #000000;
    text-align: center;
}

.home-finish-time[hidden] {
    display: none;
}

.home-production-progress {
    --progress-slant: 20px;
    --progress-pad-y: 6px;
    --progress-font: 'Source Han Sans CN', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

    position: relative;
    display: grid;
    font-family: var(--progress-font);
    grid-template-columns: 3fr 4fr 3fr;
    width: 100%;
    margin: 0;
    isolation: isolate;
    box-sizing: border-box;
}

.home-production-progress__seg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    font-family: var(--progress-font);
    font-weight: 500;
    font-size: clamp(18px, 1.8vw, 28px);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.home-production-progress__seg--completed {
    z-index: 3;
    padding: var(--progress-pad-y) calc(var(--progress-slant) + 12px) var(--progress-pad-y) 16px;
    color: #ffffff;
    background-color: #9a9a9a;
    -webkit-clip-path: polygon(
        0 0,
        100% 0,
        calc(100% - var(--progress-slant)) 100%,
        0 100%
    );
    clip-path: polygon(
        0 0,
        100% 0,
        calc(100% - var(--progress-slant)) 100%,
        0 100%
    );
}

.home-production-progress__seg--active {
    z-index: 2;
    margin-left: calc(var(--progress-slant) * -1 - 1px);
    padding: var(--progress-pad-y) calc(var(--progress-slant) + 12px) var(--progress-pad-y) calc(var(--progress-slant) + 8px);
    color: #ffffff;
    background-color: #0b51ff;
    -webkit-clip-path: polygon(
        var(--progress-slant) 0,
        100% 0,
        calc(100% - var(--progress-slant)) 100%,
        0 100%
    );
    clip-path: polygon(
        var(--progress-slant) 0,
        100% 0,
        calc(100% - var(--progress-slant)) 100%,
        0 100%
    );
}

.home-production-progress__seg--pending {
    z-index: 1;
    margin-left: calc(var(--progress-slant) * -1 - 1px);
    padding: var(--progress-pad-y) 16px var(--progress-pad-y) calc(var(--progress-slant) + 8px);
    color: #0b51ff;
    background-color: #ffffff;
    -webkit-clip-path: polygon(
        var(--progress-slant) 0,
        100% 0,
        100% 100%,
        0 100%
    );
    clip-path: polygon(
        var(--progress-slant) 0,
        100% 0,
        100% 100%,
        0 100%
    );
}

.home-production-progress--mobile {
    --progress-slant: 10px;
    --progress-pad-y: 4px;
}

.home-production-progress--mobile .home-production-progress__seg {
    font-size: 11px;
}

.home-production-progress--mobile .home-production-progress__seg--completed {
    padding: var(--progress-pad-y) calc(var(--progress-slant) + 8px) var(--progress-pad-y) 8px;
}

.home-production-progress--mobile .home-production-progress__seg--active {
    padding: var(--progress-pad-y) calc(var(--progress-slant) + 8px) var(--progress-pad-y) calc(var(--progress-slant) + 4px);
}

.home-production-progress--mobile .home-production-progress__seg--pending {
    padding: var(--progress-pad-y) 8px var(--progress-pad-y) calc(var(--progress-slant) + 4px);
}

@media (max-width: 900px) {
    .home-production-progress:not(.home-production-progress--mobile) {
        --progress-slant: 14px;
        --progress-pad-y: 5px;
    }

    .home-production-progress:not(.home-production-progress--mobile) .home-production-progress__seg {
        font-size: clamp(12px, 3.2vw, 16px);
    }

    .home-finish-time {
        font-size: clamp(12px, 3.2vw, 16px);
    }
}
