/* project.css —— 项目架构入口页自己的样式：总览的三段（首屏的插图「阶段的叠层」、「一条线」、每个阶段一张卡）与它们共用的角色色和关口的橙色、
   待立项目与历史项目的入口、目录树里本页自己的部件（能展开的节点、小节点、记录节点、「更早的」那一条、组名点得开的那两组）、
   详情视图的少量补充，加两个变量值（版本小表里 code 的字号、标语在手机宽度下的字号）。
   骨架（侧栏 / hero 套件 / 节标题）全在 hub.css，详情视图的骨架在 system.css；这里只写自己的类，不往模板的元素上盖值。
   文档页（节页页顶的节间导航、待立项目那一页、历史项目的清单、收尾单）的样式不在这里，在 project-doc.css。 */

/* ── 两个并列视图：总览与详情（详情视图的骨架样式在 system.css，这里只补项目页自己的） ── */
body[data-project-view="detail"] .framework-content { overflow: hidden; scroll-behavior: auto; }
.pj-view-overview[hidden] { display: none; }
.pj-detail-layout { grid-template-columns: minmax(0, 1fr); }
.pj-detail .system-detail-meta[hidden] { display: none; }
.pj-detail .system-detail-title-row { grid-template-columns: minmax(0, 1fr); }
.pj-detail .system-detail-title-row > div:first-child > p { max-width: 1080px; }
/* 标题下那一行小标签：框架页一族对全部 dt 的那条规则（framework.css 的 .page-framework dt，排在 system.css 后面、分量一样）会把 system.css 给它的 12px 盖回 11.5 ——
   这里只管项目页的详情区，压回 12（宽屏、窄屏同一个值） */
.pj-detail .system-detail-meta dt { font-size: 12px; }
/* 页签多的节点：手机宽度下详情视图不许被页签条撑得比窗口宽（撑宽了右边那一页会被切掉一条），页签条放不下就自己横向滚 */
.pj-detail { grid-template-columns: minmax(0, 1fr); }
.pj-detail .system-artifact-tabs { overflow-x: auto; overflow-y: hidden; }
.pj-detail .system-artifact-tabs button,
.pj-detail .system-artifact-tabs > a { flex: none; white-space: nowrap; }

/* ── 总览三段（首屏的插图、「一条线」、每个阶段一张卡）共用的颜色 ─────────────────────────────
   三段都由构建器生成、印在页面里，构建器只给类名与结构：颜色、字号、圆角、阴影与排法都在这里。
   蓝、青与它们的浅底、浅蓝底、运维经理在首屏那一层的灰线用全站底座 site.css 的变量；墨、灰、细线照本页原有的几档；
   关口的实心底是一个深一档的橙（上面是白字，全站那个橙压不住白字）。这些值定义在三段自己的容器上，不往别处漏 */
.pjh,
.pjl-wrap,
.pj2-gates,
.pj2-note {
  --pj-ink: #07142b;
  --pj-ink-2: #15243d;
  --pj-muted: #61718a;
  --pj-muted-2: #8491a5;
  --pj-line: #dce4ef;
  --pj-line-strong: #bdcbdd;
  --pj-you: #d48806;
  --pj-you-soft: #fff7e6;
  --pj-you-ink: #ad6800;
  --pj-mint-ink: #007f6c;
  --pj-gate: #cf4418;
  --pj-orange: #ff4a22;
  --pj-orange-soft: #fff2eb;
  --pj-sh-1: 0 3px 10px rgba(7, 20, 43, .08);
  --pj-sh-2: 0 1px 2px rgba(7, 20, 43, .04), 0 10px 28px rgba(7, 20, 43, .07);
  --pj-sh-2-hover: 0 2px 4px rgba(7, 20, 43, .05), 0 18px 40px rgba(7, 20, 43, .12);
  --pj-sh-gate: 0 4px 12px rgba(207, 68, 24, .28);
}
/* 谁做：构建器给要上色的东西挂一个角色类（每一格是谁的，认自设计页图 1 那一格所在那一组的描边；每个阶段是谁的、「谁做」那一句里的角色名同此），
   五种 —— 你金、X大脑蓝、产品经理与执行体墨、机器青、运维经理灰；关口一律挂 pj-gate（橙）。每个类给主色、浅底与字三个值，
   用到颜色的地方只读这三个变量（--pj-c / --pj-c-soft / --pj-c-ink） */
.pj-r-you { --pj-c: var(--pj-you); --pj-c-soft: var(--pj-you-soft); --pj-c-ink: var(--pj-you-ink); }
.pj-r-main { --pj-c: var(--blue); --pj-c-soft: var(--blue-soft); --pj-c-ink: var(--blue); }
.pj-r-ink { --pj-c: var(--pj-ink); --pj-c-soft: #fff; --pj-c-ink: var(--pj-ink); }
.pj-r-machine { --pj-c: var(--mint); --pj-c-soft: var(--mint-soft); --pj-c-ink: var(--pj-mint-ink); }
.pj-r-deploy { --pj-c: var(--pj-line-strong); --pj-c-soft: #fff; --pj-c-ink: var(--pj-muted); }
.pj-gate { --pj-c: var(--pj-gate); --pj-c-soft: var(--pj-orange-soft); --pj-c-ink: var(--pj-gate); }

/* ── 首屏的插图：阶段的叠层（照Harness架构首屏那一叠控制面画）─────────────────────────────
   每个阶段一层、自上而下叠到最下面的「上线」：阶段名、一句「这一阶段做什么」、右端这一阶段结束处的关口牌（橙）；每一层的边框是这个阶段谁的颜色。
   左边一根蓝轴是需求往下走，右边一根青色虚线是每道关口留下的证据落进需求履历；右上一条图例。
   层与层之间空 18（手机上 16），每层右下一块同色浅底的衬片（盒影，不画线）留住「叠」的意思；斜面整体斜，里面每段字各自按自己的中心反斜回来，落在斜面中线上。
   按这张图自己有多宽排（容器查询）三档：宽（700 以上）证据在右边一列；中（520–699）证据挪到图下面；窄（520 以下，手机）轴上只留节点，每层分三行。
   中文只在空格与标点处折（实在放不下才从中间断），免得把一个词拆到两行。
   它住在首屏那个网格的一格里：网格里的元素两侧外边距写 auto 就按内容收窄，而按宽度排的容器没有内容宽度 —— 所以宽度写满那一格、最宽 900 居中 */
.pjh { position: relative; width: 100%; min-width: 0; max-width: 900px; margin: 0 auto; container: pjh / inline-size; color: var(--pj-ink); font-family: var(--font-ui); word-break: keep-all; overflow-wrap: anywhere; }
.pjh-top { display: grid; gap: 10px; margin-bottom: 16px; }
.pjh-legend { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 16px; color: #5b6b83; font-size: 12px; line-height: 1.5; }
.pjh-legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pjh-legend span::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--pj-c); }
.pjh-legend .pj-r-deploy::before { background: var(--line-strong); }
.pjh-legend .pj-gate::before { height: 10px; border-radius: 5px; }
.pjh-cap { display: block; color: #5b6b83; font-size: 12px; line-height: 1.6; }
@container pjh (min-width: 560px) {
  .pjh-legend { justify-content: flex-end; }
}
.pjh-body { --pjh-sk: 2deg; position: relative; padding: 52px 0 36px; }

/* 左上「一句话需求」、右上「证据」 */
.pjh-intent,
.pjh-evi { position: absolute; top: 0; display: grid; align-content: start; justify-items: center; gap: 1px; line-height: 1.35; }
.pjh-intent { left: 0; width: 64px; color: var(--blue); }
.pjh-evi { right: 0; bottom: 0; width: 104px; color: var(--pj-mint-ink); }
.pjh-intent b,
.pjh-evi b { font-size: 12px; font-weight: 800; white-space: nowrap; }
.pjh-intent span,
.pjh-evi span { color: #5b6b83; font: 12px var(--font-mono); letter-spacing: .04em; }
.pjh-evi::after { content: ""; position: absolute; top: 46px; bottom: 112px; left: calc(50% - 1px); border-left: 2px dashed var(--mint); }

/* 阶段的叠层：左边留轴，右边留证据那一列 */
.pjh-layers { position: relative; z-index: 2; margin: 0 112px 0 60px; padding: 0; list-style: none; }
.pjh-layers::before { content: ""; position: absolute; top: -12px; bottom: 34px; left: -29px; width: 2px; border-radius: 2px; background: var(--blue); }
.pjh-layers::after { content: ""; position: absolute; bottom: 44px; left: -32px; width: 8px; height: 8px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); }
.pjh-layer { --pjh-x: 0px; position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0 0 18px; }
.pjh-layer:nth-child(2) { --pjh-x: 14px; }
.pjh-layer:nth-child(3) { --pjh-x: 2px; }
.pjh-layer:nth-child(4) { --pjh-x: 18px; }
.pjh-layer:nth-child(5) { --pjh-x: 6px; }
.pjh-layer:nth-child(6) { --pjh-x: 10px; }
.pjh-layer.is-end { --pjh-x: 0px; margin: 26px 0 0; }

/* 左轴：每层一个节点、号与英文小字 */
.pjh-axis { position: relative; display: grid; justify-items: start; gap: 4px; color: var(--framework-navy); }
.pjh-axis::before { content: ""; position: absolute; top: 50%; right: calc(100% + 2px); width: 27px; border-top: 1.5px solid var(--blue); }
.pjh-axis::after { content: ""; position: absolute; top: calc(50% - 6px); right: calc(100% + 23px); width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--blue); border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #fff; }
.pjh-axis b { font: 800 13px/1 var(--font-mono); white-space: nowrap; }
.pjh-axis small { color: #5b6b83; font: 12px/1 var(--font-mono); letter-spacing: .02em; white-space: nowrap; }

/* 斜面：圆角、按谁做上色的边与浅底、柔和阴影；右下一块同色浅底的衬片（盒影，不画线）把「叠」的意思留住 */
.pjh-plane { --pjh-plate: color-mix(in srgb, var(--pj-c) 13%, #fff); position: relative; z-index: 2; width: calc(100% - var(--pjh-x)); margin-left: var(--pjh-x); border: 1.5px solid var(--pj-c); border-radius: 14px; background: var(--pj-c-soft); transform: skewY(var(--pjh-sk)); transform-origin: left center; box-shadow: 9px 7px 0 0 var(--pjh-plate), 0 12px 26px rgba(7, 20, 43, .09); }
.pjh-layer.pj-r-ink .pjh-plane { border-width: 1.25px; }
.pjh-layer.pj-r-deploy .pjh-plane { border-width: 1.75px; }
.pjh-layer.is-end .pjh-plane { --pjh-plate: color-mix(in srgb, var(--blue) 12%, #fff); border-color: var(--blue); background: var(--paper-blue); }
/* 每层右端一根青色点线，从关口牌后面接到证据那根虚线上（跟着这一层一起斜） */
.pjh-plane::after { content: ""; position: absolute; top: 50%; left: 100%; width: 60px; height: 10px; margin-top: -5px; background: radial-gradient(circle at calc(100% - 4px) 50%, var(--mint) 0 3.5px, transparent 4px), linear-gradient(90deg, var(--mint) 50%, transparent 0) 0 50% / 4px 1.5px repeat-x; }
.pjh-layer.is-end .pjh-plane::after { display: none; }

/* 层里三样：阶段名 · 这一阶段做什么（一句）· 关口牌（橙，在这一层的末端，牌上是关口那一句）；终点那一层是旗子、上线、一句话与接回下一条 */
.pjh-copy { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 12px 16px; }
.pjh-copy > * { transform: skewY(calc(-1 * var(--pjh-sk))); }
.pjh-name { flex: none; color: #142038; font-size: 15.5px; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.pjh-name i { display: none; margin-right: 7px; color: var(--pj-c-ink); font: 800 13px/1 var(--font-mono); font-style: normal; }
.pjh-brief { flex: 0 1 auto; min-width: 0; color: #2e3d55; font-size: 13px; line-height: 1.5; }
.pjh-gate { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--pj-c); box-shadow: var(--pj-sh-gate); color: #fff; font-size: 12.5px; font-weight: 750; line-height: 1.3; white-space: nowrap; }
.pjh-gate svg { flex: none; width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
/* 终点那一层：旗子、上线、一句话，右端写接回下一条（蓝，不是关口） */
.pjh-flag { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); box-shadow: 0 3px 8px rgba(18, 97, 232, .25); }
.pjh-flag svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pjh-back { flex: none; margin-left: auto; color: var(--blue); font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* 右下：需求履历；最下面两行小字 */
.pjh-record { position: absolute; z-index: 3; right: 0; bottom: 34px; width: 104px; min-height: 70px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 8px 6px; border: 1.5px solid var(--mint); border-radius: 14px; background: #fff; color: var(--pj-mint-ink); box-shadow: 0 10px 24px color-mix(in srgb, var(--pj-mint-ink) 12%, transparent); }
.pjh-record svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pjh-record b { color: var(--pj-ink); font-size: 13px; font-weight: 800; }
.pjh-record small { color: #3b4a63; font-size: 12px; }
.pjh-foot { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 12px; font-weight: 800; line-height: 1.5; }
.pjh-foot .is-req { padding-left: 16px; color: var(--blue); }
.pjh-foot .is-evi { width: 104px; color: var(--pj-mint-ink); text-align: center; }

/* 中等宽（图宽 520–699，比如 1440 宽窗口里首屏左右两栏时）：证据那一列挪到下面一条，轴上的号与英文小字照留；轴那一列与错开的量收一点，给那一句简述多留地方 */
@container pjh (max-width: 699px) {
  .pjh-body { padding-bottom: 0; }
  .pjh-evi { display: none; }
  .pjh-layers { margin: 0 0 0 56px; }
  .pjh-layers::before { left: -27px; }
  .pjh-layer:nth-child(2) { --pjh-x: 8px; }
  .pjh-layer:nth-child(3) { --pjh-x: 2px; }
  .pjh-layer:nth-child(4) { --pjh-x: 10px; }
  .pjh-layer:nth-child(5) { --pjh-x: 4px; }
  .pjh-layer:nth-child(6) { --pjh-x: 6px; }
  .pjh-axis::before { width: 25px; }
  .pjh-axis::after { right: calc(100% + 21px); }
  /* 阶段名在上、简述在下，关口牌在右、上下居中（两行用网格排，每一样仍旧各自按中心反斜回来） */
  .pjh-layer:not(.is-end) .pjh-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 4px; align-items: center; }
  .pjh-layer:not(.is-end) .pjh-name { grid-column: 1; grid-row: 1; justify-self: start; }
  .pjh-layer:not(.is-end) .pjh-brief { grid-column: 1; grid-row: 2; justify-self: start; }
  .pjh-layer:not(.is-end) .pjh-gate { grid-column: 2; grid-row: 1 / span 2; margin-left: 0; }
  .pjh-layers::after { display: none; }
  .pjh-layers::before { bottom: 30px; }
  .pjh-plane::after { display: none; }
  .pjh-record { position: relative; right: auto; bottom: auto; width: auto; min-height: 0; margin: 22px 0 0 56px; grid-template-columns: auto auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 8px; padding: 10px 14px; }
  .pjh-record small { justify-self: end; }
  .pjh-foot { position: static; margin: 12px 0 0 56px; }
  .pjh-foot .is-req { padding-left: 0; }
  .pjh-foot .is-evi { width: auto; }
}

/* 窄（图宽不到 520，手机）：轴只留节点；层里分三行 —— 号与阶段名、这一阶段做什么、关口牌 */
@container pjh (max-width: 519px) {
  .pjh-body { --pjh-sk: 1.4deg; padding-top: 48px; }
  .pjh-intent { width: auto; justify-items: start; }
  .pjh-layers { margin-left: 34px; }
  .pjh-layers::before { left: -24px; }
  .pjh-layer { grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
  .pjh-layer:nth-child(n) { --pjh-x: 0px; }
  .pjh-layer:nth-child(even) { --pjh-x: 8px; }
  .pjh-layer.is-end { margin-top: 22px; }
  .pjh-axis { position: absolute; top: 50%; left: 0; width: 0; height: 0; }
  .pjh-axis b,
  .pjh-axis small { display: none; }
  .pjh-axis::before { right: auto; left: -18px; width: 18px; top: 0; }
  .pjh-axis::after { right: auto; left: -30px; top: -6px; }
  .pjh-plane { box-shadow: 6px 5px 0 0 var(--pjh-plate), 0 10px 22px rgba(7, 20, 43, .09); }
  /* 三行用网格排：每一样按自己的宽、各占一行，仍旧各自按中心反斜回来，落在斜面中线上 */
  .pjh-layer:not(.is-end) .pjh-copy { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; row-gap: 8px; padding: 12px 14px 13px; }
  .pjh-layer.is-end .pjh-copy { flex-wrap: wrap; row-gap: 9px; padding: 12px 14px 13px; }
  .pjh-name i { display: inline; }
  .pjh-layer:not(.is-end) .pjh-name { grid-column: 1; grid-row: 1; }
  .pjh-layer:not(.is-end) .pjh-brief { grid-column: 1; grid-row: 2; }
  .pjh-layer:not(.is-end) .pjh-gate { grid-column: 1; grid-row: 3; margin-left: 0; margin-top: 2px; }
  .pjh-back { flex: 1 1 100%; margin-left: 0; white-space: normal; }
  .pjh-record { margin-left: 34px; }
  .pjh-foot { margin-left: 34px; }
}

/* ── 「一条线」：每一格按谁做上色，每个阶段的关口是压在它守的那几格头上的橙色横梁 ──────────────────
   构建器按读的先后出（横梁、它守的格、下一道横梁……）；按这一栏有多宽排（容器查询），三种排法：
   窄时一格一行；中等宽度上下两排 —— 上排 ①–⑥ 从左往右，下排 ⑦–⑨ 从右往左（⑦ 在 ⑥ 下面），⑥ 在右边掉头到 ⑦，⑨ 从下面绕回 ①；宽时一行排完，⑨ 从格下面绕回 ①。
   格的位置照它的「c + 第几格」类给；横梁的位置照构建器给的两个类给 —— pjl-from-几（它守的头一格）、pjl-to-几（末一格），上排横梁的这两格是从左往右数的头尾，
   下排从右往左，所以下排是 to 给起点、from 给终点。守着关口的格（is-guarded）头上那一小段橙色的腿画在格自己身上。
   两种宽排法都是按九格、上排六格写的（构建器里的 LINE_CELLS、LINE_TOP，对不上构建当场报错） */
.pjl-wrap { container: pjl / inline-size; margin: 18px 0 6px; padding: 22px 16px 18px; border: 1px solid var(--pj-line); border-radius: 18px; background: var(--paper-blue); }
.pjl { --pjl-gap: 12px; --pjl-drop: 18px; --pjl-cell-h: 168px; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
.pjl-seg { display: inline; }
/* 横梁（关口）：实心橙底（pj-gate 给的颜色）、白字、盾牌；整条是链接，压在格的腿上面 */
.pjl-gate { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; min-height: 48px; margin-top: 10px; padding: 7px 14px; border-radius: 12px; background: var(--pj-c); box-shadow: var(--pj-sh-gate); color: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.pjl-gate:first-child { margin-top: 0; }
.pjl-gate:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(207, 68, 24, .34); }
.pjl .pjl-gate:focus-visible { outline: 3px solid rgba(207, 68, 24, .35); outline-offset: 3px; }
.pjl-gate svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pjl-gate-txt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-width: 0; }
.pjl-gate-lab { font-size: 15px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.pjl-gate-sub { font-size: 12px; line-height: 1.5; opacity: .94; }
/* 格：圆角、角色色的边与浅底、柔和阴影 */
.pjl-cell { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 10px; padding: 12px 14px 12px 10px; border: 1.5px solid var(--pj-c); border-radius: 14px; background: var(--pj-c-soft); box-shadow: var(--pj-sh-1); }
.pjl-cell.pj-r-ink { border-width: 1.25px; }
.pjl-cell.pj-r-deploy { border-width: 1.75px; }
.pjl-num { grid-row: 1 / span 2; justify-self: center; color: var(--pj-c-ink); font-size: 24px; font-weight: 700; line-height: 1; }
.pjl-lab { color: var(--pj-ink-2); font-size: 15px; font-weight: 700; line-height: 1.4; }
.pjl-lab .pjl-seg + .pjl-seg { margin-left: .45em; }
.pjl-lab2 { margin-top: 2px; color: var(--pj-muted); font-size: 12px; line-height: 1.6; }
/* 窄排法里一格的说明按分好的那几段排：一段放得下就不拆开 */
.pjl-lab2 .pjl-seg { display: inline-block; max-width: 100%; }
/* 窄排法：格与格之间一个朝下的小三角 */
.pjl-cell::after { content: ""; position: absolute; left: 25px; bottom: -9px; z-index: 2; border-top: 6px solid var(--pj-muted-2); border-right: 4.5px solid transparent; border-left: 4.5px solid transparent; }
.pjl-cell.c9::after { display: none; }
.pjl-turn,
.pjl-back { display: none; }
.pjl-legend { position: relative; margin: 6px 0 0; padding: 10px 12px 10px 38px; border: 1.5px dashed var(--pj-muted-2); border-radius: 12px; color: var(--pj-muted); font-size: 12.5px; line-height: 1.6; text-wrap: pretty; }
.pjl-legend svg { position: absolute; top: 11px; left: 12px; width: 18px; height: 18px; fill: none; stroke: var(--pj-muted-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pjl-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 6px; color: var(--pj-muted); font-size: 12.5px; line-height: 1.5; }
.pjl-key,
.pjl-roles i { display: inline-flex; align-items: center; gap: 7px; }
.pjl-key::before,
.pjl-roles i::before { content: ""; flex: none; width: 16px; height: 12px; border: 1.5px solid var(--pj-c); border-radius: 4px; background: var(--pj-c-soft); }
.pjl-key.is-bar::before { width: 22px; height: 10px; border: 0; border-radius: 5px; background: var(--pj-c); }
.pjl-roles { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }
.pjl-roles i { font-style: normal; }

/* 中等宽度：上下两排 */
@container pjl (min-width: 800px) {
  .pjl { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto var(--pjl-drop) var(--pjl-cell-h) minmax(64px, auto) var(--pjl-drop) var(--pjl-cell-h) 30px auto; column-gap: var(--pjl-gap); row-gap: 0; padding-right: 26px; }
  .pjl-gate { grid-row: 1; gap: 8px; margin: 0; padding: 6px 10px; }
  .pjl-gate-txt { display: grid; gap: 0; }
  /* 只占一格的横梁放不下「阶段二　实施与落地」一行：在序号与阶段名之间的全角空格处折成两行（keep-all 不让阶段名从中间断）；
     下排横梁跟着变高，所以上面 .pjl 里下排横梁那一行写成至少 64、不写死 */
  .pjl-gate-lab { white-space: normal; word-break: keep-all; }
  /* 上排的横梁：从它守的头一格起、到末一格止 */
  .pjl-from-1 { grid-column-start: 1; } .pjl-from-2 { grid-column-start: 2; } .pjl-from-3 { grid-column-start: 3; }
  .pjl-from-4 { grid-column-start: 4; } .pjl-from-5 { grid-column-start: 5; } .pjl-from-6 { grid-column-start: 6; }
  .pjl-to-1 { grid-column-end: 2; } .pjl-to-2 { grid-column-end: 3; } .pjl-to-3 { grid-column-end: 4; }
  .pjl-to-4 { grid-column-end: 5; } .pjl-to-5 { grid-column-end: 6; } .pjl-to-6 { grid-column-end: 7; }
  /* 下排的横梁（⑦ 在第 6 列、⑧ 第 5 列、⑨ 第 4 列）：占满掉头那一行、上面空出 14 与上排的格隔开（只占一格的横梁放不下一行、折成两行变高时，落在底边会顶住上排那一格的下沿，同排几道横梁的上沿也对不齐）；
     从它守的末一格起、到头一格止 */
  .pjl-gate.pjl-from-7,
  .pjl-gate.pjl-from-8,
  .pjl-gate.pjl-from-9 { grid-row: 4; align-self: stretch; margin-top: 14px; }
  .pjl-to-7 { grid-column-start: 6; } .pjl-to-8 { grid-column-start: 5; } .pjl-to-9 { grid-column-start: 4; }
  .pjl-from-7 { grid-column-end: 7; } .pjl-from-8 { grid-column-end: 6; } .pjl-from-9 { grid-column-end: 5; }
  .pjl-cell { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; height: var(--pjl-cell-h); padding: 16px 4px 10px; text-align: center; }
  .pjl-cell.c1 { grid-area: 3 / 1; } .pjl-cell.c2 { grid-area: 3 / 2; } .pjl-cell.c3 { grid-area: 3 / 3; }
  .pjl-cell.c4 { grid-area: 3 / 4; } .pjl-cell.c5 { grid-area: 3 / 5; } .pjl-cell.c6 { grid-area: 3 / 6; }
  .pjl-cell.c7 { grid-area: 6 / 6; } .pjl-cell.c8 { grid-area: 6 / 5; } .pjl-cell.c9 { grid-area: 6 / 4; }
  .pjl-num { font-size: 22px; }
  .pjl-lab { min-height: 42px; display: grid; align-content: center; margin-top: 10px; }
  .pjl-lab .pjl-seg,
  .pjl-lab2 .pjl-seg { display: block; }
  .pjl-lab .pjl-seg + .pjl-seg { margin-left: 0; }
  .pjl-lab2 { margin-top: 10px; line-height: 1.58; }
  /* 横梁往下的腿：守着关口的格各一条，从格的正中往上接到横梁的下缘（多出来的一截藏在横梁后面） */
  .pjl-cell.is-guarded::before { content: ""; position: absolute; left: 50%; top: calc(-1 * var(--pjl-drop) - 4px); width: 2px; height: calc(var(--pjl-drop) + 4px); margin-left: -1px; border-radius: 1px; background: var(--pj-orange); }
  /* 格与格之间的箭头：上排朝右，下排朝左 */
  .pjl-cell::after { top: 50%; bottom: auto; left: auto; right: calc(var(--pjl-gap) / -2 - 3px); margin-top: -4.5px; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; border-left: 6px solid var(--pj-muted-2); border-right: 0; }
  .pjl-cell.c6::after { display: none; }
  .pjl-cell.c7::after,
  .pjl-cell.c8::after { right: auto; left: calc(var(--pjl-gap) / -2 - 3px); border-left: 0; border-right: 6px solid var(--pj-muted-2); }
  /* ⑥ 到 ⑦：右边一个掉头 */
  .pjl-turn { display: block; position: relative; grid-area: 3 / 6 / 7 / 7; pointer-events: none; }
  .pjl-turn::before { content: ""; position: absolute; top: calc(var(--pjl-cell-h) / 2); bottom: calc(var(--pjl-cell-h) / 2); right: -20px; width: 20px; border: 1.75px solid var(--pj-muted-2); border-left: 0; border-radius: 0 14px 14px 0; }
  .pjl-turn::after { content: ""; position: absolute; bottom: calc(var(--pjl-cell-h) / 2 - 4px); right: -1px; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; border-right: 6px solid var(--pj-muted-2); }
  /* ⑨ 绕回 ①：从 ⑨ 下面往左走到第一列，再往上进 ① */
  .pjl-back { --pjl-n: 4; display: block; position: relative; grid-area: 4 / 1 / 8 / 5; pointer-events: none; }
  .pjl-back::before { content: ""; position: absolute; top: 0; bottom: 13px; left: calc((100% - (var(--pjl-n) - 1) * var(--pjl-gap)) / var(--pjl-n) / 2); right: calc((100% - (var(--pjl-n) - 1) * var(--pjl-gap)) / var(--pjl-n) / 2); border-left: 1.75px dashed var(--pj-muted-2); border-bottom: 1.75px dashed var(--pj-muted-2); border-bottom-left-radius: 14px; }
  .pjl-back::after { content: ""; position: absolute; bottom: 13px; right: calc((100% - (var(--pjl-n) - 1) * var(--pjl-gap)) / var(--pjl-n) / 2 - 1px); height: 17px; border-right: 1.75px dashed var(--pj-muted-2); }
  .pjl-back i { position: absolute; top: -1px; left: calc((100% - (var(--pjl-n) - 1) * var(--pjl-gap)) / var(--pjl-n) / 2 - 4.5px); border-bottom: 7px solid var(--pj-muted-2); border-right: 5.25px solid transparent; border-left: 5.25px solid transparent; }
  .pjl-legend { grid-area: 4 / 1 / 7 / 4; align-self: center; margin: 0; padding: 0 0 0 calc((100% - 2 * var(--pjl-gap)) / 6 + 18px); border: 0; border-radius: 0; font-size: 12.5px; }
  .pjl-legend svg { display: none; }
  .pjl-keys { grid-area: 8 / 1 / 9 / -1; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--pj-line); }
}

/* 宽时一行排完：横梁在格头上一字排开，第 ⑨ 格从格下面绕回 ①（写在上下两排那一段后面，同名的类在这里盖过它） */
@container pjl (min-width: 1200px) {
  .pjl { grid-template-columns: repeat(9, minmax(0, 1fr)); grid-template-rows: auto var(--pjl-drop) var(--pjl-cell-h) 34px auto auto; padding-right: 0; }
  .pjl-gate.pjl-from-7,
  .pjl-gate.pjl-from-8,
  .pjl-gate.pjl-from-9 { grid-row: 1; align-self: stretch; margin-top: 0; }
  .pjl-from-7 { grid-column-start: 7; } .pjl-from-8 { grid-column-start: 8; } .pjl-from-9 { grid-column-start: 9; }
  .pjl-to-7 { grid-column-end: 8; } .pjl-to-8 { grid-column-end: 9; } .pjl-to-9 { grid-column-end: 10; }
  .pjl-cell.c7 { grid-area: 3 / 7; } .pjl-cell.c8 { grid-area: 3 / 8; } .pjl-cell.c9 { grid-area: 3 / 9; }
  .pjl-cell.c6::after,
  .pjl-cell.c7::after,
  .pjl-cell.c8::after { display: block; right: calc(var(--pjl-gap) / -2 - 3px); left: auto; border-right: 0; border-left: 6px solid var(--pj-muted-2); }
  .pjl-turn { display: none; }
  .pjl-back { --pjl-n: 9; grid-area: 4 / 1 / 5 / -1; }
  .pjl-back::before { bottom: 6px; right: calc((100% - (var(--pjl-n) - 1) * var(--pjl-gap)) / var(--pjl-n) / 2); border-right: 1.75px dashed var(--pj-muted-2); border-bottom-right-radius: 14px; }
  .pjl-back::after { display: none; }
  .pjl-legend { grid-area: 5 / 1 / 6 / -1; justify-self: center; padding: 6px 0 0; text-align: center; }
  .pjl-keys { grid-area: 6 / 1 / 7 / -1; }
}
.pj2-note { margin: 8px 2px 0; color: var(--pj-muted); font-size: 13.5px; line-height: 1.6; }

/* ── 每个阶段一张卡：白底圆角卡、柔和阴影，鼠标移上去整张浮起；关口牌橙色，「谁做」里的角色名按角色上色 ──────────
   宽屏三列、窄一点两列、再窄一列；多列时六张卡一样高（各行同高：行高都取最高的那一张）。
   卡的壳（li）在页面源码里，卡面（pj2-gate-in）由构建器填；一个盖住整张卡的链接让整张卡点得着、键盘也到得了。
   卡头三行：阶段牌（中性的浅底）、阶段名（放大）、这一阶段的关口牌（橙，带盾牌）—— 关口牌一律单独一行，长的关口名不会在窄卡里被挤到下一行、同一排的卡头一样高；缩略图是一个圆角的窗口，图超出的部分直接裁掉。
   谁做、机器拦在、留下三样都是小牌在上、那一句在下：「谁做」是浅蓝底的人，「机器拦在」是橙色的盾牌，「留下」是青色的单据 */
.pj2-gates {
  --pj-i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M12 3 5.2 5.9v5.3c0 4.4 2.8 7.6 6.8 9.6 4-2 6.8-5.2 6.8-9.6V5.9z'/%3E%3C/svg%3E");
  --pj-i-who: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.8'/%3E%3Cpath d='M4.8 20c.9-3.7 3.6-5.6 7.2-5.6s6.3 1.9 7.2 5.6'/%3E%3C/svg%3E");
  --pj-i-record: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l4 4v14H7z'/%3E%3Cpath d='M14 3v5h5M10 12h5M10 16h5'/%3E%3C/svg%3E");
}
.pj2-gates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; margin: 18px 0 0; padding: 0; list-style: none; }
.pj2-gate { position: relative; min-width: 0; display: flex; overflow: hidden; border: 1px solid var(--pj-line); border-radius: 18px; background: #fff; box-shadow: var(--pj-sh-2); transition: transform .18s, box-shadow .18s, border-color .18s; }
.pj2-gate:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pj-orange) 28%, white); box-shadow: var(--pj-sh-2-hover); }
.pj2-gate-in { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--pj-ink); font-family: var(--font-ui); }
.pj2-cover { position: absolute; z-index: 1; inset: 0; border-radius: inherit; cursor: pointer; }
.pj2-gate .pj2-cover:focus-visible { outline: 3px solid rgba(207, 68, 24, .45); outline-offset: -3px; }
.pj2-gate-head { display: grid; justify-items: start; row-gap: 8px; padding: 18px 18px 4px; }
.pj2-no { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--pj-line); border-radius: 999px; background: var(--paper-blue); color: var(--pj-ink-2); font-size: 13px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; white-space: nowrap; }
.pj2-gate-head h3 { margin: 2px 0 0; color: var(--pj-ink); font-size: 24px; font-weight: 800; letter-spacing: .02em; line-height: 1.2; }
.pj2-seg { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 9px; border-radius: 999px; background: var(--pj-c); box-shadow: 0 3px 8px rgba(207, 68, 24, .3); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.pj2-seg::before { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--pj-i-shield) center / contain no-repeat; mask: var(--pj-i-shield) center / contain no-repeat; }
.pj2-gate-fig { margin: 10px 16px 0; }
.pj2-thumb { position: relative; aspect-ratio: 1200 / 520; overflow: hidden; border: 1px solid #e3e9f2; border-radius: 12px; background: #fff; }
.pj2-thumb img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: auto; }
.pj2-gate-fig figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; margin: 9px 2px 0; color: var(--pj-muted); font-size: 13px; line-height: 1.5; }
.pj2-gate-fig figcaption b { color: var(--pj-ink-2); font-weight: 650; }
.pj2-gate-fig figcaption i { color: var(--pj-muted); font-style: normal; }
.pj2-gate-facts { display: grid; grid-template-columns: minmax(0, 1fr); margin: 14px 18px 0; padding: 0; }
.pj2-gate-facts dt { justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin: 12px 0 5px; padding: 1px 9px 1px 7px; border-radius: 7px; background: var(--paper-blue); color: var(--pj-ink-2); font-size: 12.5px; font-weight: 700; line-height: 1.7; white-space: nowrap; }
.pj2-gate-facts dt:first-of-type { margin-top: 0; }
.pj2-gate-facts dt::before { content: ""; width: 13px; height: 13px; background: var(--pj-ink-2); -webkit-mask: var(--pj-i-who) center / contain no-repeat; mask: var(--pj-i-who) center / contain no-repeat; }
.pj2-gate-facts .pj2-k-block { background: var(--pj-orange-soft); }
.pj2-gate-facts .pj2-k-block::before { background: var(--pj-gate); -webkit-mask-image: var(--pj-i-shield); mask-image: var(--pj-i-shield); }
.pj2-gate-facts .pj2-k-keep { background: var(--mint-soft); }
.pj2-gate-facts .pj2-k-keep::before { background: var(--pj-mint-ink); -webkit-mask-image: var(--pj-i-record); mask-image: var(--pj-i-record); }
.pj2-gate-facts dd { margin: 0; color: var(--pj-ink-2); font-size: 14px; line-height: 1.7; text-wrap: pretty; }
.pj2-go { margin: auto 18px 0; padding: 16px 0; color: var(--pj-gate); font-size: 14px; font-weight: 700; line-height: 1.55; }
.pj2-gate-facts + .pj2-go { margin-top: 16px; border-top: 1px solid var(--pj-line); }
.pj2-go b { font-weight: 700; }
.pj2-go b::after { content: "  →"; display: inline-block; white-space: pre; transition: transform .18s; }
.pj2-gate:hover .pj2-go b::after { transform: translateX(3px); }
/* 「谁做」那一句里的角色名：角色色的小圆点加浅底（墨与灰两种浅底是白的，换成浅蓝底才看得出是一个词） */
.pj2-who { padding: 0 3px 0 2px; border-radius: 4px; background: var(--pj-c-soft); color: var(--pj-ink); font-weight: 700; white-space: nowrap; }
.pj2-who::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 3px 0 1px; border-radius: 50%; background: var(--pj-c); vertical-align: 2px; }
.pj2-who.pj-r-ink,
.pj2-who.pj-r-deploy { background: var(--paper-blue); }
.pj2-who.pj-r-deploy::before { background: var(--pj-muted-2); }
@media (max-width: 1180px) {
  .pj2-gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pj2-gates { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pjl-gate,
  .pj2-gate,
  .pj2-go b::after { transition: none; }
}

/* ── 待立项目与历史项目的入口：各三个数与去处（数字条与箭头入口是模板的部件，这里只给包着它们的两层留白；两节共用） ── */
.pj-history-metrics { margin-top: 8px; }
.pj-history-actions { margin-top: 4px; }

/* ── 目录树里本页自己的部件 ───────────────────────────────────
   能展开的节点：左边是一个节点，右边一个小箭头，下面挂它的下一层（「二」与六个阶段、哪类架构与模块、模块与记录共用这一种；可以套着用，每套一层往里缩一格） */
.pj-branch { display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; }
.pj-branch.is-filter-empty { display: none; }
.pj-branch-toggle {
  width: 26px;
  height: 27px;
  display: grid;
  place-items: center;
  justify-self: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #2a3342;
  cursor: pointer;
}
.pj-branch-toggle:hover { background: #dfe7f3; }
.pj-branch-toggle svg { width: 13px; height: 13px; transition: transform .18s ease; }
.pj-branch.is-open > .pj-branch-toggle svg { transform: rotate(90deg); }
.pj-branch-items { grid-column: 1 / -1; display: none; margin: 0 0 5px 16px; padding-left: 9px; border-left: 1px solid #c5d0e0; }
.pj-branch.is-open > .pj-branch-items { display: block; }
/* 小节点：「二」下面的六个阶段、哪类架构下面的模块（模块后面的小字是它下面有几条记录） */
.pj-sub {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 9px;
  border-radius: 5px;
  color: #2a3446;
  text-decoration: none;
}
.pj-sub:hover { background: #f0f4fa; color: var(--ink); }
.pj-sub.is-selected { background: #e7f0ff; color: var(--hub-ui); }
.pj-sub.is-hidden { display: none; }
.pj-sub b { min-width: 0; overflow: hidden; font: 500 12.5px/1.4 var(--font-ui); text-overflow: ellipsis; white-space: nowrap; }
.pj-sub small { flex: none; color: #5a6880; font: 12px var(--font-mono); }
.pj-sub.is-selected small { color: #557dbb; }
.pj-sub:focus-visible { outline: 2px solid var(--hub-ui); outline-offset: -2px; }
/* 记录节点：挂在它改过的那个模块下面，整个节点的文字连起来是「日期 · 短名 · 版本」。
   排成两行：上面一行「日期 · 短名」，下面一行版本（还在办的写「在办」）；不归任何版本单元的没有下面那一行。
   短名与版本之间那个分隔点在文字里、不画出来（版本已经另起一行）。一个模块里封过几版就写几版：多了只露两行，
   点中这一条才全露出来，鼠标停上去也看得到全名 */
.pj-rec { display: block; padding: 5px 9px 6px; border-radius: 5px; color: #2a3446; font: 500 12px/1.5 var(--font-ui); text-decoration: none; overflow-wrap: anywhere; }
.pj-rec:hover { background: #f0f4fa; color: var(--ink); }
.pj-rec.is-selected { background: #e7f0ff; color: var(--hub-ui); }
.pj-rec.is-hidden { display: none; }
.pj-rec b { display: block; font-weight: 600; }
.pj-rec i { display: none; }
.pj-rec small { display: -webkit-box; overflow: hidden; font: 12px/1.5 var(--font-mono); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pj-rec.is-selected small { display: block; overflow: visible; -webkit-line-clamp: none; }
.pj-rec.is-active small { color: var(--hub-accent); font: 700 12px/1.5 var(--font-ui); }
.pj-rec:focus-visible { outline: 2px solid var(--hub-ui); outline-offset: -2px; }
/* 一个模块下面先露最近几条记录，排在后面的先收着（构建器给它们带上 is-folded，整棵都在页面里）；
   搜索时搜中的那几条临时露出来（页面脚本给它们带上 is-found），搜索词清空就收回去 */
.pj-rec.is-folded { display: none; }
.pj-rec.is-folded.is-found { display: block; }
/* 「…更早的 N 条」：长得像一条记录（上面一行字、下面一行小字），它是一个按钮 —— 点一次再露几条、上面的数跟着减，露完它就没了；搜索时不出 */
.pj-more { width: 100%; display: block; padding: 5px 9px 6px; border: 0; border-radius: 5px; background: transparent; color: #2a3446; font: 500 12px/1.5 var(--font-ui); text-align: left; cursor: pointer; }
.pj-more:hover { background: #f0f4fa; color: var(--ink); }
.pj-more b { display: block; color: var(--hub-ui); font-weight: 600; }
.pj-more small { display: block; color: #5a6880; font: 12px/1.5 var(--font-mono); }
.pj-more.is-hidden,
.pj-more[hidden] { display: none; }
.pj-more:focus-visible { outline: 2px solid var(--hub-ui); outline-offset: -2px; }
/* 组名本身点得开的组（历史项目；待立项目也是这个组头，只是下面没有子节点，左边小箭头那一格空着）：左边小箭头管收放，组名是一个节点。与别的组同高、组名左缘对齐 */
.pj-group-head { min-height: 39px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: stretch; }
.pj-group-chevron { display: flex; align-items: center; padding: 0 0 0 9px; border: 0; border-radius: 5px 0 0 5px; background: transparent; color: #2a3342; cursor: pointer; }
.pj-group-chevron:hover { background: #dfe7f3; }
.pj-group-chevron svg { width: 14px; height: 14px; transition: transform .18s ease; }
.pj-group-head.is-collapsed .pj-group-chevron svg { transform: rotate(-90deg); }
.pj-group-link { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 0 9px 0 0; border-radius: 0 5px 5px 0; color: #2a3342; text-decoration: none; }
.pj-group-link strong { font-size: 13.5px; font-weight: 780; }
.pj-group-link span { color: #8791a1; font: 12px var(--font-mono); }
.pj-group-link:hover { background: #f0f4fa; color: var(--hub-ui); }
.pj-group-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.pj-group-link.is-selected { background: #e7f0ff; color: var(--hub-ui); }
.pj-group-link.is-selected span { color: #557dbb; }
.pj-group-link:focus-visible { outline: 2px solid var(--hub-ui); outline-offset: -2px; }

/* 版本小表里 code 的字号本页比模板默认值小半号：规则在 hub.css，这里只给值（V1.3.5 起；此前是一条覆盖规则）。
   （模板的编号卡本页不用了 —— 每个阶段的卡是上面本页自己的那一种，早先给编号卡图标调描边粗细的那个值随之删掉） */
/* 标语在手机宽度下的字号本页按屏宽缩：第一行「让需求从一句话出发，」十个字，38px 时宽 355px（每个字占 0.935 个字号），
   390 宽的屏只有 335–350px 可用，末尾两个字会掉到下一行（第十一轮入账复盘）。按「可用宽 ÷ 9.4」给，一行正好放得下：
   可用宽 = 屏宽 − 两侧页边距 40px − 正文滚动条最多 17px（手机上滚动条不占位，字会比算出来的略小一点，仍是一行）；430 以上仍是 38px。
   规则在 hub.css，这里只给值 */
.page-project { --hub-kv-code-size: 11px; --hub-slogan-size-narrow: min(38px, calc((100vw - 57px) / 9.4)); }

/* 侧栏页脚：左边那段数（几节 · 几张图 · 几个阶段）、间隔与「在新窗口打开设计页」并排要 263（本机 Edge 量的，字号 12），
   放字的地方：窗口 1121–1360 宽时侧栏收到 274 像素、只剩 221，1361 以上 241，抽屉里窗口 374 以下也不够 ——
   这几档里链接省掉「在新窗口」四个字（打开的照旧是新窗口），省掉之后要 215，整条排得下一行；别的宽度地方够，照旧写全。
   藏的是链接里包着那四个字的一层（本页自己的类，不是模板的元素），页脚的模板规则在 hub.css 一条不动 */
@media (min-width: 1121px), (max-width: 380px) {
  .pj-foot-wide { display: none; }
}
