/* ===== 根布局 ===== */
.db-root {
  display: flex;
  height: 100vh;
  background: #f3f4f6;
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow: hidden;
}

/* ===== 左侧导航 ===== */
.db-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #1e1b4b;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.db-sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.db-logo-icon {
  width: 36px;
  height: 36px;
  background: #4f46e5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.db-logo-text {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.db-logo-sub {
  display: block;
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* 导航菜单 */
.db-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.db-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  width: 100%;
  text-align: left;
}

.db-nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}

.db-nav-active {
  background: rgba(79, 70, 229, 0.3) !important;
  color: white !important;
}

.db-nav-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.db-sidebar-bottom {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.db-nav-logout { color: rgba(248, 113, 113, 0.7) !important; }
.db-nav-logout:hover { color: #f87171 !important; background: rgba(248,113,113,0.1) !important; }

/* ===== 主内容区 ===== */
.db-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* 顶部搜索栏 */
.db-topbar {
  height: 60px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.db-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 8px 14px;
  width: 280px;
}

.db-search-input {
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  color: #374151;
  width: 100%;
}

.db-search-input::placeholder { color: #9ca3af; }

.db-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: background 0.15s;
}
.db-icon-btn:hover { background: #f3f4f6; }

.db-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.db-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.db-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.db-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

.db-user-role {
  font-size: 11px;
  color: #9ca3af;
}

/* 内容区 */
.db-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ===== 首页 ===== */
.db-welcome {
  margin-bottom: 24px;
}

.db-welcome h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
}

.db-welcome p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.db-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* 卡片 */
.db-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.db-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}

.db-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.db-card-action {
  font-size: 12px;
  color: #4f46e5;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.db-card-action:hover { background: #eef2ff; }

/* 聊天室列表 */
.db-room-list {
  padding: 8px 0;
  max-height: 280px;
  overflow-y: auto;
}

.db-room-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.db-room-item:hover { background: #f9fafb; }

.db-room-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.db-room-info { flex: 1; min-width: 0; }
.db-room-name { font-size: 14px; font-weight: 600; color: #111827; }
.db-room-sub { font-size: 12px; color: #9ca3af; margin-top: 2px; }

/* 联系人列表 */
.db-friend-list {
  padding: 8px 0;
  max-height: 280px;
  overflow-y: auto;
}

.db-friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
}

.db-friend-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.db-friend-info { flex: 1; }
.db-friend-name { font-size: 13px; font-weight: 600; color: #111827; }
.db-friend-alias { font-size: 11px; color: #9ca3af; }

.db-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.db-empty {
  padding: 24px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

/* ===== 聊天视图 ===== */
.db-chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.db-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}

.db-chat-room-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.db-chat-back {
  font-size: 13px;
  color: #4f46e5;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.db-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  position: relative;
}

/* 消息行布局 */
.db-msg-row {
  display: flex !important;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 20px;
}

/* 自己的消息：右对齐 */
.db-msg-self {
  justify-content: flex-end !important;
}

/* 其他人的消息：左对齐 */
.db-msg-other {
  justify-content: flex-start !important;
}

/* 消息头像 */
.db-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 自己的头像 */
.db-msg-avatar-self {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* AI 头像 */
.db-msg-avatar-ai {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* 消息内容容器 */
.db-msg-content {
  display: flex;
  flex-direction: column;
  max-width: 60%;
  gap: 4px;
}

/* 发送者名称 */
.db-msg-sender-name {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  padding-left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* AI 徽章（小） */
.db-ai-badge-small {
  display: inline-block;
  font-size: 9px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 700;
}

/* 消息气泡 */
.db-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  background: #f3f4f6;
  color: #111827;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 自己的消息气泡 */
.db-msg-bubble-self {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  border-bottom-right-radius: 4px;
}

/* 其他人的消息气泡 */
.db-msg-other .db-msg-bubble {
  border-bottom-left-radius: 4px;
}

/* 数字员工的消息气泡 */
.db-msg-bubble-employee {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border: 1px solid #fbbf24;
  color: #78350f;
  border-bottom-left-radius: 4px;
}

/* 消息文本 */
.db-msg-text {
  margin-bottom: 4px;
}

/* 消息时间 */
.db-msg-time {
  font-size: 10px;
  opacity: 0.6;
  text-align: right;
  margin-top: 2px;
}

/* 自己的消息时间 */
.db-msg-bubble-self .db-msg-time {
  color: rgba(255, 255, 255, 0.8);
}

/* 旧样式保留（兼容） */
.db-msg-sender {
  font-size: 11px;
  opacity: 0.6;
  margin-bottom: 4px;
  font-weight: 600;
}

.db-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #f3f4f6;
}

.db-input-wrapper {
  flex: 1;
  position: relative;
}

.db-msg-input.ant-input {
  border-radius: 8px !important;
  border-color: #e5e7eb !important;
  font-size: 14px !important;
  height: 40px !important;
}

/* @提及下拉列表（输入框上方） */
.db-mention-list {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 240px;
  overflow-y: auto;
  z-index: 1000;
}

.db-mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.db-mention-item:hover {
  background: #f3f4f6;
}

.db-mention-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.db-mention-info {
  flex: 1;
  min-width: 0;
}

.db-mention-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-mention-badge {
  font-size: 11px;
  color: #dc2626;
  margin-top: 2px;
}

.db-mention-empty {
  padding: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

/* 流式输出消息样式 */
.db-streaming-msg {
  animation: fadeIn 0.3s ease-in;
}

.db-streaming-bubble {
  position: relative;
}

.db-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s infinite;
  font-weight: bold;
  color: #f59e0b;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.db-typing-indicator {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: #f59e0b;
  font-weight: 500;
}

.db-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #4f46e5;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.db-send-btn:hover { background: #4338ca; }

/* ===== 右侧面板 ===== */
.db-right-panel {
  width: 240px;
  flex-shrink: 0;
  background: white;
  border-left: 1px solid #e5e7eb;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.db-panel-section {
  padding: 20px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.db-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.db-panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.db-panel-add {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: none;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.db-panel-add:hover { background: #f3f4f6; }

/* 私信列表 */
.db-dm-list { display: flex; flex-direction: column; gap: 4px; }

.db-dm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.db-dm-item:hover { background: #f9fafb; }

.db-dm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.db-dm-info { flex: 1; min-width: 0; }
.db-dm-name { font-size: 13px; font-weight: 600; color: #111827; }
.db-dm-time { font-size: 11px; color: #9ca3af; }

.db-dm-badge {
  background: #4f46e5;
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  flex-shrink: 0;
}

.db-empty-sm {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  padding: 8px 0;
}

/* 智能洞察 */
.db-insight-card {
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #374151;
}

.db-insight-tip {
  background: #fefce8;
  border: 1px solid #fde68a;
}

.db-insight-ai {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.db-insight-tag {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.db-insight-card p { margin: 0 0 10px; }

.db-insight-actions {
  display: flex;
  gap: 6px;
}

.db-insight-btn-primary {
  flex: 1;
  padding: 5px 0;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.db-insight-btn-primary:hover { background: #4338ca; }

.db-insight-btn-ghost {
  flex: 1;
  padding: 5px 0;
  background: none;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.db-insight-btn-ghost:hover { background: #f3f4f6; }

/* 空消息状态 */
.db-empty-messages {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 20px;
}

.db-empty-messages svg {
  margin-bottom: 16px;
}

.db-empty-messages p {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

/* ===== 聊天容器（包含聊天区和右侧栏） ===== */
.db-chat-container {
  display: flex;
  height: 100%;
  gap: 0;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.db-chat-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ===== 聊天右侧栏 ===== */
.db-chat-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #fafafa;
  border-left: 1px solid #e5e7eb;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.db-chat-section {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.db-chat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.db-chat-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.db-chat-add-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.db-chat-add-btn:hover {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
}

/* 成员列表 */
.db-member-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.db-member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: white;
  transition: background 0.15s;
}

.db-member-item:hover {
  background: #f3f4f6;
}

.db-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.db-member-info {
  flex: 1;
  min-width: 0;
}

.db-member-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-member-badge {
  display: inline-block;
  font-size: 10px;
  color: #f59e0b;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

/* 群组信息 */
.db-room-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.db-room-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-room-detail-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.db-room-detail-value {
  font-size: 13px;
  color: #111827;
  font-weight: 500;
}

.db-copy-link-btn {
  font-size: 12px;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
  width: fit-content;
}

.db-copy-link-btn:hover {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
}

/* ===== 添加成员 Modal ===== */
.db-add-member-modal {
  min-height: 300px;
}

.db-search-loading,
.db-search-empty {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 13px;
}

.db-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.db-search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  transition: background 0.15s;
}

.db-search-result-item:hover {
  background: #f3f4f6;
}

.db-search-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: white;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.db-search-user-info {
  flex: 1;
  min-width: 0;
}

.db-search-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-search-user-email {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-already-member {
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}

.db-search-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.db-search-hint svg {
  margin-bottom: 12px;
}

.db-search-hint p {
  font-size: 13px;
  margin: 0;
}

/* 数字员工样式 */
.db-employee-item {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border: 1px solid #fbbf24;
}

.db-employee-item:hover {
  background: linear-gradient(135deg, #fde68a, #fcd34d);
}

.db-employee-avatar {
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
}

.db-employee-badge-small {
  display: inline-block;
  font-size: 10px;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
  font-weight: 600;
}

.db-employee-status {
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
}

.db-employee-hint {
  margin-top: 12px;
  padding: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 12px;
  color: #1e40af;
  line-height: 1.5;
}

/* ===== 表情按钮样式 ===== */
.db-emoji-btn {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s;
  z-index: 1;
}

.db-emoji-btn:hover {
  background: #f3f4f6;
  color: #4f46e5;
}

/* 调整输入框左侧padding为表情按钮留出空间 */
.db-msg-input.ant-input {
  padding-left: 48px !important;
}

/* ===== 图片消息样式 ===== */
.db-msg-image {
  max-width: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}

.db-msg-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 200px;
  object-fit: contain;
}

/* ===== 移除成员按钮 ===== */
.db-member-remove-btn {
  display: none;
  width: 24px;
  height: 24px;
  border: none;
  background: #fee2e2;
  color: #ef4444;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-left: auto;
}

.db-member-remove-btn:hover {
  background: #fecaca;
  transform: scale(1.05);
}

.db-member-item:hover .db-member-remove-btn {
  display: flex;
}

.db-employee-item:hover .db-member-remove-btn {
  display: flex;
}

/* ===== HTML消息样式 ===== */
.db-msg-html {
  line-height: 1.6;
}

/* HTML内容基础样式 */
.db-msg-html h1,
.db-msg-html h2,
.db-msg-html h3,
.db-msg-html h4,
.db-msg-html h5,
.db-msg-html h6 {
  margin: 12px 0 8px;
  font-weight: 700;
  line-height: 1.3;
}

.db-msg-html h1 { font-size: 20px; }
.db-msg-html h2 { font-size: 18px; }
.db-msg-html h3 { font-size: 16px; }
.db-msg-html h4 { font-size: 15px; }
.db-msg-html h5 { font-size: 14px; }
.db-msg-html h6 { font-size: 13px; }

.db-msg-html p {
  margin: 8px 0;
}

.db-msg-html ul,
.db-msg-html ol {
  margin: 8px 0;
  padding-left: 24px;
}

.db-msg-html li {
  margin: 4px 0;
}

.db-msg-html a {
  color: #4f46e5;
  text-decoration: underline;
  font-weight: 500;
}

.db-msg-html a:hover {
  color: #4338ca;
}

.db-msg-html code {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
}

.db-msg-html pre {
  background: rgba(0, 0, 0, 0.08);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 8px 0;
}

.db-msg-html pre code {
  background: none;
  padding: 0;
}

.db-msg-html blockquote {
  border-left: 3px solid #f59e0b;
  padding-left: 12px;
  margin: 8px 0;
  color: #6b7280;
  font-style: italic;
}

.db-msg-html table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0;
  font-size: 13px;
}

.db-msg-html th,
.db-msg-html td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 6px 10px;
  text-align: left;
}

.db-msg-html th {
  background: rgba(0, 0, 0, 0.05);
  font-weight: 700;
}

.db-msg-html img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
}

.db-msg-html hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 12px 0;
}

.db-msg-html strong,
.db-msg-html b {
  font-weight: 700;
}

.db-msg-html em,
.db-msg-html i {
  font-style: italic;
}

/* 数字员工消息中的HTML样式调整 */
.db-msg-bubble-employee .db-msg-html code {
  background: rgba(120, 53, 15, 0.1);
}

.db-msg-bubble-employee .db-msg-html pre {
  background: rgba(120, 53, 15, 0.1);
}

.db-msg-bubble-employee .db-msg-html th {
  background: rgba(120, 53, 15, 0.08);
}

.db-msg-bubble-employee .db-msg-html a {
  color: #dc2626;
  font-weight: 600;
}

.db-msg-bubble-employee .db-msg-html a:hover {
  color: #b91c1c;
}

/* 自己消息中的HTML样式调整（如果需要） */
.db-msg-bubble-self .db-msg-html code {
  background: rgba(255, 255, 255, 0.2);
}

.db-msg-bubble-self .db-msg-html pre {
  background: rgba(255, 255, 255, 0.2);
}

.db-msg-bubble-self .db-msg-html a {
  color: white;
  text-decoration: underline;
}

.db-msg-bubble-self .db-msg-html a:hover {
  opacity: 0.9;
}
