/* =============================================
   CSS 变量 - 颜色系统
   ============================================= */
:root {
  --bg-primary:     #0d1117;
  --bg-card:        #161b22;
  --bg-elevated:    #1c2333;

  --slate-700:      #334155;
  --slate-800:      #1e293b;
  --slate-900:      #0f172a;

  --text-title:     #f1f5f9;
  --text-body:      #94a3b8;
  --text-muted:     #64748b;

  --accent-emerald: #10b981;
  --accent-purple:  #8b5cf6;

  --sidebar-width:  260px;
  --topbar-height:  64px;

  --radius-card:    12px;
  --radius-btn:     8px;
  --radius-tag:     6px;

  --shadow-emerald: 0 0 20px rgba(16, 185, 129, 0.15);
  --shadow-modal:   0 25px 60px rgba(0, 0, 0, 0.6);
}

/* =============================================
   全局重置
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================
   滚动条
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* =============================================
   左侧导航栏
   ============================================= */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(51, 65, 85, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 50;
}

/* Logo */
.sidebar-logo {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  flex-shrink: 0;
}

.logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-title);
  letter-spacing: -0.01em;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: var(--bg-elevated);
  color: var(--text-title);
}
.nav-item:hover .nav-icon { color: var(--text-title); }

.nav-item.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.2);
}
.nav-item.active .nav-icon { color: var(--accent-emerald); }

.nav-icon {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.nav-label { flex: 1; }

.nav-arrow { display: none; color: var(--accent-emerald); }
.nav-item.active .nav-arrow { display: flex; align-items: center; }

/* =============================================
   侧边栏底部 - 用户区域
   ============================================= */
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(51, 65, 85, 0.3);
  flex-shrink: 0;
}

/* 通用用户块 */
.user-block {
  border-radius: var(--radius-btn);
  overflow: hidden;
}

/* 未登录 */
.user-block--guest .user-block__login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  border: 1px dashed rgba(51, 65, 85, 0.6);
  background: rgba(28, 35, 51, 0.5);
  color: var(--text-body);
  font-size: 14px;
  transition: all 0.2s ease;
}

.user-block--guest .user-block__login-btn:hover {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.06);
  color: var(--text-title);
}

.user-block--guest .user-block__login-btn:hover .user-block__avatar--guest {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

/* 已登录 */
.user-block--logged .user-block__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  background: rgba(28, 35, 51, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.4);
}

/* 头像 */
.user-block__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.user-block__avatar--guest {
  background: rgba(51, 65, 85, 0.5);
  color: var(--text-muted);
}

.user-block__avatar--logged {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #fff;
  border: 2px solid rgba(16, 185, 129, 0.3);
}

/* 文字信息 */
.user-block__info { flex: 1; min-width: 0; }

.user-block__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.user-block__sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 箭头 */
.user-block__arrow {
  display: flex; align-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* 退出按钮 */
.user-block__logout {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.user-block__logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

/* =============================================
   顶部 Header
   ============================================= */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
}

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

/* 顶部未登录按钮 */
.topbar-login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(51, 65, 85, 0.5);
  background: transparent;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.topbar-login-btn:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.06);
}

/* 顶部用户头像 - 通用 */
.topbar-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
}

.topbar-user-avatar--guest {
  background: rgba(51, 65, 85, 0.5);
  color: var(--text-muted);
}

.topbar-user-avatar--logged {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #fff;
  border: 2px solid rgba(16, 185, 129, 0.3);
  font-size: 12px;
}

/* 顶部已登录用户 */
.topbar-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(51, 65, 85, 0.4);
  background: rgba(28, 35, 51, 0.5);
}

.topbar-user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-title);
  line-height: 1.3;
}

.topbar-user-phone {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* =============================================
   主内容区域
   ============================================= */
.main-content {
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
  min-height: 100vh;
}

.page-container { padding: 24px; }

.page-header { margin-bottom: 24px; }

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.02em;
}

.page-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* =============================================
   登录弹窗 - 遮罩
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* 弹窗主体 */
.modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 16px;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-modal);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal-box {
  transform: translateY(0) scale(1);
}

/* 关闭按钮 */
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-elevated);
  color: var(--text-title);
}

/* 弹窗头部 */
.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* =============================================
   表单
   ============================================= */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
}

/* 输入框容器 */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: var(--radius-btn);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap:focus-within {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.input-prefix {
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.form-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 12px 12px 0;
  font-size: 14px;
  color: var(--text-title);
  font-family: inherit;
  min-width: 0;
}

.form-input::placeholder { color: var(--text-muted); }

/* 验证码行 */
.input-wrap--code .form-input {
  padding-right: 0;
}

/* 获取验证码按钮 */
.send-code-btn {
  flex-shrink: 0;
  padding: 0 14px;
  height: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-emerald);
  border-left: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  white-space: nowrap;
  transition: all 0.2s ease;
  min-height: 44px;
}

.send-code-btn:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.08);
}

.send-code-btn:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* 登录提交按钮 */
.login-submit-btn {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.login-submit-btn:active {
  transform: translateY(0) scale(0.98);
}

/* 协议文字 */
.modal-agreement {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.agreement-link {
  color: var(--accent-emerald);
  transition: opacity 0.2s;
}

.agreement-link:hover { opacity: 0.8; }

/* =============================================
   侧边栏 - 积分 / VIP 标签
   ============================================= */
.user-block__extra {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.user-block__extra--vip {
  color: #f59e0b;
}

.user-extra-vip {
  font-size: 11px;
  font-weight: 600;
  color: #f59e0b;
  letter-spacing: 0.3px;
}

.user-extra-expire {
  font-size: 10px;
  color: rgba(245, 158, 11, 0.75);
}

.user-extra-normal {
  font-size: 11px;
  color: var(--text-muted);
}

.user-extra-points {
  font-size: 11px;
  color: var(--text-muted);
}

/* =============================================
   顶部 - VIP 徽章
   ============================================= */
.topbar-vip-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  flex-shrink: 0;
  margin-left: 4px;
}

/* =============================================
   输入框错误状态
   ============================================= */
.input-wrap--error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12) !important;
}

.field-error {
  font-size: 12px;
  color: #f87171;
  margin-top: 4px;
  min-height: 16px;
  line-height: 1.4;
}

/* =============================================
   知识库 - 整体布局
   ============================================= */
.kb-layout {
  display: flex;
  gap: 20px;
  height: calc(100vh - 200px);
  min-height: 0;
}

/* =============================================
   知识库 - 通用面板样式
   ============================================= */
.kb-folder-panel,
.kb-train-panel {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.kb-folder-panel { width: 220px; }
.kb-train-panel  { width: 280px; }

.kb-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  flex-shrink: 0;
}

.kb-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-title);
}

.kb-icon-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.kb-icon-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-title);
}

/* =============================================
   知识库 - 文档区域
   ============================================= */
.kb-doc-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.kb-doc-area::-webkit-scrollbar { width: 4px; }
.kb-doc-area::-webkit-scrollbar-track { background: transparent; }
.kb-doc-area::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 999px; }

/* 中间区域空状态 / 未选中文件夹提示 */
.kb-doc-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px 20px;
}

.kb-doc-placeholder svg { opacity: 0.25; }

.kb-doc-placeholder p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.kb-doc-placeholder span {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* =============================================
   弹窗 - 上传弹窗尺寸
   ============================================= */
.modal-box--upload {
  max-width: 520px;
}

/* =============================================
   上传弹窗 - 拖拽区域
   ============================================= */
.upload-drop-zone {
  border: 2px dashed rgba(51, 65, 85, 0.6);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(28, 35, 51, 0.3);
  margin-bottom: 16px;
}

.upload-drop-zone:hover,
.upload-drop-zone--over {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.05);
}

.upload-drop-icon {
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.upload-drop-text {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 6px;
}

.upload-drop-link {
  color: var(--accent-emerald);
  font-weight: 500;
}

.upload-drop-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================
   上传弹窗 - 文件列表
   ============================================= */
.upload-file-list {
  margin-bottom: 16px;
}

.upload-file-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.upload-clear-btn {
  font-size: 12px;
  color: #f87171;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.upload-clear-btn:hover { opacity: 0.7; }

.upload-file-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.upload-file-items::-webkit-scrollbar { width: 4px; }
.upload-file-items::-webkit-scrollbar-track { background: transparent; }
.upload-file-items::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 999px; }

.upload-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-elevated);
  border: 1px solid rgba(51, 65, 85, 0.3);
  border-radius: 8px;
}

.upload-file-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.upload-file-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-file-name {
  font-size: 13px;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.upload-file-size {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.upload-file-remove {
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.upload-file-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

/* =============================================
   上传弹窗 - 底部按钮
   ============================================= */
.upload-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* =============================================
   知识库 - 文件夹空状态
   ============================================= */
.kb-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
}

.kb-empty-state svg { opacity: 0.4; }

.kb-empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.kb-empty-state span {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* =============================================
   弹窗 - 小尺寸变体（新建文件夹）
   ============================================= */
.modal-box--sm {
  max-width: 360px;
}

/* =============================================
   知识库 - 文件夹树
   ============================================= */
.kb-folder-tree {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.kb-folder-tree::-webkit-scrollbar { width: 4px; }
.kb-folder-tree::-webkit-scrollbar-track { background: transparent; }
.kb-folder-tree::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 999px; }

.kb-tree-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-body);
  transition: all 0.15s ease;
  text-align: left;
  border-left: 2px solid transparent;
}

.kb-tree-item:hover {
  background: var(--bg-elevated);
  color: var(--text-title);
}

.kb-tree-item--active {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-emerald);
  border-left-color: var(--accent-emerald);
}

.kb-tree-item--child {
  padding-left: 28px;
}

.kb-tree-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.kb-tree-icon--folder-open,
.kb-tree-icon--folder { color: var(--accent-emerald); flex-shrink: 0; }
.kb-tree-icon--file   { color: var(--text-muted); flex-shrink: 0; }

.kb-tree-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kb-tree-spacer { width: 14px; flex-shrink: 0; }

.kb-tree-children { /* child items container */ }

/* 状态小圆点 */
.kb-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kb-status-dot--trained  { background: #10b981; }
.kb-status-dot--training { background: #f59e0b; }
.kb-status-dot--untrained{ background: #475569; }

.kb-status-dot--pulse {
  animation: kb-pulse 1.5s ease-in-out infinite;
}

@keyframes kb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* =============================================
   知识库 - 中间主区域
   ============================================= */
.kb-main-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =============================================
   知识库 - 工具栏
   ============================================= */
.kb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

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

/* 搜索框 */
.kb-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.kb-search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

.kb-search-input {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: var(--radius-btn);
  padding: 8px 12px 8px 32px;
  font-size: 13px;
  color: var(--text-title);
  font-family: inherit;
  width: 220px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kb-search-input::placeholder { color: var(--text-muted); }

.kb-search-input:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* 搜索清空按钮 */
.kb-search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease;
}
.kb-search-clear:hover {
  color: var(--text-title);
  background: rgba(255,255,255,0.08);
}

/* 搜索框有清空按钮时右侧留空 */
.kb-search-wrap:has(.kb-search-clear:not([style*="display:none"])) .kb-search-input {
  padding-right: 28px;
}

/* 危险图标按钮（列表行删除） */
.kb-icon-btn--danger {
  color: var(--text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.kb-icon-btn--danger:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

/* 批量删除按钮禁用态 */
.kb-btn--danger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ghost 按钮（清空筛选） */
.kb-btn--ghost {
  background: transparent;
  border: 1px solid rgba(51, 65, 85, 0.5);
  color: var(--text-muted);
}
.kb-btn--ghost:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-title);
  border-color: rgba(100,116,139,0.6);
}

/* 筛选按钮激活态 */
.kb-btn--active {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: var(--accent-emerald) !important;
}

/* =============================================
   删除确认弹窗
   ============================================= */
.modal-box--confirm {
  max-width: 400px;
  width: 90%;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.confirm-icon--danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.confirm-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-title);
  margin: 0 0 10px;
}

.confirm-desc {
  font-size: 14px;
  color: var(--text-body);
  margin: 0 0 8px;
  line-height: 1.5;
}

.confirm-warn {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.5;
}

.confirm-warn strong {
  color: #f87171;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.confirm-cancel {
  flex: 1;
  justify-content: center;
}

.confirm-ok {
  flex: 1;
  justify-content: center;
}

/* 数量 badge */
.kb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: rgba(255,255,255,0.2);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

/* 通用按钮 */
.kb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.kb-btn--primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.kb-btn--primary:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.kb-btn--secondary {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.5);
  color: var(--text-body);
}

.kb-btn--secondary:hover {
  background: var(--bg-elevated);
  color: var(--text-title);
  border-color: rgba(51, 65, 85, 0.8);
}

.kb-btn--danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.kb-btn--danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

.kb-btn--full { width: 100%; justify-content: center; }

/* 视图切换 */
.kb-view-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: var(--radius-btn);
  padding: 3px;
  gap: 2px;
}

.kb-view-btn {
  width: 30px; height: 30px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.kb-view-btn:hover { color: var(--text-title); }

.kb-view-btn--active {
  background: var(--bg-elevated);
  color: var(--text-title);
}

/* =============================================
   知识库 - 文档网格
   ============================================= */
.kb-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}

.kb-doc-grid::-webkit-scrollbar { width: 4px; }
.kb-doc-grid::-webkit-scrollbar-track { background: transparent; }
.kb-doc-grid::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 999px; }

.kb-doc-card {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: var(--radius-card);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kb-doc-card:hover {
  border-color: rgba(51, 65, 85, 0.8);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.kb-doc-card--selected {
  border-color: var(--accent-emerald) !important;
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

/* 文档缩略图 */
.kb-doc-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.kb-doc-thumb--pdf { background: linear-gradient(135deg, #ef4444, #f97316); }
.kb-doc-thumb--doc { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.kb-doc-thumb--md  { background: linear-gradient(135deg, #10b981, #14b8a6); }
.kb-doc-thumb--txt { background: linear-gradient(135deg, #64748b, #6b7280); }

/* 文档信息 */
.kb-doc-info {}

.kb-doc-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.kb-doc-name-wrap { min-width: 0; flex: 1; }

.kb-doc-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.kb-doc-size {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.kb-checkbox {
  width: 15px; height: 15px;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.kb-doc-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.kb-status-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* =============================================
   知识库 - 文档列表视图
   ============================================= */
.kb-doc-list {
  overflow-y: auto;
  flex: 1;
}

.kb-doc-list::-webkit-scrollbar { width: 4px; }
.kb-doc-list::-webkit-scrollbar-track { background: transparent; }
.kb-doc-list::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 999px; }

.kb-list-card {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.kb-table {
  width: 100%;
  border-collapse: collapse;
}

.kb-table-th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  white-space: nowrap;
}

.kb-table-th--check  { width: 40px; }
.kb-table-th--right  { text-align: right; }
.kb-table-th--name   { width: 35%; }       /* 名称列固定比例，防止撑满 */
.kb-table-th--type   { width: 70px; white-space: nowrap; }
.kb-table-th--size   { width: 80px; white-space: nowrap; }
.kb-table-th--date   { width: 110px; white-space: nowrap; }
.kb-table-th--status { width: 90px; white-space: nowrap; }
.kb-table-th--action { width: 60px; text-align: right; white-space: nowrap; }

.kb-table-row {
  transition: background 0.15s ease;
  cursor: pointer;
}

.kb-table-row:hover { background: rgba(28, 35, 51, 0.5); }

.kb-table-row + .kb-table-row td {
  border-top: 1px solid rgba(51, 65, 85, 0.15);
}

.kb-table-td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-body);
  vertical-align: middle;
}

.kb-table-td--muted  { color: var(--text-muted); white-space: nowrap; }
.kb-table-td--right  { text-align: right; white-space: nowrap; }
.kb-table-td--name   { max-width: 0; overflow: hidden; }  /* 配合 width:35% 实现截断 */

.kb-list-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;       /* 让 flex 子项可以收缩 */
}

.kb-list-thumb {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.kb-list-thumb--pdf { background: linear-gradient(135deg, #ef4444, #f97316); }
.kb-list-thumb--doc { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.kb-list-thumb--md  { background: linear-gradient(135deg, #10b981, #14b8a6); }
.kb-list-thumb--txt { background: linear-gradient(135deg, #64748b, #6b7280); }

.kb-list-name {
  font-size: 13px;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.kb-type-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid rgba(51, 65, 85, 0.4);
}

.kb-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

/* =============================================
   知识库 - 训练工作台
   ============================================= */
.kb-train-body {
  flex: 1;
  overflow-y: auto;
}

.kb-train-body::-webkit-scrollbar { width: 4px; }
.kb-train-body::-webkit-scrollbar-track { background: transparent; }
.kb-train-body::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 999px; }

.kb-train-section {
  padding: 16px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.kb-train-section--logs { border-bottom: none; }

.kb-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

/* 进度条 */
.kb-progress-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kb-progress-item {}

.kb-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.kb-progress-name {
  font-size: 13px;
  color: var(--text-body);
}

.kb-progress-pct {
  font-size: 11px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--text-muted);
}

.kb-progress-bar {
  height: 6px;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 999px;
  overflow: hidden;
}

.kb-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.kb-progress-fill--done   { background: #10b981; }
.kb-progress-fill--active { background: #f59e0b; }

/* 训练日志 */
.kb-log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kb-log-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.kb-log-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.kb-log-icon--success { color: #10b981; }
.kb-log-icon--error   { color: #f87171; }
.kb-log-icon--info    { color: var(--text-muted); }

.kb-log-content {}

.kb-log-time {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 2px;
}

.kb-log-msg {
  font-size: 13px;
  line-height: 1.4;
}

.kb-log-msg--success { color: #34d399; }
.kb-log-msg--error   { color: #f87171; }
.kb-log-msg--info    { color: var(--text-body); }

/* 训练工作台底部按钮 */
.kb-train-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(51, 65, 85, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

/* =============================================
   图片库 - 整体布局
   ============================================= */
.imglib-layout {
  display: flex;
  gap: 20px;
  height: calc(100vh - 200px);
  min-height: 0;
}

/* =============================================
   图片库 - 左侧分类面板
   ============================================= */
.imglib-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.imglib-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  flex-shrink: 0;
}

.imglib-sidebar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-title);
}

.imglib-cat-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.imglib-cat-list::-webkit-scrollbar { width: 4px; }
.imglib-cat-list::-webkit-scrollbar-track { background: transparent; }
.imglib-cat-list::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 999px; }

.imglib-cat-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-body);
  transition: all 0.15s ease;
  text-align: left;
  border-left: 2px solid transparent;
  font-family: inherit;
}

.imglib-cat-item:hover {
  background: var(--bg-elevated);
  color: var(--text-title);
}

.imglib-cat-item--active {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-emerald);
  border-left-color: var(--accent-emerald);
}

.imglib-cat-icon {
  display: flex;
  align-items: center;
  color: inherit;
  flex-shrink: 0;
  opacity: 0.7;
}

.imglib-cat-item--active .imglib-cat-icon { opacity: 1; }

.imglib-cat-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.imglib-cat-count {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
  flex-shrink: 0;
}

.imglib-cat-item--active .imglib-cat-count {
  color: var(--accent-emerald);
  opacity: 0.7;
}

/* 存储统计 */
.imglib-storage {
  padding: 14px 16px;
  border-top: 1px solid rgba(51, 65, 85, 0.3);
  flex-shrink: 0;
}

.imglib-storage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.imglib-storage-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.imglib-storage-value {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.imglib-storage-bar {
  height: 5px;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 999px;
  overflow: hidden;
}

.imglib-storage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald), #059669);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* =============================================
   图片库 - 右侧主区域
   ============================================= */
.imglib-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =============================================
   图片库 - 工具栏
   ============================================= */
.imglib-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

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

/* =============================================
   图片库 - 内容区（可滚动）
   ============================================= */
.imglib-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.imglib-content::-webkit-scrollbar { width: 4px; }
.imglib-content::-webkit-scrollbar-track { background: transparent; }
.imglib-content::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 999px; }

/* =============================================
   图片库 - 网格视图
   ============================================= */
.imglib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

/* 图片卡片 */
.imglib-card {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.imglib-card:hover {
  border-color: rgba(51, 65, 85, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.imglib-card--selected {
  border-color: var(--accent-emerald) !important;
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* 缩略图容器 */
.imglib-card-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-elevated);
}

.imglib-card-img-wrap {
  width: 100%;
  height: 100%;
}

.imglib-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.imglib-card:hover .imglib-card-img {
  transform: scale(1.04);
}

/* 悬浮操作层 */
.imglib-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.imglib-card:hover .imglib-card-overlay {
  opacity: 1;
}

.imglib-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.imglib-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.imglib-action-btn:hover {
  transform: scale(1.1);
}

.imglib-action-btn--wand:hover   { background: rgba(139, 92, 246, 0.85); }
.imglib-action-btn--edit:hover   { background: rgba(59, 130, 246, 0.85); }
.imglib-action-btn--download:hover { background: rgba(16, 185, 129, 0.85); }
.imglib-action-btn--delete:hover { background: rgba(239, 68, 68, 0.85); }

/* 选择框 */
.imglib-card-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  z-index: 2;
}

.imglib-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--accent-emerald);
}

/* 卡片信息区 */
.imglib-card-info {
  padding: 10px 12px 12px;
}

.imglib-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  margin-bottom: 3px;
}

.imglib-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
  line-height: 1.4;
  margin-bottom: 8px;
}

.imglib-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* 标签 */
.imglib-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-tag);
  font-size: 11px;
  font-weight: 500;
  background: rgba(51, 65, 85, 0.5);
  color: var(--text-muted);
  border: 1px solid rgba(51, 65, 85, 0.4);
  line-height: 1.5;
}

/* =============================================
   图片库 - 列表视图
   ============================================= */
.imglib-list-wrap {
  flex: 1;
}

.imglib-list-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.imglib-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.imglib-list-name {
  font-size: 13px;
  color: var(--text-title);
  font-weight: 500;
}

.imglib-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.imglib-list-actions {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.kb-table-row:hover .imglib-list-actions {
  opacity: 1;
}

/* =============================================
   Toast 轻提示
   ============================================= */
.geo-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 9999;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.geo-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.geo-toast--success {
  background: #064e3b;
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.geo-toast--info {
  background: var(--bg-elevated);
  border: 1px solid rgba(51, 65, 85, 0.6);
  color: var(--text-title);
}

.geo-toast--error {
  background: #450a0a;
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

/* =============================================
   图片库 - 编辑弹窗
   ============================================= */
.imglib-edit-box {
  max-width: 860px;
  width: 95vw;
  padding: 0;
  overflow: hidden;
}

.imglib-edit-layout {
  display: flex;
  min-height: 480px;
}

/* 左侧预览 */
.imglib-edit-preview {
  width: 420px;
  flex-shrink: 0;
  background: #0a0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid rgba(51, 65, 85, 0.4);
}

.imglib-edit-img-wrap {
  width: 100%;
  max-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.imglib-edit-img {
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

/* 右侧信息 */
.imglib-edit-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  overflow-y: auto;
}

.imglib-edit-info::-webkit-scrollbar { width: 4px; }
.imglib-edit-info::-webkit-scrollbar-track { background: transparent; }
.imglib-edit-info::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 999px; }

.imglib-edit-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.imglib-edit-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.imglib-edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.imglib-edit-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.imglib-edit-value {
  font-size: 13px;
  color: var(--text-title);
  word-break: break-all;
  line-height: 1.5;
}

/* 标签行 */
.imglib-edit-field--tags {
  gap: 8px;
}

.imglib-edit-tags-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.imglib-edit-add-tag-btn {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
}

.imglib-edit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

/* 单个标签 */
.imglib-edit-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 10px;
  border-radius: var(--radius-tag);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
  font-size: 12px;
  font-weight: 500;
  position: relative;
}

.imglib-edit-tag-del {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: var(--accent-emerald);
  opacity: 0.6;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.imglib-edit-tag-del:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  opacity: 1;
}

/* 底部按钮 */
.imglib-edit-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(51, 65, 85, 0.3);
  flex-shrink: 0;
}

/* ============================================================
   图生图弹窗
============================================================ */
.modal-box--wand {
  width: 520px;
  max-width: 96vw;
}

/* 原图预览 */
.wand-src-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
}
.wand-src-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(51, 65, 85, 0.4);
}
.wand-src-label {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

/* 提示词输入框 */
.wand-prompt-input {
  resize: vertical;
  min-height: 72px;
  line-height: 1.6;
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.4);
  transition: border-color 0.2s;
}
.wand-prompt-input:focus {
  border-color: var(--accent-emerald);
  outline: none;
}

/* 比例选择 */
.wand-ratio-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.wand-ratio-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  min-width: 64px;
}
.wand-ratio-btn:hover {
  border-color: var(--accent-emerald);
  color: var(--text-primary);
}
.wand-ratio-btn--active {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

/* 比例图标（小方块示意） */
.wand-ratio-icon {
  display: block;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.7;
}
.wand-ratio-icon--1x1  { width: 22px; height: 22px; }
.wand-ratio-icon--4x3  { width: 24px; height: 18px; }
.wand-ratio-icon--3x4  { width: 18px; height: 24px; }
.wand-ratio-icon--16x9 { width: 28px; height: 16px; }
.wand-ratio-icon--9x16 { width: 16px; height: 28px; }
.wand-ratio-icon--2x3  { width: 18px; height: 27px; }
.wand-ratio-icon--3x2  { width: 27px; height: 18px; }

/* ============================================================
   图片卡片 - 生成中占位
============================================================ */
.imglib-card--generating {
  pointer-events: none;
  opacity: 0.85;
}
.imglib-gen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  min-height: 160px;
}
.imglib-gen-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(51, 65, 85, 0.5);
  border-top-color: var(--accent-emerald);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.imglib-gen-tip {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   图片卡片 - 生成失败状态
============================================================ */
.imglib-card--failed {
  opacity: 0.9;
}
.imglib-fail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.06);
  min-height: 160px;
  padding: 12px;
}
.imglib-fail-icon {
  color: #ef4444;
  opacity: 0.8;
}
.imglib-fail-reason {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.imglib-fail-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.imglib-retry-btn,
.imglib-fail-del-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.imglib-retry-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}
.imglib-retry-btn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.28);
  border-color: #ef4444;
}
.imglib-retry-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.imglib-fail-del-btn {
  background: rgba(51, 65, 85, 0.4);
  border: 1px solid rgba(51, 65, 85, 0.5);
  color: var(--text-muted);
}
.imglib-fail-del-btn:hover {
  background: rgba(51, 65, 85, 0.65);
  color: var(--text-secondary);
}

/* =============================================
   数据大屏 - 整体布局
   ============================================= */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =============================================
   数据大屏 - KPI 卡片
   ============================================= */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: var(--radius-card);
  padding: 20px;
  transition: all 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.kpi-card-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.kpi-card-left {}

.kpi-card-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.4;
}

.kpi-card-value-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.kpi-card-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-title);
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  letter-spacing: -0.02em;
  line-height: 1;
}

.kpi-card-suffix {
  font-size: 13px;
  color: var(--text-muted);
}

.kpi-card-change {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.kpi-change-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.kpi-change-pct {
  font-size: 12px;
  font-weight: 600;
}

.kpi-change-pct--up   { color: #10b981; }
.kpi-change-pct--down { color: #f87171; }

.kpi-change-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* KPI 图标 */
.kpi-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.kpi-icon--emerald { background: linear-gradient(135deg, #10b981, #059669); }
.kpi-icon--blue    { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.kpi-icon--amber   { background: linear-gradient(135deg, #f59e0b, #d97706); }
.kpi-icon--purple  { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

/* =============================================
   数据大屏 - 图表区域
   ============================================= */
.chart-row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 16px;
}

@media (max-width: 1100px) {
  .chart-row { grid-template-columns: 1fr; }
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: var(--radius-card);
  padding: 20px;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
}

.chart-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.chart-card-legend {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 图表占位区域（SVG 模拟） */
.chart-area {
  height: 280px;
  position: relative;
  overflow: hidden;
}

/* 折线/面积图 SVG */
.chart-svg {
  width: 100%;
  height: 100%;
}

/* 饼图容器 */
.pie-chart-wrap {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pie-svg {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.pie-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.pie-center-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-title);
  line-height: 1.4;
}

.pie-center-pct {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 饼图图例 */
.pie-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pie-legend-item:hover { opacity: 0.75; }

.pie-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pie-legend-name {
  font-size: 12px;
  color: var(--text-body);
}

.pie-legend-val {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* X轴标签 */
.chart-xaxis {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  margin-top: 6px;
}

.chart-xaxis-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* =============================================
   数据大屏 - 任务列表
   ============================================= */
.task-card {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.task-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.task-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
}

.task-view-all {
  font-size: 12px;
  color: var(--accent-emerald);
  transition: opacity 0.2s;
}

.task-view-all:hover { opacity: 0.75; }

/* 表格 */
.task-table-wrap {
  overflow-x: auto;
}

.task-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* 时间列文字不换行 */
.task-table td:nth-child(6),
.task-table td:nth-child(7) {
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-muted);
}

/* 关键词数列居中 */
.task-table td:nth-child(5) {
  text-align: center;
}
.task-table th:nth-child(5) {
  text-align: center;
}

.task-table thead {
  background: rgba(30, 41, 59, 0.5);
}

.task-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* 各列宽度控制 */
.task-table th:nth-child(1) { width: 22%; min-width: 120px; }  /* 任务名称 */
.task-table th:nth-child(2) { width: 14%; min-width: 100px; }  /* 任务编号 */
.task-table th:nth-child(3) { width: 9%;  min-width: 72px;  }  /* 状态 */
.task-table th:nth-child(4) { width: 14%; min-width: 100px; }  /* 进度 */
.task-table th:nth-child(5) { width: 9%;  min-width: 60px;  }  /* 关键词数 */
.task-table th:nth-child(6) { width: 16%; min-width: 100px; }  /* 创建时间 */
.task-table th:nth-child(7) { width: 16%; min-width: 100px; }  /* 到期时间 */

.task-table th:last-child { text-align: left; }

.task-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.2);
  font-size: 13px;
  color: var(--text-body);
  vertical-align: middle;
}

.task-table tbody tr {
  transition: background 0.15s ease;
}

.task-table tbody tr:hover {
  background: rgba(28, 35, 51, 0.5);
}

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

/* 任务名称列 */
.task-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.task-name-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-btn);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-emerald);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.task-name-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* 状态标签 */
.task-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-tag);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.task-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.task-status--active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.task-status--active .task-status-dot {
  background: #10b981;
  animation: task-dot-pulse 1.5s ease-in-out infinite;
}

.task-status--completed {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

.task-status--completed .task-status-dot { background: #60a5fa; }

.task-status--pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.task-status--pending .task-status-dot { background: #f59e0b; }

.task-status--stopped {
  background: rgba(100, 116, 139, 0.1);
  color: #94a3b8;
}

.task-status--stopped .task-status-dot { background: #94a3b8; }

@keyframes task-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* 进度条 */
.task-progress-wrap {
  max-width: 120px;
}

.task-progress-bar {
  height: 6px;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 999px;
  overflow: hidden;
}

.task-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.task-progress-fill--active    { background: #10b981; }
.task-progress-fill--completed { background: #3b82f6; }
.task-progress-fill--pending   { background: #f59e0b; }
.task-progress-fill--stopped   { background: #64748b; }

.task-progress-pct {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  display: block;
}

/* 操作按钮 */
.task-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.task-action-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.task-action-btn:hover {
  background: var(--bg-elevated);
}

.task-action-btn--view:hover   { color: #60a5fa; }
.task-action-btn--edit:hover   { color: #10b981; }
.task-action-btn--delete:hover { color: #f87171; }
.task-action-btn--more:hover   { color: var(--text-title); }

/* 数字等宽字体 */
.mono { font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace; }

/* =============================================
   数据大屏 - 表格空/加载状态
   ============================================= */
.task-table-placeholder {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
  font-size: 14px;
  display: table-cell;
  vertical-align: middle;
  width: 100%;
}

.task-table-placeholder > span,
.task-table-placeholder .task-table-spinner {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 5px;
}

.task-table-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(51, 65, 85, 0.6);
  border-top-color: var(--accent-emerald);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================================
   数据大屏 - 翻页器
   ============================================= */
.task-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid rgba(51, 65, 85, 0.25);
  gap: 12px;
  flex-wrap: wrap;
}

.task-page-info {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.task-page-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 上一页 / 下一页箭头按钮 */
.task-page-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid rgba(51, 65, 85, 0.5);
  color: var(--text-muted);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.task-page-btn:hover:not(:disabled) {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.task-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 页码数字按钮 */
.task-page-num {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.task-page-num:hover {
  background: var(--bg-elevated);
  color: var(--text-title);
  border-color: rgba(51, 65, 85, 0.5);
}

.task-page-num--active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
  font-weight: 600;
}

.task-page-num--active:hover {
  background: rgba(16, 185, 129, 0.18);
}

/* 省略号 */
.task-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  font-size: 13px;
  color: var(--text-muted);
  user-select: none;
}
