/* 自定义样式 */

/* Notyf 通知优化 */
.notyf {
    z-index: 9999;
}

.notyf__toast {
    min-width: 320px;
    max-width: 360px;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 10px 25px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.08);
    margin: 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notyf__wrapper {
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.notyf__message {
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.01em;
    flex: 1;
}

.notyf__icon {
    display: none;
}

/* 成功通知 */
.notyf__toast--success {
    background: #0a0a0a;
}

/* 错误通知 */
.notyf__toast--error {
    background: #dc2626;
}

/* 按钮加载状态 */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 640px) {
    .notyf__toast {
        min-width: auto;
        max-width: calc(100vw - 2rem);
        margin: 0.75rem;
    }
}

