.scan_code_box {
    width: 220px;
    height: 220px;
    opacity: 1;
    border-color: var(--primary);
    border-width: 2px;
    border-radius: 16px;
    border-style: dashed;
    position: relative;
    overflow: hidden;
    /* 扫描线不会超出边框 */
}

/* 扫描线 */
.scan_line {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    /* 扫描线粗细 */
    background: var(--primary);
    /* 扫描线颜色 */
    opacity: .5;
    box-shadow: 0 0 8px var(--primary);
    /* 发光效果 */
    animation: scanMove 2.2s infinite ease-in-out;
}

/* 上下往复扫描动画 */
@keyframes scanMove {
    0% {
        top: 0;
    }

    50% {
        top: calc(100% - 3px);
    }

    100% {
        top: 0;
    }
}

.scan_code .content>.flex {
    flex-direction: column;
    height: 70vh;
    gap: 2rem;
}