/* 医疗客服数智中枢 - 简约苹果风极简工作台样式表 */
:root {
  /* Apple System Accent Colors */
  --primary: #0071e3;          /* Apple System Blue */
  --primary-hover: #0077ed;
  --primary-active: #005bb5;
  --primary-light: #e8f2fa;    /* Apple Soft Sky Tint */
  --primary-gradient: linear-gradient(135deg, #0071e3 0%, #0284c7 100%);
  
  --gold: #b45309;
  --gold-bg: #fefce8;
  --gold-border: #fde047;
  
  --success: #34c759;          /* Apple System Green */
  --success-light: #eafbf0;
  --warning: #ff9500;          /* Apple System Orange */
  --warning-light: #fff8eb;
  --danger: #ff3b30;           /* Apple System Red */
  --danger-light: #ffebeb;
  
  /* Apple Palette: 白色 + 浅蓝色打底 + 黑色字体 */
  --bg-main: #f0f6fa;          /* 浅蓝色柔和打底 Canvas */
  --bg-canvas: #f4f8fc;        /* 微渐变底色 */
  --bg-card: #ffffff;          /* 纯白浮雕卡片面板 */
  --bg-header: rgba(255, 255, 255, 0.88); /* 纯白半透明毛玻璃顶栏 */
  --bg-subtle: #f8fafc;        /* 极浅灰白 */
  --bg-active: #e3effa;        /* 浅蓝选中态底色 */
  
  /* Borders (极细微质感描边) */
  --border: rgba(186, 215, 240, 0.6);
  --border-light: rgba(0, 0, 0, 0.05);
  --border-blue: rgba(0, 113, 227, 0.2);
  --border-card: rgba(186, 215, 240, 0.55);
  --border-dark: #cbd5e1;
  
  /* Typography: 黑色字体 (Apple Crisp Dark Hierarchy) */
  --text-title: #1d1d1f;       /* 苹果极深曜黑，高锐利度与权威感 */
  --text-body: #1f2937;        /* 清晰深黑灰正文 */
  --text-muted: #64748b;       /* 优雅辅助灰 */
  --text-light: #86868b;       /* Apple 浅副标灰 */
  
  /* Apple Typography Stack */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  
  /* Apple Smooth Squircles (圆角规范) */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Apple Natural Ambient Shadows (柔和漫反射环境阴影) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 10px 25px -4px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 12px 32px -4px rgba(0, 113, 227, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
}

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

body {
  font-family: var(--font-family);
  background-color: #f0f6fa;
  color: var(--text-body);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Shell Layout (Linear / Stripe Standard) */
.app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #f0f6fa;
}

/* 1. Linear / Stripe Left Sidebar (常驻纯白精致侧边栏) */
.app-sidebar {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 100;
  position: relative;
  user-select: none;
  box-shadow: 1px 0 4px rgba(0, 0, 0, 0.02);
}

.sidebar-brand-box {
  padding: 18px 20px 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f2f4f7;
}

.brand-logo {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #0071e3, #38bdf8);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-sub, .brand-tag {
  font-size: 0.72rem;
  color: #86868b;
  font-weight: 500;
  margin-top: 1px;
}

/* Linear-style Workspace Selector Card */
.sidebar-workspace-card {
  padding: 12px 14px;
  border-bottom: 1px solid #f2f4f7;
  background: #f8fafc;
}

.ws-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ws-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ws-select-wrap:hover {
  border-color: #0071e3;
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.1);
}

.ws-icon {
  font-size: 13px;
  color: #0071e3;
  margin-right: 8px;
  flex-shrink: 0;
}

.ws-select {
  flex: 1;
  border: none;
  background: transparent;
  color: #1d1d1f;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-arrow {
  position: absolute;
  right: 10px;
  font-size: 10px;
  color: #94a3b8;
  pointer-events: none;
}

/* Sidebar Navigation Items */
.sidebar-nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  scrollbar-width: thin;
}

.sidebar-section-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 10px 6px 10px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: #475467;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  position: relative;
  box-sizing: border-box;
}

.sidebar-nav-item:hover {
  background: #f2f4f7;
  color: #1d1d1f;
}

.sidebar-nav-item.active {
  background: #e8f2fa;
  color: #0071e3;
  font-weight: 600;
  border-color: rgba(0, 113, 227, 0.15);
}

.sidebar-nav-item i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  color: inherit;
}

.sidebar-nav-item .nav-title {
  flex: 1;
  white-space: nowrap;
}

.sidebar-nav-item .nav-count-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475467;
}

.sidebar-nav-item.active .nav-count-badge {
  background: #0071e3;
  color: #ffffff;
}

.sidebar-nav-item .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  margin-left: auto;
}

.nav-ext-icon {
  font-size: 10px;
  margin-left: auto;
  opacity: 0.6;
}

/* Sidebar Footer & User Drawer */
.sidebar-user-footer {
  padding: 12px 14px;
  border-top: 1px solid #f2f4f7;
  background: #ffffff;
  position: relative;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}

.sidebar-user-card:hover {
  background: #f8fafc;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8f2fa;
  color: #0071e3;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

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

.user-display-name {
  font-size: 13px;
  font-weight: 650;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-display-role {
  font-size: 10.5px;
  font-weight: 600;
  color: #0071e3;
  letter-spacing: 0.02em;
}

.user-menu-trigger {
  color: #94a3b8;
  font-size: 13px;
}

.sidebar-user-footer .account-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 10px;
  right: 10px;
  width: auto;
  top: auto;
}

/* 2. Right Canvas Stage Wrapper & Breadcrumb */
.app-stage-wrapper {
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background-color: #f0f6fa;
}

.stage-topbar {
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 40;
}

.stage-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.stage-bc-section {
  font-weight: 700;
  color: #1d1d1f;
}

.stage-bc-sep {
  color: #cbd5e1;
}

.stage-bc-hosp {
  color: #64748b;
  font-weight: 500;
}

.stage-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.system-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* Main Content Stage fills remaining space */
.app-main {
  flex: 1;
  height: calc(100vh - 44px);
  overflow: hidden;
  position: relative;
  background-color: #f0f6fa;
}

.hub-section {
  display: none;
  height: 100%;
  width: 100%;
}

.hub-section.active {
  display: block;
}

/* 板块专属顶部控制条 */
.hub-toolbar {
  height: 42px;
  padding: 0 24px;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title i {
  color: var(--primary);
}

.section-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================================= */
/* 板块一：智能检索与副驾样式 */
/* ========================================================================= */
.search-hub-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.search-hub-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  background-color: var(--bg-main);
}

/* ========================================================================= */
/* ========================================================================= */
/* ========================================================================= */
/* 简约苹果风智能搜索工作区 (Apple Minimalist Spotlight & Copilot Hub) */
/* ========================================================================= */

.deepseek-workspace-container {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 40px 24px;
  background: #f0f6fa;
  background: linear-gradient(180deg, #f0f6fa 0%, #e8f1f8 100%);
  box-sizing: border-box;
  position: relative;
}

/* 居中主包裹区 (未搜索时绝对垂直水平居中，搜索后优雅置顶) */
.deepseek-hero-wrapper {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto auto;
  padding-bottom: 72px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
}

/* 移除杂乱光晕，还原本真纯净苹果质感 */
.deepseek-hero-wrapper::before {
  display: none !important;
}

/* 居中主标题 - 苹果黑经典排版 */
.deepseek-hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #1d1d1f;
  text-align: center;
  margin-top: 0;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  user-select: none;
  white-space: nowrap;
  transition: opacity 0.25s ease, margin 0.25s ease;
}

.deepseek-hero-subtitle {
  font-size: 0.92rem;
  color: #6e6e73;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 30px;
  text-align: center;
  user-select: none;
  position: relative;
  z-index: 1;
  transition: opacity 0.25s ease, margin 0.25s ease;
}

/* 苹果风聚光灯智能搜索卡片 (Spotlight Squircle Capsule) */
.deepseek-search-capsule {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 2px 8px -2px rgba(15, 23, 42, 0.04),
    0 12px 32px -4px rgba(15, 23, 42, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.02);
  padding: 18px 22px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.deepseek-search-capsule:focus-within {
  background: #ffffff;
  border-color: #0071e3;
  box-shadow:
    0 0 0 4px rgba(0, 113, 227, 0.14),
    0 16px 40px -4px rgba(0, 113, 227, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.02);
}

/* 搜索结果呈现后，平滑过渡到页面上方并展示应答 */
.deepseek-workspace-container.has-results,
.deepseek-workspace-container:has(#searchResultsStream:not([style*="display: none"])) {
  padding-top: 24px;
}

.deepseek-workspace-container.has-results .deepseek-hero-wrapper,
.deepseek-workspace-container:has(#searchResultsStream:not([style*="display: none"])) .deepseek-hero-wrapper {
  margin: 0 auto;
  padding-bottom: 0;
}

.deepseek-workspace-container.has-results .deepseek-hero-title,
.deepseek-workspace-container:has(#searchResultsStream:not([style*="display: none"])) .deepseek-hero-title,
.deepseek-workspace-container.has-results .deepseek-hero-subtitle,
.deepseek-workspace-container:has(#searchResultsStream:not([style*="display: none"])) .deepseek-hero-subtitle {
  display: none;
}

/* 多行自适应输入框 (苹果纯黑深邃字体) */
.deepseek-textarea {
  width: 100%;
  min-height: 52px;
  max-height: 180px;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #1d1d1f;
  font-family: inherit;
  box-sizing: border-box;
}

.deepseek-textarea::placeholder {
  color: #86868b;
  font-size: 0.95rem;
}

/* 卡片底部控制条 */
.deepseek-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* 风格即选胶囊组 - 苹果分段胶囊控制 */
.footer-style-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-style-pill {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.04);
  color: #48484a;
  padding: 5px 13px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.footer-style-pill:hover {
  background: #e8edf2;
  color: #0071e3;
  border-color: rgba(0, 113, 227, 0.18);
  transform: translateY(-1px);
}

.footer-style-pill.active {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.32);
  font-weight: 600;
  transform: translateY(-1px);
}

/* 苹果蓝色圆形发送按钮 */
.deepseek-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0071e3;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.32);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.deepseek-send-btn:hover {
  background: #0077ed;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.45);
}

.deepseek-send-btn:active {
  background: #005bb5;
  transform: scale(0.96);
}

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

/* 苹果风格快捷搜索提示词标签组 */
.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 820px;
  width: 100%;
  z-index: 1;
  position: relative;
  transition: opacity 0.25s ease;
}

.quick-tag-label {
  font-size: 0.78rem;
  color: #86868b;
  font-weight: 500;
}

.quick-prompt-pill {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #48484a;
  padding: 5px 13px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.quick-prompt-pill:hover {
  background: #ffffff;
  border-color: #0071e3;
  color: #0071e3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.12);
}

.deepseek-workspace-container.has-results .search-quick-tags,
.deepseek-workspace-container:has(#searchResultsStream:not([style*="display: none"])) .search-quick-tags {
  display: none;
}

/* 纯白极简结果容器与卡片 - 苹果典雅双卡片结构 */
.clean-result-stream {
  width: 100%;
  max-width: 820px;
  margin-top: 20px;
  margin-bottom: 60px;
  box-sizing: border-box;
  animation: fadeIn 0.25s ease-out;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ========================================================================= */
/* 板块一：知识库客观数据卡片 (Pure Objective Retrieval Card) */
/* ========================================================================= */
.kb-results-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 22px 26px;
  box-shadow:
    0 2px 8px -2px rgba(15, 23, 42, 0.04),
    0 12px 32px -4px rgba(15, 23, 42, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.kb-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.kb-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

.kb-header-title i {
  color: #0071e3;
  font-size: 1rem;
}

.kb-hit-badge {
  font-size: 0.74rem;
  font-weight: 600;
  color: #0071e3;
  background: #e8f2fa;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 113, 227, 0.15);
}

.kb-header-hint {
  font-size: 0.76rem;
  color: #86868b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kb-header-hint i {
  color: #34c759;
}

.kb-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.kb-record-item {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 14px 18px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.kb-record-item:hover {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.08);
  transform: translateY(-1px);
}

.kb-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.kb-item-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kb-item-index {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0071e3;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kb-item-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

.kb-item-category {
  font-size: 0.73rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.kb-item-score {
  font-size: 0.73rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.kb-item-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.kb-pill {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.kb-pill-hosp {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.kb-pill-floor {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-weight: 600;
}

.kb-pill-price {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
  font-weight: 600;
}

.kb-item-body {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.65;
  word-break: break-word;
}

.kb-sub-heading {
  font-weight: 700;
  color: #0f172a;
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kb-sub-heading i {
  color: #0071e3;
  font-size: 0.82rem;
}

.kb-exam-subitem {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0071e3;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 6px 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #1e293b;
}

.kb-bullet-line {
  color: #475569;
  font-size: 0.84rem;
  padding-left: 6px;
  margin: 3px 0;
}

.kb-body-line {
  color: #334155;
  font-size: 0.85rem;
  margin: 3px 0;
}

.kb-empty-placeholder {
  padding: 24px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.84rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.kb-empty-placeholder i {
  font-size: 1.5rem;
  color: #cbd5e1;
}

/* ========================================================================= */
/* 板块二：AI 推荐回复话术卡片 (AI Recommended Reply Script) */
/* ========================================================================= */
.clean-reply-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px 28px;
  box-shadow:
    0 2px 8px -2px rgba(15, 23, 42, 0.04),
    0 12px 32px -4px rgba(15, 23, 42, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.reply-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reply-header-left i {
  color: #0071e3;
  font-size: 1.05rem;
}

.reply-card-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

.clean-reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.clean-reply-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clean-style-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0071e3;
  background: #e8f2fa;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 113, 227, 0.15);
}

.clean-cat-tag {
  font-size: 0.75rem;
  color: #6e6e73;
  background: #f5f5f7;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.clean-reply-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clean-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #1d1d1f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.clean-btn:hover {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.2);
}

.clean-btn-copy {
  color: #0071e3;
  border-color: rgba(0, 113, 227, 0.25);
  background: #f0f7fc;
}

.clean-btn-copy:hover {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
}

.clean-btn-reset {
  color: #6e6e73;
  border-color: rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.clean-btn-reset:hover {
  background: #f5f5f7;
  color: #1d1d1f;
}

.clean-reply-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1d1d1f;
  white-space: pre-wrap;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  padding: 2px 0;
}

.clean-strategy-bar {
  font-size: 0.82rem;
  color: #48484a;
  background: #f5f7fa;
  padding: 12px 16px;
  border-radius: 10px;
  line-height: 1.55;
  border-left: 3px solid #0071e3;
}

/* 临床依据折叠抽屉 - 默认折叠，按需展开，不产生视觉堆叠 */
.clean-evidence-drawer {
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
}

.clean-drawer-summary {
  font-size: 0.78rem;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.clean-drawer-summary::-webkit-details-marker {
  display: none;
}

.clean-drawer-summary:hover {
  color: #111827;
}

.drawer-icon {
  transition: transform 0.2s ease;
  margin-right: 6px;
  display: inline-block;
  font-size: 0.72rem;
}

.clean-evidence-drawer[open] .drawer-icon {
  transform: rotate(90deg);
}

.clean-drawer-body {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clean-kb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clean-kb-item {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 10px 14px;
}

.clean-kb-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clean-score {
  font-size: 0.72rem;
  color: #2563eb;
  font-weight: 500;
}

.clean-kb-snippet {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.5;
}

.clean-redline-box {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: #991b1b;
  line-height: 1.5;
}


.redline-bar-header {
  margin-bottom: 6px;
}

.redline-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 6px;
}

.redline-inline-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.redline-item {
  font-size: 0.74rem;
  color: #7c2d12;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-main-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px 20px;
  gap: 16px;
  border-right: 1px solid var(--border);
}

.search-hero-box {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: all 0.2s;
}

.search-input-wrapper:focus-within {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.search-icon {
  color: var(--text-muted);
  font-size: 1rem;
  margin-right: 10px;
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  color: var(--text-title);
  outline: none;
  font-family: inherit;
}

.search-action-btn {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s;
}

.search-action-btn:hover {
  background-color: var(--primary-hover);
}

.search-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-group select {
  padding: 4px 10px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-title);
  outline: none;
  cursor: pointer;
}

.quick-tags-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-container {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  background-color: #ffffff;
  border: 1px solid var(--border-dark);
  color: var(--text-body);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* 结果流卡片 */
.search-results-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s;
}

.result-card:hover {
  box-shadow: var(--shadow-md);
}

.result-card.golden-result {
  border-left: 4px solid var(--gold);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
}

.result-card.kb-result {
  border-left: 4px solid var(--primary);
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-tag {
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-tag.gold { color: var(--gold); }
.card-tag.blue { color: var(--primary); }

.match-category {
  background-color: var(--gold-bg);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.match-count {
  font-size: 0.72rem;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.result-card-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1e293b;
  background-color: #f8fafc;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-dark);
}

.result-card-strategy {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.result-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.cross-link-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cross-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.cross-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.cross-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

/* 知识命中卡片行 */
.kb-hits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kb-hit-row {
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.kb-hit-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 4px;
}

.kb-hit-snippet {
  font-size: 0.78rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 6px;
}

.kb-hit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.src-tag {
  background-color: #e2e8f0;
  padding: 1px 6px;
  border-radius: 3px;
}

.cross-btn-text {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cross-btn-text:hover {
  text-decoration: underline;
}

/* 右侧栏：Human-Writing 实验室 */
.search-side-column {
  width: 440px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 14px;
  background-color: #ffffff;
  overflow-y: auto;
  flex-shrink: 0;
}

.side-tool-card {
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 6px;
}

.side-title i {
  color: var(--primary);
}

.side-badge {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.side-badge.green { background-color: var(--success-light); color: var(--success); }
.side-badge.red { background-color: var(--danger-light); color: var(--danger); }

.side-intro {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.lab-input-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lab-input-area textarea {
  width: 100%;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  font-family: inherit;
}

.lab-input-area textarea:focus {
  border-color: var(--primary);
}

.btn-block {
  width: 100%;
}

.lab-output-area {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.output-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #166534;
}

.output-box {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #15803d;
  white-space: pre-wrap;
  word-break: break-word;
}

.polish-style-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.style-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.style-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.btn-style-pill {
  background-color: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-body);
  padding: 5px 4px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-style-pill:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-style-pill.active {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.25);
}

.warning-card {
  border-left: 4px solid var(--warning);
}

.redline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.redline-list li {
  font-size: 0.76rem;
  color: #78350f;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.redline-list li i {
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 2px;
}

/* ========================================================================= */
/* 板块二与三：全屏无缝嵌入视图 */
/* ========================================================================= */
.fullscreen-hub-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

.iframe-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.hub-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ========================================================================= */
/* 跨板块协同中枢全景浮层 Modal */
/* ========================================================================= */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 860px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: modalScale 0.25s ease-out;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-box i {
  font-size: 1.6rem;
}

.modal-title-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
}

.modal-title-box p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--text-title);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.linkage-flow-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  gap: 12px;
}

.flow-step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ffffff;
  flex-shrink: 0;
}

.step-icon.kb { background-color: #0284c7; }
.step-icon.rule { background-color: #10b981; }
.step-icon.train { background-color: #8b5cf6; }

.step-info h4 {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 2px;
}

.step-info p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.flow-arrow {
  color: #94a3b8;
  font-size: 0.9rem;
}

.linkage-status-box {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-pill {
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-pill .val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
}

.stat-pill .lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sync-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sync-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sync-log-window {
  background-color: #0f172a;
  color: #38bdf8;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.78rem;
  line-height: 1.5;
}

/* 4级 RBAC 说明表格 */
.rbac-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rbac-section h4 {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 6px;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.simple-table th, .simple-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.simple-table th {
  background-color: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
}

.role-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

.role-chip.admin { background-color: #e0f2fe; color: #0284c7; }
.role-chip.manager { background-color: #fef3c7; color: #b45309; }
.role-chip.trainee { background-color: #d1fae5; color: #047857; }

/* 通用按钮 */
.btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: var(--text-title);
  border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-body);
}

.btn-outline:hover {
  background-color: #f8fafc;
  border-color: var(--border-dark);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.76rem;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.76rem;
  cursor: pointer;
  font-weight: 600;
}

.btn-text:hover {
  text-decoration: underline;
}

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ========================================================================= */
/* 用户身份切换下拉菜单 (Account Switcher Dropdown) */
/* ========================================================================= */
.user-box-container {
  position: relative;
}

.user-box-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.user-box-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.caret-icon {
  font-size: 0.65rem;
  color: #94a3b8;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease-out;
}

.menu-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background-color: #f8fafc;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.menu-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.menu-items {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s;
}

.menu-item:hover {
  background-color: #f1f5f9;
}

.item-icon, .item-info-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.item-icon.admin { background-color: #e0f2fe; color: #0284c7; }
.item-icon.manager { background-color: #fef3c7; color: #b45309; }
.item-info-badge.trainee { background-color: #d1fae5; color: #047857; }

.item-info {
  display: flex;
  flex-direction: column;
}

.item-info strong {
  font-size: 0.82rem;
  color: var(--text-title);
}

.item-info small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.menu-footer {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background-color: #f8fafc;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.btn-logout-text {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  font-weight: 600;
}

/* ========================================================================= */
/* 对练二级选项卡 (Simulation vs Card Library) */
/* ========================================================================= */
.sub-segmented-control {
  display: flex;
  background-color: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  margin-left: 14px;
}

.sub-tab-btn {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0369a1;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.sub-tab-btn:hover {
  color: #0284c7;
  background-color: rgba(255, 255, 255, 0.6);
}

.sub-tab-btn.active {
  background-color: #ffffff;
  color: #0284c7;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15);
}

/* ========================================================================= */
/* 自动抓取卡片库工作台 (Card Library Workbench - Apple Minimalist) */
/* ========================================================================= */
.cards-workbench-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
}

.cards-header-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px 24px;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.cards-stat-pill {
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(186, 215, 240, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cards-stat-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 113, 227, 0.35);
}

.stat-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.3px;
}

.stat-num small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}

.stat-lbl {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cards-filter-toolbar {
  padding: 12px 24px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-inputs {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.search-box-mini {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  width: 340px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search-box-mini:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.search-box-mini i {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-right: 10px;
}

.search-box-mini input {
  border: none;
  background: transparent;
  font-size: 0.86rem;
  color: var(--text-title);
  font-weight: 500;
  outline: none;
  width: 100%;
}

.dropdown-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-filters label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dropdown-filters select {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--text-title);
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.dropdown-filters select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.cards-grid-stream {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  align-content: flex-start;
}

.card-item-box {
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(186, 215, 240, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-item-box:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.35);
}

.card-top-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 8px;
}

.tag-badge.utterance { background-color: #e8f2fa; color: #0071e3; border: 1px solid rgba(0, 113, 227, 0.15); }
.tag-badge.qa { background-color: #eafbf0; color: #047857; border: 1px solid rgba(52, 199, 89, 0.2); }
.tag-badge.quote { background-color: #fff8eb; color: #b45309; border: 1px solid rgba(255, 149, 0, 0.2); }
.tag-badge.thought { background-color: #f5f3ff; color: #6d28d9; border: 1px solid rgba(139, 92, 246, 0.2); }
.tag-badge.knowledge { background-color: #f0f7fc; color: #0369a1; border: 1px solid rgba(2, 132, 199, 0.2); }

.pool-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background-color: #f1f5f9;
  color: #334155;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.card-content-text {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-title);
  font-weight: 450;
  padding: 2px 0;
  word-break: break-word;
}

.card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-actions-bar {
  display: flex;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.cards-loading-hint {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* =========================================================================
   全真沉浸式对练实战舱 (Native Simulation Chamber) 样式
   ========================================================================= */
.sim-chamber-container {
  display: flex;
  gap: 14px;
  height: calc(100vh - 120px);
  padding: 14px 18px;
  background-color: #f0f6fa;
  box-sizing: border-box;
}

.sim-setup-column {
  width: 320px;
  flex-shrink: 0;
  overflow-y: auto;
}

.sim-chat-column {
  flex: 1;
  min-width: 450px;
  display: flex;
  flex-direction: column;
}

.sim-eval-column {
  width: 350px;
  flex-shrink: 0;
  overflow-y: auto;
}

.sim-panel-card, .sim-eval-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(186, 215, 240, 0.2);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sim-panel-header, .eval-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.sim-panel-title, .eval-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-status-ready {
  font-size: 0.72rem;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.sim-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.sim-pill-group {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 6px;
  gap: 4px;
}

.sim-pill-btn {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.sim-pill-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sim-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--text-title);
  background-color: #f8fafc;
  outline: none;
}

.sim-select:focus {
  border-color: var(--primary);
  background-color: #ffffff;
}

.sim-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sim-rule-pack-badge {
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pack-badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #15803d;
}

.pack-status-tag {
  font-size: 0.68rem;
  background: #dcfce7;
  color: #166534;
  padding: 1px 6px;
  border-radius: 3px;
}

.pack-badge-desc {
  font-size: 0.72rem;
  color: #166534;
  line-height: 1.4;
}

.sim-actions-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.sim-btn-start {
  padding: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.sim-btn-end {
  padding: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  background: #e11d48;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* 实战演练对话舱 */
.sim-chat-window {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(186, 215, 240, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.sim-chat-header {
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.active-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.scenario-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-title);
}

.chat-header-progress {
  display: flex;
  gap: 6px;
}

.progress-step-pill {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e2e8f0;
  color: var(--text-muted);
  font-weight: 600;
}

.progress-step-pill.active {
  background: #0284c7;
  color: #ffffff;
}

/* 消息流 */
.sim-messages-stream {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #fdfdfd;
}

.sim-empty-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  text-align: center;
  max-width: 420px;
  color: var(--text-muted);
}

.splash-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
}

.sim-empty-splash h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 6px;
}

.sim-empty-splash p {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.splash-tips {
  display: flex;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* 气泡行 */
.sim-bubble-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sim-bubble-row.customer {
  flex-direction: row;
}

.sim-bubble-row.staff {
  flex-direction: row-reverse;
}

.sim-avatar-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sim-bubble-row.customer .sim-avatar-box {
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.sim-bubble-row.staff .sim-avatar-box {
  background: #e0f2fe;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.sim-bubble-body {
  max-width: 76%;
  display: flex;
  flex-direction: column;
}

.sim-bubble-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-bubble-row.staff .sim-bubble-meta {
  justify-content: flex-end;
}

.sim-bubble-card {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: break-word;
}

.sim-bubble-row.customer .sim-bubble-card {
  background-color: #f2f4f7;
  color: #1d1d1f;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.sim-bubble-row.staff .sim-bubble-card {
  background-color: #0071e3;
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

/* 输入区 */
.sim-composer-area {
  border-top: 1px solid var(--border);
  background: #f8fafc;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.composer-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-title);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.tool-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.char-counter {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.composer-input-row {
  display: flex;
  gap: 10px;
}

.composer-input-row textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.86rem;
  font-family: inherit;
  resize: none;
  outline: none;
  background: #ffffff;
}

.composer-input-row textarea:focus {
  border-color: var(--primary);
}

.sim-send-btn {
  padding: 0 18px;
  font-weight: 600;
  font-size: 0.86rem;
}

/* 右栏考评面板 */
.eval-score-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 4px;
}

.eval-waiting-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  text-align: center;
  color: var(--text-muted);
}

.eval-waiting-state i {
  font-size: 32px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.eval-waiting-state p {
  font-size: 0.8rem;
  line-height: 1.5;
}

.eval-result-zone {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eval-score-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.score-number-box {
  display: flex;
  align-items: baseline;
  color: #059669;
}

.score-num {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.score-unit {
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 2px;
}

.score-meta strong {
  display: block;
  font-size: 0.88rem;
  color: #065f46;
  margin-bottom: 2px;
}

.score-meta small {
  font-size: 0.72rem;
  color: #047857;
  line-height: 1.3;
  display: block;
}

.eval-steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eval-step-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
}

.step-code {
  font-weight: 700;
  color: #0284c7;
  margin-right: 6px;
}

.step-goal {
  color: var(--text-title);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

.step-status-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

.step-status-tag.met { background: #dcfce7; color: #166534; }
.step-status-tag.partially_met { background: #fef3c7; color: #92400e; }
.step-status-tag.not_met { background: #fee2e2; color: #991b1b; }
.step-status-tag.insufficient_evidence { background: #f1f5f9; color: #64748b; }

.eval-compliance-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.comp-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 6px;
}

.comp-checks {
  display: flex;
  gap: 6px;
}

.comp-tag.safe {
  font-size: 0.68rem;
  background: #ecfdf5;
  color: #059669;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.eval-feedback-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.74rem;
  line-height: 1.45;
}

.fb-section strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-title);
  margin-bottom: 3px;
}

.fb-section p {
  color: var(--text-body);
  margin: 0;
}

/* 独立纯净窗口模式 (Standalone Popout View) */
body.standalone-window .app-header {
  display: none !important;
}

body.standalone-window .app-main {
  height: 100vh !important;
  max-height: 100vh !important;
}
body.standalone-window .hub-section {
  height: 100vh !important;
}

/* ========================================================================== */
/* 系统模型与密钥配置工作台 (Model & Secret Workbench) */
/* ========================================================================== */
.config-modal-card {
  max-width: 860px;
  width: 90%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.config-modal-card .modal-header {
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.config-tabs-nav {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  gap: 8px;
}

.config-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.config-tab-btn:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.5);
}

.config-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #ffffff;
}

.config-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.config-tab-content {
  display: none;
}

.config-tab-content.active {
  display: block;
}

.config-section-intro {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #1e3a8a;
  margin-bottom: 18px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-control {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.84rem;
  background: #f8fafc;
  color: var(--text-title);
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.input-with-eye {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-eye input {
  width: 100%;
  padding-right: 40px;
}

.btn-toggle-eye {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.9rem;
}

.btn-toggle-eye:hover {
  color: var(--primary);
}

.field-tip {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.test-action-bar {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.test-result-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeIn 0.2s ease-in-out;
}

.test-result-pill.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.test-result-pill.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.config-modal-footer {
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.config-save-status {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================================================
   实战对练考场 · 实时副驾中枢与知识/规则挂载看板 (Live Assistant & Mount Zone)
   ========================================================================= */
.sim-live-assistant-zone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.25s ease-in-out;
}

/* 顶部规则包与模型底座挂载卡 */
.assistant-mount-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mount-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #065f46;
}

.mount-badge-live {
  font-size: 0.68rem;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px;
  border-radius: 4px;
}

.mount-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mount-item small {
  font-size: 0.66rem;
  color: #64748b;
}

.mount-item strong {
  font-size: 0.75rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 智能话术副驾卡片 */
.assistant-copilot-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.assistant-copilot-card.highlight-card {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
  transform: translateY(-1px);
}

.copilot-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-title);
}

.copilot-status-tag {
  font-size: 0.66rem;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.copilot-strategies-tip {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: -2px;
  margin-bottom: 2px;
}

.copilot-strategies-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copilot-strategy-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.copilot-strategy-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.copilot-strategy-card.strategy-empathy {
  border-left: 3.5px solid #ec4899;
  background: linear-gradient(180deg, #fffbfd 0%, #ffffff 100%);
}

.copilot-strategy-card.strategy-clinical {
  border-left: 3.5px solid #0284c7;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.copilot-strategy-card.strategy-closing {
  border-left: 3.5px solid #10b981;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.strat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.strat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.strategy-empathy .strat-badge {
  background: #fce7f3;
  color: #be185d;
}

.strategy-clinical .strat-badge {
  background: #e0f2fe;
  color: #0369a1;
}

.strategy-closing .strat-badge {
  background: #d1fae5;
  color: #047857;
}

.strat-rationale {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.strat-reply-text {
  font-size: 0.8rem;
  color: #1e293b;
  line-height: 1.5;
  background: rgba(248, 250, 252, 0.75);
  padding: 7px 9px;
  border-radius: 4px;
  border: 1px dashed rgba(226, 232, 240, 0.9);
  white-space: pre-wrap;
}

.strat-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-adopt-strat {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.strategy-empathy .btn-adopt-strat:hover {
  background: #ec4899;
  border-color: #ec4899;
  color: #ffffff;
}

.strategy-clinical .btn-adopt-strat:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.strategy-closing .btn-adopt-strat:hover {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.copilot-actions-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.btn-refresh-copilot-full {
  width: 100%;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-refresh-copilot-full:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}

/* 结案大通栏卡片 */
.sim-end-session-card {
  margin: 16px 0;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.sim-end-session-card .end-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sim-end-session-card .end-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-end-session-card .end-info h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0;
}

.sim-end-session-card .end-info p {
  font-size: 0.8rem;
  color: #334155;
  margin: 0;
}

.sim-end-session-card .end-tips {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

.sim-end-session-card .end-actions {
  margin-top: 6px;
}

/* 知识库命中切片卡片 */
.assistant-hits-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hits-card-head {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hits-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kb-hit-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hit-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hit-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.hit-score {
  font-size: 0.65rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 1px 5px;
  border-radius: 3px;
}

.hit-snippet {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 气泡标签与徽章 */
.sim-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.sim-tag.tag-model {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.sim-tag.tag-rule {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.sim-tag.tag-emotion {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.sim-tag.tag-staff {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.sim-char-badge {
  margin-left: auto;
}

.sim-bubble-footer-meta {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.68rem;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sim-bubble-footer-meta span strong {
  color: #0f172a;
}

.progress-step-pill.done {
  background: #dcfce7;
  color: #15803d;
}

/* 全局 Toast */
.sim-global-toast {
  position: fixed;
  top: 75px;
  right: 25px;
  z-index: 9999;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-global-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =========================================================================
   实战对练考场 · 七维量化能力诊断与全景质检复盘大弹窗 (Deep Evaluation Modal & 7D)
   ========================================================================= */

/* 右栏 7 维简览进度条 */
.eval-dimensions-brief-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dim-brief-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-title);
}

.dim-brief-header small {
  font-size: 0.7rem;
  color: #0284c7;
  font-weight: 600;
}

.dim-bars-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dim-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

.dim-bar-name {
  width: 110px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.dim-bar-track {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #0284c7;
  transition: width 0.4s ease;
}

.dim-bar-fill.high { background: #10b981; }
.dim-bar-fill.mid { background: #f59e0b; }
.dim-bar-fill.low { background: #ef4444; }

.dim-bar-val {
  width: 45px;
  text-align: right;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.68rem;
}

.btn-eval-detail-trigger {
  margin-top: 4px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  transition: opacity 0.2s;
}

.btn-eval-detail-trigger:hover {
  opacity: 0.92;
}

/* 深度复盘报告大弹窗 (Modal Card) */
.eval-detail-modal-card {
  width: 960px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

.eval-modal-body {
  padding: 18px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
}

/* 头部综合诊断条 */
.eval-modal-hero {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-score-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid #0284c7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f0f9ff;
}

.hero-score-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0284c7;
  line-height: 1;
}

.hero-score-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
}

.hero-verdict-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verdict-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.verdict-badge {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.verdict-pass-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(4, 120, 87, 0.2);
}

.verdict-desc {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.5;
}

.hero-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-left: 1px dashed var(--border);
  padding-left: 20px;
  flex-shrink: 0;
  width: 220px;
}

.kpi-mini-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kpi-mini-card small {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.kpi-mini-card strong {
  font-size: 0.86rem;
  color: #0f172a;
}

/* 诊断 Tab 切换 */
.eval-modal-tabs {
  display: flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
}

.eval-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.eval-tab-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tab 1: 七维量化能力卡片流 */
.dim-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dim-detail-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.ddc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #f1f5f9;
  padding-bottom: 8px;
}

.ddc-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ddc-score-tag {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f0f9ff;
  color: #0284c7;
}

.ddc-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ddc-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ddc-block-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.ddc-block-body {
  font-size: 0.78rem;
  color: #1e293b;
  line-height: 1.5;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 4px;
}

.ddc-golden-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #d97706;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.76rem;
  color: #92400e;
  line-height: 1.5;
}

/* Tab 2: 对话逐轮质检与改写 */
.dialogue-turns-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.turn-review-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.trc-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0284c7;
}

.trc-dialogue-bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trc-bubble {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.trc-bubble.parent {
  background: #f1f5f9;
  color: #0f172a;
  border-left: 3px solid #64748b;
}

.trc-bubble.student {
  background: #eff6ff;
  color: #1e40af;
  border-left: 3px solid #2563eb;
}

.trc-critique-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.76rem;
  color: #991b1b;
  line-height: 1.5;
}

.trc-gold-rewrite {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 3px solid #16a34a;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #166534;
  line-height: 1.55;
}

/* Tab 3: SOP 流程表格 */
.sop-steps-table-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.sop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.sop-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.sop-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  line-height: 1.45;
}

.sop-table tr:last-child td {
  border-bottom: none;
}

/* Tab 4: 合规审计面板 */
.compliance-audit-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audit-summary-alert {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #065f46;
}

.audit-summary-alert i {
  font-size: 1.3rem;
  margin-top: 2px;
}

.audit-summary-alert strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.audit-summary-alert p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #047857;
}

.compliance-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.comp-rule-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crc-head {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 6px;
}

.crc-body {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.5;
  flex: 1;
}

.crc-foot {
  display: flex;
  justify-content: flex-end;
}

.badge-safe {
  font-size: 0.68rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.eval-modal-footer {
  padding: 12px 24px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.report-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 抽卡盲盒病历档案卡样式 */
.sim-gacha-card-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.12);
  animation: fadeInDown 0.3s ease-out;
}

.sim-gacha-card-banner .sgc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sim-gacha-card-banner .sgc-header span {
  font-weight: 700;
  font-size: 0.88rem;
  color: #92400e;
}

.sim-gacha-card-banner .sgc-badge {
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.sim-gacha-card-banner .sgc-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #78350f;
  margin-bottom: 6px;
}

.sim-gacha-card-banner .sgc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: #451a03;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.65);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px dashed #fcd34d;
}

.sim-gacha-card-banner .sgc-item strong {
  color: #b45309;
}

.sim-gacha-card-banner .sgc-footer {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #78350f;
  display: flex;
  align-items: center;
  gap: 5px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================================= */
/* 板块四：可观测数据看板与历史记录 (Analytics & History) 核心样式 */
/* ========================================================================= */

.analytics-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.analytics-filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
}

.analytics-select-user {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.analytics-select-user:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.analytics-rbac-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #bae6fd;
}

.analytics-rbac-tag.locked {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* 板块四专属：全屏、自适应铺满、纯净浅蓝医疗打底 */
#hub-analytics .fullscreen-hub-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f0f6fa;
  overflow-y: auto;
  overflow-x: hidden;
}

#hub-analytics .hub-toolbar {
  height: 42px;
  padding: 0 24px;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.analytics-subview-container {
  padding: 24px 32px 48px 32px;
  max-width: 100%;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  animation: fadeInDown 0.25s ease-out;
}

/* 1. 核心 KPI 统计卡片大盘 - 苹果 Widget 风格微浮雕 */
.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.kpi-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(186, 215, 240, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.kpi-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: var(--shadow-hover);
}

.kpi-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kpi-icon-box.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.kpi-icon-box.green {
  background: #dcfce7;
  color: #16a34a;
}

.kpi-icon-box.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.kpi-icon-box.amber {
  background: #fef3c7;
  color: #d97706;
}

.kpi-metric-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kpi-metric-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.kpi-metric-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-top: 4px;
}

.kpi-metric-foot {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. 中部核心分析分栏 - 全屏双列自适应 */
.analytics-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  margin-bottom: 24px;
}

.analytics-panel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.analytics-panel-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title-group h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

/* 七维能力列表 */
.dim-analysis-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dim-analysis-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dim-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.dim-item-title {
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dim-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dim-score-badge {
  font-weight: 700;
  font-size: 0.78rem;
  color: #0f172a;
}

.dim-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

.dim-status-pill.strength {
  background: #dcfce7;
  color: #15803d;
}

.dim-status-pill.pass {
  background: #e0f2fe;
  color: #0369a1;
}

.dim-status-pill.weak {
  background: #fef3c7;
  color: #b45309;
}

.dim-status-pill.critical {
  background: #fee2e2;
  color: #b91c1c;
}

.dim-analysis-track {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.dim-analysis-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.dim-analysis-fill.strength {
  background: linear-gradient(90deg, #10b981, #059669);
}

.dim-analysis-fill.pass {
  background: linear-gradient(90deg, #0284c7, #0369a1);
}

.dim-analysis-fill.weak {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.dim-analysis-fill.critical {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* 弱势诊断预警区 - 统一清爽暖色警示条 */
.weakness-alert-box {
  margin-top: 20px;
  background: #fffbeb;
  border: 1px solid #fef08a;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.05);
}

.weakness-alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.weakness-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.weakness-pill {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.weakness-alert-desc {
  font-size: 0.75rem;
  color: #78350f;
  line-height: 1.45;
  margin: 0;
}

/* 针对性儿科提升建议流 */
.targeted-advice-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.advice-card-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  transition: all 0.15s ease;
}

.advice-card-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.advice-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.advice-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.advice-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

.advice-badge.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.advice-badge.warning {
  background: #fef3c7;
  color: #b45309;
}

.advice-badge.info {
  background: #e0f2fe;
  color: #0284c7;
}

.advice-card-body {
  font-size: 0.76rem;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

.advice-card-gold {
  margin-top: 6px;
  padding: 6px 10px;
  background: #eff6ff;
  border-left: 3px solid #0284c7;
  border-radius: 0 4px 4px 0;
  font-size: 0.73rem;
  color: #1e3a8a;
}

/* 走势小面板 */
.score-trend-subpanel {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin-top: auto;
}

.trend-subpanel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 12px;
}

.score-trend-bars {
  display: flex;
  align-items: flex-end;
  height: 90px;
  gap: 8px;
  padding: 0 4px 6px 4px;
  border-bottom: 1px dashed #e2e8f0;
}

.trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  min-width: 0;
}

.trend-bar {
  width: 100%;
  max-width: 28px;
  background: #0284c7;
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height 0.3s ease;
  cursor: pointer;
}

.trend-bar:hover {
  filter: brightness(1.1);
}

.trend-bar.high {
  background: #10b981;
}

.trend-bar.mid {
  background: #0284c7;
}

.trend-bar.low {
  background: #ef4444;
}

.trend-bar-val {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.trend-col-lbl {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.score-dist-badges {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 10px;
  gap: 8px;
}

.dist-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dist-badge.high {
  background: #ecfdf5;
  color: #065f46;
}

.dist-badge.mid {
  background: #eff6ff;
  color: #1e40af;
}

.dist-badge.low {
  background: #fef2f2;
  color: #991b1b;
}

/* 3. 历史记录表格通用样式 - 全屏铺满 & 统一医疗淡蓝风 */
.history-table-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  width: 100%;
  box-sizing: border-box;
}

.history-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.table-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-header-left h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
}

.record-count-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

.table-filter-select, .table-search-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.table-filter-select:focus, .table-search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.table-search-input {
  width: 280px;
}

.analytics-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: #334155;
}

.analytics-data-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.analytics-data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.analytics-data-table tbody tr:hover {
  background: #f8fbfe;
}

.btn-xs {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.score-cell-badge {
  font-weight: 800;
  font-size: 0.82rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.score-cell-badge.high {
  background: #dcfce7;
  color: #15803d;
}

.score-cell-badge.mid {
  background: #e0f2fe;
  color: #0369a1;
}

.score-cell-badge.low {
  background: #fee2e2;
  color: #b91c1c;
}

.user-cell-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #0f172a;
}

.role-mini-tag {
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}

.role-mini-tag.trainee {
  background: #e0f2fe;
  color: #0284c7;
}

.role-mini-tag.manager {
  background: #fef3c7;
  color: #b45309;
}

.role-mini-tag.admin {
  background: #f3e8ff;
  color: #7e22ce;
}

/* ========================================================================= */
/* 板块五：【核心大模型与多智能体统一配置中枢 (Full-Page Model Config Hub)】 */
/* ========================================================================= */
#hub-config {
  width: 100%;
  height: 100%;
}

#hub-config .config-page-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f0f6fa;
  overflow: hidden;
}

#hub-config .config-page-header {
  height: 56px;
  padding: 0 32px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.config-page-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.config-page-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.config-page-title-text h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
}

.config-page-title-text p {
  margin: 2px 0 0 0;
  font-size: 0.76rem;
  color: #64748b;
}

.config-page-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.config-sync-badge {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 核心两栏全屏工作区布局 */
.config-page-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  padding: 24px 32px 32px 32px;
  gap: 24px;
  box-sizing: border-box;
}

/* 左侧分类侧边栏 */
.config-sidebar-nav {
  width: 290px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(186, 215, 240, 0.25);
  flex-shrink: 0;
}

.config-nav-header {
  font-size: 0.74rem;
  font-weight: 700;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
}

.config-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1d1d1f;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  width: 100%;
}

.config-nav-item:hover {
  background: #f5f5f7;
  color: #0071e3;
}

.config-nav-item.active {
  background: #e8f2fa;
  border-color: rgba(0, 113, 227, 0.2);
  color: #0071e3;
  font-weight: 700;
}

.config-nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: #f1f5f9;
  color: #475569;
}

.config-nav-item.active .config-nav-icon {
  background: #0071e3;
  color: #ffffff;
}

/* 右侧配置主面板 */
.config-main-stage {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(186, 215, 240, 0.25);
  overflow-y: auto;
  position: relative;
}

.config-stage-pane {
  display: none;
  padding: 28px 36px 80px 36px;
  animation: fadeInDown 0.25s ease-out;
}

.config-stage-pane.active {
  display: block;
}

.config-pane-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.config-pane-banner h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.config-pane-banner p {
  margin: 0;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.5;
}

.config-form-grid-wide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  margin-bottom: 24px;
}

.config-form-group-full {
  grid-column: span 2;
}

.config-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.config-field-label i {
  color: #0284c7;
  margin-right: 4px;
}

.config-input-wide {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.config-input-wide:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.config-field-tip {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 5px;
  line-height: 1.4;
}

/* 底部操作固定条 */
.config-bottom-action-bar {
  padding: 14px 32px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  z-index: 10;
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.03);
}



