@import url("font-awesome-6.0.0.all.min.css");
/* Message 组件样式 - 使用Font Awesome */
.message-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999999;
    pointer-events: none;
}

.message-item {
    min-width: 300px;
    max-width: 600px;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    animation: fadeInDown 0.3s;
    transition: all 0.3s;
    box-sizing: border-box;
    pointer-events: auto;
}

.message-success {
    background-color: #f0f9eb;
    border: 1px solid #e1f3d8;
    color: #67c23a;
}

.message-warning {
    background-color: #fdf6ec;
    border: 1px solid #faecd8;
    color: #e6a23c;
}

.message-error {
    background-color: #fef0f0;
    border: 1px solid #fde2e2;
    color: #f56c6c;
}

.message-info {
    background-color: #edf2fc;
    border: 1px solid #e4e7ed;
    color: #909399;
}

.message-icon {
    margin-right: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    width: 20px;
    height: 20px;
    justify-content: center;
}

.message-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.message-close {
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    font-size: 14px;
    width: 16px;
    height: 16px;
    justify-content: center;
}

.message-close:hover {
    opacity: 1;
}

/* Confirm 对话框样式 */
.confirm-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.confirm-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
}

.confirm-box {
    min-width: 400px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: zoomIn 0.3s;
}

.confirm-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.confirm-title {
    font-size: 18px;
    color: #303133;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.confirm-title-icon {
    margin-right: 8px;
    font-size: 16px;
}

.confirm-close {
    cursor: pointer;
    opacity: 0.6;
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.confirm-close:hover {
    opacity: 1;
}

.confirm-body {
    padding: 20px;
    font-size: 14px;
    color: #606266;
    line-height: 1.5;
}

.confirm-footer {
    padding: 15px 20px;
    border-top: 1px solid #ebeef5;
    text-align: right;
}

.confirm-btn {
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    margin-left: 10px;
    transition: all 0.3s;
    outline: none;
}

.confirm-btn i {
    margin-right: 5px;
}

.confirm-btn.cancel {
    background: #fff;
    border-color: #dcdfe6;
    color: #606266;
}

.confirm-btn.cancel:hover {
    color: #409eff;
    border-color: #c6e2ff;
    background-color: #ecf5ff;
}

.confirm-btn.confirm {
    background: #409eff;
    border-color: #409eff;
    color: white;
}

.confirm-btn.confirm:hover {
    background: #66b1ff;
    border-color: #66b1ff;
}

.confirm-btn.warning {
    background: #e6a23c;
    border-color: #e6a23c;
    color: white;
}

.confirm-btn.warning:hover {
    background: #ebb563;
    border-color: #ebb563;
}

.confirm-btn.danger {
    background: #f56c6c;
    border-color: #f56c6c;
    color: white;
}

.confirm-btn.danger:hover {
    background: #f78989;
    border-color: #f78989;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
