/* Message Box 提示组件 */
.message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.message-box.show {
    opacity: 1;
    pointer-events: auto;
}

.message-box.success {
    background-color: #f0f9ff;
    border: 1px solid #91d5ff;
    color: #1890ff;
}

.message-box.error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

.message-box.warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    color: #faad14;
}

.message-box .icon {
    margin-right: 8px;
}

.message-box.success .icon::before {
    content: "\e92c";
    font-family: 'themify';
}

.message-box.error .icon::before {
    content: "\e82d";
    font-family: 'themify';
}

.message-box.warning .icon::before {
    content: "\e8b8";
    font-family: 'themify';
}

/* 确认对话框 */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-dialog {
    background: #fff;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.confirm-overlay.show .confirm-dialog {
    transform: scale(1);
}

.confirm-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.confirm-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.confirm-body {
    padding: 20px;
    font-size: 14px;
    color: #666;
}

.confirm-footer {
    padding: 15px 20px;
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.confirm-btn.cancel {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #666;
}

.confirm-btn.cancel:hover {
    border-color: #f3a395;
    color: #f3a395;
}

.confirm-btn.ok {
    background: #f3a395;
    color: #fff;
}

.confirm-btn.ok:hover {
    background: #e08a7d;
}
