/* TODO(#46393): 此样式文件已 3836 行，超过样式硬阈值(400)。本次仅还原 Ardot tab 视觉，拆分计划见 modules/expert/MIGRATION.md。 */
/* ===== 亮色主题变量 ===== */
.expert-center-light,
:root {
  --ec-bg-primary: #ffffff;
  --ec-bg-secondary: #fafafa;
  --ec-bg-tertiary: #f5f5f5;
  --ec-bg-hover: #f0f0f0;
  --ec-bg-active: #f5f5f5;
  --ec-text-primary: #1a1a1a;
  --ec-text-secondary: #666666;
  --ec-text-tertiary: #999999;
  --ec-text-placeholder: #cccccc;
  --ec-text-desc: var(--cb-text-secondary, #666666);
  --ec-text-usage: var(--cb-text-tertiary, #808080);
  --ec-text-use-count: var(--cb-text-secondary, #666666);
  --ec-text-category-tab: var(--cb-text-tertiary, rgba(0, 0, 0, 0.5));
  --ec-text-contrast: var(--cb-button-dark-foreground, #ffffff);
  --ec-text-soft: var(--cb-text-secondary, #666666);
  --ec-text-strong: var(--cb-text-primary, #1a1a1a);
  --ec-text-muted: var(--cb-text-muted, rgba(26, 26, 26, 0.6));
  --ec-expert-card-bg: #ffffff;
  --ec-expert-card-hover-bg: #f0f0f0;
  --ec-expert-card-hover-border: rgba(0, 0, 0, 0.08);
  --ec-expert-card-avatar-bg: #a6d5da;
  --ec-expert-card-shadow: 0 16px 32px rgba(0, 0, 0, 0.03);
  --ec-expert-card-desc-color: rgba(0, 0, 0, 0.7);
  --ec-card-tag-bg: rgba(0, 0, 0, 0.04);
  --ec-card-tag-border: transparent;
  --ec-card-tag-color: rgba(0, 0, 0, 0.7);
  --ec-filter-border: transparent;
  --ec-filter-text: var(--ec-text-category-tab);
  --ec-filter-text-hover: var(--ec-text-secondary);
  --ec-filter-text-active: var(--ec-text-primary);
  --ec-primary: #1f1f1f;
  --ec-primary-light: #f5f5f5;
  --ec-primary-hover: #000000;
  --ec-primary-shadow: rgba(0, 0, 0, 0.12);
  --ec-primary-bg: #f5f2ff;
  --ec-border: #e8e8e8;
  --ec-border-light: var(--cb-border, #d1d5db);
  --ec-border-hover: var(--cb-border-bright, #9ca3af);
  --ec-border-subtle: var(--cb-input-border-color, rgba(0, 0, 0, 0.15));
  --ec-card-bg: #ffffff;
  --ec-modal-bg: #ffffff;
  --ec-card-border-static: #f0f0f0;
  --ec-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --ec-card-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
  --ec-card-border-hover: var(--cb-border-bright, #9ca3af);
  --ec-shadow-sm: var(--cb-shadow, 0 1px 3px 0 rgba(0, 0, 0, 0.1));
  --ec-shadow-lg: var(--cb-shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
  --ec-btn-gradient: linear-gradient(135deg, #2f2f2f, #111111);
  --ec-btn-text: #ffffff;
  --ec-btn-bg: var(--cb-button-dark-background, #1a1a1a);
  --ec-btn-bg-hover: var(--cb-button-dark-hover-background, #333333);
  --ec-surface-muted: var(--cb-bg-secondary, #f5f5f5);
  --ec-surface-subtle: var(--cb-bg-primary, rgba(0, 0, 0, 0.05));
  --ec-surface-hover: var(--cb-hover-bg, rgba(0, 0, 0, 0.03));
  --ec-modal-tag-chip-bg: rgba(0, 0, 0, 0.02);
  --ec-modal-tag-chip-color: rgba(0, 0, 0, 0.62);
  --ec-modal-tag-chip-border: rgba(0, 0, 0, 0.06);
  --ec-modal-quick-prompt-bg: rgba(0, 0, 0, 0.02);
  --ec-modal-quick-prompt-bg-hover: rgba(0, 0, 0, 0.04);
  --ec-modal-quick-prompt-color: rgba(0, 0, 0, 0.62);
  --ec-modal-quick-prompt-border: rgba(0, 0, 0, 0.06);
  --ec-search-bg: var(--cb-search-bg, #f5f5f5);
  --ec-search-text: var(--cb-text-primary, #333333);
  --ec-success: #10b981;
  --ec-warning: #f59e0b;
  --ec-error: #ff4d4f;
  --ec-avatar-fallback-bg-1: #6366f1;
  --ec-avatar-fallback-bg-2: #8b5cf6;
  --ec-avatar-fallback-bg-3: #ec4899;
  --ec-avatar-fallback-bg-4: #f59e0b;
  --ec-avatar-fallback-bg-5: #10b981;
  --ec-avatar-fallback-bg-6: #3b82f6;
  --ec-avatar-fallback-bg-7: #ef4444;
  --ec-avatar-fallback-bg-8: #14b8a6;
  /* 运营标（特邀）：对齐 ardot 设计稿——中性灰 pill + 深色对话框金 V 标 */
  --ec-operational-tag-bg: rgba(0, 0, 0, 0.05);
  --ec-operational-tag-color: #393939;
  --ec-operational-tag-border: transparent;
  --ec-operational-tag-icon-color: #3d3d3d;
  --ec-operational-tag-check-color: #f7d18f;
}
/* ===== 暗色主题变量 ===== */
.expert-center-dark {
  --ec-bg-primary: var(--content-bg, var(--cb-bg-primary, #181818));
  --ec-bg-secondary: var(--sidebar-bg, var(--cb-bg-secondary, #181818));
  --ec-bg-tertiary: var(--filter-bg, #242424);
  --ec-bg-hover: var(--sidebar-hover, #2c2c2c);
  --ec-bg-active: var(--sidebar-active, #2c2c2c);
  --ec-text-primary: var(--text-primary, var(--cb-text-primary, rgba(255, 255, 255, 0.9)));
  --ec-text-secondary: var(--text-secondary, var(--cb-text-secondary, rgba(255, 255, 255, 0.7)));
  --ec-text-tertiary: var(--text-muted, var(--cb-text-tertiary, rgba(255, 255, 255, 0.5)));
  --ec-text-placeholder: var(--text-dim, rgba(255, 255, 255, 0.3));
  --ec-text-desc: var(--text-secondary, var(--cb-text-secondary, rgba(255, 255, 255, 0.7)));
  --ec-text-usage: var(--text-muted, var(--cb-text-tertiary, rgba(255, 255, 255, 0.5)));
  --ec-text-use-count: var(--text-dim, rgba(255, 255, 255, 0.5));
  --ec-text-category-tab: var(--text-muted, rgba(255, 255, 255, 0.5));
  --ec-text-contrast: var(--cb-button-dark-foreground, #ffffff);
  --ec-text-soft: var(--text-secondary, rgba(255, 255, 255, 0.7));
  --ec-text-strong: var(--text-primary, rgba(255, 255, 255, 0.9));
  --ec-text-muted: var(--text-muted, rgba(255, 255, 255, 0.5));
  --ec-expert-card-bg: var(--ec-card-bg);
  --ec-expert-card-hover-bg: var(--card-hover-bg, #2c2c2c);
  --ec-expert-card-hover-border: transparent;
  --ec-expert-card-avatar-bg: var(--ec-surface-muted);
  --ec-expert-card-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.03);
  --ec-expert-card-desc-color: var(--ec-text-desc);
  --ec-card-tag-bg: rgba(0, 0, 0, 0.04);
  --ec-card-tag-border: transparent;
  --ec-card-tag-color: var(--text-secondary, rgba(255, 255, 255, 0.7));
  --ec-filter-border: var(--filter-border, rgba(255, 255, 255, 0.1));
  --ec-filter-text: var(--text-muted, rgba(255, 255, 255, 0.56));
  --ec-filter-text-hover: var(--text-secondary, rgba(255, 255, 255, 0.74));
  --ec-filter-text-active: var(--text-primary, rgba(255, 255, 255, 0.94));
  --ec-primary: #f5f5f5;
  --ec-primary-light: rgba(255, 255, 255, 0.12);
  --ec-primary-hover: #ffffff;
  --ec-primary-shadow: rgba(255, 255, 255, 0.12);
  --ec-primary-bg: rgba(255, 255, 255, 0.08);
  --ec-border: var(--card-border, rgba(255, 255, 255, 0.08));
  --ec-border-light: var(--card-border, rgba(255, 255, 255, 0.08));
  --ec-border-hover: var(--card-hover-border, rgba(255, 255, 255, 0.12));
  --ec-border-subtle: var(--sidebar-border, rgba(255, 255, 255, 0.08));
  --ec-card-bg: var(--card-bg, #242424);
  --ec-modal-bg: var(--card-bg, #242424);
  --ec-card-border-static: transparent;
  --ec-card-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.03);
  --ec-card-shadow-hover: var(--card-hover-shadow, 0 16px 32px -8px rgba(0, 0, 0, 0.03));
  --ec-card-border-hover: transparent;
  --ec-shadow-sm: none;
  --ec-shadow-lg: none;
  --ec-btn-gradient: linear-gradient(135deg, #ffffff, #e7e8eb);
  --ec-btn-text: #1a1a1a;
  --ec-btn-bg: var(--cb-login-btn-bg, #ffffff);
  --ec-btn-bg-hover: var(--cb-login-btn-hover-bg, #e7e8eb);
  --ec-btn-color: var(--cb-login-btn-color, #1a1a1a);
  --ec-surface-muted: var(--sidebar-bg, #262626);
  --ec-surface-subtle: var(--filter-bg, #242424);
  --ec-surface-hover: var(--sidebar-hover, #2c2c2c);
  --ec-modal-tag-chip-bg: var(--filter-bg, rgba(255, 255, 255, 0.06));
  --ec-modal-tag-chip-color: var(--text-secondary, rgba(255, 255, 255, 0.72));
  --ec-modal-tag-chip-border: var(--card-border, rgba(255, 255, 255, 0.08));
  --ec-modal-quick-prompt-bg: var(--card-bg, #1f2024);
  --ec-modal-quick-prompt-bg-hover: var(--sidebar-active, rgba(255, 255, 255, 0.1));
  --ec-modal-quick-prompt-color: var(--text-secondary, rgba(255, 255, 255, 0.72));
  --ec-modal-quick-prompt-border: var(--card-border, rgba(255, 255, 255, 0.08));
  --ec-search-bg: var(--cb-search-bg, #262626);
  --ec-search-text: var(--text-primary, rgba(255, 255, 255, 0.9));
  --ec-success: #a6a6a6;
  --ec-warning: #d0d0d0;
  --ec-error: #ec5558;
  --ec-avatar-fallback-bg-1: #4f5667;
  --ec-avatar-fallback-bg-2: #5b526d;
  --ec-avatar-fallback-bg-3: #6a4f65;
  --ec-avatar-fallback-bg-4: #6b5b48;
  --ec-avatar-fallback-bg-5: #4f665c;
  --ec-avatar-fallback-bg-6: #4b5f73;
  --ec-avatar-fallback-bg-7: #674f52;
  --ec-avatar-fallback-bg-8: #4f6667;
  /* 运营标（特邀）：暗色保持半透明底，图标仍用设计稿深色对话框 + 金色 V */
  --ec-operational-tag-bg: rgba(255, 255, 255, 0.05);
  --ec-operational-tag-color: #e0e0e0;
  --ec-operational-tag-border: transparent;
  --ec-operational-tag-icon-color: #3d3d3d;
  --ec-operational-tag-check-color: #f7d18f;
}
/* ===== 高对比度 ===== */
.vscode-high-contrast .expert-center-dark {
  --ec-border: #6fc3df;
  --ec-text-primary: #ffffff;
}
.vscode-high-contrast-light .expert-center-light {
  --ec-border: #0f4a85;
  --ec-text-primary: #000000;
}
.expert-center-dark {
  /* 确保 topbar 背景色与内容区域一致 */
}
.expert-center-dark .workbuddy-topbar {
  background: var(--ec-bg-primary);
}
.expert-center-dark .ec-search-wrapper .wb-input-wrapper {
  background: var(--ec-search-bg);
  border-color: transparent;
  color: var(--ec-search-text);
}
.expert-center-dark .ec-search-wrapper .wb-input-wrapper:hover,
.expert-center-dark .ec-search-wrapper .wb-input-wrapper:focus-within {
  border-color: transparent;
  background: #2c2c2c;
}
.expert-center-dark .ec-search-wrapper .wb-input__prefix,
.expert-center-dark .ec-search-wrapper .wb-input__clear,
.expert-center-dark .ec-search-wrapper .wb-input__inner::placeholder {
  color: var(--ec-text-placeholder);
}
.expert-center-dark .ec-topbar__right .wb-button.wb-button--grey {
  background: #262626;
  color: rgba(255, 255, 255, 0.9);
  border: none;
}
.expert-center-dark .ec-topbar__right .wb-button.wb-button--grey:hover,
.expert-center-dark .ec-topbar__right .wb-button.wb-button--grey:focus-visible,
.expert-center-dark .ec-topbar__right .wb-button.wb-button--grey:active {
  background: #2c2c2c;
  color: rgba(255, 255, 255, 0.9);
  border: none;
}
.expert-center-dark .ec-list-tab,
.expert-center-dark .ec-sort-btn {
  color: var(--ec-text-strong);
}
.expert-center-dark .ec-sort-group {
  border: none;
  background: #212121;
}
.expert-center-dark .ec-sort-btn.is-active {
  background: #2c2c2c;
  box-shadow: none;
}
.expert-center-dark .ec-category-tab:hover {
  background: #212121;
  color: var(--ec-text-primary);
}
.expert-center-dark .ec-category-tab.is-active {
  background: #242424;
}
.expert-center-dark .ec-expert-card {
  border-color: transparent;
}
.expert-center-dark .ec-expert-card:hover,
.expert-center-dark .ec-expert-card:focus-within {
  border-color: transparent;
}
.expert-center-dark .ec-card-role,
.expert-center-dark .ec-card-subtitle {
  color: var(--ec-text-strong);
}
.expert-center-dark .ec-card-desc,
.expert-center-dark .ec-card-usage {
  color: var(--ec-text-desc);
}
.expert-center-dark .ec-search-highlight {
  background: color-mix(in srgb, var(--cb-vscode-foreground, #cccccc) 14%, transparent);
  color: #ffffff;
}
.expert-center-dark .ec-modal-card {
  border: 1px solid color-mix(in srgb, var(--cb-vscode-foreground, #cccccc) 10%, transparent);
}
.expert-center-dark .ec-modal-name,
.expert-center-dark .ec-modal-use-count,
.expert-center-dark .ec-modal-section-title,
.expert-center-dark .ec-modal-member-name {
  color: color-mix(in srgb, var(--cb-vscode-foreground, #cccccc) 78%, white 22%);
}
.expert-center-dark .ec-modal-member-role {
  color: #ffffff;
}
.expert-center-dark .ec-modal-team-member {
  border-bottom-color: color-mix(in srgb, var(--cb-vscode-foreground, #cccccc) 9%, transparent);
}
.expert-center-dark .ec-badge-team {
  background: color-mix(in srgb, var(--cb-vscode-foreground, #cccccc) 10%, transparent);
  color: #f3f4f6;
  border: 1px solid color-mix(in srgb, var(--cb-vscode-foreground, #cccccc) 14%, transparent);
}
.expert-center-dark .ec-modal-category-badge,
.expert-center-dark .ec-modal-skill-tag {
  background: color-mix(in srgb, var(--cb-vscode-foreground, #cccccc) 9%, transparent);
  color: color-mix(in srgb, var(--cb-vscode-foreground, #cccccc) 82%, white 18%);
  border-color: color-mix(in srgb, var(--cb-vscode-foreground, #cccccc) 12%, transparent);
}
.expert-center-dark .ec-modal-leader-badge {
  background: color-mix(in srgb, var(--cb-vscode-foreground, #cccccc) 12%, transparent);
  color: #f3f4f6;
}
/* ===== 页面容器 ===== */
.expert-center-page {
  --ec-page-gutter: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--ec-bg-primary);
  color: var(--ec-text-primary);
}
.expert-center-page.is-inactive {
  opacity: 0.96;
}
.ec-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 7px var(--ec-page-gutter) 0;
  flex-shrink: 0;
}
.ec-header-left {
  flex: 1;
  min-width: fit-content;
}
/* ===== 标题 Tabs ===== */
.ec-title-tabs {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.ec-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.33;
  font-weight: 600;
  color: var(--ec-text-tertiary);
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}
.ec-title:hover {
  color: var(--ec-text-secondary);
}
.ec-title-active {
  color: var(--ec-text-strong);
  cursor: default;
}
.ec-title-item {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.33;
  position: relative;
  white-space: nowrap;
  padding-right: 4px;
  color: var(--ec-text-tertiary);
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}
.ec-title-item:hover {
  color: var(--ec-text-secondary);
}
.ec-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ec-text-tertiary);
}
.ec-title-disabled {
  color: var(--ec-text-placeholder);
  cursor: not-allowed;
  user-select: none;
}
/* 敬请期待标识 */
.ec-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: super;
  margin-left: 4px;
  font-size: 9px;
  font-weight: 500;
  color: var(--ec-text-tertiary);
  background: var(--ec-bg-tertiary);
  border: 1px solid var(--ec-border);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 14px;
  white-space: nowrap;
  letter-spacing: 0;
}
/* ===== 自定义滚动条 ===== */
.ec-category-tabs,
.ec-expert-grid {
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--ec-border) transparent;
}
.ec-category-tabs::-webkit-scrollbar,
.ec-expert-grid::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.ec-category-tabs::-webkit-scrollbar-track,
.ec-expert-grid::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 2px;
}
.ec-category-tabs::-webkit-scrollbar-thumb,
.ec-expert-grid::-webkit-scrollbar-thumb {
  background: var(--ec-border);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.ec-category-tabs::-webkit-scrollbar-thumb:hover,
.ec-expert-grid::-webkit-scrollbar-thumb:hover {
  background: var(--ec-text-tertiary);
}
/* 滚动条角落 */
.ec-category-tabs::-webkit-scrollbar-corner,
.ec-expert-grid::-webkit-scrollbar-corner {
  background: transparent;
}
/* ===== 分类 Tab 容器 ===== */
.ec-category-tabs-wrap {
  position: relative;
  margin-bottom: 12px;
  min-width: 0;
  overflow: hidden;
}
.ec-category-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 2px;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 32px), transparent 100%);
}
.ec-category-tabs.is-dragging,
.ec-category-tabs.is-dragging * {
  cursor: grabbing;
}
.ec-category-tabs::-webkit-scrollbar {
  display: none;
}
.ec-category-tabs-next {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--ec-bg-tertiary);
  color: var(--ec-text-muted);
  cursor: pointer;
}
.ec-category-tabs-next-icon {
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-1px) rotate(45deg);
}
.ec-category-tab {
  border: none;
  background: transparent;
  color: var(--ec-filter-text);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  padding: 4px 12px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.ec-category-tab:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ec-filter-text-hover);
}
.ec-category-tab.is-active {
  background: var(--ec-bg-tertiary);
  color: var(--ec-filter-text-active);
  font-weight: 600;
}
.ec-expert-count {
  display: none;
  margin-left: 3px;
  font-size: 10px;
  font-weight: 400;
  color: var(--ec-text-tertiary);
  font-family: var(--font-mono, monospace);
  transition: color 0.15s ease;
}
.ec-category-tab.is-active .ec-expert-count {
  color: var(--ec-text-category-tab);
}
/* ===== 主滚动区域 ===== */
.ec-main-scroll {
  --ec-main-scrollbar-width: 4px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 calc(var(--ec-page-gutter) - var(--ec-main-scrollbar-width)) 0 var(--ec-page-gutter);
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--ec-border) transparent;
}
.ec-main-scroll::-webkit-scrollbar {
  width: 4px;
}
.ec-main-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.ec-main-scroll::-webkit-scrollbar-thumb {
  background: var(--ec-border);
  border-radius: 2px;
}
/* ===== 专家区域 section ===== */
.ec-expert-section {
  margin-bottom: 28px;
}
.ec-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
/* 排序按钮组：对齐 Ardot 的 28px 分段控件 */
.ec-sort-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  padding: 2px;
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  background: var(--ec-bg-tertiary);
  box-sizing: border-box;
}
.ec-sort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--ec-text-strong);
  opacity: 0.5;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.ec-sort-btn:hover {
  opacity: 0.7;
}
.ec-sort-btn.is-active {
  background: var(--ec-card-bg);
  opacity: 1;
}
/* 列表区二级 Tab（专家 / 专家团）行：左侧标题式 Tab，右侧 source/sort 分段控件 */
.ec-list-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ec-list-tabs {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.ec-list-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
}
.ec-list-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ec-text-strong);
  opacity: 0.5;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.ec-list-tab:hover {
  opacity: 0.7;
}
.ec-list-tab.is-active {
  opacity: 1;
}
.ec-section-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--ec-text-strong);
  padding-left: 2px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* 上新标识 */
.ec-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  border-radius: 4px;
  line-height: 14px;
  white-space: nowrap;
  position: relative;
  top: -1px;
}
/* 专家团暂无内容提示 */
.ec-team-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  border-radius: 12px;
  border: 1px dashed var(--ec-border);
  background: var(--ec-bg-secondary);
}
.ec-team-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--ec-text-tertiary);
}
.ec-grid-content.is-animated {
  animation: ec-grid-content-in 0.22s ease;
  will-change: opacity, transform;
}
@keyframes ec-grid-content-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== 网格 ===== */
.ec-expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 12px;
  align-content: start;
}
.ec-grid-expand-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.ec-grid-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ec-text-tertiary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.ec-grid-expand-btn:hover {
  color: var(--ec-text-primary);
}
.ec-grid-expand-btn:focus-visible {
  outline: none;
  color: var(--ec-text-primary);
}
.ec-grid-expand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  transition: transform 0.15s ease;
}
.ec-grid-expand-icon.is-expanded {
  transform: rotate(180deg);
}
/* ===== 首屏骨架屏（仅列表区域） ===== */
.ec-page-skeleton {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ec-skeleton-block {
  background: linear-gradient(90deg, color-mix(in srgb, var(--ec-border) 65%, transparent) 25%, color-mix(in srgb, var(--ec-bg-secondary) 85%, white) 50%, color-mix(in srgb, var(--ec-border) 65%, transparent) 75%);
  background-size: 200% 100%;
  animation: ec-skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}
/* -- 精选场景骨架 -- */
.ec-skeleton-scenes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ec-skeleton-block--scene-title {
  width: 80px;
  height: 28px;
}
.ec-skeleton-scenes__grid {
  display: flex;
  gap: 12px;
  overflow: hidden;
}
.ec-skeleton-scene-card {
  flex-shrink: 0;
  width: 246px;
  height: 224px;
  border-radius: 16px;
  background: var(--ec-card-bg, #fff);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ec-skeleton-block--scene-label {
  width: 68px;
  height: 24px;
  margin: 48px 0 0 20px;
}
.ec-skeleton-scene-card__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 12px 0;
}
.ec-skeleton-scene-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 8px;
}
.ec-skeleton-block--scene-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ec-skeleton-block--scene-name {
  width: 98px;
  height: 20px;
}
.ec-skeleton-block--scene-name-short {
  width: 84px;
}
/* -- 专家列表骨架 -- */
.ec-skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ec-skeleton-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ec-skeleton-list__tabs {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ec-skeleton-block--list-tab {
  width: 40px;
  height: 28px;
}
.ec-skeleton-block--list-tab-wide {
  width: 60px;
}
.ec-skeleton-block--sort-group {
  width: 86px;
  height: 28px;
}
.ec-skeleton-category-tabs {
  position: relative;
  overflow: hidden;
}
.ec-skeleton-category-tabs__inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ec-skeleton-category-tabs__mask {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 28px;
  background: linear-gradient(to left, var(--ec-bg-primary, #fafafa), transparent);
  pointer-events: none;
}
.ec-skeleton-block--cat-tab {
  width: 72px;
  height: 28px;
  flex-shrink: 0;
}
.ec-skeleton-block--cat-tab-sm {
  width: 46px;
}
.ec-skeleton-block--cat-tab-lg {
  width: 105px;
}
/* -- 专家卡片骨架 -- */
.ec-expert-grid--skeleton {
  pointer-events: none;
}
.ec-expert-card--skeleton {
  cursor: default;
  pointer-events: none;
  opacity: 1;
  transform: none;
  animation: none;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.03);
}
.ec-skeleton-block--avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ec-skeleton-block--role {
  width: 72%;
  max-width: 160px;
  height: 14px;
  margin-bottom: 4px;
}
.ec-skeleton-block--desc-short {
  width: 58%;
  height: 12px;
}
.ec-skeleton-card-desc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px;
}
.ec-skeleton-block--desc-line {
  width: 100%;
  height: 14px;
}
.ec-skeleton-block--desc-line-short {
  width: 60%;
}
.ec-skeleton-block--usage {
  width: 84px;
  height: 12px;
  border-radius: 6px;
}
@keyframes ec-skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/* ===== 卡片 — 设计稿纵向布局 ===== */
.ec-expert-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 154px;
  padding: 16px 20px;
  background: var(--ec-expert-card-bg);
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ec-expert-card-shadow);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(4px);
  animation-delay: var(--delay, 0s);
  animation: fadeInUp 0.25s ease forwards;
}
.ec-expert-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 0.5px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.2s ease;
}
.ec-expert-card:focus-visible {
  box-shadow: 0 0 0 2px var(--ec-primary-shadow), var(--ec-expert-card-shadow);
}
.ec-expert-card:hover {
  background: var(--ec-expert-card-hover-bg);
  box-shadow: var(--ec-expert-card-shadow);
  transform: translateY(0);
}
.ec-expert-card:hover::after {
  border-color: var(--ec-expert-card-hover-border);
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 卡片主体：头像 + 内容 */
.ec-card-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  border-radius: 8px;
}
.ec-card-main:focus-visible {
  box-shadow: 0 0 0 2px var(--ec-primary-shadow);
}
.ec-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
/* 方形头像 */
.ec-card-avatar-sq {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ec-expert-card-avatar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-card-avatar-sq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ec-avatar-sq-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ec-text-contrast);
  border-radius: 50%;
}
/* 卡片内容区 */
.ec-card-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.ec-card-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
}
.ec-card-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}
.ec-card-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--ec-card-tag-border);
  border-radius: 4px;
  background: var(--ec-card-tag-bg);
  color: var(--ec-card-tag-color);
  font-size: 11px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ec-card-subtitle {
  color: var(--ec-text-strong);
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ec-card-role-wrap {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
.ec-card-role {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ec-text-strong);
  line-height: 20px;
  letter-spacing: 0;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ec-card-import-security-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  margin-left: 2px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ec-card-import-security-badge__icon {
  width: 14px;
  height: 14px;
}
.ec-card-import-security-badge--safe {
  color: var(--wb-status-success, #34a853);
  background: color-mix(in srgb, var(--wb-status-success, #34a853) 18%, transparent);
}
.ec-card-import-security-badge--low {
  color: var(--wb-status-info, #4f86ff);
  background: color-mix(in srgb, var(--wb-status-info, #4f86ff) 18%, transparent);
}
.ec-card-import-security-badge--medium {
  color: var(--wb-status-warning, #f5a623);
  background: color-mix(in srgb, var(--wb-status-warning, #f5a623) 20%, transparent);
}
.ec-card-operational-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: 110px;
  padding: 2px 6px;
  gap: 2px;
  border-radius: 6px;
  background: var(--ec-operational-tag-bg);
  color: var(--ec-operational-tag-color);
  border: 1px solid var(--ec-operational-tag-border);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  pointer-events: none;
}
.ec-card-operational-tag__icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  /* 图标底色来自 ardot 对话框/盾牌形标识 */
  color: var(--ec-operational-tag-icon-color, #3d3d3d);
}
.ec-card-operational-tag__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ec-card-desc {
  width: 100%;
  color: var(--ec-expert-card-desc-color);
  font-size: 11px;
  font-weight: 400;
  line-height: 18px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
/* 卡片底部：专家团成员 / 最近专家名 */
.ec-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 20px;
}
.ec-card-usage {
  font-size: 11px;
  color: var(--ec-text-usage);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ec-card-summon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border: none;
  border-radius: 8px;
  background: var(--ec-btn-bg);
  color: var(--ec-text-contrast);
  font-size: 12px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  outline: none;
}
.ec-card-summon-btn--top {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
/* 召唤按钮左侧渐变遮罩：长标题滚到按钮下方时平滑淡出到卡片背景色，避免文字被硬切。
   作为按钮伪元素，opacity 随按钮一起淡入淡出，无需额外 hover 选择器。 */
.ec-card-summon-btn--top::before {
  content: '';
  position: absolute;
  top: 0;
  right: 100%;
  width: 40px;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--ec-expert-card-bg));
  pointer-events: none;
}
.ec-expert-card:hover .ec-card-summon-btn--top::before,
.ec-expert-card:focus-within .ec-card-summon-btn--top::before {
  background: linear-gradient(to right, transparent, var(--ec-expert-card-hover-bg));
}
.ec-expert-card:hover .ec-card-summon-btn--top,
.ec-expert-card:focus-within .ec-card-summon-btn--top {
  opacity: 1;
  pointer-events: auto;
}
.ec-card-summon-btn:hover {
  background: var(--ec-btn-bg-hover);
  color: var(--ec-text-contrast);
  border-color: transparent;
}
.ec-card-summon-btn:focus,
.ec-card-summon-btn:focus-visible,
.ec-card-summon-btn:active {
  background: var(--ec-btn-bg-hover);
  color: var(--ec-text-contrast);
  border-color: transparent;
  box-shadow: none;
  transform: none;
  outline: none;
}
/* 暗色主题下召唤按钮：白底黑字 */
.expert-center-dark .ec-card-summon-btn {
  color: var(--ec-btn-color, #1a1a1a);
}
.expert-center-dark .ec-card-summon-btn:hover,
.expert-center-dark .ec-card-summon-btn:focus,
.expert-center-dark .ec-card-summon-btn:focus-visible,
.expert-center-dark .ec-card-summon-btn:active {
  color: var(--ec-btn-color, #1a1a1a);
}
/* ===== 空状态 ===== */
.ec-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--ec-text-tertiary);
  padding: 60px 20px;
}
.ec-empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  color: var(--ec-border);
}
.ec-empty-state p {
  margin: 0;
  font-size: 14px;
}
/* ===== Loading 遮罩 ===== */
.ec-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: color-mix(in srgb, var(--ec-bg-primary) 90%, transparent);
}
/* ===== Grid 局部 Loading（切换分类时使用，不遮罩整个页面） ===== */
.ec-grid-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  flex: 1;
}
.ec-grid-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ec-primary-light);
  border-top-color: var(--ec-primary);
  animation: ec-spin 0.8s linear infinite;
}
.ec-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid var(--ec-primary-light);
  border-top-color: var(--ec-primary);
  animation: ec-spin 1s linear infinite;
}
.ec-loading-message {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ec-text-secondary);
}
@keyframes ec-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ===== 专家标签 ===== */
.ec-expert-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 240px;
  padding: 4px 10px 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--ec-border-hover);
  background: var(--ec-primary-light);
  color: var(--ec-primary);
}
.ec-expert-tag-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ec-bg-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.ec-expert-tag-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ec-expert-tag-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ec-expert-tag-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ec-text-tertiary);
  color: #ffffff;
}
.ec-expert-tag-close.is-visible {
  opacity: 1;
  transform: scale(1);
}
.ec-expert-tag-close:hover {
  background: var(--ec-error);
}
.ec-expert-tag-close svg {
  width: 10px;
  height: 10px;
}
/* ===== 搜索容器（仅布局，输入框视觉由 foundation Input.Search 默认态提供，圆角 8px）===== */
/*
 * 与 UnifiedMarketHeader 的 tab 切换共处一行（左 tabs / 右 search）。
 * tabs 已经 flex-shrink:0，这里允许搜索框先压缩，避免在中等宽度下
 * tabs 文案换行（expert_top_tab_switch 内容被挤压的现象）。
 * 真正空间不够时（≤540px）再走下面的 @media 整行降级。
 *
 * 注意：要让这里的 flex-shrink 真正生效，外层 .ec-topbar__right
 * 也必须 min-width:0 + flex-shrink:1（见上面的 ec-topbar__right）。
 */
.ec-search-wrapper {
  position: relative;
  width: 220px;
  min-width: 120px;
  flex: 0 1 220px;
}
@media (max-width: 540px) {
  .ec-search-wrapper {
    width: 100%;
    min-width: 0;
    flex-shrink: 1;
  }
}
.ec-search-highlight {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ec-primary);
  border-radius: 2px;
  padding: 0 1px;
}
.ec-search-result-hint {
  display: none;
  padding: 0 0 12px;
  font-size: 13px;
  color: var(--ec-text-tertiary);
}
.ec-search-result-hint.is-visible {
  display: block;
}
.ec-search-result-hint .keyword {
  color: var(--ec-primary);
  font-weight: 500;
}
.ec-search-result-hint .count {
  color: var(--ec-text-primary);
  font-weight: 600;
}
/* ===== 响应式 ===== */
@media (max-width: 767px) {
  .expert-center-page {
    --ec-page-gutter: 20px;
  }
  .ec-header {
    padding-top: 7px;
  }
  .ec-subtitle {
    margin-bottom: 16px;
  }
  .ec-category-tabs {
    padding: 0 var(--ec-page-gutter);
  }
  .ec-category-tab {
    padding: 4px 10px;
    font-size: 12px;
  }
  .ec-main-scroll {
    padding: 12px var(--ec-page-gutter) 24px;
  }
  .ec-expert-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}
@media (max-width: 767px) {
  .ec-expert-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}
@media (max-width: 575px) {
  .ec-expert-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== 排行榜面板 ===== */
.ec-leaderboard-panel {
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 40%, #ffffff 100%);
  box-shadow: -1px 0 8px rgba(0, 0, 0, 0.08);
  display: none;
  /* 无滚动条设计 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ec-leaderboard-panel::-webkit-scrollbar {
  display: none;
}
/* 暗色主题适配 */
.expert-center-dark .ec-leaderboard-panel {
  background: linear-gradient(180deg, #252526 0%, #222325 40%, #1e1e1e 100%);
  box-shadow: -1px 0 8px rgba(0, 0, 0, 0.22);
}
/* 排行榜标题区 */
.ec-lb-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 20px 10px;
  margin: 12px 12px 0;
  background: linear-gradient(135deg, #f5f0ff, #fef8e8);
  border-radius: 14px 14px 0 0;
}
.expert-center-dark .ec-lb-header {
  background: linear-gradient(135deg, #2d2a3e, #3a3530);
}
.ec-lb-trophy-icon {
  width: 24px;
  height: 24px;
  color: #f59e0b;
  filter: drop-shadow(0 1px 3px rgba(245, 158, 11, 0.3));
  flex-shrink: 0;
}
.ec-lb-header-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ec-text-primary);
  letter-spacing: 0.5px;
}
/* 排行榜副标题 */
.ec-lb-subtitle {
  padding: 6px 20px 14px;
  font-size: 12px;
  color: #b0a0c8;
  background: linear-gradient(135deg, #f5f0ff, #fef8e8);
  margin: 0 12px;
  border-radius: 0 0 14px 14px;
  border-bottom: 2px solid #f0ebff;
}
.expert-center-dark .ec-lb-subtitle {
  background: linear-gradient(135deg, #2d2a3e, #3a3530);
  color: #9d8abf;
  border-bottom-color: #3d3a4e;
}
/* 排行榜列表 */
.ec-lb-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px 20px;
}
.ec-lb-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(253, 251, 255, 0.85) 0%, rgba(248, 245, 255, 0.85) 40%, rgba(255, 255, 255, 0.85) 100%);
  opacity: 1;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.expert-center-dark .ec-lb-loading-overlay {
  background: linear-gradient(180deg, rgba(37, 37, 38, 0.78) 0%, rgba(42, 42, 62, 0.78) 40%, rgba(30, 30, 30, 0.78) 100%);
}
.ec-lb-loading-overlay.is-fade-out {
  opacity: 0;
}
.ec-lb-loading {
  color: var(--ec-text-secondary);
  font-size: 13px;
  line-height: 20px;
}
/* 排行榜项 - 基础样式 */
.ec-lb-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
}
/* 排名编号 */
.ec-lb-rank {
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
}
/* 头像容器 */
.ec-lb-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}
/* 冠军帽 */
.ec-lb-crown {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  line-height: 1;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}
/* 头像 */
.ec-lb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 18px;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
}
.ec-lb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ec-lb-avatar-fallback {
  font-size: 14px;
  font-weight: 600;
  color: var(--ec-primary);
}
/* 信息区 */
.ec-lb-info {
  flex: 1;
  min-width: 0;
}
.ec-lb-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ec-lb-title {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
/* 悬浮蒙层 */
.ec-lb-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 5;
}
.ec-lb-hover-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
/* 召唤按钮 */
.ec-lb-summon-btn {
  background: linear-gradient(135deg, #2f2f2f, #111111);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.ec-lb-summon-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}
/* ===== 第一名 - 金色冠军 ===== */
.ec-lb-item.rank-1 {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  padding: 14px 12px;
}
.ec-lb-item.rank-1 .ec-lb-rank {
  color: #d97706;
  font-size: 14px;
  font-weight: 800;
}
.ec-lb-item.rank-1 .ec-lb-avatar {
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  background: #fff;
}
.ec-lb-item.rank-1 .ec-lb-name {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
}
.ec-lb-item.rank-1 .ec-lb-title {
  color: #b45309;
}
/* 暗色主题 - 第一名 */
.expert-center-dark .ec-lb-item.rank-1 {
  background: linear-gradient(135deg, #3d3520, #4a3d20);
  border-color: #7a6530;
}
.expert-center-dark .ec-lb-item.rank-1 .ec-lb-name {
  color: #fde68a;
}
.expert-center-dark .ec-lb-item.rank-1 .ec-lb-title {
  color: #fcd34d;
}
/* ===== 第二名 - 银色 ===== */
.ec-lb-item.rank-2 {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  padding: 12px;
}
.ec-lb-item.rank-2 .ec-lb-rank {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}
.ec-lb-item.rank-2 .ec-lb-avatar {
  border-color: #94a3b8;
  background: #fff;
}
.ec-lb-item.rank-2 .ec-lb-name {
  font-weight: 600;
  color: #334155;
}
.ec-lb-item.rank-2 .ec-lb-title {
  color: #64748b;
}
/* 暗色主题 - 第二名 */
.expert-center-dark .ec-lb-item.rank-2 {
  background: linear-gradient(135deg, #2d2d32, #36363c);
  border-color: #4a4a55;
}
.expert-center-dark .ec-lb-item.rank-2 .ec-lb-name {
  color: #e2e8f0;
}
.expert-center-dark .ec-lb-item.rank-2 .ec-lb-title {
  color: #94a3b8;
}
/* ===== 第三名 - 铜色 ===== */
.ec-lb-item.rank-3 {
  background: linear-gradient(135deg, #fdf8f3, #fef0e2);
  border: 1px solid #fcd9b6;
  padding: 12px;
}
.ec-lb-item.rank-3 .ec-lb-rank {
  color: #c2702a;
  font-size: 13px;
  font-weight: 800;
}
.ec-lb-item.rank-3 .ec-lb-avatar {
  border-color: #e8a76a;
  background: #fff;
}
.ec-lb-item.rank-3 .ec-lb-name {
  font-weight: 600;
  color: #7c4a1e;
}
.ec-lb-item.rank-3 .ec-lb-title {
  color: #b45309;
}
/* 暗色主题 - 第三名 */
.expert-center-dark .ec-lb-item.rank-3 {
  background: linear-gradient(135deg, #3a3025, #453528);
  border-color: #6a5030;
}
.expert-center-dark .ec-lb-item.rank-3 .ec-lb-name {
  color: #fcd9b6;
}
.expert-center-dark .ec-lb-item.rank-3 .ec-lb-title {
  color: #e8a76a;
}
/* ===== 第4名及以后 - 普通 ===== */
.ec-lb-item.rank-normal {
  padding: 8px 12px;
}
.ec-lb-item.rank-normal .ec-lb-rank {
  color: #9ca3af;
  font-size: 12px;
}
.ec-lb-item.rank-normal .ec-lb-avatar {
  border-color: #e5e7eb;
  background: #f9fafb;
}
.ec-lb-item.rank-normal .ec-lb-name {
  font-weight: 400;
  color: #666;
}
/* 暗色主题 - 普通排名 */
.expert-center-dark .ec-lb-item.rank-normal .ec-lb-avatar {
  border-color: #4a4a55;
  background: #2d2d32;
}
.expert-center-dark .ec-lb-item.rank-normal .ec-lb-name {
  color: #a0a0a0;
}
.expert-center-dark .ec-lb-item.rank-normal .ec-lb-title {
  color: #808080;
}
/* ===== 专家页面布局 ===== */
.ec-page-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
/* ===== 顶部操作栏 ===== */
.ec-topbar {
  display: flex;
  align-items: center;
  height: 52px;
  margin-bottom: 20px;
  padding: 0 var(--ec-page-gutter);
  flex-shrink: 0;
  -webkit-app-region: drag;
}
/* 仅专家中心在浅色统一市场下使用灰色顶栏，避免污染技能/连接器 tab。 */
.expert-center-page .workbuddy-topbar.ec-topbar {
  background: var(--wb-bg-secondary, var(--ec-bg-secondary, #fafafa));
}
.expert-center-page.expert-center-dark .workbuddy-topbar.ec-topbar {
  background: var(--ec-bg-primary);
}
.ec-topbar__left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  -webkit-app-region: no-drag;
}
.ec-topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  /*
     * 关键：让右侧组（搜索框 + 我的专家按钮）作为 flex item 能够收缩，
     * 否则在外层 ec-topbar 宽度紧张时（如 500px），右侧仍会按内容宽度
     * 撑开，把左侧 UnifiedMarketHeader 的 tabs 挤换行。
     */
  min-width: 0;
  flex-shrink: 1;
  -webkit-app-region: no-drag;
}
/* ================================================
   「我的专家」子页面顶栏（点击「我的专家」按钮后整页切换）
   隐藏左侧 slot / 搜索 / 按钮，整个 ec-topbar 替换为返回按钮
   与 plugins-panel 「我安装的」子页保持一致
   ================================================ */
.ec-topbar--subpage .ec-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--cb-text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-app-region: no-drag;
}
.ec-topbar--subpage .ec-topbar__back:hover {
  background: var(--cb-hover-bg);
  color: var(--cb-text-primary);
}
.ec-topbar--subpage .ec-topbar__back svg {
  flex-shrink: 0;
}
.ec-main-content {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-x: hidden;
}
/* ===== 响应式 - 排行榜 ===== */
@media (max-width: 1199px) {
  .ec-leaderboard-panel {
    width: 260px;
    min-width: 260px;
  }
}
@media (max-width: 991px) {
  /* 中等屏幕：缩小排行榜宽度 */
  .ec-leaderboard-panel {
    width: 240px;
    min-width: 240px;
  }
}
@media (max-width: 767px) {
  /* 小屏幕：进一步缩小排行榜 */
  .ec-leaderboard-panel {
    width: 220px;
    min-width: 220px;
  }
  .ec-lb-header {
    padding: 16px 14px 8px;
    margin: 8px 8px 0;
  }
  .ec-lb-subtitle {
    padding: 4px 14px 10px;
    margin: 0 8px;
    font-size: 11px;
  }
  .ec-lb-list {
    padding: 6px 8px 16px;
    gap: 2px;
  }
  .ec-lb-item {
    padding: 8px 10px;
    gap: 8px;
  }
  .ec-lb-rank {
    min-width: 32px;
    font-size: 11px;
  }
  .ec-lb-avatar {
    width: 32px;
    height: 32px;
  }
  .ec-lb-name {
    font-size: 12px;
  }
  .ec-lb-title {
    font-size: 10px;
  }
}
/* ===== 专家团详情弹框 ===== */
.ec-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  /* 蒙层颜色统一走 foundation token，不再自定义颜色与背景模糊（#49111） */
  background: var(--wb-color-mask-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: ec-overlay-in 0.15s ease;
}
@keyframes ec-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.ec-modal-card {
  background: var(--ec-modal-bg);
  border-radius: 16px;
  width: 520px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ec-shadow-lg);
  opacity: 0;
  transition: opacity 120ms ease-out;
  position: relative;
  overflow: hidden;
  animation: ec-modal-in 0.2s ease forwards;
}
@keyframes ec-modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.ec-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--cb-border) transparent;
}
.ec-modal-body::-webkit-scrollbar {
  width: 4px;
}
.ec-modal-body::-webkit-scrollbar-thumb {
  background: var(--cb-border);
  border-radius: 999px;
}
/* 关闭按钮 */
.ec-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--cb-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.ec-modal-close:hover {
  background: var(--cb-hover-bg);
  color: var(--cb-text-primary);
}
/* 顶部：头像 + 基本信息 */
.ec-modal-top {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 12px;
  margin-bottom: 14px;
  padding: 22px 20px 0;
  padding-right: 52px;
  /* 避免被关闭按钮遮挡 */
}
.ec-modal-avatar {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ec-modal-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--ec-text-contrast);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ec-avatar-fallback-bg-6), var(--ec-avatar-fallback-bg-2));
}
.ec-modal-info {
  flex: 1;
  min-width: 0;
}
.ec-modal-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.ec-modal-role {
  font-size: 18px;
  font-weight: 700;
  color: var(--ec-text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}
.ec-modal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin-top: 4px;
}
.ec-modal-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--cb-text-secondary);
  line-height: 18px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* 类型标识 */
.ec-modal-type-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
}
.ec-badge-team {
  background: rgba(88, 101, 242, 0.08);
  color: #4f46e5;
  border: 1px solid rgba(88, 101, 242, 0.16);
}
.ec-badge-expert {
  background: color-mix(in srgb, var(--ec-bg-tertiary) 88%, transparent);
  color: var(--ec-text-secondary);
  border: 1px solid var(--ec-border-light);
}
/* 分类标签 */
.ec-modal-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: var(--ec-surface-subtle);
  color: var(--ec-text-soft);
}
/* 使用次数行 */
.ec-modal-use-count-row {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-top: 4px;
}
/* 使用次数 */
.ec-modal-use-count {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: var(--cb-text-muted);
  font-weight: 500;
  line-height: 20px;
}
/* 内容区 */
.ec-modal-content {
  margin-bottom: 18px;
}
.ec-modal-tags-section {
  margin-bottom: 18px;
}
.ec-modal-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ec-modal-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  background: var(--ec-modal-tag-chip-bg);
  color: var(--ec-modal-tag-chip-color);
  border: 1px solid var(--ec-modal-tag-chip-border);
  height: 30px;
  box-sizing: border-box;
  white-space: nowrap;
}
.ec-modal-quick-prompts {
  margin-bottom: 16px;
}
.ec-modal-quick-prompts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ec-modal-quick-prompt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-size: 13px;
  color: var(--ec-modal-quick-prompt-color);
  line-height: 1.5;
  cursor: pointer;
  padding: 10px 14px;
  background: var(--ec-modal-quick-prompt-bg);
  border-width: 1px;
  border-style: solid;
  border-color: var(--ec-modal-quick-prompt-border);
  border-image: initial;
  border-radius: 8px;
  transition: background 120ms;
  gap: 12px;
}
.ec-modal-quick-prompt-btn:hover {
  background: var(--ec-modal-quick-prompt-bg-hover);
}
.ec-modal-quick-prompt-text {
  flex: 1;
  min-width: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.ec-modal-quick-prompt-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ec-text-tertiary);
}
.ec-modal-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--cb-text-muted);
  margin-bottom: 8px;
}
.ec-modal-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ec-text-soft);
  margin: 0;
}
/* 团队成员区 */
.ec-modal-team {
  margin-bottom: 18px;
}
.ec-modal-team-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* 使用技能区 */
.ec-modal-skills {
  margin-bottom: 18px;
}
.ec-modal-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ec-modal-skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  height: 30px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cb-text-secondary);
  background: var(--cb-bg-secondary);
  border: 1px solid var(--cb-border);
  white-space: nowrap;
  box-sizing: border-box;
}
.ec-modal-skill-icon {
  font-size: 13px;
  line-height: 1;
}
/* 成员行（参考 modal-team-member 样式） */
.ec-modal-team-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ec-modal-team-member:last-child {
  border-bottom: none;
}
.ec-modal-member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cb-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-modal-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ec-modal-member-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.ec-modal-member-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  flex-wrap: nowrap;
}
.ec-modal-member-name {
  font-size: 11px;
  color: var(--cb-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-width: 0;
}
.ec-modal-member-role {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
  white-space: nowrap;
  flex-shrink: 0;
}
/* 主理人标识 */
.ec-modal-leader-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
  white-space: nowrap;
  flex-shrink: 0;
}
.expert-center-dark .ec-modal-leader-badge {
  background: color-mix(in srgb, var(--cb-vscode-foreground, #cccccc) 12%, transparent);
  color: #f3f4f6;
}
/* 弹框底部：召唤按钮 */
.ec-modal-footer {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--cb-border);
  background: var(--ec-modal-bg);
}
.expert-center-dark .ec-modal-footer {
  border-top: 1px solid color-mix(in srgb, var(--cb-vscode-foreground, #cccccc) 10%, transparent);
}
.ec-modal-summon-btn {
  width: 100%;
  height: 42px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  background: var(--cb-button-dark-background);
  color: var(--cb-button-dark-foreground);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
  letter-spacing: 0.2px;
}
.ec-modal-summon-btn:hover {
  background: var(--cb-button-dark-hover-background);
  opacity: 0.96;
}
.ec-modal-summon-btn:active {
  transform: translateY(0);
}
.expert-center-dark .ec-modal-summon-btn {
  background: var(--cb-login-btn-bg, #ffffff);
  color: var(--cb-login-btn-color, #1a1a1a);
}
.expert-center-dark .ec-modal-summon-btn:hover {
  background: var(--cb-login-btn-hover-bg, #e6e6e6);
}
.ec-finance-risk-dialog-title {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}
.ec-confirm-dialog-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ec-confirm-dialog-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ec-confirm-dialog-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cb-text-secondary);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.ec-confirm-dialog-checkbox input {
  margin: 0;
}
body.vscode-dark [data-theme="dark"] [style*="--cb-button-dark-background"],
body[data-vscode-theme-kind="vscode-dark"] [data-theme="dark"] [style*="--cb-button-dark-background"] {
  color: var(--wb-button-primary-fg) !important;
}
/* ===== 我的专家 (My Experts Panel) ===== */
.ec-my-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 20px var(--ec-content-gutter);
}
/* 子 Tab 切换器 */
.ec-my-sub-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 24px;
  align-items: center;
  background: var(--ec-bg-tertiary);
  border-radius: 12px;
  padding: 4px;
}
.ec-my-sub-tab {
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ec-text-tertiary);
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.1px;
  background: transparent;
  border-radius: 9px;
  position: relative;
}
.ec-my-sub-tab:hover {
  color: var(--ec-text-secondary);
}
.ec-my-sub-tab.is-active {
  color: var(--ec-text-primary);
  font-weight: 700;
  background: var(--ec-card-bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
/* 最近使用提示栏 */
.ec-my-recent-hint {
  font-size: 12px;
  color: var(--ec-text-tertiary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ec-primary-bg);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 500;
}
.ec-my-recent-hint svg {
  width: 14px;
  height: 14px;
  color: var(--ec-primary);
  flex-shrink: 0;
}
/* 最近使用 & 我创建的 网格（与 .ec-expert-grid 对齐） */
.ec-my-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 12px;
  align-content: start;
}
/* 最近使用空态 */
.ec-my-recent-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15% 40px 60px;
}
.ec-my-recent-empty-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(145deg, #f0edff, #e5deff);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 32px;
  box-shadow: 0 4px 16px rgba(124, 92, 252, 0.1);
}
.expert-center-dark .ec-my-recent-empty-icon {
  background: linear-gradient(145deg, #2d2a3e, #3a3550);
}
.ec-my-recent-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ec-text-secondary);
  margin: 0 0 4px;
}
.ec-my-recent-empty-hint {
  font-size: 12px;
  color: var(--ec-text-tertiary);
  margin: 0;
  font-weight: 400;
}
/* 创建卡片（虚线边框 +） */
.ec-create-card {
  background: var(--ec-card-bg);
  border: 2px dashed var(--ec-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 180px;
  gap: 10px;
}
.ec-create-card:hover {
  border-color: var(--ec-border-hover);
  background: var(--cb-hover-bg, rgba(255, 255, 255, 0.04));
}
.ec-create-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ec-bg-secondary, rgba(255, 255, 255, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-primary);
  font-size: 22px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.expert-center-dark .ec-create-card-icon {
  background: rgba(255, 255, 255, 0.042);
}
.ec-create-card:hover .ec-create-card-icon {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}
.expert-center-dark .ec-create-card:hover .ec-create-card-icon {
  background: rgba(255, 255, 255, 0.14);
}
.ec-create-card-label {
  font-size: 13px;
  color: var(--ec-text-tertiary);
  font-weight: 600;
  letter-spacing: -0.1px;
}
.ec-create-card:hover .ec-create-card-label {
  color: var(--ec-primary);
}
/* 创建卡片 - 版本信息 */
.ec-cr-version {
  font-size: 11px;
  color: var(--ec-text-tertiary);
  margin-top: 4px;
  font-weight: 500;
}
.ec-cr-card {
  position: relative;
}
.ec-cr-card .ec-card-info {
  width: calc(100% - 64px);
}
.ec-cr-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ec-border);
  gap: 8px;
}
.ec-cr-use-btn {
  flex: 1;
  height: 36px;
  border: 1.5px solid var(--ec-border);
  border-radius: 10px;
  background: var(--ec-card-bg);
  color: var(--ec-text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.1px;
}
.ec-cr-use-btn:hover {
  background: var(--cb-hover-bg, rgba(255, 255, 255, 0.06));
  border-color: var(--ec-border-hover);
  color: var(--ec-primary);
}
.ec-cr-more-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ec-border);
  border-radius: 10px;
  background: var(--ec-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ec-text-tertiary);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
  padding: 0;
}
.ec-cr-more-btn:hover {
  background: var(--ec-bg-tertiary);
  border-color: var(--ec-border-hover);
}
/* 右键菜单 */
.ec-cr-context-menu {
  position: absolute;
  right: 14px;
  bottom: 46px;
  background: var(--cb-popover-bg, #ffffff);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 6px 2px;
  z-index: 100;
  min-width: 110px;
  display: none;
  border: 1px solid var(--ec-border);
}
.expert-center-dark .ec-cr-context-menu {
  background: var(--cb-popover-bg, #2d2d2d);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.25);
}
.ec-cr-context-menu.is-visible {
  display: block;
  animation: ec-ctx-in 0.2s ease-out;
}
@keyframes ec-ctx-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ec-cr-ctx-item {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--ec-text-primary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.ec-cr-ctx-item:hover {
  background: var(--cb-hover-bg, rgba(255, 255, 255, 0.06));
  border-radius: 10px;
}
.ec-cr-ctx-item.is-danger {
  color: var(--ec-error);
}
.ec-cr-ctx-item.is-danger:hover {
  background: #fef2f2;
}
.expert-center-dark .ec-cr-ctx-item.is-danger:hover {
  background: rgba(248, 113, 113, 0.1);
}
.ec-cr-ctx-item svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
/* ===== 专家分享弹框 ===== */
.ec-share-modal-card .ec-share-body {
  padding: 0 20px 16px;
}
.ec-share-modal-card .ec-share-footer {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}
.ec-share-modal-card .ec-share-copy-btn {
  justify-content: center;
}
.ec-share-footer-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--cb-text-secondary);
  text-align: center;
}
.ec-share-footer-tip svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--cb-warning);
}
.ec-share-modal {
  background: var(--ec-modal-bg);
  border-radius: 16px;
  width: min(540px, calc(100vw - 48px));
  max-height: min(680px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.ec-share-title {
  margin: 0;
  padding: 24px 48px 0 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ec-text-primary);
  line-height: 1.4;
  flex-shrink: 0;
}
.ec-share-title-name {
  color: var(--ec-primary);
}
.ec-share-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 24px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef3cd;
  color: #856404;
  font-size: 12px;
  line-height: 1.5;
  flex-shrink: 0;
}
.ec-share-warning svg {
  flex-shrink: 0;
  color: #d4a017;
}
.expert-center-dark .ec-share-warning {
  background: rgba(212, 160, 23, 0.12);
  color: #f0c040;
}
.expert-center-dark .ec-share-warning svg {
  color: #f0c040;
}
.ec-share-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ec-share-section {
  border: 1px solid var(--ec-border);
  border-radius: 12px;
  overflow: hidden;
}
.ec-share-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ec-text-primary);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s ease;
}
.ec-share-section-header:hover {
  background: var(--ec-primary-bg);
}
.ec-share-section-icon {
  display: flex;
  align-items: center;
  color: var(--ec-text-tertiary);
}
.ec-share-section-label {
  flex: 1;
}
.ec-share-section-toggle {
  display: flex;
  align-items: center;
  color: var(--ec-text-tertiary);
}
.ec-share-prompt-content {
  padding: 0 14px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ec-text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
  border-top: 1px solid var(--ec-border);
  margin-top: 0;
  padding-top: 12px;
  background: color-mix(in srgb, var(--ec-card-bg) 50%, transparent);
}
.ec-share-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
  border-top: 1px solid var(--ec-border);
  padding-top: 12px;
}
.ec-share-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--ec-primary);
  color: var(--ec-primary);
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  white-space: nowrap;
}
.ec-share-skill-chip svg {
  width: 13px;
  height: 13px;
}
.ec-share-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px 20px;
  flex-shrink: 0;
}
.ec-share-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 10px;
  border: none;
  background: var(--ec-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.ec-share-copy-btn:hover {
  opacity: 0.9;
}
.ec-share-copy-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.ec-share-copy-btn svg {
  flex-shrink: 0;
}
.ec-share-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: ec-share-spinner-rotate 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes ec-share-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}
/* ===== 专家导入确认弹框 ===== */
.expert-import-modal-overlay {
  background: color-mix(in srgb, var(--cb-bg-secondary) 78%, transparent);
}
.expert-import-modal-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 90vw;
  max-height: calc(100vh - 40px);
}
.expert-import-modal-heading {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cb-text-primary);
  text-align: center;
  text-shadow: 0 1px 2px var(--cb-bg-primary);
}
.expert-share-prompt-preview,
.expert-import-prompt-preview {
  cursor: default;
}
.expert-share-prompt-preview:hover,
.expert-import-prompt-preview:hover {
  background: var(--ec-modal-quick-prompt-bg);
}
.expert-import-modal-card .ec-modal-close:disabled,
.expert-import-modal-card .ec-modal-summon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.expert-import-loading-card {
  width: 360px;
  min-height: 160px;
  justify-content: center;
}
.expert-import-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
}
.expert-import-loading-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ec-text-muted) 24%, transparent);
  border-top-color: var(--ec-text-strong);
  animation: ec-share-spinner-rotate 0.8s linear infinite;
}
.expert-import-loading-text {
  color: var(--ec-text-secondary);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.expert-import-security-card {
  position: relative;
  width: min(560px, calc(100vw - 48px));
  padding: 28px 32px 30px;
  border-radius: 16px;
  background: var(--ec-modal-bg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18), 0 8px 32px rgba(0, 0, 0, 0.1);
}
.expert-import-security-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ec-text-tertiary);
  cursor: pointer;
}
.expert-import-security-close:hover {
  background: var(--ec-bg-secondary);
  color: var(--ec-text-primary);
}
.expert-import-security-title {
  margin: 4px 40px 24px 0;
  color: var(--ec-text-primary);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}
.expert-import-security-status-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  margin-bottom: 22px;
  border: 1px dashed var(--ec-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--ec-card-bg) 70%, transparent);
}
.expert-import-security-hourglass {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1;
}
.expert-import-security-status-text {
  color: var(--ec-text-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.expert-import-security-desc {
  margin-bottom: 18px;
  color: var(--ec-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.expert-import-security-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--ec-text-secondary);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.expert-import-security-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}
.expert-import-security-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.expert-import-security-skip-btn {
  min-width: 176px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--ec-border);
  border-radius: 10px;
  background: var(--ec-card-bg);
  color: var(--ec-text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.expert-import-security-skip-btn:hover {
  border-color: var(--ec-primary);
  color: var(--ec-primary);
}
.expert-import-security-skip-tip {
  color: var(--ec-text-tertiary);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.expert-import-prompt-preview {
  cursor: default;
  pointer-events: none;
}
.expert-import-dialog-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.expert-import-dialog-prompt {
  border: 1px solid var(--ec-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ec-card-bg);
}
.expert-import-dialog-section-title {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ec-text-primary);
  border-bottom: 1px solid var(--ec-border);
}
.expert-import-dialog-prompt-content {
  padding: 12px;
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ec-text-secondary);
}
.expert-import-dialog-error {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 12px;
  line-height: 1.5;
}
.expert-center-dark .expert-import-dialog-error {
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}
/* 状态标签 */
.ec-cr-status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ec-cr-status-badge.is-unpublished {
  background: var(--ec-bg-tertiary);
  color: var(--ec-text-tertiary);
}
.ec-cr-status-badge.is-reviewing {
  background: #fef3c7;
  color: #b45309;
}
.ec-cr-status-badge.is-published {
  background: #d1fae5;
  color: #047857;
}
.ec-cr-status-badge.is-rejected {
  background: #fee2e2;
  color: #dc2626;
}
.ec-cr-status-badge.is-new-version {
  background: #dbeafe;
  color: #2563eb;
}
/* 我创建的空态 */
.ec-my-created-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
}
.ec-my-created-empty-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ec-my-created-empty-icon svg {
  width: 56px;
  height: 56px;
  stroke: var(--ec-text-primary);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ec-my-created-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ec-text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.ec-my-created-empty-hint {
  font-size: 13px;
  color: var(--ec-text-tertiary);
  margin: 0 0 24px;
  font-weight: 400;
  line-height: 1.6;
}
.ec-my-created-empty-btn {
  background: var(--ec-card-bg);
  color: var(--ec-text-primary);
  border: 1.5px solid var(--ec-border);
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ec-my-created-empty-btn:hover {
  border-color: var(--ec-text-primary);
  background: var(--ec-bg-secondary);
}
.ec-my-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  color: var(--ec-text-tertiary);
}
.ec-my-empty .ec-empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  color: var(--ec-border);
}
.ec-my-empty-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ec-text-secondary);
}
.ec-my-empty-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ec-text-tertiary);
}
/* ===== 响应式 ===== */
@media (max-width: 1279px) {
  .ec-card-grid,
  .ec-expert-grid,
  .ec-my-grid,
  .ec-official-section .ec-expert-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 991px) {
  .ec-card-grid,
  .ec-expert-grid,
  .ec-my-grid,
  .ec-official-section .ec-expert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .expert-center-page {
    --ec-page-gutter: 20px;
    --ec-content-gutter: 20px;
  }
  .ec-page-header {
    padding: 16px var(--ec-content-gutter) 12px;
    gap: 12px;
  }
  .ec-main-tab {
    font-size: 16px;
  }
  .ec-recruit-banner {
    min-height: 100px;
  }
  .ec-recruit-title {
    font-size: 16px;
  }
  .ec-card-grid,
  .ec-expert-grid,
  .ec-my-grid,
  .ec-official-section .ec-expert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .ec-search-wrapper {
    width: 200px;
    min-width: 160px;
  }
}
@media (max-width: 575px) {
  .ec-card-grid,
  .ec-expert-grid,
  .ec-my-grid,
  .ec-official-section .ec-expert-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== 专家详情弹窗 ===== */
.ec-detail-mask {
  position: fixed;
  inset: 0;
  /* 蒙层颜色统一走 foundation token，不再自定义颜色与背景模糊（#49111） */
  background: var(--wb-color-mask-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.ec-detail-mask.is-visible {
  opacity: 1;
  visibility: visible;
}
.ec-detail-modal {
  background: var(--ec-card-bg);
  border-radius: 16px;
  width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s;
}
.ec-detail-mask.is-visible .ec-detail-modal {
  transform: translateY(0) scale(1);
}
.ec-detail-modal::-webkit-scrollbar {
  width: 4px;
}
.ec-detail-modal::-webkit-scrollbar-thumb {
  background: var(--ec-border);
  border-radius: 2px;
}
/* 关闭按钮 */
.ec-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.ec-detail-close:hover {
  background: rgba(0, 0, 0, 0.12);
}
.ec-detail-close svg {
  width: 16px;
  height: 16px;
  stroke: #666;
}
/* Header */
.ec-detail-header {
  text-align: center;
  padding: 32px 32px 0;
}
.ec-detail-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid #f0edff;
}
.ec-detail-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ec-text-primary);
  margin: 0 0 2px;
}
.ec-detail-title {
  font-size: 13px;
  color: var(--ec-text-tertiary);
  margin: 0 0 10px;
}
.ec-detail-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px;
  padding: 0 8px;
}
/* Meta 行 */
.ec-detail-meta {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 16px 24px;
  margin: 0 24px;
  border-top: 1px solid var(--ec-border);
  border-bottom: 1px solid var(--ec-border);
}
.ec-detail-meta-item {
  flex: 1;
  text-align: center;
  padding: 0 8px;
}
.ec-detail-meta-item:not(:last-child) {
  border-right: 1px solid var(--ec-border);
}
.ec-detail-meta-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--ec-text-primary);
  margin-bottom: 2px;
}
.ec-detail-meta-label {
  font-size: 11px;
  color: var(--ec-text-tertiary);
}
/* 具体能力介绍 */
.ec-detail-section {
  padding: 20px 32px 0;
}
.ec-detail-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ec-text-primary);
  margin: 0 0 12px;
}
.ec-detail-abilities {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.ec-detail-abilities li {
  font-size: 13px;
  color: #444;
  line-height: 1.7;
  padding: 6px 0 6px 20px;
  position: relative;
}
.ec-detail-abilities li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ec-primary);
}
.ec-detail-abilities-empty {
  color: var(--ec-text-tertiary);
  font-style: italic;
}
.ec-detail-abilities-empty::before {
  display: none;
}
/* 使用技能 */
.ec-detail-skills {
  padding: 0 32px 16px;
}
.ec-detail-skills h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ec-text-primary);
  margin: 0 0 12px;
}
.ec-detail-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ec-detail-skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #f5f2ff, #ede5ff);
  color: var(--ec-primary);
  border: 1px solid rgba(124, 92, 252, 0.12);
  transition: background 0.2s, border-color 0.2s;
}
.ec-detail-skill-tag:hover {
  background: linear-gradient(135deg, #ede5ff, #e0d4ff);
  border-color: rgba(124, 92, 252, 0.25);
}
.ec-detail-skill-tag svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.ec-detail-skills-empty {
  font-size: 12px;
  color: var(--ec-text-tertiary);
  font-style: italic;
}
/* Footer: 立即召唤 */
.ec-detail-footer {
  padding: 16px 32px 24px;
  position: sticky;
  bottom: 0;
  background: var(--ec-card-bg);
  border-top: 1px solid var(--ec-border);
}
.ec-detail-summon {
  width: 100%;
  padding: 13px 0;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--ec-primary), var(--ec-primary-dark, #6b4fcc));
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(124, 92, 252, 0.3);
  letter-spacing: 0.5px;
}
.ec-detail-summon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 92, 252, 0.3), 0 6px 20px rgba(124, 92, 252, 0.25);
}
/* 暗色主题适配 */
.expert-center-dark .ec-detail-modal {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}
.expert-center-dark .ec-detail-close {
  background: rgba(255, 255, 255, 0.1);
}
.expert-center-dark .ec-detail-close:hover {
  background: rgba(255, 255, 255, 0.18);
}
.expert-center-dark .ec-detail-close svg {
  stroke: #aaa;
}
.expert-center-dark .ec-detail-avatar {
  border-color: #3a3550;
}
.expert-center-dark .ec-detail-desc {
  color: #aaa;
}
.expert-center-dark .ec-detail-abilities li {
  color: #bbb;
}
.expert-center-dark .ec-detail-skill-tag {
  background: linear-gradient(135deg, #2d2a3e, #3a3550);
  border-color: rgba(124, 92, 252, 0.2);
}
.expert-center-dark .ec-detail-skill-tag:hover {
  background: linear-gradient(135deg, #3a3550, #4a4065);
}
