/* ==========================================================================
   carzyuncle.com — 编辑式排版（editorial / 工程师手册）v3
   设计依据：
   1) 规则线分三级：区段墨线 / 条目 hairline / 无框靠留白
   2) 中文排版：正文字距 +0.015em、行高 1.78、标题 palt 比例字距，禁止负字距
   3) 数字一律 tabular-nums + 等宽
   4) 层级靠字重、尺度、留白，不靠阴影与圆角
   5) 零外部请求：只用系统字体
   ========================================================================== */

:root {
  --red: #f40c3f;
  --red-deep: #b00029;
  --ink: #100000;
  --paper: #fff0eb;
  --paper-2: #f7e4dd;
  --shadow-ink: #4a0010;

  --rule: rgba(16, 0, 0, .86);
  --hair: rgba(16, 0, 0, .15);
  --hair-light: rgba(255, 240, 235, .22);

  --sans: 'PingFang SC', 'Hiragino Sans GB', system-ui, -apple-system, sans-serif;
  --serif: 'Songti SC', 'STSong', 'SimSun', serif;
  --mono: 'SF Mono', ui-monospace, 'Menlo', 'Consolas', monospace;
  --latin: 'HelveticaNeue-CondensedBold', 'Helvetica Neue', 'Arial Narrow', sans-serif;

  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6.5rem;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 68ch;
  --rail: 7.5rem;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0313rem;
  line-height: 1.78;
  letter-spacing: .015em;
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red-deep); outline-offset: 3px;
}
img { max-width: 100%; display: block; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------------- 顶栏 ---------------- */
.topbar { position: sticky; top: 0; z-index: 200; background: var(--paper); border-bottom: 1px solid var(--rule); }
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: var(--space-4); min-height: 3.5rem;
}
.tb-brand {
  font-family: var(--latin); font-size: 1.25rem; letter-spacing: .02em;
  padding-right: var(--space-3); border-right: 1px solid var(--hair);
}
.tb-brand span { color: var(--red-deep); }
.tb-role {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .16em;
  text-transform: uppercase; opacity: .62;
  padding-right: var(--space-3); border-right: 1px solid var(--hair);
}
.tb-nav { display: flex; margin-left: auto; }
.tb-nav a {
  font-size: .8125rem; letter-spacing: .04em; padding: .42rem .7rem;
  position: relative; white-space: nowrap;
}
.tb-nav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .1rem;
  height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.tb-nav a:hover::after, .tb-nav a.active::after { transform: scaleX(1); }
.tb-nav a.active { font-weight: 600; }
.tb-tools { display: flex; align-items: center; gap: var(--space-2); margin-left: var(--space-3); }
.tb-btn {
  background: none; border: 0; cursor: pointer; color: var(--ink);
  font-family: var(--mono); font-size: .625rem; letter-spacing: .12em;
  padding: .35rem 0; border-bottom: 1px solid var(--hair);
}
.tb-btn:hover { border-bottom-color: var(--ink); }
.tb-mail { font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; }
.tb-mail:hover { color: var(--red-deep); }

/* ---------------- 首屏 ---------------- */
.hero {
  background: var(--red); color: var(--ink);
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule); position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .375rem;
  background: rgba(74, 0, 16, .16);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.hero-eyebrow {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .18em;
  text-transform: uppercase; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem); opacity: .78;
}
.hero-title {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(3.2rem, 11vw, 8.75rem);
  line-height: .92; letter-spacing: .01em;
  text-shadow: 3px 3px 0 var(--shadow-ink);
  margin-bottom: clamp(1rem, 2.4vw, 1.75rem);
}
.hero-title .lat { font-family: var(--latin); letter-spacing: .01em; }
.hero-title .cursor {
  display: inline-block; width: .055em; height: .5em; background: var(--ink);
  margin-left: .16em; animation: caret 1.15s steps(1) infinite;
}
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-line {
  font-family: var(--serif); font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  line-height: 1.5; letter-spacing: .02em; max-width: 34em;
  padding-top: clamp(1rem, 2vw, 1.4rem);
  border-top: 1px solid rgba(16, 0, 0, .55);
  display: flex; flex-wrap: wrap; gap: .35rem 1.1rem;
}
.hero-line i { font-style: normal; opacity: .55; }

.hero-facts {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(16, 0, 0, .55);
}
.hero-facts > div { padding: var(--space-3) var(--space-3) 0 0; }
.hero-facts dt {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .16em;
  opacity: .62; margin-bottom: .3rem;
}
.hero-facts dd { font-size: 1.0625rem; font-weight: 500; letter-spacing: .01em; }
.hero-facts a { border-bottom: 1px solid rgba(16, 0, 0, .45); }
.hero-facts a:hover { border-bottom-color: var(--ink); }

/* ---------------- 容器与区段 ---------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sect { border-top: 1px solid var(--rule); padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2rem, 4vw, 3rem); }
.sect:first-child { border-top: 0; }

.sect-head {
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
  align-items: baseline; margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.sect-num {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .18em;
  text-transform: uppercase; opacity: .55; padding-top: .45rem;
}
.sect-title {
  font-size: clamp(1.375rem, 3vw, 2.125rem); font-weight: 600;
  line-height: 1.22; letter-spacing: .01em;
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
}
.sect-title small {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .14em;
  font-weight: 400; text-transform: uppercase; opacity: .5;
}
.sect-note {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .1em;
  opacity: .55; margin-left: auto; white-space: nowrap;
}

/* ---------------- whoami ---------------- */
.whoami { background: var(--ink); color: var(--paper); padding: clamp(2rem, 4.5vw, 3.25rem) 0; }
.whoami-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.whoami .cmd {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .06em;
  color: #7ee07e; margin-bottom: var(--space-4);
}
.whoami p {
  max-width: var(--measure); margin-bottom: var(--space-3);
  color: #f3ddd5; font-size: 1.0313rem; line-height: 1.85; letter-spacing: .02em;
}
.whoami p:last-child { margin-bottom: 0; }
.whoami strong {
  display: block; font-weight: 500; font-size: .6875rem; font-family: var(--mono);
  letter-spacing: .14em; text-transform: uppercase; color: #ff9fb2; margin-bottom: .35rem;
}
.whoami a { color: var(--paper); border-bottom: 1px solid rgba(255, 240, 235, .5); }
.whoami a:hover { border-bottom-color: var(--paper); }

/* ---------------- 引文 ---------------- */
.pull { border-top: 1px solid var(--rule); padding: clamp(2.25rem, 5vw, 4rem) 0; }
.pull-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
}
.pull-body blockquote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.45; letter-spacing: .02em; max-width: 26em;
}
.pull-body blockquote em {
  font-style: normal;
  background: linear-gradient(transparent 62%, rgba(244, 12, 63, .28) 62%);
}
.pull-cite {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em;
  opacity: .6; margin-top: var(--space-4);
}

/* ---------------- 四象限 ---------------- */
.quads { display: grid; grid-template-columns: 1fr 1fr; }
.quad { padding: var(--space-4) var(--space-4) var(--space-5); border-bottom: 1px solid var(--hair); }
.quad:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--hair); }
.quad:nth-child(even) { padding-right: 0; padding-left: var(--space-4); }
.quad:nth-last-child(-n+2) { border-bottom: 0; }
.quad-no {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .18em;
  color: var(--red-deep); display: block; margin-bottom: .7rem;
}
.quad-jargon {
  font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55; letter-spacing: .015em; margin-bottom: .75rem;
}
.quad-plain { font-size: .9375rem; line-height: 1.8; color: rgba(16, 0, 0, .76); max-width: 34em; }
.quad-plain::before {
  content: "直白说"; display: inline-block;
  font-family: var(--mono); font-size: .5625rem; letter-spacing: .16em;
  color: var(--red-deep); border: 1px solid var(--red-deep);
  padding: 0 .3rem; margin-right: .5rem; vertical-align: .12em;
}
.quad-fact {
  font-family: var(--mono); font-size: .6875rem; line-height: 1.7;
  color: rgba(16, 0, 0, .6);
  padding-top: .6rem; margin-top: var(--space-3); border-top: 1px solid var(--hair);
}
.quad-fact b { font-weight: 400; color: var(--ink); }

/* ---------------- 列表行 ---------------- */
.rows { border-top: 1px solid var(--hair); }
.row {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 8.5rem 5.5rem;
  align-items: baseline; border-bottom: 1px solid var(--hair);
  transition: background .16s ease;
}
.row > * { padding: .9rem .75rem; }
.row > *:first-child { padding-left: 0; }
.row > *:last-child { padding-right: 0; text-align: right; }
.row-no {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em;
  color: var(--red-deep); font-variant-numeric: tabular-nums;
}
.row-main { display: flex; flex-direction: column; gap: .15rem; }
.row-title {
  font-size: 1.0625rem; font-weight: 500; letter-spacing: .01em;
  text-underline-offset: .28em; text-decoration-thickness: 1px;
}
.row-meta {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em;
  color: rgba(16, 0, 0, .55);
}
.row-role, .row-result {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .03em;
  color: rgba(16, 0, 0, .68); font-variant-numeric: tabular-nums;
}
.row-link:hover { background: rgba(16, 0, 0, .045); }
.row-link:hover .row-title { text-decoration: underline; }

/* 可展开案例 */
details.case-row { border-bottom: 1px solid var(--hair); }
details.case-row > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 8.5rem 5.5rem;
  align-items: baseline; transition: background .16s ease;
}
details.case-row > summary::-webkit-details-marker { display: none; }
details.case-row > summary > * { padding: .95rem .75rem; }
details.case-row > summary > *:first-child { padding-left: 0; }
details.case-row > summary > *:last-child { padding-right: 0; text-align: right; }
details.case-row > summary:hover { background: rgba(16, 0, 0, .045); }
details.case-row > summary:hover .row-title { text-decoration: underline; }
details.case-row[open] > summary .row-title::after {
  content: "－"; font-weight: 400; margin-left: .5rem; color: var(--red-deep);
}
details.case-row:not([open]) > summary .row-title::after {
  content: "＋"; font-weight: 400; margin-left: .5rem; color: rgba(16, 0, 0, .35);
}
.case-detail {
  display: grid; grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: var(--space-4); padding: var(--space-4) 0 var(--space-5);
  border-top: 1px solid var(--hair);
}
.case-facts { font-family: var(--mono); font-size: .6875rem; line-height: 1.85; }
.case-facts dt {
  font-size: .5625rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-deep); margin-bottom: .15rem;
}
.case-facts dd { margin-bottom: var(--space-3); color: rgba(16, 0, 0, .75); }
.case-body p { max-width: var(--measure); margin-bottom: var(--space-3); }
.case-body .hl {
  font-family: var(--mono); font-size: .75rem; line-height: 1.8;
  color: rgba(16, 0, 0, .7);
  padding-left: .9rem; border-left: 2px solid var(--red); margin: var(--space-3) 0;
}
.tags { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: var(--space-3); }
.tags span { font-family: var(--mono); font-size: .625rem; letter-spacing: .06em; color: rgba(16, 0, 0, .62); }
.tags span::before { content: "／"; opacity: .35; margin-right: .3rem; }

/* ---------------- 工具 ---------------- */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool {
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-right: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: .6rem;
}
.tool:nth-child(3n) { border-right: 0; padding-right: 0; }
.tool:nth-child(3n+2), .tool:nth-child(3n+3) { padding-left: var(--space-4); }
.tool-no { font-family: var(--mono); font-size: .625rem; letter-spacing: .16em; color: var(--red-deep); }
.tool h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: .01em; line-height: 1.4; }
.tool p { font-size: .9375rem; line-height: 1.8; color: rgba(16, 0, 0, .72); max-width: 30em; }
.tool .go { margin-top: auto; font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; padding-top: .5rem; }
.tool .go::after { content: "→"; display: inline-block; margin-left: .35rem; transition: transform .2s ease; }
.tool:hover .go::after { transform: translateX(4px); }
.tool:hover h3 { text-decoration: underline; text-underline-offset: .3em; }

/* ---------------- 联系 ---------------- */
.contact {
  background: var(--red); color: var(--ink);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.contact-inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(2rem, 4.5vw, 3.5rem) var(--gutter);
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
}
.contact-label {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .18em;
  text-transform: uppercase; opacity: .7; padding-top: .6rem;
}
.contact-mail {
  font-size: clamp(1.45rem, 4.6vw, 3.25rem); font-weight: 600;
  letter-spacing: .005em; line-height: 1.15;
  border-bottom: 2px solid var(--ink); padding-bottom: .12em; word-break: break-word;
}
.contact-mail:hover { color: var(--paper); border-bottom-color: var(--paper); }
.contact-meta {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em;
  margin-top: var(--space-3); opacity: .8;
}
.contact-actions { margin-top: var(--space-4); display: flex; gap: var(--space-4); flex-wrap: wrap; font-size: .8125rem; }
.contact-actions button, .contact-actions a {
  background: none; border: 0; cursor: pointer; color: var(--ink); font: inherit;
  letter-spacing: .02em; border-bottom: 1px solid rgba(16, 0, 0, .55); padding: 0 0 .1rem;
}
.contact-actions button:hover, .contact-actions a:hover { border-bottom-color: var(--ink); }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--ink); color: var(--paper); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(1.75rem, 3.5vw, 2.5rem) var(--gutter);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-4);
}
.footer-cell dt {
  font-family: var(--mono); font-size: .5625rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255, 240, 235, .5); margin-bottom: .5rem;
}
.footer-cell dd { font-size: .8125rem; line-height: 1.8; color: rgba(255, 240, 235, .82); letter-spacing: .02em; }
.footer a { border-bottom: 1px solid rgba(255, 240, 235, .3); }
.footer a:hover { color: #ffb3c4; border-bottom-color: #ffb3c4; }

/* ---------------- 内页页头 ---------------- */
.page-head {
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
  border-bottom: 1px solid var(--rule);
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}
.ph-rail {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .14em;
  line-height: 1.9; opacity: .55; padding-top: .5rem; text-transform: uppercase;
}
.page-head h1 {
  font-size: clamp(1.9rem, 5vw, 3.25rem); font-weight: 600;
  line-height: 1.14; letter-spacing: .01em; max-width: 20em;
}
.ph-sub {
  font-family: var(--serif); font-size: clamp(1rem, 1.8vw, 1.1875rem);
  line-height: 1.7; letter-spacing: .02em;
  color: rgba(16, 0, 0, .74); margin-top: var(--space-3); max-width: 44em;
}

/* ---------------- 正文构件 ---------------- */
.lede {
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  line-height: 1.85; letter-spacing: .02em; max-width: var(--measure);
}
.note-lede { color: rgba(16, 0, 0, .7); font-size: .9375rem; margin-top: var(--space-3); }

table.matrix { width: 100%; border-collapse: collapse; }
table.matrix th {
  text-align: left; font-weight: 500;
  font-family: var(--mono); font-size: .5625rem; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(16, 0, 0, .6);
  padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--rule);
}
table.matrix td {
  padding: .8rem .75rem .8rem 0; vertical-align: top;
  border-bottom: 1px solid var(--hair); font-size: .9375rem; line-height: 1.8;
}
table.matrix td:first-child {
  width: 9rem; font-weight: 500; white-space: nowrap;
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em;
}
table.matrix tr:hover td { background: rgba(16, 0, 0, .03); }

.timeline { list-style: none; }
.timeline li {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr);
  gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--hair);
}
.timeline li:first-child { border-top: 1px solid var(--rule); }
.timeline .tl-v { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; color: var(--red-deep); padding-top: .2rem; }
.timeline .tl-d { font-size: .9375rem; line-height: 1.85; color: rgba(16, 0, 0, .8); max-width: 52ch; }

.note-block {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--hair);
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
}
.note-block:last-child { border-bottom: 0; }
.note-meta {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .08em;
  color: rgba(16, 0, 0, .5); padding-top: .45rem;
}
.note-body h2 {
  font-size: clamp(1.1875rem, 2.2vw, 1.5rem); font-weight: 600;
  line-height: 1.45; letter-spacing: .01em; margin-bottom: var(--space-3); max-width: 32em;
}
.note-body h2 span {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .06em;
  color: var(--red-deep); margin-right: .5rem; font-weight: 400;
}
.note-body p { max-width: var(--measure); margin-bottom: var(--space-3); }
.note-body blockquote {
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.8; letter-spacing: .02em;
  color: rgba(16, 0, 0, .75); border-left: 2px solid var(--red); padding-left: 1rem;
  margin: var(--space-4) 0; max-width: 40em;
}
.note-body strong { font-weight: 600; }

#bootSkip {
  position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: 1001;
  background: none; color: #7ee07e; border: 1px solid #7ee07e;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em;
  padding: .35rem .75rem; cursor: pointer;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  :root { --rail: 5rem; }
  .row, details.case-row > summary { grid-template-columns: 3.5rem minmax(0, 1fr) 7rem 4.5rem; }
  .case-detail { grid-template-columns: 8rem minmax(0, 1fr); }
}

@media (max-width: 780px) {
  :root { --rail: 0rem; }
  .topbar-inner { gap: .75rem; min-height: 3.25rem; }
  .tb-role { display: none; }
  .tb-nav { margin-left: auto; overflow-x: auto; scrollbar-width: none; }
  .tb-nav::-webkit-scrollbar { display: none; }
  .tb-nav a { padding: .4rem .5rem; font-size: .75rem; }
  .tb-mail { display: none; }
  .tb-brand { border-right: 0; padding-right: 0; font-size: 1.05rem; }

  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div { padding: .65rem 0 .2rem; border-top: 1px solid rgba(16, 0, 0, .3); }
  .hero-facts > div:first-child { border-top: 0; }

  .sect-head { grid-template-columns: 1fr; gap: .4rem; }
  .sect-num { padding-top: 0; }
  .sect-note { margin-left: 0; }

  .quads { grid-template-columns: 1fr; }
  .quad { padding: 1.25rem 0 !important; border-right: 0 !important; }
  .quad:last-child { border-bottom: 0; }

  .row, details.case-row > summary { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .row-role, .row-result { display: none; }
  details.case-row > summary .row-role,
  details.case-row > summary .row-result { display: block; grid-column: 2; text-align: left; padding: 0 0 .55rem; }
  details.case-row > summary .row-role { color: rgba(16, 0, 0, .55); }
  .case-detail { grid-template-columns: 1fr; gap: var(--space-3); }

  .tools { grid-template-columns: 1fr; }
  .tool, .tool:nth-child(3n+2), .tool:nth-child(3n+3) {
    padding: 1.1rem 0; border-right: 0; border-bottom: 1px solid var(--hair);
  }
  .tool:last-child { border-bottom: 0; }

  .contact-inner, .pull-inner, .note-block, .page-head { grid-template-columns: 1fr; }
  .contact-label, .note-meta, .ph-rail { padding-top: 0; margin-bottom: .6rem; }
  .ph-rail { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-3); }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title .cursor { animation: none; }
  .tb-nav a::after, .tool .go::after { transition: none; }
}

@media print {
  .topbar, .footer, .contact, .tb-tools { display: none; }
  body { background: #fff; color: #000; }
}

/* 区段正文：与栏轨对齐 */
.sect-body { padding-left: var(--rail); }
@media (max-width: 780px) { .sect-body { padding-left: 0; } }

/* ---------- 细节修正 ---------- */
.sect-head { gap: 0 var(--space-4); align-items: start; }
.sect-num { padding-top: .5rem; }
.sect-note { margin-top: .5rem; opacity: .5; letter-spacing: .08em; }
.row-result { white-space: nowrap; }
.row { grid-template-columns: 4.5rem minmax(0, 1fr) 8rem 5rem; }
details.case-row > summary { grid-template-columns: 4.5rem minmax(0, 1fr) 8rem 5rem; }
.morelink {
  display: inline-block; margin-top: .5rem;
  font-size: .8125rem; letter-spacing: .03em;
  border-bottom: 1px solid rgba(16, 0, 0, .35); padding-bottom: .1rem;
}
.morelink::after { content: " →"; }
.morelink:hover { border-bottom-color: var(--ink); }
@media (max-width: 1024px) {
  .row, details.case-row > summary { grid-template-columns: 3.5rem minmax(0, 1fr) 6.5rem 4.25rem; }
}

/* ---------- 栏轨改为真正的页边注（内容与标题左对齐，标签挂在页边） ---------- */
.wrap { padding-left: calc(var(--gutter) + var(--rail)); }
.sect-head { display: block; position: relative; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.sect-num {
  position: absolute; left: calc(-1 * var(--rail)); top: .55rem;
  width: calc(var(--rail) - var(--space-3));
  padding-top: 0;
}
.sect-title { display: block; }
.sect-title small { margin-left: .6rem; }
.sect-note { margin-left: 0; }

.page-head { display: block; position: relative; }
.ph-rail { max-width: var(--rail); margin-left: calc(-1 * var(--rail)); width: var(--rail); padding-right: var(--space-3); }

@media (max-width: 780px) {
  .wrap { padding-left: var(--gutter); }
  .sect-num { position: static; width: auto; display: block; margin-bottom: .35rem; }
  .ph-rail { display: none; }
}

/* 引文区：恢复两列，标签留在左栏 */
.pull-inner { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); align-items: start; }
.pull-inner .sect-num { position: static; width: auto; padding-top: .6rem; margin: 0; }
.pull-body blockquote { margin: 0; }
@media (max-width: 780px) {
  .pull-inner { grid-template-columns: 1fr; }
  .pull-inner .sect-num { padding-top: 0; margin-bottom: .5rem; }
}

/* 去掉重复的正文缩进（.wrap 已统一处理） */
.sect-body { padding-left: 0 !important; }

/* 文字链接行（404 等） */
.linkrow { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); margin-top: var(--space-4); font-size: 1rem; }
.linkrow a { padding-bottom: .1rem; border-bottom: 1px solid rgba(16, 0, 0, .3); }
.linkrow a:hover { border-bottom-color: var(--ink); }

@media (max-width: 780px) {
  .hero-title .cursor { display: none; }   /* 小屏去掉光标块，避免被误读为字形残缺 */
  .hero-title { letter-spacing: 0; }
}

/* 对比度修正：次要文字的墨色加深到 AA 之上 */
.row-meta { color: rgba(16, 0, 0, .64); }
.note-meta { color: rgba(16, 0, 0, .64); }
.tool p, .quad-plain { color: rgba(16, 0, 0, .78); }
.ph-sub, .timeline .tl-d { color: rgba(16, 0, 0, .78); }

/* 首屏收一档：让红色场占约 2/3 屏，不再顶满 */
.hero { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.hero-title { font-size: clamp(3rem, 9.6vw, 7.5rem); }
.hero-facts { margin-top: clamp(1.25rem, 3vw, 2.25rem); }

/* ================= 会审修复（2026-11-04 第二轮） ================= */

/* D) 高对比模式真正生效（此前只有 JS 切换、没有对应规则） */
html[data-contrast="high"] {
  --red: #c00024;
  --red-deep: #8a001c;
  --ink: #000000;
  --paper: #ffffff;
  --paper-2: #f2f2f2;
  --hair: rgba(0, 0, 0, .28);
  --rule: #000;
}
html[data-contrast="high"] .hero { background: #c00024; }
html[data-contrast="high"] .contact { background: #c00024; }

/* E) 小屏列表回到两列（后写的 1024 规则会覆盖 780，这里统一兜底） */
@media (max-width: 780px) {
  .row, details.case-row > summary { grid-template-columns: 2.75rem minmax(0, 1fr) !important; }
  .row-role, .row-result { display: none !important; }
  details.case-row > summary .row-role,
  details.case-row > summary .row-result { display: block !important; grid-column: 2 !important; text-align: left !important; padding: 0 0 .5rem !important; }
  .case-detail { grid-template-columns: 1fr !important; }
  .tool, .tool:nth-child(3n+2), .tool:nth-child(3n+3) { border-right: 0 !important; padding: 1.1rem 0 !important; }
}

/* G) 字号下限 10px（原 9px 的标签统一提到 10px） */
.footer-cell dt, .case-facts dt, table.matrix th, .quad-plain::before,
.note-meta, .ph-rail, .sect-num, .tb-role, .tb-btn { font-size: .625rem !important; }

/* I) 焦点环：红底上用白、纸底上用墨，保证可见 */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hero :focus-visible, .contact :focus-visible { outline-color: #fff; }

/* H) 跳转链接与地标 */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; font-size: .8125rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }
