/**
 * Toast 轻提示样式
 */

/* Toast 容器 */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

/* Toast 项目 */
.toast-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-width: 400px;
    word-break: break-word;
}

/* Toast 进入动画 */
.toast-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* 成功类型 */
.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

/* 错误类型 */
.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

/* 警告类型 */
.toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

/* 信息类型 */
.toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

/* Toast 图标 */
.toast-item .toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

/* 移动端适配 */
@media (max-width: 480px) {
    #toast-container {
        left: 10px;
        right: 10px;
        transform: none;
    }
    
    .toast-item {
        max-width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .toast-item {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* 悬停效果 */
.toast-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
