/* 弹窗通知样式 */
.tianyu-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* 工具区域内的通知容器 */
.tianyu-tool-toast-container {
    top:-45px;
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
    margin: 0 auto;
}

.tianyu-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    pointer-events: auto;
    margin-bottom: -45px;
}

.tianyu-toast.tianyu-toast-show {
    transform: translateX(0);
    opacity: 1;
}

.tianyu-toast-success {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.tianyu-toast-error {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.tianyu-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 4px;
}

.tianyu-toast-success .tianyu-toast-icon {
    background: #10b981;
    color: white;
}

.tianyu-toast-error .tianyu-toast-icon {
    background: #ef4444;
    color: white;
}

.tianyu-toast-icon svg {
    width: 100%;
    height: 100%;
}

.tianyu-toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #111111;
    font-weight: 500;
}

.tianyu-toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.tianyu-toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #6b7280;
}

.tianyu-toast-close svg {
    width: 80%;
    height: 80%;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .tianyu-toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
    }
    
    .tianyu-toast {
        min-width: auto;
        max-width: none;
    }
}
