/* AI客服中台 - 管理后台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
/* 头部 */
.header { background: #fff; padding: 16px 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 20px; color: #333; }
.header-right { display: flex; align-items: center; gap: 16px; }
.user-info { color: #666; font-size: 14px; }
.logout-btn { color: #ff4d4f; cursor: pointer; padding: 6px 12px; border-radius: 4px; transition: background 0.3s; }
.logout-btn:hover { background: #fff1f0; }
/* 统计卡片 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.stat-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.stat-card .label { color: #999; font-size: 14px; margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 600; color: #333; }
/* 标签页 */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; background: #fff; padding: 12px 16px; border-radius: 8px; }
.tab { padding: 8px 16px; border-radius: 4px; cursor: pointer; color: #666; transition: all 0.3s; }
.tab:hover { background: #f5f5f5; }
.tab.active { background: #1890ff; color: #fff; }
/* 内容区 */
.content { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
/* 按钮 */
.btn { padding: 8px 16px; border-radius: 4px; cursor: pointer; border: none; font-size: 14px; transition: all 0.3s; }
.btn-primary { background: #1890ff; color: #fff; }
.btn-primary:hover { background: #40a9ff; }
.btn-secondary { background: #f5f5f5; color: #333; }
.btn-secondary:hover { background: #e8e8e8; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-danger:hover { background: #ff7875; }
/* 表格 */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f0f0f0; }
th { background: #fafafa; font-weight: 600; color: #333; }
tr:hover { background: #fafafa; }
/* 模态框 */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: #fff; border-radius: 8px; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 16px 24px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 16px; }
.modal-close { font-size: 24px; cursor: pointer; color: #999; }
.modal-close:hover { color: #333; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 8px; }
/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; }
.form-group input, .form-group textarea { width: 100%; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,0.1); }
/* 提示消息 */
.toast { position: fixed; top: 20px; right: 20px; padding: 12px 20px; border-radius: 4px; color: #fff; font-size: 14px; z-index: 2000; animation: slideIn 0.3s ease; }
.toast.success { background: #52c41a; }
.toast.error { background: #ff4d4f; }
.toast.info { background: #1890ff; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state-text { color: #999; margin-bottom: 16px; }
/* 标签 */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag-success { background: #f6ffed; color: #52c41a; }
.tag-warning { background: #fffbe6; color: #faad14; }
.tag-default { background: #f5f5f5; color: #666; }
/* 工具栏 */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.toolbar-left { display: flex; gap: 8px; }
.toolbar-right { display: flex; gap: 8px; }
/* 加载动画 */
.loading { text-align: center; padding: 40px; color: #999; }
/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; }
.pagination button { padding: 4px 12px; border: 1px solid #d9d9d9; background: #fff; border-radius: 4px; cursor: pointer; }
.pagination button:hover { border-color: #1890ff; color: #1890ff; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination span { color: #666; font-size: 14px; }
/* 上传区域 */
.upload-area { border: 2px dashed #d9d9d9; border-radius: 8px; padding: 40px; text-align: center; cursor: pointer; transition: all 0.3s; }
.upload-area:hover { border-color: #1890ff; background: #f0f7ff; }
.upload-area-icon { font-size: 48px; color: #d9d9d9; margin-bottom: 16px; }
.upload-area-text { color: #666; margin-bottom: 8px; }
.upload-area-hint { color: #999; font-size: 12px; }
/* 标签页切换 */
.tab-content { display: none; }
.tab-content.active { display: block; }
/* 搜索框 */
.search-box { display: flex; gap: 8px; margin-bottom: 16px; }
.search-box input { flex: 1; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 4px; }
/* 操作按钮 */
.actions { display: flex; gap: 8px; }
.action-btn { padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 12px; }
.action-btn.view { color: #1890ff; }
.action-btn.delete { color: #ff4d4f; }
