.u-ehr-ai-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transition: transform 0.3s ease;

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(256deg, #FF2E7E -4%, #D116EA 16%, #2B52EE 53%, #1881F0 81%, #00D4FF 106%);
        border-radius: inherit;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        padding: 1px;
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        transition: all 0.5s ease;
    }

    // 禁用状态
    &:disabled {
        &::before {
            background: none;
        }
    }

    // 鼠标悬浮状态
    &:hover {
        & > span {
            color: transparent;
            background-image: linear-gradient(257deg, #FF2E7E -4%, #D116EA 16%, #2B52EE 53%, #1881F0 81%, #00D4FF 106%);
            background-clip: text;
            transition: none;
        }
    }

    &.ant-btn-primary {
        color: #fff;
        background: linear-gradient(248deg, #ff2e7e -3%, #d116ea 16%, #2b52ee 54%, #1881f0 81%, #00d4ff 107%);

        &:hover {
            animation: gradientFlow 2s ease infinite alternate;
            background-size: 200% 100%;

            & > span {
                color: #fff;
                background-image: none;
            }
        }
    }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}