/* ============================================================
   process 组件 · 从 case_new.css 抽出，index/course 共用
   ============================================================ */

.step-name {
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.step-desc {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

#process .process-steps {
    justify-content: center;
}

#process .process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(10% + 30px);
    right: calc(10% + 30px);
    height: 2px;
    background: linear-gradient(to right, var(--clr-primary), rgba(218,0,35,0.15));
    z-index: 0;
}

#process .process-step {
    gap: 0;
}

#process .process-step::before {
    display: none;
    content: none;
}

#process .step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--clr-primary);
    color: #fff;
    margin-bottom: 16px;
    z-index: 1;
}

#process .step-name {
    margin-bottom: 6px;
}

#process {
    padding: 32px 0 40px;
}

#process .process-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 28px 0 0;
    align-items: stretch;
    position: relative;
    padding-left: 44px;
    max-width: none;
}

#process .process-steps::before {
    content: '';
    display: block;
    position: absolute;
    left: 15px;
    top: 16px;
    bottom: 16px;
    right: auto;
    height: auto;
    width: 2px;
    background: linear-gradient(to bottom,
            var(--clr-primary),
            rgba(var(--clr-primary-rgb), 0.22));
    z-index: 0;
}

#process .process-step {
    flex: none;
    width: 100%;
    max-width: 100%;
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    text-align: left;
    position: relative;
}

#process .step-circle {
    position: absolute;
    left: -44px;
    top: 0;
    width: 30px;
    height: 30px;
    font-size: var(--font-size-14);
    font-weight: 700;
    margin: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(var(--clr-primary-rgb), 0.28);
}

#process .step-name {
    display: block;
    margin: 0 0 4px;
    font-size: var(--font-size-16);
    font-weight: 700;
    color: #1a1a1a;
}

#process .step-desc {
    display: block;
    margin: 0;
    font-size: var(--font-size-14);
    line-height: 1.6;
    color: #666;
}

@media (min-width: 1025px) {
    .step-name {
        text-wrap: balance;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .step-desc {
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    #process {
        padding: 64px 0 72px;
    }

    #process .process-steps {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        max-width: 920px;
        margin: 48px auto 0;
        position: relative;
    }

    #process .process-steps::before {
        content: '';
        position: absolute;
        top: 30px;
        left: calc(10% + 30px);
        right: calc(10% + 30px);
        height: 2px;
        background: linear-gradient(to right, var(--clr-primary), rgba(218,0,35,0.15));
        z-index: 0;
    }

    #process .process-step {
        flex: 1;
        text-align: center;
        position: relative;
        padding: 0 8px;
        display: block;
        gap: 0;
    }

    #process .process-step::before {
        display: none;
        content: none;
    }

    #process .step-circle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: var(--clr-primary);
        color: #fff;
        font-size: var(--font-size-22);
        font-weight: 700;
        margin-bottom: 16px;
        position: relative;
        z-index: 1;
        box-shadow: 0 4px 14px rgba(218,0,35,0.3);
    }

    #process .step-name {
        display: block;
        font-size: var(--font-size-16);
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 6px;
    }

    #process .step-desc {
        display: block;
        font-size: var(--font-size-14);
        color: #888;
        line-height: 1.6;
    }

}

