/* ============================================================
   基准详情（下钻）
   来源：2.1.1 基准概览页原型 / styles.css（2026-09-15 机械搬迁）
   ============================================================ */

/* ---------------- 基准详情（下钻页） ---------------- */

.detail-top { display: flex; align-items: center; gap: 12px; margin-top: 12px; }

/* 标签栏行：切换标签居左，创建入口居右并与标签栏垂直居中；该行与标签页无关，任意标签页均可新建测试任务 */
.tabbar { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.tabbar .tabs { margin-top: 0; }
.tabbar-gap { flex: 1; }
.detail-cta { height: 36px; padding: 0 18px; font-size: 13px; flex: none; }
@media (max-width: 767px) {
  .tabbar { flex-wrap: wrap; }
  .detail-cta { margin-left: auto; }
}

.bench-hero {
  position: relative;
  margin-top: 14px;
  padding: 20px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.bench-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--d-special));
}
.bh-top { display: flex; align-items: flex-start; gap: 16px; }
.bh-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}
.bench-hero h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 7px;
}
.bh-top .pill { margin-left: auto; }
.bh-sub { margin-top: 8px; max-width: 900px; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
/* 题目明细：题号 / 题目名称 / 能力维度 / 所属模式 / 题目内容 / 操作（单题难度不设列） */
.q-table { table-layout: fixed; }
.q-table td { vertical-align: top; }
.q-table th:nth-child(1), .q-table td:nth-child(1) { width: 68px; }
.q-table th:nth-child(2), .q-table td:nth-child(2) { width: 22%; }
.q-table th:nth-child(3), .q-table td:nth-child(3) { width: 108px; }
.q-table th:nth-child(4), .q-table td:nth-child(4) { width: 140px; }
.q-table th:nth-child(6), .q-table td:nth-child(6) { width: 156px; }
.q-row.is-open { background: var(--blue-wash); }
.q-name {
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.q-stem {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
}
.q-diff {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 11.5px;
}
.q-diff.easy { color: var(--ok); border-color: rgba(14, 159, 110, 0.3); background: var(--ok-wash); }
.q-diff.mid { color: var(--blue-700); border-color: rgba(15, 98, 254, 0.3); background: var(--blue-wash); }
.q-diff.hard { color: var(--warn); border-color: rgba(217, 119, 6, 0.3); background: var(--warn-wash); }
.q-detail > td { padding: 0; background: var(--surface-2); }
.qd { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.qd-block { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.qd-k { font-size: 12px; color: var(--ink-4); }
.qd-v { font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.qd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.qd-opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-2);
}
.qd-opt b { font-family: var(--font-mono); font-weight: 600; color: var(--blue); }
.qd-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-4);
}
.empty-inline { padding: 18px; text-align: center; font-size: 13px; color: var(--ink-4); }

/* 新建测试任务弹层（基准详情 · 测试任务） */
.create-card { max-width: 560px; }
.create-card .fg-label { width: 76px; }
.create-card .info-select { max-width: 330px; }
.create-card .fg-value.mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); }
.obj-state {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-style: normal;
  color: var(--ink-4);
}
.obj-state.is-new { color: var(--warn); }
.obj-state.is-exist { color: var(--ok); }

.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.tab {
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: 0.16s;
}
.tab:hover { background: var(--blue-wash); color: var(--blue-700); }
.tab.active {
  background: linear-gradient(135deg, var(--blue), #2b7bff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 98, 254, 0.28);
}

.panel { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }

.block {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  animation: rise 0.4s var(--ease) both;
}
.block-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.block-head h3 { font-size: 14px; font-weight: 600; }
.block-bar {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--d-special));
  box-shadow: 0 0 10px var(--blue-glow);
}
.block-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }
.block-head-gap { flex: 1; }
.block-note-line { margin-top: 12px; font-size: 12px; color: var(--ink-4); }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 12px; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
}
.stat .s-n {
  font-family: var(--font-mono);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--blue-700);
}
.stat .s-t { font-size: 11.5px; color: var(--ink-3); }
/* 指标卡副行：「题目规模」呈现快速 / 标准 / 完整三模式题数 */
.stat .s-sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 0 26px;
  margin-top: 8px;
}
.info-row {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 13px;
}
.info-row .k { width: 84px; flex: none; color: var(--ink-4); }
.info-row .v { color: var(--ink-2); }
.info-sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-4); }

/* 指标卡内的可点入口：版本号即版本变更日志入口，不新增按钮 */
.stat .s-n.stat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 0;
  border: none;
  background: none;
  border-bottom: 1px dashed rgba(15, 98, 254, 0.5);
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s;
}
.stat .s-n.stat-link:hover { color: var(--blue); border-bottom-color: var(--blue); }
.stat .s-n.stat-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.18);
  border-radius: 3px;
}
.stat .s-n.stat-link .ic-ver { width: 12px; height: 12px; opacity: 0.65; }
.stat .s-n.stat-link:hover .ic-ver { opacity: 1; }

/* 版本变更日志弹层 */
.ver-card { max-width: 560px; }
.ver-log { margin: 6px 0 10px; padding: 0; list-style: none; }
.ver-item { position: relative; padding: 0 0 15px 20px; }
.ver-item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line);
}
.ver-item.is-now::before {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.15);
}
.ver-item::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 15px;
  bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.ver-item:last-child { padding-bottom: 2px; }
.ver-item:last-child::after { display: none; }
.ver-head { display: flex; align-items: center; gap: 8px; }
.ver-no { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.ver-item.is-now .ver-no { color: var(--blue-700); }
.ver-badge {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--blue);
  font-size: 10.5px;
  color: #fff;
}
.ver-date { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-4); }
.ver-notes { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.ver-notes li { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }

.dist-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
}
/* 能力维度分布与难度分布两列并排，便于对照且减少竖向长度 */
.dist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; }
.dist-grid .dist-title:first-child { margin-top: 0; }
.dist { display: flex; flex-direction: column; gap: 9px; }
.dist-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 62px 46px; gap: 12px; align-items: center; }
.dist-name { font-size: 12.5px; color: var(--ink-2); }
.dist-n { font-family: var(--font-mono); font-size: 11.5px; text-align: right; color: var(--ink-3); }
.dist-p { font-family: var(--font-mono); font-size: 11.5px; text-align: right; color: var(--ink-4); }
@media (max-width: 1023px) {
  .dist-grid { grid-template-columns: minmax(0, 1fr); }
  .dist-grid .dist-title { margin-top: 14px; }
}
.bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #6ea8ff); }

.tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.tag-title { margin-right: 4px; font-size: 12px; color: var(--ink-4); }
.tag {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 98, 254, 0.26);
  background: var(--blue-wash);
  color: var(--blue-700);
  font-size: 12px;
}

.prog {
  display: inline-block;
  vertical-align: middle;
  width: 92px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
}
.prog i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #6ea8ff); }
.prog-n { font-size: 11.5px; color: var(--ink-3); }

.rank-no { font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); }
.rank-no.top { color: var(--blue-700); font-weight: 600; }
.tbl td.strong { color: var(--ink); font-weight: 600; }

.tbl thead tr.sub th {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-4);
  background: var(--surface-2);
  border-top: 1px dashed var(--line);
}
.tbl th[colspan] { text-align: center; }
.tbl th[rowspan] { vertical-align: middle; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl th.num { text-align: right; }

/* ============================================================
   题目情况 · 模式分段与取题范围维护（基准详情 2.3）
   ============================================================ */
.qb-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -4px 0 16px;
}
.qb-count { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.qb-movein { height: 30px; padding: 0 12px; font-size: 12.5px; }
.qb-undo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  background: var(--warn-wash);
  border: 1px solid rgba(217, 119, 6, 0.3);
  font-size: 11.5px;
  color: var(--warn);
}
.qb-undo .mini-act { height: 22px; padding: 0 8px; font-size: 11.5px; }

/* 所属模式标签（该题在三种模式中的归属） */
.q-modes { white-space: nowrap; }
.q-mode {
  display: inline-flex;
  margin-right: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  font-size: 11px;
  color: var(--ink-3);
}
.q-mode.is-fast { color: var(--blue-700); border-color: rgba(15, 98, 254, 0.3); background: var(--blue-wash); }
.q-mode.is-std { color: #0F7C7B; border-color: rgba(15, 124, 123, 0.3); background: rgba(15, 124, 123, 0.08); }
.q-mode.is-full { color: var(--ok); border-color: rgba(14, 159, 110, 0.3); background: var(--ok-wash); }
.q-mode.is-none { color: var(--ink-4); border-style: dashed; }

/* 移入弹层 */
.qb-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}
.qb-search { flex: 1; min-width: 180px; }
.qb-search input {
  width: 100%;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
}
.qb-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.14); }
.qb-pick .qb-sel { width: 46px; text-align: center; }
.qb-pick .q-name { white-space: normal; }
.qb-pick tbody tr { cursor: default; }
.qb-page { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.qb-page .dist-note { margin-right: auto; }

