/* =================================
   按钮特效样式
   Button Effects Styles
   ================================= */

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 按钮加载状态 */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* 按钮成功状态 */
.btn-success {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    box-shadow: 0 4px 15px 0 rgba(72, 187, 120, 0.3);
}

.btn-success:hover {
    box-shadow: 0 8px 25px 0 rgba(72, 187, 120, 0.4);
}

/* 按钮错误状态 */
.btn-error {
    background: linear-gradient(135deg, #F56565 0%, #E53E3E 100%);
    box-shadow: 0 4px 15px 0 rgba(245, 101, 101, 0.3);
}

.btn-error:hover {
    box-shadow: 0 8px 25px 0 rgba(245, 101, 101, 0.4);
}

/* 按钮禁用状态 */
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 悬浮图标效果 */
.btn-icon-float:hover i {
    animation: icon-float 0.6s ease-in-out;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* 按钮组合样式 */
.btn-group {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
}

.btn-group .btn-premium:not(:last-child) {
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-group .btn-premium:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.btn-group .btn-premium:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}