/* v21.0 AI指挥中心样式 - 白色极简 */
.ai-command-page { padding: 20px; max-width: 1200px; margin: 0 auto; }
.ai-command-page h2 { font-size: 20px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.ai-command-page .subtitle { color: #888; font-size: 13px; margin-bottom: 20px; }

/* 标签页 */
.ai-tabs { display: flex; gap: 0; border-bottom: 2px solid #f0f0f0; margin-bottom: 20px; }
.ai-tab { padding: 10px 20px; font-size: 14px; color: #888; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.ai-tab.active { color: #4A90D9; border-bottom-color: #4A90D9; font-weight: 600; }
.ai-tab:hover { color: #333; }

/* 聊天区域 */
.ai-chat-container { background: #fff; border: 1px solid #eee; border-radius: 12px; height: 500px; display: flex; flex-direction: column; }
.ai-chat-messages { flex: 1; overflow-y: auto; padding: 16px; }
.ai-msg { margin-bottom: 12px; max-width: 85%; }
.ai-msg.user-msg { margin-left: auto; }
.ai-msg-header { font-size: 11px; color: #999; margin-bottom: 4px; }
.ai-msg-content { padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.user-msg .ai-msg-content { background: #4A90D9; color: #fff; border-bottom-right-radius: 4px; }
.ai-msg-response .ai-msg-content { background: #f8f9fa; color: #333; border-bottom-left-radius: 4px; }
.ai-intent-badge { display: inline-block; background: #e8f4fd; color: #4A90D9; font-size: 10px; padding: 1px 6px; border-radius: 8px; margin-left: 6px; }
.ai-data-card { margin-top: 8px; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 8px; font-size: 12px; }
.ai-data-card pre { margin: 0; white-space: pre-wrap; color: #555; font-family: 'Menlo', monospace; font-size: 11px; }
.ai-related { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.ai-related-btn { padding: 4px 10px; border: 1px solid #e0e0e0; border-radius: 16px; background: #fff; font-size: 12px; color: #4A90D9; cursor: pointer; transition: all 0.2s; }
.ai-related-btn:hover { background: #4A90D9; color: #fff; }

/* 输入区 */
.ai-chat-input-area { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #f0f0f0; }
.ai-chat-input-area input { flex: 1; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 14px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.ai-chat-input-area input:focus { border-color: #4A90D9; }
.ai-chat-send { background: #4A90D9; color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.ai-chat-send:hover { background: #357abd; }
.ai-chat-send:disabled { background: #ccc; cursor: not-allowed; }

/* 建议按钮 */
.ai-suggest-btn { padding: 6px 14px; border: 1px solid #e0e0e0; border-radius: 20px; background: #fff; font-size: 12px; color: #555; cursor: pointer; margin: 4px; transition: all 0.2s; white-space: nowrap; }
.ai-suggest-btn:hover { background: #4A90D9; color: #fff; border-color: #4A90D9; }
.ai-suggest-btn.urgent { border-color: #E74C3C; color: #E74C3C; }
.ai-suggest-btn.urgent:hover { background: #E74C3C; color: #fff; }

/* 自定义对象 */
.custom-obj-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid #eee; border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; }
.custom-obj-card:hover { border-color: #4A90D9; box-shadow: 0 2px 8px rgba(74,144,217,0.1); }
.custom-obj-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.custom-obj-info { flex: 1; }
.custom-obj-name { font-weight: 600; font-size: 14px; color: #333; }
.custom-obj-desc { font-size: 12px; color: #999; margin-top: 2px; }
.custom-obj-fields { font-size: 11px; color: #4A90D9; margin-top: 2px; }

.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.template-card { padding: 14px; background: #fff; border: 1px solid #eee; border-radius: 10px; cursor: pointer; text-align: center; transition: all 0.2s; }
.template-card:hover { border-color: #4A90D9; box-shadow: 0 2px 8px rgba(74,144,217,0.1); }
.template-card .t-icon { font-size: 28px; margin-bottom: 6px; }
.template-card .t-name { font-size: 13px; font-weight: 600; color: #333; }
.template-card .t-count { font-size: 11px; color: #999; margin-top: 2px; }

/* MCP */
.mcp-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mcp-badge { background: #e8f4fd; color: #4A90D9; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.mcp-name { font-size: 16px; font-weight: 600; color: #333; }
.mcp-tools-count { font-size: 13px; color: #888; margin-bottom: 12px; }
.mcp-tool-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.mcp-tool-item { padding: 10px; background: #fafafa; border-radius: 8px; border: 1px solid #f0f0f0; }
.mcp-tool-item strong { font-size: 13px; color: #333; }
.mcp-tool-desc { font-size: 11px; color: #888; }

/* 空状态 */
.empty-state { text-align: center; padding: 40px; color: #999; font-size: 14px; }
.records-table { overflow-x: auto; margin-top: 12px; }
.records-table table { width: 100%; border-collapse: collapse; }
.records-table th, .records-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.records-table th { background: #f8f9fa; font-weight: 600; color: #555; }
