/* 精美的Apple风格居中弹窗提示 */
.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    display: flex;
    align-items: center;
    min-width: 280px;
    max-width: 380px;
    animation: toast-fade-in 0.4s ease-out forwards;
    transition: all 0.3s ease-out;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.toast-notification.hiding {
    transform: translate(-50%, -60%);
    opacity: 0;
}

@keyframes toast-fade-in {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.toast-notification.toast-success {
    background-color: white;
    color: #333;
    border: 1px solid rgba(24, 144, 255, 0.2);
}

.toast-notification.toast-error {
    background-color: white;
    color: #333;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.toast-notification.toast-info {
    background-color: white;
    color: #333;
    border: 1px solid rgba(24, 144, 255, 0.2);
}

.toast-icon {
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background-color: rgba(24, 144, 255, 0.1);
    color: #1890ff;
    border-radius: 50%;
    padding: 6px;
}

.toast-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0; /* 确保内容区域不会溢出 */
}

.toast-title {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.toast-message {
    font-size: 15px;
    font-weight: 400;
    word-break: break-word;
    opacity: 0.95;
    line-height: 1.5;
}

.toast-close {
    margin-left: 12px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    color: white;
    transition: all 0.2s ease;
    font-size: 18px;
}

.toast-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* 预设动画类 */
.toast-fade-in {
    animation: fade-in 0.3s forwards;
}

.toast-fade-out {
    animation: fade-out 0.3s forwards;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
