
#flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 580px;
}
#flow-bg {
    height: 580px;
    text-align: center;
}

#flow-bg > .bg-0 {
    position: absolute;
    right: -18px;
    top: 50px;
    animation: flow-bg-0-slide 1s linear infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -1s);
}

@keyframes flow-bg-0-slide {
    from {
        top: -400px;
    }
    to {
        top: 300px;
    }
}

#flow-bg .path-box {
    position: absolute;
    right: 0;
    top: 561px;
    width: 520px;
    height: 279px;
}
#flow-bg .path-box > .path {
    width: 100%;
    height: 100%;
}
#flow-bg .path-box > .ball {
    display: block;
    position: absolute;
    right: 195px;
    top: -9px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 100%;
    animation: flow-ball 3s;
    animation-play-state: paused;
    transition-timing-function: cubic-bezier(0, 0, 0.1, 1);
}
#flow-bg .path-box > .ball::after {
    display: block;
    position: absolute;
    right: calc(50% - 55px);
    bottom: calc(50% - 55px);
    width: 110px;
    height: 110px;
    opacity: 0;
    content: "";
    background-image: url("../images/ball-glow.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: flow-ball-glow 3s linear;
    animation-play-state: paused;
}
#flow-bg.triggered .path-box > .ball {
    animation-play-state: running;
}
#flow-bg.triggered .path-box > .ball::after {
    animation-play-state: running;
}

@keyframes flow-ball {
    0% {
        opacity: 0;
        right: -20px;
    }
    5% {
        opacity: 1;
        right: -20px;
    }
    100% {
        right: 195px;
    }
}

@keyframes flow-ball-glow {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    30% {
        opacity: 1;
    }
    35% {
        opacity: 0.7;
    }
    60% {
        opacity: 0.5;
    }
    70% {
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

#flow .flow-group {
    display: block;
    position: relative;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
    padding-top: 20px;
    margin-top: 60px;
    transform-origin: center;
}
#flow .flow-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    vertical-align: top;
    width: 200px;
    white-space: normal;
}

#flow .flow-card .index-group {
    display: block;
    position: absolute;
    left: 16px;
    top: -4px;
    width: 45px;
    height: 45px;
    color: #141d50;
    font-size: 27px;
    font-style: oblique;
    line-height: 45px;
    text-align: center;
    letter-spacing: 5px;
    background-image: linear-gradient(300deg, #a1ffc0 0%, #60e0ff 100%);
    border-radius: 100%;
    z-index: 1;
    box-shadow: 0 2px 20px 0 rgba(255, 255, 255, 0.3);
}

#flow .flow-card .image-group {
    display: flex;
    align-items: center;
    justify-self: center;
    position: relative;
    width: 140px;
    height: 140px;
    background-color: #212d6f;
    border-radius: 100%;
    margin-bottom: 40px;
}
#flow .flow-card .image-group > img {
    height: 85px;
    margin: auto;
}
#flow .flow-card .title {
    color: #fff;
    font-size: 20px;
    line-height: 28px;
}

#flow .flow-card .direction-line {
    display: block;
    position: absolute;
    right: calc(-100% + 30px);
    top: 70px;
    width: 100%;
    border-top: 4px dotted #fff;
    z-index: -1;
}

#flow .flow-card.flow-2 .image-group > img, #flow .flow-card.flow-3 .image-group > img,
#flow .flow-card.flow-4 .image-group > img {
    height: auto;
    width: 80px;
}
#flow .flow-card.flow-5 .image-group > img {
    height: auto;
    width: 70px;
}

#flow .flow-card.flow-5 .image-group::after {
    display: block;
    position: absolute;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    left: -10px;
    top: -10px;
    content: "";
    border: 1px solid #67e3f7;
    border-radius: 100%;
    box-shadow: 0 0 10px 0 rgba(105, 228, 247, 0.2), inset 0 0 10px 0 rgba(105, 228, 247, 0.2);
}

#flow .flow-card.flow-4 .direction-line {
    display: none;
}
#flow .flow-card.flow-5 .direction-line {
    left: -88px;
    width: 50%;
}
#flow .flow-card.flow-5 .direction-line::after {
    display: block;
    position: absolute;
    right: -18px;
    top: -12px;
    width: 1px;
    height: 1px;
    content: "";
    border: 10px solid transparent;
    border-left-color: #fff;
    transform-origin: center;
    transform: scale(1.3, 0.8)
}

.md #flow .flow-card {
    width: 170px;
}
.md #flow .flow-card .direction-line {
    right: -25%;
    width: 50%;
}

.sm #flow {
    height: 800px;
}
.sm #flow-bg {
    height: 800px;
}

.sm #flow-bg > .bg-0 {
    right: -70px;
    animation: sm-flow-bg-0-slide 1s linear infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -1s);
}

@keyframes sm-flow-bg-0-slide {
    from {
        top: -300px;
    }
    to {
        top: 400px;
    }
}

.sm #flow-bg .path-box {
    top: 800px;
    animation: sm-flow-path-box-slide 0.8s linear infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -1s);
}

.sm #flow .flow-group {
    display: block;
    position: relative;
    width: 350px;
    height: 700px;
    padding: 20px 20px 0 20px;
    margin-top: 40px;
}
.sm #flow .flow-card {
    position: absolute;
    width: 130px;
}

.sm #flow .flow-card .index-group {
    left: 5px;
    top: -4px;
    width: 35px;
    height: 35px;
    font-size: 20px;
    line-height: 34px;
    letter-spacing: 4px;
}

.sm #flow .flow-card .image-group {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}
.sm #flow .flow-card .image-group > img {
    height: 65px;
}
.sm #flow .flow-card .title {
    font-size: 20px;
    line-height: 28px;
}

.sm #flow .flow-card .direction-line {
    display: block;
    position: absolute;
    right: -23%;
    top: 60px;
    width: 50%;
    border-top: 1px dotted #fff;
    z-index: -1;
    transform-origin: left center;
}
.sm #flow .flow-card .direction-line::after {
    display: block;
    position: absolute;
    right: -18px;
    top: -11px;
    width: 1px;
    height: 1px;
    content: "";
    border: 10px solid transparent;
    border-left-color: #fff;
    transform-origin: center;
    transform: scale(0.9, 0.5)
}

.sm #flow .flow-card.flow-0, .sm #flow .flow-card.flow-2, .sm #flow .flow-card.flow-4 {
    left: 20px;
    right: auto;
}
.sm #flow .flow-card.flow-1, .sm #flow .flow-card.flow-3, .sm #flow .flow-card.flow-5 {
    left: auto;
    right: 20px;
}
.sm #flow .flow-card.flow-0 {
    top: 20px;
}
.sm #flow .flow-card.flow-1 {
    top: 80px;
}
.sm #flow .flow-card.flow-2 {
    top: 230px;
}
.sm #flow .flow-card.flow-3 {
    top: 290px;
}
.sm #flow .flow-card.flow-4 {
    top: 460px;
}
.sm #flow .flow-card.flow-5 {
    top: 520px;
}

.sm #flow .flow-card.flow-2 .image-group > img, .sm #flow .flow-card.flow-3 .image-group > img,
.sm #flow .flow-card.flow-4 .image-group > img {
    height: auto;
    width: 60px;
}
.sm #flow .flow-card.flow-5 .image-group > img {
    height: auto;
    width: 50px;
}

.sm #flow .flow-card.flow-0 .direction-line, .sm #flow .flow-card.flow-2 .direction-line, .sm #flow .flow-card.flow-4 .direction-line {
    transform: rotate(23deg);
}
.sm #flow .flow-card.flow-1 .direction-line, .sm #flow .flow-card.flow-3 .direction-line {
    transform: rotate(-220deg);
}
.sm #flow .flow-card.flow-1 .direction-line, .sm #flow .flow-card.flow-3 .direction-line {
    right: auto;
    left: 23%;
    top: 52%;
    width: 80%;
}
.sm #flow .flow-card.flow-5 .direction-line {
    display: none;
}