/* version-page.css —— 版本记录列表页 / 版本详情页 专用样式
   基础控件（按钮、表格、弹窗、筛选栏、分页）复用 styles.css / calculator-config.css / platform-price.css，
   本文件只补这两页新增的结构。 */

/* ============ 参数错误页 ============ */
.page-error {
  padding: 48px 24px;
  text-align: center;
}
.page-error h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0f172a;
}
.page-error p {
  margin: 0 0 20px;
  font-size: 13px;
  color: #64748b;
}

/* ============ 平台信息条（列表页） ============ */
.plat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.pb-cell {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pb-k {
  font-size: 12px;
  color: #94a3b8;
}
.pb-v {
  font-size: 13px;
  color: #334155;
}
.pb-v.strong {
  font-weight: 600;
  color: #0f172a;
}

/* ============ 标题（详情页工具条左段） ============ */
.price-toolbar-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.price-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

/* ============ 状态多选筛选（列表页） ============ */
.vf-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}
.vf-chip:hover {
  border-color: #bfdbfe;
}
.vf-chip.on {
  border-color: #1e6bff;
  background: #eff6ff;
  color: #1e6bff;
}
.vf-chip input {
  margin: 0;
  cursor: pointer;
}

/* ============ 版本列表表格 ============ */
.version-table {
  min-width: 1360px;
}
.version-table th,
.version-table td {
  white-space: nowrap;
}
.vt-no {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-weight: 600;
  color: #0f172a;
}
/* 调价原因可能很长，列表里截断，完整内容挂 title */
.vt-reason {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vt-action {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ============ 版本对比弹窗 ============ */
.compare-modal {
  width: 880px;
  max-width: 94vw;
}
.cmp-pick {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.cmp-pick-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.cmp-pick-cell .pf-select {
  width: 100%;
}
.cmp-arrow {
  padding-bottom: 8px;
  color: #94a3b8;
  font-size: 16px;
}
.cmp-same {
  padding-bottom: 8px;
  font-size: 12px;
  color: #f59e0b;
}
.cmp-diff {
  max-height: 46vh;
  overflow-y: auto;
}

/* ============ 版本详情：信息卡 ============ */
.vd-head {
  padding: 18px 20px;
  margin-bottom: 12px;
}
.vd-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.vd-no {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.vd-table {
  font-size: 12px;
  color: #64748b;
}
.vd-title-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
/* 被使用中草稿占用时，按钮保持可点以便弹出占用说明，但视觉上降级 */
.vd-title-actions .btn.is-blocked {
  opacity: 0.55;
}
.vd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 20px;
}
.vd-grid .sm-cell-wide {
  grid-column: span 2;
}

/* ============ 档位口径提示条 ============ */
.vd-notice {
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  background: #fffbeb;
  font-size: 13px;
  color: #92400e;
}

/* ============ 操作时间线（§5.19） ============ */
.vd-timeline {
  padding: 18px 20px;
  margin-top: 12px;
}
.vtl {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.vtl-node {
  position: relative;
  padding: 0 0 18px 24px;
}
/* 连接线：最后一个节点不画，避免线尾悬空 */
.vtl-node:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: #e2e8f0;
}
.vtl-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.vtl-dot.tone-gray { background: #cbd5e1; }
.vtl-dot.tone-blue { background: #1e6bff; }
.vtl-dot.tone-orange { background: #f59e0b; }
.vtl-dot.tone-green { background: #16a34a; }
.vtl-dot.tone-red { background: #dc2626; }
.vtl-body {
  min-width: 0;
}
.vtl-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.vtl-act {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.vtl-meta {
  font-size: 12px;
  color: #94a3b8;
}
.vtl-comment {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}
.vtl-empty {
  padding: 16px 0;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}
