﻿.scan-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 600;
    padding: 18px 48px;
    background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
    color: #fff;
    border: none;
    border-radius: 48px;
    box-shadow: 0 4px 18px rgba(56,189,248,0.16);
    cursor: pointer;
    outline: none;
    overflow: hidden;
    transition: box-shadow 0.25s;
    user-select: none;
}

    .scan-btn:hover {
        box-shadow: 0 8px 32px rgba(56,189,248,0.20);
    }

.scan-icon {
    font-size: 26px;
    display: flex;
    align-items: center;
}
/* 波纹动画 */
.scan-btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255,255,255,0.25);
    pointer-events: none;
    width: 100px;
    height: 100px;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    opacity: 0;
}

.scan-btn:active .ripple {
    animation: ripple-anim 0.6s linear;
}

@keyframes ripple-anim {
    0% {
        transform: scale(0);
        opacity: 0.4;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}
