/* 组件容器 - 外框限制宽度 */
.purchase-btn-wrap {
    width: 100%;
    max-width: 400px;
}

/* 按钮组件 */
.purchase-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 170px;
    height: 47px;
    background: #ffdf00;
    border-radius: 40px;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}


/* 紫色扩散圆形 */
.purchase-btn::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #9767ff;
    border-radius: 50%;
    transition: all 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    z-index: 0;
    opacity: 1;
}

.purchase-btn:hover::before {
    width: 400px;
    height: 400px;
    bottom: -180px;
    opacity: 1;
    /* box-shadow: 0 0 80px rgba(151, 103, 255, 0.25); */
}

/* 文字 */
.purchase-btn-text {
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 700;
    color: #131924;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* 箭头 - 默认在右侧外面 */
.purchase-btn-icon {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1;
}

.purchase-btn-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* hover 效果 */
.purchase-btn:hover .purchase-btn-text {
    transform: translateX(-12px);
    color: #fff;
}

.purchase-btn:hover .purchase-btn-icon {
    right: 16px;
}

/* 响应式 */
@media (max-width: 809px) {
    .purchase-btn {
        height: 46px;
    }

    .purchase-btn-text {
        font-size: 16px;
    }

    .purchase-btn:hover .purchase-btn-icon {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .purchase-btn {
        height: 46px;
    }

    .purchase-btn-text {
        font-size: 14px;
    }

    .purchase-btn:hover .purchase-btn-icon {
        right: 16px;
    }
}