/* =============================================================================
 * style.css — 生物信息学在线分析平台
 *   视觉取向：科研工具式克制风格。单一强调色（靛蓝）+ 中性灰；
 *   扁平无渐变、无发光、无彩色装饰块；线框为主，阴影仅作极轻的分层提示。
 *   内容区浅色、图表底色为白，便于直接出图。
 * ========================================================================== */

:root {
  --bg: #f6f7f8;
  --panel: #ffffff;
  --panel-2: #fafbfb;
  --line: #e4e6e9;
  --line-strong: #ccd1d7;
  --text: #1d232b;
  --text-2: #55606c;
  --muted: #838d99;
  --primary: #2f5fd8;
  --primary-d: #2349a8;
  --primary-l: #eef2fc;
  --primary-bright: #5b8cf5;
  --teal: #0f9b93;
  --amber: #a9701a;
  --red: #c0392b;
  --green: #2f7d52;
  --purple: #6b4fa8;
  --navy-1: #101c33;
  --navy-2: #1b2c4f;
  --side-bg: #edf3fb;
  --side-bg-hover: #e0e9f7;
  --side-line: #d7e1f0;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(20, 30, 45, .05);
  --shadow-sm: 0 1px 2px rgba(20, 30, 45, .04);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
  --sans: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
code, pre, textarea.mono { font-family: var(--mono); }

/* --------------------------------- 布局 -------------------------------- */

#app { display: flex; min-height: 100vh; }

.sidebar {
  width: 236px; flex: 0 0 236px;
  background: var(--side-bg);
  border-right: 1px solid var(--side-line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}

.brand { padding: 16px 15px 12px; }
.brand-title {
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 9px; color: var(--text);
}
.brand-logo { display: inline-flex; flex: 0 0 auto; }
.brand-logo img { display: block; width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text); }
.brand-en { font-size: 10.5px; color: var(--muted); }
/* 英文界面下主副两行品牌名重合，隐藏副行 */
html[lang="en"] .brand-en { display: none; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 7px; }

.nav { padding: 2px 8px 16px; flex: 1; }
.nav-group {
  font-size: 12px; color: var(--text); padding: 16px 9px 6px;
  font-weight: 700; letter-spacing: .04em;
}
/* 模块项左侧缩进一个字符，与分组标题错开：分组名一列、模块名一列，各自对齐 */
.nav-item {
  display: flex; align-items: center;
  padding: 6px 9px 6px 20px; border-left: 2px solid transparent; border-radius: 0 4px 4px 0;
  cursor: pointer; color: var(--text-2); font-size: 13px; user-select: none;
  transition: background .12s, color .12s;
}
/* 顶级入口（首页）与分组标题同列 */
.nav-item.nav-top { padding-left: 7px; }
.nav-item:hover { background: var(--side-bg-hover); color: var(--text); }
.nav-item.active {
  background: #fff; border-left-color: var(--primary);
  color: var(--primary-d); font-weight: 600;
}

/* 侧栏底部：界面语言切换 */
.sidebar-foot { padding: 12px 14px 14px; border-top: 1px solid var(--side-line); }
.lang-label { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.lang-switch {
  display: flex; gap: 2px; background: #dde6f6;
  border-radius: var(--radius-sm); padding: 2px;
}
.lang-switch button {
  flex: 1; font-family: inherit; font-size: 12px; padding: 4px 0; cursor: pointer;
  border: none; background: transparent; color: var(--text-2);
  border-radius: 3px; transition: background .13s, color .13s; line-height: 1.2;
}
.lang-switch button:hover { background: #cfdbf0; color: var(--text); }
.lang-switch button.active {
  background: #fff; color: var(--primary-d); font-weight: 600;
  box-shadow: 0 1px 2px rgba(20, 30, 45, .08);
}
.lang-hint { font-size: 10.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* 侧栏底部：输出图字体选择（只作用于图表，不影响界面字体） */
.chart-font-box { margin-top: 12px; }
.chart-font-select {
  width: 100%; font-family: inherit; font-size: 12px; line-height: 1.3;
  padding: 4px 6px; cursor: pointer;
  border: 1px solid var(--side-line, #d5deeb); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
}
.chart-font-select:focus { outline: none; border-color: var(--primary-bright, #3f6fd8); }

.main { flex: 1; min-width: 0; padding: 20px 24px 56px; }
.page-head { margin-bottom: 14px; }
.page-head h1 { font-size: 19px; }
.page-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
/* 首页页头：徽标 + 标题 */
.home-head { display: flex; align-items: center; gap: 12px; }
.home-logo { width: 42px; height: 42px; flex: 0 0 42px; }
.home-head-text { min-width: 0; }
.tool-grid { display: grid; gap: 14px; }

/* --------------------------------- 卡片 -------------------------------- */

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.card + .card { margin-top: 14px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 15px; border-bottom: 1px solid var(--line);
  background: #fff;
}
.card-title { font-size: 14px; display: flex; align-items: center; gap: 7px; }
.card-title-icon { color: var(--muted); font-size: 12px; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.card-body { padding: 15px; }
.card-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 15px; border-top: 1px solid var(--line); background: var(--panel-2);
}
.foot-msg { font-size: 12.5px; color: var(--muted); }

.sec-title { margin-bottom: 12px; }
.sec-title h2 { font-size: 16px; }
.sec-title p { margin: 3px 0 0; color: var(--text-2); font-size: 13px; }

/* --------------------------------- 按钮 -------------------------------- */

.btn {
  font-family: inherit; font-size: 13px; cursor: pointer;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  padding: 6px 12px; background: #fff; color: var(--text);
  transition: background .13s, border-color .13s; white-space: nowrap; line-height: 1.5;
}
.btn:hover { background: #f4f5f7; border-color: #b6bcc4; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--primary); border-color: var(--primary);
  color: #fff; font-weight: 500; padding: 7px 18px;
}
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text-2); }
.btn-ghost:hover { background: #f4f5f7; color: var(--text); }
.btn-xs { font-size: 12px; padding: 3px 9px; border-radius: 3px; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }

/* ------------------------------ 格式说明区 ------------------------------ */

.format-box {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 12px 14px; margin-bottom: 14px;
}
.format-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.format-label {
  font-size: 11.5px; font-weight: 600; color: var(--text-2);
  background: var(--panel-2); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 3px;
}
.format-tip { font-size: 12px; color: var(--muted); }
.fmt-tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.fmt-tab {
  font-family: inherit; font-size: 12px; padding: 3px 10px; cursor: pointer;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text-2);
  border-radius: 3px;
}
.fmt-tab:hover { background: #f4f5f7; }
.fmt-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; }
.format-desc { font-size: 12.5px; color: var(--text-2); margin: 10px 0 8px; }
.format-desc b { color: var(--text); }
.format-desc code {
  background: #f1f2f4; padding: 1px 5px; border-radius: 3px;
  font-size: 11.5px; color: #8d2f63;
}
.format-sample {
  margin: 0; padding: 10px 12px; overflow-x: auto;
  background: #fbfbfc; border: 1px solid var(--line); border-radius: 3px;
  font-size: 12px; line-height: 1.65; color: #33475a; white-space: pre;
  max-height: 260px; overflow-y: auto;
}
.format-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------- 拖放区 -------------------------------- */

.drop-zone {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  padding: 16px 14px; text-align: center; cursor: pointer;
  background: #fbfbfc; transition: border-color .14s, background .14s; margin-bottom: 12px;
}
.drop-zone:hover, .drop-zone.over { border-color: var(--primary); background: var(--primary-l); }
.drop-icon { font-size: 18px; color: var(--text-2); line-height: 1; }
.drop-main { font-size: 13px; margin-top: 6px; }
.drop-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.file-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  background: #f6f8fc; color: var(--text-2);
  border: 1px solid var(--line); padding: 2px 5px 2px 8px; border-radius: 3px;
}
.chip-x { cursor: pointer; font-size: 14px; opacity: .5; line-height: 1; }
.chip-x:hover { opacity: 1; color: var(--red); }
.chip-total { font-size: 12px; color: var(--muted); align-self: center; }

/* ------------------------------- 粘贴区 -------------------------------- */

.paste-wrap { margin-bottom: 14px; }
.paste-label { font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.paste-area {
  width: 100%; min-height: 150px; resize: vertical;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); outline: none;
}
.paste-area:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(47, 95, 216, .12); }

/* ------------------------------- 预览区 -------------------------------- */

.preview-box { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.preview-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 11px; background: var(--panel-2); border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.preview-status { font-weight: 400; color: var(--muted); font-size: 12px; }
.preview-body { padding: 10px 12px; max-height: 320px; overflow: auto; }
.preview-empty { font-size: 12.5px; color: var(--muted); padding: 10px 2px; }
.preview-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.65; }

/* ------------------------------- 参数区 -------------------------------- */

.param-box { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 13px; }
.param-head { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.params-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 11px 14px;
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field-label { font-size: 12px; color: var(--text-2); }
.field-hint { font-size: 11px; color: var(--muted); line-height: 1.55; }
.form-control {
  font-family: inherit; font-size: 13px; padding: 5px 9px;
  border: 1px solid var(--line-strong); border-radius: 3px; background: #fff;
  color: var(--text); outline: none; width: 100%;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(47, 95, 216, .12); }
.form-control-sm { padding: 4px 8px; font-size: 12.5px; }
.check-wrap {
  display: flex; align-items: center; gap: 7px; font-size: 13px;
  color: var(--text-2); cursor: pointer; user-select: none; padding-top: 15px;
}
.check-wrap input { width: 15px; height: 15px; accent-color: var(--primary); }
input[type="file"] { display: none; }

.extra-slot:empty { display: none; }
.extra-slot { margin-top: 14px; }

/* ------------------------------- 统计条 -------------------------------- */

.stat-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.stat-item {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 7px 13px; min-width: 92px;
}
.stat-value { display: block; font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.3; }
.stat-label { font-size: 11.5px; color: var(--muted); }
.stat-item.tone-red .stat-value { color: var(--red); }
.stat-item.tone-green .stat-value { color: var(--green); }
.stat-item.tone-amber .stat-value { color: var(--amber); }
.stat-item.tone-purple .stat-value { color: var(--purple); }

/* ------------------------------- 表格 ---------------------------------- */

.table-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.table-bar .form-control-sm { max-width: 220px; }
.grow { flex: 1; }
.table-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.data-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.data-table th, .data-table td {
  padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap;
}
.data-table thead th {
  position: sticky; top: 0; z-index: 2; background: #f7f8f9; color: var(--text-2);
  font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--line-strong);
}
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { background: #eef0f2; color: var(--text); }
.data-table th.asc::after { content: ' ▲'; font-size: 9px; color: var(--text-2); }
.data-table th.desc::after { content: ' ▼'; font-size: 9px; color: var(--text-2); }
.data-table tbody tr:hover { background: #fafbfc; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.preview-table { font-size: 12px; }
.preview-table th, .preview-table td { padding: 4px 9px; }
.pager { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 12.5px; color: var(--text-2); }

/* ------------------------------- 标签页 -------------------------------- */

.tabs { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.tabs-head { display: flex; gap: 2px; background: var(--panel-2); border-bottom: 1px solid var(--line); padding: 5px 6px 0; flex-wrap: wrap; }
.tab {
  font-family: inherit; font-size: 12.5px; padding: 6px 13px; cursor: pointer;
  border: 1px solid transparent; border-bottom: none; background: transparent;
  color: var(--text-2); border-radius: 3px 3px 0 0;
}
.tab:hover { color: var(--text); background: #eef0f2; }
.tab.active { background: #fff; border-color: var(--line); color: var(--text); font-weight: 600; margin-bottom: -1px; }
.tabs-body { padding: 14px; background: #fff; }

/* ------------------------------- 图表 ---------------------------------- */

.plot-toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.plot-toolbar-name {
  width: 172px; font-size: 11.5px; padding: 3px 7px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text-2); outline: none;
}
.plot-toolbar-name:focus { border-color: var(--primary-bright); }
.plot-toolbar-note { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.chart-tip {
  position: fixed; z-index: 9999; display: none; pointer-events: none;
  background: rgba(29, 35, 43, .95); color: #fff; font-size: 12px; line-height: 1.55;
  padding: 6px 9px; border-radius: 3px; max-width: 320px;
}
.chart-tip b { color: #9fd8ff; font-weight: 600; }
.legend-cat { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; justify-content: center; }
.legend-cat.vertical { flex-direction: column; gap: 5px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: 0 0 10px; }
.legend-cont { display: flex; justify-content: center; margin-top: 8px; }
.plot-holder { margin-top: 8px; }
.empty-state { text-align: center; color: var(--muted); padding: 36px 10px; font-size: 13px; }
.empty-icon { font-size: 24px; opacity: .3; margin-bottom: 6px; }

/* ------------------------------ 提示条 ---------------------------------- */

.alert {
  display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px;
  padding: 8px 11px; border-radius: var(--radius-sm); margin-bottom: 12px; line-height: 1.7;
}
.alert-dot { width: 6px; height: 6px; border-radius: 1px; margin-top: 7px; flex: 0 0 6px; }
.alert-info { background: #f2f5fb; border: 1px solid #dde4f0; color: #2b4a76; }
.alert-info .alert-dot { background: var(--primary); }
.alert-warn { background: #fbf6ec; border: 1px solid #ece0c6; color: #6f5414; }
.alert-warn .alert-dot { background: var(--amber); }
.alert-error { background: #fbf0ef; border: 1px solid #efd5d2; color: #7f2f27; }
.alert-error .alert-dot { background: var(--red); }
.alert-ok { background: #f1f8f4; border: 1px solid #d5e8dd; color: #256041; }
.alert-ok .alert-dot { background: var(--green); }

/* ------------------------------- Toast --------------------------------- */

.toast-box {
  position: fixed; right: 18px; bottom: 18px; z-index: 10000;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.toast {
  background: #1d232b; color: #fff; font-size: 13px; padding: 8px 13px;
  border-radius: var(--radius-sm); max-width: 380px;
  animation: toastIn .18s ease;
}
.toast.ok { background: #2f7d52; }
.toast.warn { background: #a9701a; }
.toast.error { background: #b03a2e; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------ 加载中 ---------------------------------- */

.spinner {
  width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%; display: inline-block;
  animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ 首页卡片 -------------------------------- */

.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.home-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 15px; cursor: pointer; transition: border-color .13s, background .13s;
}
.home-card:hover { border-color: var(--line-strong); background: #fdfdfe; }
.home-card h3 { font-size: 14px; margin-bottom: 5px; }
.home-card p { margin: 0; font-size: 12.5px; color: var(--text-2); }
.home-card .hc-tags { margin-top: 9px; display: flex; gap: 5px; flex-wrap: wrap; }
.tag {
  font-size: 11px; color: var(--muted); background: transparent;
  border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px;
}
/* 首页底部的反馈联系方式（克制的一行，不抢主内容） */
.home-contact {
  margin: 20px 0 2px; text-align: center; font-size: 12.5px;
  color: var(--muted); line-height: 1.8;
}
.home-contact a {
  color: var(--primary); text-decoration: none;
  border-bottom: 1px solid rgba(47, 95, 216, .3);
}
.home-contact a:hover { border-bottom-color: var(--primary); }

/* ------------------------------ 响应式 ---------------------------------- */

@media (max-width: 860px) {
  #app { flex-direction: column; }
  .sidebar { width: 100%; flex: none; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--side-line); }
  .nav { display: flex; overflow-x: auto; gap: 6px; padding: 8px; }
  .nav-group { display: none; }
  .nav-item, .nav-item.nav-top { white-space: nowrap; border-left: none; border-radius: 4px; padding-left: 9px; }
  .sidebar-foot { display: flex; align-items: center; gap: 12px; }
  .lang-label, .lang-hint { display: none; }
  .lang-switch { width: 140px; }
  .main { padding: 16px 14px 48px; }
}

/* ------------------------------ 文档内容 -------------------------------- */

.steps { margin: 0; padding-left: 22px; font-size: 13px; color: var(--text-2); }
.steps li { margin-bottom: 7px; }
.steps b, .doc b { color: var(--text); }
.doc { font-size: 13px; color: var(--text-2); line-height: 1.8; }
.doc p { margin: 0 0 9px; }
.doc ul { margin: 0; padding-left: 20px; }
.doc li { margin-bottom: 7px; }
.doc code {
  background: #f1f2f4; padding: 1px 5px; border-radius: 3px;
  font-size: 11.5px; color: #8d2f63;
}
.alert code, .preview-note code, .format-note code {
  background: #f1f2f4; padding: 1px 5px; border-radius: 3px;
  font-family: var(--mono); font-size: 11.5px; color: #8d2f63;
}

/* --------------------------- 基因集来源面板 ------------------------------ */

.gsrc-box { border-top: 1px solid var(--line); padding-top: 13px; }
.gsrc-options { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.gsrc-opt {
  display: flex; gap: 9px; align-items: flex-start; cursor: pointer;
  padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .13s, background .13s;
}
.gsrc-opt:hover { border-color: var(--line-strong); background: #fafbfc; }
.gsrc-opt input { margin-top: 3px; accent-color: var(--primary); flex: 0 0 auto; width: 15px; height: 15px; }
.gsrc-opt-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gsrc-opt-title { font-size: 13px; font-weight: 600; color: var(--text); }
.gsrc-opt-desc { font-size: 11.5px; color: var(--muted); }
.gsrc-opt-desc b { color: var(--amber); }
.gsrc-pane { padding: 2px 0 4px; }
.gsrc-status {
  font-size: 12px; color: var(--text-2); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 11px; margin-top: 8px; line-height: 1.7; word-break: break-word;
}
.gsrc-status b { color: var(--text); }

/* --------------------------- 交集 / 详情面板 ----------------------------- */

.pick-box { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.pick-box:empty { display: none; }
.pick-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 7px 11px; background: var(--panel-2); border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.pick-count { font-weight: 400; color: var(--muted); }
.pick-box .paste-area { border: none; border-radius: 0; min-height: 110px; }
.pick-box .format-actions { padding: 8px 12px; margin: 0; border-top: 1px solid var(--line); }

.src-note { font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* ------------------------------- 表格增强 -------------------------------- */

.data-table tr.row-sig { background: #fbf4f3; }
.data-table tr.row-sig:hover { background: #f8ecea; }
.data-table td.fdr-cell { font-weight: 600; color: var(--text); }
.tag-cat {
  display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 3px;
  line-height: 1.7; white-space: nowrap;
}
.tag-up { background: #fbf0ef; color: #a5322a; }
.tag-down { background: #f0f4fa; color: #2b5079; }
.tag-mixed { background: #f8f2e8; color: #8a5f16; }
.tag-flat { background: #eef2f6; color: #55606c; }
.tag-ns { background: #f1f2f4; color: var(--muted); }
.mini-bar { width: 100%; height: 6px; background: #f1f2f4; border-radius: 2px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 2px; }

/* -------------------------------- 其他 ---------------------------------- */

.legend-cont svg { display: block; }
.card-body > .legend-cat:first-child { margin-top: 0; margin-bottom: 10px; }
.field textarea.form-control { min-height: 66px; resize: vertical; font-family: var(--mono); font-size: 12.5px; }
.form-control[type="search"] { -webkit-appearance: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfd3d8; border-radius: 4px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b3bac2; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #ccd8ea; background-clip: content-box; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #b7c7e0; background-clip: content-box; }
