/* Plus Jakarta Sans - 专业字体 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  /* 使用 CSS 变量实现主题背景 */
  background: var(--gradient-bg);
  background-attachment: fixed;
}

#root {
  height: 100%;
}

/* 滚动条美化 - 主题色 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-primary-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--color-primary-opacity-30);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-primary-hover) 0%, var(--color-primary-active) 100%);
  box-shadow: 0 0 15px var(--color-primary-opacity-50);
}

/* 代码块样式 */
pre {
  background: linear-gradient(135deg, #282c34 0%, #1e2127 100%);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
}

/* 消息样式增强 - 使用主题色 */
.message-agent {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-bg) 100%);
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 2px 8px var(--color-primary-opacity-20), 0 0 20px var(--color-primary-opacity-10);
}

.message-user {
  background: linear-gradient(135deg, var(--bg-base) 0%, var(--color-primary-bg-hover) 100%);
  border-left: 4px solid var(--color-primary-hover);
  box-shadow: 0 2px 8px var(--color-primary-opacity-20), 0 0 20px var(--color-primary-opacity-10);
}

.message-system {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left: 4px solid #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2), 0 0 20px rgba(245, 158, 11, 0.1);
}

/* Dashboard 卡片悬停效果 */
.ant-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  overflow: hidden;
}

.ant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* 按钮交互效果 - 主题色 */
.ant-btn {
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ant-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.ant-btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  border: none;
  box-shadow: 0 4px 14px var(--color-primary-opacity-35);
}

.ant-btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary-active) 100%);
  box-shadow: 0 6px 20px var(--color-primary-opacity-50);
  transform: translateY(-3px);
}

.ant-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--color-primary-opacity-30);
}

/* 菜单项样式 - 主题色 */
.ant-menu-item {
  border-radius: 12px !important;
  margin: 4px 8px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ 多级菜单缩进优化 ============ */

/* 一级菜单项（顶级菜单）- 无缩进 */
.main-menu > .ant-menu-item {
  padding-left: 16px !important;
}

/* 一级子菜单标题（如 Agent团队、设置、规划板块）- 无缩进 */
.main-menu > .ant-menu-submenu > .ant-menu-submenu-title {
  padding-left: 16px !important;
  margin: 4px 8px !important;
  border-radius: 12px !important;
}

/* 二级菜单容器（一级子菜单展开后的列表）*/
.main-menu > .ant-menu-submenu > .ant-menu-sub {
  padding-left: 0 !important;
}

/* 二级菜单项（如 团队管理、角色管理）- 缩进一级 */
.main-menu > .ant-menu-submenu > .ant-menu-sub > .ant-menu-item {
  padding-left: 40px !important;
  margin: 4px 8px !important;
}

/* 二级子菜单标题（如 角色资产）- 缩进一级 */
.main-menu > .ant-menu-submenu > .ant-menu-sub > .ant-menu-submenu > .ant-menu-submenu-title {
  padding-left: 40px !important;
  margin: 4px 8px !important;
  border-radius: 12px !important;
}

/* 三级菜单容器（二级子菜单展开后的列表）*/
.main-menu > .ant-menu-submenu > .ant-menu-sub > .ant-menu-submenu > .ant-menu-sub {
  padding-left: 0 !important;
}

/* 三级菜单项（如 Commands、Subagents）- 缩进二级 */
.main-menu > .ant-menu-submenu > .ant-menu-sub > .ant-menu-submenu > .ant-menu-sub > .ant-menu-item {
  padding-left: 56px !important;
  margin: 4px 8px !important;
}

/* 子菜单箭头图标位置统一 */
.main-menu .ant-menu-submenu-arrow {
  right: 16px !important;
}

.ant-menu-item:hover {
  background: linear-gradient(90deg, var(--color-primary-opacity-12) 0%, var(--color-primary-opacity-5) 100%);
  box-shadow: inset 0 0 10px var(--color-primary-opacity-5);
}

.ant-menu-item-selected {
  background: linear-gradient(90deg, var(--color-primary-opacity-20) 0%, var(--color-primary-opacity-10) 100%);
  box-shadow: 0 2px 12px var(--color-primary-opacity-25), inset 0 0 15px var(--color-primary-opacity-10);
  color: var(--text-primary);
}

.ant-menu-item-selected::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--color-primary-opacity-50);
}

/* 表格样式优化 - 主题色 */
.ant-table {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--color-primary-opacity-10);
}

.ant-table-thead > tr > th {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--color-primary-light) 100%);
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--color-primary-bg-hover);
}

.ant-table-tbody > tr:hover > td {
  background: linear-gradient(90deg, var(--color-primary-opacity-10) 0%, var(--color-primary-opacity-5) 100%);
  box-shadow: inset 0 0 10px var(--color-primary-opacity-5);
}

/* 标签样式增强 - 主题色 */
.ant-tag {
  border-radius: 8px;
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid transparent;
}

.ant-tag-default {
  background: var(--color-primary-light);
  color: var(--text-primary);
  border-color: var(--color-primary-bg-hover);
}

/* 输入框样式 - 主题色 */
.ant-input, .ant-input-affix-wrapper {
  border-radius: 12px;
  border: 1px solid var(--color-primary-bg);
  transition: all 0.3s ease;
}

.ant-input:hover, .ant-input-affix-wrapper:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-opacity-5);
}

.ant-input:focus, .ant-input-affix-wrapper:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-opacity-15), 0 0 15px var(--color-primary-opacity-20);
}

/* 卡片头部样式 - 主题色 */
.ant-card-head {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--color-primary-light) 100%);
  border-bottom: 1px solid var(--color-primary-bg-hover);
  font-weight: 600;
  color: var(--text-primary);
}

/* 技能卡片头部 */
.skill-card .ant-card-head {
  padding: 8px 12px;
  min-height: auto;
}

.skill-card .ant-card-head-title {
  padding: 0;
}

/* 统计卡片特殊样式 */
.ant-statistic-title {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.ant-statistic-content {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  text-shadow: 0 2px 8px var(--color-primary-opacity-20);
}

/* 进度条样式 - 主题色 */
.ant-progress-inner {
  border-radius: 6px;
  background: #e5e7eb;
}

.ant-progress-bg {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #14b8a6 50%, #0d9488 100%);
  box-shadow: 0 0 10px var(--color-primary-opacity-40);
  position: relative;
}

.ant-progress-bg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  filter: blur(2px);
}

/* 模态框和抽屉 - 主题色 */
.ant-modal-content, .ant-drawer-body {
  border-radius: 20px;
  box-shadow: 0 12px 40px var(--color-primary-opacity-15);
}

.ant-modal-header {
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-container) 100%);
  border-bottom: 1px solid var(--color-primary-bg-hover);
}

/* 动画效果增强 - 科技感 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px var(--color-primary-opacity-30), 0 0 20px var(--color-primary-opacity-10);
  }
  50% {
    box-shadow: 0 0 20px var(--color-primary-opacity-50), 0 0 40px var(--color-primary-opacity-20), 0 0 60px var(--color-primary-opacity-10);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* 页面加载动画 */
.page-enter {
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 侧边栏动画 */
.sider-enter {
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 加载状态动画 */
.loading-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

/* 科技感发光动画 */
.glow-effect {
  animation: glow 2s ease-in-out infinite;
}

/* 悬浮动画 */
.float-effect {
  animation: float 3s ease-in-out infinite;
}

/* 闪烁加载效果 */
.shimmer {
  background: linear-gradient(90deg,
    var(--color-primary-opacity-5) 0%,
    var(--color-primary-opacity-15) 50%,
    var(--color-primary-opacity-5) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* 阴影层次 */
.shadow-sm {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.shadow-md {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 渐变背景 - 主题色 */
.gradient-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  box-shadow: 0 4px 16px var(--color-primary-opacity-40);
}

.gradient-success {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  box-shadow: 0 4px 16px var(--color-primary-opacity-35);
}

.gradient-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.gradient-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.gradient-info {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4);
}

.gradient-tech {
  /* 科技感特殊渐变 - 紫蓝 + 青绿 */
  background: linear-gradient(135deg, #6366f1 0%, var(--color-primary) 100%);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), 0 0 30px var(--color-primary-opacity-20);
}

/* 圆角统一 */
.rounded-sm {
  border-radius: 6px;
}

.rounded-md {
  border-radius: 12px;
}

.rounded-lg {
  border-radius: 16px;
}

.rounded-xl {
  border-radius: 20px;
}

.rounded-2xl {
  border-radius: 24px;
}

/* 科技感阴影 - 彩色发光 */
.shadow-glow-green {
  box-shadow: 0 0 20px var(--color-primary-opacity-40), 0 0 40px var(--color-primary-opacity-20);
}

.shadow-glow-teal {
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.4), 0 0 40px rgba(20, 184, 166, 0.2);
}

.shadow-glow-purple {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
}

.shadow-soft {
  box-shadow: 0 4px 16px var(--color-primary-opacity-10);
}

.shadow-medium {
  box-shadow: 0 8px 24px var(--color-primary-opacity-12);
}

.shadow-strong {
  box-shadow: 0 12px 40px var(--color-primary-opacity-20);
}

/* 间距工具类 */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* 玻璃态效果 - 主题色 */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-primary-opacity-20);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-primary-opacity-30);
}

/* 卡片悬停增强 */
.card-hover-glow {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-glow:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--color-primary-opacity-20), 0 0 60px var(--color-primary-opacity-10);
}

/* 边框渐变 */
.border-gradient {
  position: relative;
  background: linear-gradient(var(--bg-container), var(--bg-container)) padding-box,
              linear-gradient(135deg, var(--color-primary), #14b8a6, #6366f1) border-box;
  border: 2px solid transparent;
  border-radius: 16px;
}

/* 光晕装饰 */
.halo-decoration {
  position: relative;
}

.halo-decoration::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--color-primary-opacity-30), transparent, rgba(20, 184, 166, 0.3));
  border-radius: inherit;
  z-index: -1;
  filter: blur(8px);
}

/* 选中态发光 */
.selected-glow {
  box-shadow: 0 0 0 3px var(--color-primary-opacity-10),
              0 0 20px var(--color-primary-opacity-30),
              inset 0 0 30px var(--color-primary-opacity-5);
}

/* 响应式断点 */
@media (max-width: 768px) {
  .ant-card {
    border-radius: 12px;
  }

  .ant-btn {
    border-radius: 10px;
  }

  .ant-modal-content {
    border-radius: 16px;
  }
}

/* 深色主题特殊样式 */
[data-theme='dark'] body {
  background: var(--gradient-bg);
}

[data-theme='dark'] ::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

[data-theme='dark'] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  box-shadow: 0 0 10px var(--color-primary-opacity-50);
}

/* 浅色模式下 Input.Search 搜索按钮修复 */
.ant-input-search .ant-input-group-addon .ant-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  border-color: var(--color-primary);
  color: #fff;
}

.ant-input-search .ant-input-group-addon .ant-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary-active) 100%);
  border-color: var(--color-primary-hover);
}

.ant-input-search .ant-input-group-addon {
  background: transparent;
  border-color: var(--border-color);
}

/* 深色模式下 Input.Search 搜索按钮修复 */
[data-theme='dark'] .ant-input-search .ant-input-group-addon .ant-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  border-color: var(--color-primary);
  color: #fff;
}

[data-theme='dark'] .ant-input-search .ant-input-group-addon .ant-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary-active) 100%);
  border-color: var(--color-primary-hover);
}

[data-theme='dark'] .ant-input-search .ant-input-group-addon {
  background: transparent;
  border-color: var(--border-color);
}

/* 深色模式下配置预览对话框 */
[data-theme='dark'] .config-preview-modal .ant-modal-content {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--color-primary-opacity-20);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 60px var(--color-primary-opacity-10);
}

[data-theme='dark'] .config-preview-modal .ant-modal-header {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom-color: var(--color-primary-opacity-20);
}

[data-theme='dark'] .config-preview-modal .ant-modal-title {
  color: var(--text-primary);
}

[data-theme='dark'] .config-preview-modal .ant-modal-close {
  color: var(--text-secondary);
}

[data-theme='dark'] .config-preview-modal .ant-modal-close:hover {
  color: var(--color-primary);
}

[data-theme='dark'] .config-preview-modal .ant-collapse {
  background: transparent;
  border-color: var(--color-primary-opacity-20);
}

[data-theme='dark'] .config-preview-modal .ant-collapse-header {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-primary) !important;
  border-color: var(--color-primary-opacity-20);
}

[data-theme='dark'] .config-preview-modal .ant-collapse-content {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--color-primary-opacity-20);
}

[data-theme='dark'] .config-preview-modal .ant-collapse-content p,
[data-theme='dark'] .config-preview-modal .ant-collapse-content span {
  color: var(--text-secondary);
}

[data-theme='dark'] .config-preview-modal .ant-list-item {
  border-bottom-color: var(--color-primary-opacity-10);
}

[data-theme='dark'] .config-preview-modal .ant-statistic-title {
  color: var(--text-secondary);
}

[data-theme='dark'] .config-preview-modal .ant-statistic-content {
  color: var(--color-primary);
}

[data-theme='dark'] .config-preview-modal .ant-divider {
  border-color: var(--color-primary-opacity-20);
}

/* 深色模式下工作流编辑器 */
[data-theme='dark'] .workflow-editor-container {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

[data-theme='dark'] .workflow-editor-container .react-flow__background {
  background: #0f172a;
}

[data-theme='dark'] .workflow-editor-container .react-flow__minimap {
  background: #1e293b;
  border: 1px solid #334155;
}

[data-theme='dark'] .workflow-editor-container .react-flow__controls {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
}

[data-theme='dark'] .workflow-editor-container .react-flow__controls-button {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  color: var(--text-secondary);
}

[data-theme='dark'] .workflow-editor-container .react-flow__controls-button:hover {
  background: #334155;
  color: var(--color-primary);
}

[data-theme='dark'] .workflow-editor-container .agent-node-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .workflow-editor-container .agent-node-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .workflow-editor-container .react-flow__edge-path {
  stroke: var(--color-primary);
}

[data-theme='dark'] .workflow-editor-container .react-flow__edge.selected .react-flow__edge-path {
  stroke: var(--color-primary-hover);
}

/* 深色模式下 Card 组件修复 */
[data-theme='dark'] .ant-card {
  background: var(--bg-container);
  border-color: var(--border-color);
}

[data-theme='dark'] .ant-card-body {
  background: var(--bg-container);
}

/* 深色模式下 Form 组件修复 */
[data-theme='dark'] .ant-form-item-label > label {
  color: var(--text-primary);
}

[data-theme='dark'] .ant-input,
[data-theme='dark'] .ant-input-affix-wrapper,
[data-theme='dark'] .ant-input-number,
[data-theme='dark'] .ant-select-selector,
[data-theme='dark'] .ant-picker {
  background: var(--bg-elevated);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme='dark'] .ant-input::placeholder,
[data-theme='dark'] .ant-input-affix-wrapper input::placeholder {
  color: var(--text-secondary);
}

[data-theme='dark'] .ant-input:hover,
[data-theme='dark'] .ant-input-affix-wrapper:hover,
[data-theme='dark'] .ant-input-number:hover,
[data-theme='dark'] .ant-select-selector:hover,
[data-theme='dark'] .ant-picker:hover {
  border-color: var(--color-primary);
}

[data-theme='dark'] .ant-input:focus,
[data-theme='dark'] .ant-input-affix-wrapper-focused,
[data-theme='dark'] .ant-input-number-focused,
[data-theme='dark'] .ant-select-focused .ant-select-selector,
[data-theme='dark'] .ant-picker-focused {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-opacity-15);
}

/* 深色模式下 Transfer 组件修复 */
[data-theme='dark'] .ant-transfer-list {
  background: var(--bg-elevated);
  border-color: var(--border-color);
}

[data-theme='dark'] .ant-transfer-list-header {
  background: var(--bg-container);
  border-bottom-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme='dark'] .ant-transfer-list-body {
  background: var(--bg-elevated);
}

[data-theme='dark'] .ant-transfer-list-content-item {
  color: var(--text-primary);
}

[data-theme='dark'] .ant-transfer-list-content-item:hover {
  background: var(--color-primary-opacity-10);
}

[data-theme='dark'] .ant-transfer-list-search-action,
[data-theme='dark'] .ant-transfer-list-search .ant-input {
  color: var(--text-primary);
}

/* 深色模式下 Divider 组件修复 */
[data-theme='dark'] .ant-divider-inner-text {
  color: var(--text-secondary);
}

[data-theme='dark'] .ant-divider-horizontal.ant-divider-with-text {
  border-top-color: var(--border-color);
}