/* 消息提示样式 */
.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 500px;
}

.message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.message-icon {
    font-size: 18px;
    font-weight: bold;
}

.message-text {
    flex: 1;
    font-size: 14px;
}

.message-success {
    background: #67c23a;
    color: white;
}

.message-error {
    background: #f56c6c;
    color: white;
}

.message-warning {
    background: #e6a23c;
    color: white;
}

.message-info {
    background: #409eff;
    color: white;
}

/* 遮罩层 */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message-overlay.show {
    opacity: 1;
}

/* 确认对话框 */
.message-dialog {
    background: var(--bg-primary, white);
    border-radius: 8px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color, #eee);
}

.message-overlay.show .message-dialog {
    transform: scale(1);
}

.message-dialog-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color, #eee);
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-dialog-icon {
    font-size: 24px;
}

.message-dialog-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
}

.message-dialog-body {
    padding: 30px 20px;
    font-size: 15px;
    color: var(--text-secondary, #555);
    line-height: 1.6;
}

.message-dialog-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color, #eee);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.message-dialog-footer button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-cancel {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-secondary, #666);
}

.btn-cancel:hover {
    background: var(--bg-hover, #e0e0e0);
}

.btn-confirm {
    background: var(--accent, #3498db);
    color: var(--bg-primary, white);
}

.btn-confirm:hover {
    opacity: 0.9;
}

/* 加载提示 */
.message-loading {
    background: var(--bg-primary, white);
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color, #eee);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid var(--bg-secondary, #f3f3f3);
    border-top: 4px solid var(--accent, #3498db);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-secondary, #666);
    font-size: 14px;
}

/* 输入框样式 */
.prompt-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    font-size: 14px;
    background: var(--bg-secondary, #f9f9f9);
    color: var(--text-primary, #2c3e50);
    transition: all 0.3s;
}

.prompt-input:focus {
    outline: none;
    border-color: var(--accent, #3498db);
    background: var(--bg-primary, white);
}
