/* 瓶颈池子项目样式。不依赖 column.css。 */
/* 编辑风：白底、发丝线、强字阶；一个 navy 主色 + 灰阶，琥珀只用于告警。 */
/* 性格：监测仪器——信标脉冲、章节编号、读数圆点、印章吊牌。动效只此一处。 */

html { scroll-behavior: smooth; }

body.pool-light {
  background: #fff;
  --pool-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

.pool-page { padding: 12px 0 56px; counter-reset: poolsec; }

/* ---------- 页头 ---------- */
.pool-hero { margin: 0 0 30px; }
.pool-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #9ca3af;
}
.pool-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 750;
  color: #111;
  line-height: 1.2;
}
.pool-lede {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  max-width: 40em;
}
.pool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
}
.pool-pill {
  display: inline-block;
  padding: 0;
  background: none;
  border-radius: 0;
  color: #667085;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
}
.pool-pill + .pool-pill::before {
  content: "·";
  margin: 0 8px;
  color: #c0c8d4;
}
.pool-beacon {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--navy, #0B3A6E);
  vertical-align: 1px;
}
.pool-beacon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--navy, #0B3A6E);
  animation: pool-pulse 2.6s ease-out infinite;
}
@keyframes pool-pulse {
  0% { transform: scale(0.6); opacity: 0.55; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pool-beacon::after { animation: none; opacity: 0; }
}

/* ---------- 吸顶目录 ---------- */
.pool-toc {
  position: sticky;
  top: var(--nav-height, 64px);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
  margin: -8px 0 28px;
  padding: 10px 2px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line, #E5E9F0);
}
.pool-toc a {
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: #667085;
  text-decoration: none;
}
.pool-toc a:hover { color: #111; text-decoration: none; }
.pool-toc a.is-active {
  color: var(--navy, #0B3A6E);
  font-weight: 650;
  border-bottom-color: var(--navy, #0B3A6E);
}

/* ---------- 节 ---------- */
.pool-sec {
  margin-bottom: 48px;
  counter-increment: poolsec;
  scroll-margin-top: calc(var(--nav-height, 64px) + 56px);
}
.pool-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, #E5E9F0);
}
.pool-h2 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, #E5E9F0);
  font-size: 19px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  scroll-margin-top: calc(var(--nav-height, 64px) + 56px);
}
.pool-sec-head .pool-h2 {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.pool-h2::before {
  content: counter(poolsec, decimal-leading-zero);
  margin-right: 10px;
  font-family: var(--pool-mono, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #9ca3af;
}
.pool-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy, #0B3A6E);
  text-decoration: none;
  white-space: nowrap;
}
.pool-more:hover { text-decoration: underline; }
.pool-hint {
  margin: -4px 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #667085;
}
.pool-hint code,
.pool-watch-how code {
  font-size: 12px;
  background: #F3F6FA;
  padding: 1px 5px;
  border-radius: 4px;
}
.pool-tag {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--navy, #0B3A6E);
}

/* ---------- 通用卡（后台等） ---------- */
.pool-card {
  background: #fff;
  border: 1px solid var(--line, #E5E9F0);
  border-radius: 6px;
  padding: 14px 16px 12px;
}

/* ---------- 压力传到哪 ---------- */
.pool-chain {
  border: 0;
  border-top: 2px solid #111;
  border-bottom: 1px solid var(--line, #E5E9F0);
  border-radius: 0;
  padding: 16px 2px 12px;
}
.pool-chain-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}
.pool-chain-step {
  position: relative;
  flex: 1 1 8.5em;
  min-width: 7.5em;
  padding: 0 18px 0 0;
  margin: 0 0 12px;
}
.pool-chain-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 1.35em;
  right: 4px;
  color: #c0c8d4;
  font-size: 13px;
  line-height: 1;
}
.pool-chain-role {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 4px;
}
.pool-chain-name {
  display: block;
  font-size: 15px;
  font-weight: 650;
  color: #111;
  line-height: 1.35;
  margin-bottom: 4px;
  text-decoration: none;
}
a.pool-chain-name:hover { color: var(--navy, #0B3A6E); text-decoration: underline; }
.pool-chain-state {
  display: block;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}
.pool-chain-step.is-dense .pool-chain-name { font-weight: 750; }
.pool-chain-step.is-dense .pool-chain-state { color: var(--navy, #0B3A6E); font-weight: 650; }
@media (max-width: 720px) {
  .pool-chain-step:not(:last-child)::after { content: none; }
  .pool-chain-step { flex-basis: 100%; padding-right: 0; margin-bottom: 14px; }
}
.pool-aside {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #6b7280;
}

/* ---------- 当前卡在哪（全页视觉顶点） ---------- */
.pool-signed {
  border: 0;
  border-top: 2px solid var(--navy, #0B3A6E);
  border-radius: 0;
  padding: 16px 2px 4px;
}
.pool-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0 0 12px;
  font-size: 12px;
  color: #9ca3af;
}
.pool-sign {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--navy, #0B3A6E);
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--navy, #0B3A6E);
}
.pool-signed-text {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 700;
  color: #111;
  line-height: 1.6;
  max-width: 30em;
}
.pool-k,
.pool-falsify {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.8;
  color: #333;
  max-width: 56em;
}
.pool-falsify { color: #4b5563; }

/* ---------- 感知告警 / 后台 ---------- */
.pool-watch { margin-top: 14px; }
.pool-watch.is-alert {
  border: 0;
  border-left: 3px solid #d97706;
  border-radius: 0;
  background: #fffbeb;
  padding: 12px 14px;
}
.pool-watch-k {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #92400e;
}
.pool-watch-item {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #374151;
}
.pool-watch-item + .pool-watch-item { margin-top: 4px; }
.pool-watch-how {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
}
.pool-desk-flash {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
}
.pool-desk-flash.is-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.pool-desk-flash.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.pool-desk-form { margin-top: 12px; }
.pool-desk-note {
  display: block;
  font-size: 12px;
  color: #6b7280;
}
.pool-desk-note input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 7px 9px;
  border: 1px solid var(--line, #E5E9F0);
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
}
.pool-desk-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.pool-desk-actions button {
  border: 1px solid #0B3A6E;
  background: #0B3A6E;
  color: #fff;
  border-radius: 4px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.pool-desk-actions button.is-ghost {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}

/* ---------- 表格统一：发丝横线，无外框 ---------- */
.pool-table-wrap { overflow-x: auto; margin-top: 4px; }
.pool-nodes-wrap,
.pool-sensor-wrap { margin-top: 4px; }
.pool-sensor-wrap { overflow-x: auto; }

.pool-nodes-table,
.pool-sensor-table,
.pool-table,
.pool-scan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.pool-sensor-table { width: max-content; min-width: 100%; }
.pool-scan-table { min-width: 640px; }

.pool-nodes-table thead th,
.pool-sensor-table thead th,
.pool-table thead th,
.pool-scan-table thead th {
  padding: 8px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #667085;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #111;
  white-space: nowrap;
}

.pool-nodes-table tbody th,
.pool-nodes-table tbody td,
.pool-sensor-table tbody th,
.pool-sensor-table tbody td,
.pool-table tbody th,
.pool-table tbody td,
.pool-scan-table tbody th,
.pool-scan-table tbody td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
  color: #333;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #C7CFDB;
}
/* 书版式收底：末行压一根深色线，表格有明确外沿 */
.pool-nodes-table tbody tr:last-child th,
.pool-nodes-table tbody tr:last-child td,
.pool-sensor-table tbody tr:last-child th,
.pool-sensor-table tbody tr:last-child td,
.pool-table tbody tr:last-child th,
.pool-table tbody tr:last-child td,
.pool-scan-table tbody:last-child tr:last-child th,
.pool-scan-table tbody:last-child tr:last-child td {
  border-bottom: 1px solid #111;
}
.pool-nodes-table tbody tr:hover th,
.pool-nodes-table tbody tr:hover td,
.pool-table tbody tr:hover td,
.pool-scan-table tbody tr:hover td,
.pool-scan-table tbody tr:hover th {
  background: #FAFBFC;
}

.pool-nodes-table tbody th,
.pool-sensor-table tbody th {
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}
.pool-sensor-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 1px 0 0 0 #C7CFDB;
}
.pool-node-sub {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: #6b7280;
}
.pool-hint-sub { margin-top: 16px; }

/* 传感器单元格 */
.pool-sc { min-width: 7.5em; color: #374151; }
.pool-sc-state,
.pool-sc-val,
.pool-sc-note { display: block; }
.pool-sc-state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: #111;
}
.pool-sc-state::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy, #0B3A6E);
}
.pool-sc.is-open .pool-sc-state { color: #9ca3af; font-weight: 500; }
.pool-sc.is-open .pool-sc-state::before {
  background: transparent;
  border: 1px solid #c0c8d4;
  box-sizing: border-box;
}
.pool-sc.is-warn .pool-sc-state { color: #b45309; }
.pool-sc.is-warn .pool-sc-state::before { background: #d97706; }
.pool-sc-val { margin-top: 2px; color: #111; }
.pool-sc-note { margin-top: 2px; font-size: 12px; color: #6b7280; }
.pool-sc.is-na { color: #d1d5db; }

/* 节点行首小点：统一灰，不再按节点配色 */
.pool-node-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #c7ceda;
  vertical-align: 1px;
}
.pool-node-row[data-node="module"] th,
.pool-node-row[data-node="module"] td { color: #6b7280; }

/* 紧度档位：三格离散刻度，不是进度条；档位旁永远跟文字 */
.pool-gauge {
  display: inline-flex;
  gap: 3px;
  margin-right: 7px;
  vertical-align: 2px;
}
.pool-gauge i {
  width: 13px;
  height: 3px;
  border-radius: 1px;
  background: #E2E7EF;
}
.pool-gauge[data-lvl="1"] i:nth-child(1) { background: #94a3b8; }
.pool-gauge[data-lvl="2"] i:nth-child(-n+2) { background: #64748b; }
.pool-gauge[data-lvl="3"] i { background: #475569; }
.is-dense .pool-gauge[data-lvl="1"] i:nth-child(1),
.is-dense .pool-gauge[data-lvl="2"] i:nth-child(-n+2),
.is-dense .pool-gauge[data-lvl="3"] i:nth-child(-n+3) { background: var(--navy, #0B3A6E); }

/* 六格表「只认」列：卡在这 = 小印章，扫描 = 灰字 */
.pool-seal-sm {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--navy, #0B3A6E);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy, #0B3A6E);
}
.pool-sign-sm { color: #9ca3af; }

/* 整条链六格表：只认行不加底色，用文字重量区分 */
.pool-table a { color: var(--navy, #0B3A6E); font-weight: 650; }
.pool-table tr.is-dense td { background: transparent; }
.pool-table tr.is-dense td:first-child { font-weight: 700; color: #111; }

/* 扫描格折叠表 */
.pool-scan-gridcell {
  width: 8.5em;
  color: #111;
  font-weight: 700;
}
.pool-scan-gridcell a { color: var(--navy, #0B3A6E); }
.pool-scan-choke {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.5;
}
.pool-scan-nodecell {
  white-space: nowrap;
  font-weight: 650;
  color: #111;
}
.pool-scan-table tbody + tbody .pool-scan-gridcell,
.pool-scan-table tbody + tbody tr:first-child th,
.pool-scan-table tbody + tbody tr:first-child td {
  border-top: 1px solid #9ca3af;
}

/* 折叠条 */
.pool-fold {
  margin-top: 18px;
  border-top: 1px solid #C7CFDB;
  border-bottom: 1px solid #C7CFDB;
}
.pool-fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 2px;
  font-size: 14px;
  font-weight: 650;
  color: #111;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pool-fold > summary::-webkit-details-marker { display: none; }
.pool-fold > summary::after {
  content: "展开";
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}
.pool-fold[open] > summary::after { content: "收起"; }
.pool-fold > summary:hover { color: var(--navy, #0B3A6E); }
.pool-fold-meta {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}
.pool-fold > .pool-hint { margin: 4px 2px 8px; }
.pool-fold > .pool-table-wrap { margin: 0; padding: 0 2px 12px; }

/* ---------- 复盘 ---------- */
.pool-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 16px;
}
@media (max-width: 900px) {
  .pool-reviews { grid-template-columns: 1fr; }
}
.pool-review {
  margin: 0;
  padding: 10px 0 0;
  border-top: 1.5px solid #111;
}
.pool-review-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
}
.pool-review-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111;
}
.pool-review p:last-child {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #333;
}

/* 数字表格化 */
table, .pool-sc-val { font-variant-numeric: tabular-nums; }

/* 与专栏同套：卡面白底 · navy 0.3 描边 */
.pool-card {
  border-color: rgba(11, 58, 110, 0.3);
  box-shadow: none;
}

.pool-reg-table code {
  font-size: 11px;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}
.pool-reg-table .pool-reg-falsify {
  max-width: 220px;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.5;
}
.pool-reg-table tr.is-retired { opacity: 0.45; }
.pool-sc-state.is-ok { color: #0B3A6E; font-weight: 650; }
.pool-sc-state.is-pending { color: #6b7280; }

.pool-desk-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 24px;
  padding: 0 2px 14px;
  border-bottom: 1px solid var(--line, #E5E9F0);
  font-size: 14px;
}
.pool-desk-nav a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
}
.pool-desk-nav a:hover { color: var(--navy, #0B3A6E); }
.pool-desk-nav a.is-active {
  color: var(--navy, #0B3A6E);
  font-weight: 650;
  border-bottom: 2px solid var(--navy, #0B3A6E);
  padding-bottom: 2px;
}
.pool-desk-nav-public { margin-left: auto; font-size: 13px; }

.pool-desk-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pool-desk-fields--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 640px) {
  .pool-desk-fields--2 { grid-template-columns: 1fr; }
}
.pool-desk-fields label,
.pool-desk-jform .pool-desk-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}
.pool-desk-fields input[type="text"],
.pool-desk-fields select,
.pool-desk-fields textarea,
.pool-desk-note input {
  font: inherit;
  font-weight: 400;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111;
  width: 100%;
  box-sizing: border-box;
}
.pool-desk-fields textarea { line-height: 1.6; resize: vertical; }
.pool-desk-node { margin-bottom: 12px; }
.pool-desk-node-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 650;
  color: #111;
}
.pool-desk-node-title code {
  font-size: 11px;
  font-weight: 500;
  color: var(--navy, #0B3A6E);
}
.pool-desk-readonly p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}
.pool-desk-readonly p:last-child { margin-bottom: 0; }
.pool-desk-cancel {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
}
.pool-desk-cancel:hover { color: var(--navy, #0B3A6E); }
.pool-rev-table a { font-weight: 650; color: var(--navy, #0B3A6E); }
.pool-reglog-table code a { font-weight: 500; font-size: 12px; color: var(--navy, #0B3A6E); text-decoration: none; }
.pool-reglog-table code a:hover { text-decoration: underline; }
