:root {
  --paper: #f2ece0;
  --card: #fbf8f0;
  --card-2: #f6f1e6;
  --ink: #1b1916;
  --ink-2: #3a352d;
  --muted: #756c5e;
  --faint: #9a9080;
  --line: #d8d0c0;
  --line-strong: #b9ae9a;
  --red: #b23a2c;
  --red-soft: #f1ddd7;
  --green: #3f6b52;
  --green-soft: #e2ebe3;
  --amber: #a9701f;
  --amber-soft: #f3e8d2;
  --blue: #3a5a74;
  --blue-soft: #e0e8ee;
  --shadow: 0 1px 0 rgba(27, 25, 22, .04), 0 12px 30px -22px rgba(27, 25, 22, .35);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  background:
    radial-gradient(900px 500px at 12% -5%, #faf6ec 0%, rgba(250, 246, 236, 0) 60%),
    radial-gradient(800px 500px at 100% 0%, #efe7d7 0%, rgba(239, 231, 215, 0) 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.masthead, .shell, .footer { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- 刊头 */

.masthead {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 32px 34px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line-strong);
}

.kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.kicker span { color: var(--line-strong); margin: 0 6px; }
.lang {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(178, 58, 44, .35);
  padding-bottom: 1px;
}
.lang:hover { border-bottom-color: var(--red); }

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
h1 em {
  font-style: normal;
  color: var(--red);
  background: linear-gradient(transparent 74%, rgba(178, 58, 44, .16) 74%);
}

.lede {
  max-width: 640px;
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.85;
}

.stamp {
  flex: none;
  width: 132px;
  padding: 14px 12px 10px;
  border: 2px solid var(--red);
  border-radius: 3px;
  color: var(--red);
  text-align: center;
  transform: rotate(-3.5deg);
  opacity: .88;
  font-family: var(--serif);
  letter-spacing: .18em;
  background: rgba(251, 248, 240, .4);
}
.stamp span { display: block; font-size: 17px; line-height: 1.5; font-weight: 700; }
.stamp .stamp-line { font-size: 24px; letter-spacing: .3em; padding-left: .3em; }
.stamp small {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .12em;
  border-top: 1px solid rgba(178, 58, 44, .4);
  padding-top: 6px;
}

/* ---------------------------------------------------------------- 布局 */

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 32px 72px;
  display: grid;
  grid-template-columns: 392px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
}

.input-panel {
  position: relative;
}

.panel-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.panel-head.second { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.panel-head h2 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0;
  letter-spacing: .02em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
  flex: none;
  transform: translateY(-1px);
}
.hint {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--faint);
  text-align: right;
  line-height: 1.4;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.jd-input {
  width: 100%;
  min-height: 238px;
  resize: vertical;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(transparent 0 27px, rgba(185, 174, 154, .18) 27px 28px),
    #fffdf8;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 28px;
  padding: 10px 12px;
  border-radius: 2px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.jd-input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(185, 174, 154, .18);
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.char-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field.wide { grid-column: 1 / -1; }
.field > span {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .04em;
}
.field > span em {
  font-style: normal;
  color: var(--faint);
  font-size: 10.5px;
  margin-left: 4px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 2px;
  padding: 7px 9px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.field textarea { resize: vertical; line-height: 1.65; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(185, 174, 154, .16);
}

.btn {
  font-family: var(--sans);
  font-size: 13px;
  border-radius: 2px;
  padding: 8px 14px;
  cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.btn.ghost:hover { background: var(--card-2); border-color: var(--ink-2); }
.btn.primary {
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--ink);
  color: #fbf8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  letter-spacing: .04em;
}
.btn.primary:hover { background: #2c2822; }
.btn.primary .btn-key {
  font-family: var(--mono);
  font-size: 9.5px;
  opacity: .55;
  letter-spacing: .06em;
}
.btn[disabled] { opacity: .6; cursor: wait; }

.fine {
  margin: 12px 0 0;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--faint);
}

/* ---------------------------------------------------------------- 结果区 */

.results { min-width: 0; }

.empty {
  border: 1px dashed var(--line-strong);
  background: rgba(251, 248, 240, .55);
  padding: 64px 48px;
  text-align: left;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.empty-mark {
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  color: var(--line-strong);
  margin-bottom: 18px;
}
.empty h2 {
  font-family: var(--serif);
  font-size: 30px;
  margin: 0 0 10px;
}
.empty p {
  max-width: 560px;
  color: var(--muted);
  margin: 0 0 22px;
}
.empty-rules {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: .04em;
}

/* 判断卡 */

.verdict-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
}
.verdict-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  padding: 26px 28px 24px;
  position: relative;
  overflow: hidden;
}
.verdict-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .08;
}
.verdict-card.worth { border-top-color: var(--green); color: var(--green); }
.verdict-card.cautious { border-top-color: var(--amber); color: var(--amber); }
.verdict-card.avoid { border-top-color: var(--red); color: var(--red); }
.verdict-card.gap { border-top-color: var(--blue); color: var(--blue); }

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--faint);
  text-transform: uppercase;
}
.verdict {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  margin: 8px 0 10px;
  color: currentColor;
}
.verdict-line {
  color: var(--ink-2);
  margin: 0 0 14px;
  font-size: 14px;
}
.hr-line {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  border-left: 2px solid currentColor;
  padding-left: 12px;
  opacity: .92;
}

.score-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}
.score-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ring {
  --v: 0;
  --c: var(--amber);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), #e7dfd0 0);
  display: grid;
  place-items: center;
  position: relative;
}
.ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--card);
}
.ring span {
  position: relative;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.ring span small { font-size: 11px; color: var(--faint); margin-left: 1px; }
.score-meta strong { display: block; font-size: 13.5px; }
.score-meta small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 3px; }

.meta-strip {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 12px;
  color: var(--muted);
}
.meta-strip b {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--faint);
  font-weight: 400;
  text-transform: uppercase;
}
.meta-strip span { color: var(--ink-2); }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 20px 0 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.toc a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.toc a:hover { color: var(--red); border-bottom-color: var(--red); }

/* 区块 */

.block { padding: 38px 0 6px; border-bottom: 1px dashed var(--line); }
.block:last-of-type { border-bottom: none; }
.block-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}
.block-head h2 {
  font-family: var(--serif);
  font-size: 25px;
  margin: 0;
  letter-spacing: .01em;
}
.block-head .hint { align-self: center; }

/* 维度 */

.dims { display: flex; flex-direction: column; gap: 0; }
.dim-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 46px minmax(0, 1.05fr);
  gap: 14px;
  align-items: center;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(216, 208, 192, .55);
}
.dim-row:first-child { border-top: 1px solid rgba(216, 208, 192, .55); }
.dim-name { font-size: 13px; color: var(--ink-2); }
.dim-bar { height: 7px; background: #e6ded0; border-radius: 99px; overflow: hidden; }
.dim-bar span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 99px;
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
.dim-row[data-level="mid"] .dim-bar span { background: var(--amber); }
.dim-row[data-level="low"] .dim-bar span { background: var(--red); }
.dim-score { font-family: var(--serif); font-size: 18px; text-align: right; }
.dim-note { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.risk-strip {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--red-soft);
  border-left: 3px solid var(--red);
  font-size: 12.5px;
  color: #6d2a20;
}
.risk-strip strong { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; margin-bottom: 5px; color: var(--red); }
.risk-strip p { margin: 2px 0; }

/* 行话 */

.jargon-list { display: flex; flex-direction: column; gap: 14px; }
.jargon-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  gap: 20px;
}
.jargon-quote {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  position: relative;
  padding-left: 18px;
}
.jargon-quote::before {
  content: "“";
  position: absolute;
  left: -2px;
  top: -12px;
  font-family: var(--serif);
  font-size: 38px;
  color: var(--line-strong);
  line-height: 1;
}
.jargon-quote.synthetic { color: var(--faint); font-style: normal; }
.jargon-body { display: flex; flex-direction: column; gap: 10px; }
.jargon-item { padding-left: 12px; border-left: 1px solid var(--line); }
.jargon-item + .jargon-item { margin-top: 2px; }
.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .08em;
  padding: 1px 7px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: 1px;
}
.tag.强度 { background: var(--red-soft); color: #8d2f24; }
.tag.钱 { background: var(--amber-soft); color: #7c5214; }
.tag.管理 { background: var(--blue-soft); color: #2f4d63; }
.tag.稳定性 { background: #e8e3d7; color: #5b5345; }
.tag.门槛 { background: #e6e6e6; color: #4b4b4b; }
.tag.Workload { background: var(--red-soft); color: #8d2f24; }
.tag.Pay { background: var(--amber-soft); color: #7c5214; }
.tag.Management { background: var(--blue-soft); color: #2f4d63; }
.tag.Stability { background: #e8e3d7; color: #5b5345; }
.tag.Gate { background: #e6e6e6; color: #4b4b4b; }
.decode { margin: 3px 0 0; font-size: 13.5px; color: var(--ink); line-height: 1.7; }
.why { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.65; }
.ask {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--blue);
  line-height: 1.65;
}
.lab {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--faint);
  margin-right: 4px;
}


/* JD 表 */

.req-table-wrap { overflow-x: auto; }
.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.req-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--faint);
  font-weight: 400;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.req-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(216, 208, 192, .55);
  vertical-align: middle;
}
.req-table tr:hover td { background: rgba(246, 241, 230, .7); }
.req-table .id { font-family: var(--mono); font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.req-table .req-text { color: var(--ink-2); line-height: 1.55; min-width: 220px; }
.req-table .score { font-family: var(--serif); font-size: 15px; white-space: nowrap; }
.req-table .score .tier {
  font-family: var(--mono);
  font-size: 9px;
  margin-left: 4px;
  color: var(--faint);
}
.chip {
  display: inline-block;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 2px;
  white-space: nowrap;
  letter-spacing: .04em;
}
.chip.hard_gate { background: #ede3d3; color: #7a4a12; }
.chip.core { background: #dfe8e1; color: #2f5a42; }
.chip.plus { background: #e6e6ea; color: #4a4a5a; }
.chip.soft { background: #f0e6dc; color: #6d4b2f; }
.chip.logistics { background: #e9e4d8; color: #5b5345; }

.wbar {
  display: inline-block;
  width: 54px;
  height: 5px;
  background: #e6ded0;
  border-radius: 99px;
  overflow: hidden;
  vertical-align: middle;
}
.wbar span { display: block; height: 100%; background: var(--line-strong); }
.req-table .weight small { font-family: var(--mono); font-size: 9.5px; color: var(--faint); margin-left: 5px; }

.match-select {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 2px;
  padding: 2px 4px;
  outline: none;
}
.match-select:focus { border-color: var(--ink-2); }
.table-note { margin: 12px 0 0; font-size: 10.5px; color: var(--faint); }

/* 清单 */

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.progress { flex: 1; height: 4px; background: #e4dccd; border-radius: 99px; overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--green); transition: width .3s; }
.progress-label { font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }

.plan-phase { margin-bottom: 26px; }
.phase-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
}
.phase-head h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0;
  letter-spacing: .04em;
}
.phase-head .phase-index {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--faint);
  letter-spacing: .1em;
}
.phase-head .phase-sum {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}

.plan-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 14px 14px 10px;
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(216, 208, 192, .55);
  transition: background .2s, border-color .2s;
}
.plan-item:hover { background: rgba(251, 248, 240, .8); border-color: var(--line); }
.plan-item.done { opacity: .55; }
.plan-item.done .plan-title { text-decoration: line-through; text-decoration-color: var(--line-strong); }

.check { position: relative; display: block; cursor: pointer; height: 18px; margin-top: 2px; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check .box {
  display: block;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fffdf8;
  position: relative;
}
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fbf8f0;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(27, 25, 22, .15); }

.plan-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-top .tid { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.plan-title { font-size: 14px; font-weight: 600; margin: 0; line-height: 1.55; }
.pill {
  font-family: var(--mono);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 2px;
  letter-spacing: .06em;
}
.pill.P0 { background: var(--red); color: #fff; }
.pill.P1 { background: var(--amber-soft); color: #7c5214; }
.pill.P2 { background: #e8e3d7; color: #5b5345; }
.pill.P3 { background: #efefef; color: #777; }
.plan-top .mins { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--faint); }

.plan-meta { margin-top: 6px; display: grid; gap: 3px; font-size: 12px; color: var(--ink-2); }
.plan-meta b {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--faint);
  font-weight: 400;
  margin-right: 6px;
}
.plan-quote {
  margin: 8px 0 0;
  padding: 6px 10px;
  border-left: 2px solid var(--line-strong);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  background: rgba(246, 241, 230, .55);
}

/* 一页纸 */

.onepager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.op-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 18px;
}
.op-card.wide { grid-column: 1 / -1; }
.op-card h4 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--faint);
  font-weight: 400;
  text-transform: uppercase;
}
.op-snapshot {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
}
.op-list { margin: 0; padding-left: 18px; }
.op-list li { margin: 4px 0; font-size: 12.5px; line-height: 1.65; }
.op-hook {
  background: var(--ink);
  color: #f4efe4;
  border-color: var(--ink);
}
.op-hook h4 { color: rgba(244, 239, 228, .55); }
.op-hook p { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.8; }

.export-bar {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.export-note { margin-left: auto; font-size: 10.5px; color: var(--faint); }

/* 页脚 */

.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--faint);
}

/* 提示 */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: #fbf8f0;
  font-size: 12.5px;
  padding: 9px 16px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 9;
  max-width: 80vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 载入动效 */

#output { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 响应式 */

@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; gap: 28px; }
  .input-panel { position: static; max-height: none; }
  .verdict-grid { grid-template-columns: 1fr; }
  .score-stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .jargon-card { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 720px) {
  h1 { font-size: 34px; }
  .masthead { padding: 36px 18px 24px; }
  .stamp { display: none; }
  .shell { padding: 24px 18px 56px; }
  .panel { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .score-stack { grid-template-columns: 1fr; }
  .dim-row { grid-template-columns: 74px minmax(0, 1fr) 38px; row-gap: 4px; }
  .dim-note { grid-column: 1 / -1; font-size: 11px; }
  .onepager { grid-template-columns: 1fr; }
  .empty { padding: 40px 24px; min-height: 420px; }
  .empty-mark { font-size: 64px; }
  .footer { padding: 16px 18px 30px; }
  .plan-top .mins { margin-left: 0; width: 100%; }
}

[data-locale="en"] .stamp {
  width: 152px;
  padding: 12px 8px 8px;
}
[data-locale="en"] .stamp span {
  font-size: 12.5px;
  letter-spacing: .12em;
  white-space: nowrap;
}
[data-locale="en"] .stamp .stamp-line {
  font-size: 21px;
  letter-spacing: .18em;
  padding-left: .18em;
}
[data-locale="en"] h1 { font-size: clamp(34px, 4.7vw, 56px); letter-spacing: -.03em; }
[data-locale="en"] .verdict { font-size: clamp(30px, 4.1vw, 48px); letter-spacing: -.02em; }
[data-locale="en"] .verdict-card .hr-line { font-size: 12.5px; }

@media print {
  body { background: #fff; }
  .grain, .input-panel, .export-bar, .toc, .footer, .toast { display: none !important; }
  .shell { display: block; max-width: none; padding: 0; }
  .block { break-inside: avoid; }
  .verdict-card, .score-card, .jargon-card, .plan-item, .op-card { border-color: #ccc; box-shadow: none; }
}

.match-reason {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--faint);
  line-height: 1.45;
}

.insights {
  margin-bottom: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--card-2);
}
.insights strong {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--faint);
  font-weight: 400;
  margin-bottom: 8px;
}
.insight-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 4px 0;
  font-size: 12.5px;
  line-height: 1.65;
}
.insight-row span { color: var(--muted); }
.insight-row p { margin: 0; color: var(--ink-2); }

.btn:focus-visible,
.match-select:focus-visible,
.jd-input:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

.facts {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.facts-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.facts-head h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0;
  letter-spacing: .02em;
}
.facts-head span {
  font-size: 10.5px;
  color: var(--faint);
  line-height: 1.5;
}
.facts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fact-card {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 12px 14px;
}
.fact-topic {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.fact-card p {
  margin: 5px 0 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.fact-source {
  font-size: 10.5px;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px dotted var(--blue);
}
.fact-source:hover { border-bottom-style: solid; }
.fact-empty {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .facts-list { grid-template-columns: 1fr; }
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.footer-link:hover { color: var(--red); border-bottom-color: var(--red); }

.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 32px 72px;
  background: var(--card);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.doc h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 28px 0 8px;
}
.doc h3 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 22px 0 6px;
  font-weight: 400;
}
.doc p, .doc li {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.doc ul { padding-left: 20px; margin: 6px 0; }
.doc a { color: var(--blue); }
.doc hr { border: none; border-top: 1px dashed var(--line); margin: 34px 0; }
.doc-back {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
}

.doc-back + .doc-back { margin-left: 18px; }

@media (max-width: 720px) {
  .doc { padding: 24px 20px 48px; border-left: none; border-right: none; }
  .doc-back + .doc-back { margin-left: 0; display: block; margin-top: 10px; }
}

/* ---------- static GEO pages (no JS) ---------- */
.masthead.compact { padding-bottom: 22px; }
.masthead.compact h1 { font-size: clamp(28px, 4.4vw, 46px); margin: 8px 0 6px; }
.masthead.compact .lede { margin-top: 6px; }

.static-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 9px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.static-nav a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.static-nav a:hover { color: var(--red); border-bottom-color: var(--red); }

.breadcrumbs { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; color: var(--faint); margin: 0 0 14px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }
.crumb-sep { color: var(--line-2); margin: 0 4px; }

.answer-box {
  margin: 0 0 26px;
  padding: 15px 17px;
  border-left: 3px solid var(--red);
  background: var(--card-2);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}
.answer-box strong { font-family: var(--serif); font-size: 15px; }

.static-section { margin: 30px 0; }
.static-section h2 { margin-top: 0; }
.static-section h3 { font-family: var(--sans); font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 18px 0 6px; font-weight: 700; }
.static-section p { line-height: 1.8; }

.static-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 16px; }
.static-scores > div { border: 1px solid var(--line); background: var(--card); padding: 13px; display: flex; flex-direction: column; gap: 2px; }
.static-scores span { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.static-scores strong { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1; }
.static-scores small { color: var(--muted); font-size: 11px; }

.static-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 12.5px; }
.static-table th, .static-table td { border-bottom: 1px solid var(--line); padding: 8px 9px; text-align: left; vertical-align: top; line-height: 1.55; }
.static-table th { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 400; background: var(--card-2); }
.static-table tbody th { font-family: var(--sans); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); width: 135px; background: transparent; }
.static-table td strong { font-family: var(--serif); font-size: 15px; }
.static-table ul { margin: 0; padding-left: 16px; }
.static-table li { font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
.req-table { min-width: 760px; }
.req-table .mono { white-space: nowrap; color: var(--faint); font-size: 10px; }
.compact-table td { font-size: 12px; }

.static-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.static-fact { border: 1px dashed var(--line-2); background: var(--card); padding: 12px 13px; }
.static-fact h3 { margin: 0 0 5px; font-size: 12px; }
.static-fact p { margin: 0 0 7px; font-size: 12px; line-height: 1.6; }
.fact-source { font-family: var(--mono); font-size: 9.5px; color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--line); }

.static-jargon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.static-jargon { border: 1px solid var(--line); background: var(--card); padding: 13px 14px; }
.jargon-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.jargon-head h3 { margin: 0; font-size: 14px; font-family: var(--serif); font-weight: 600; }
.quote-line { margin: 5px 0 6px; color: var(--faint); font-style: italic; font-size: 12px; }
.why-line, .ask-line { font-size: 11.5px; line-height: 1.6; margin: 5px 0 0; color: var(--ink-2); }
.why-line b, .ask-line b { color: var(--muted); font-weight: 600; }

.static-plan-item { border: 1px solid var(--line); background: var(--card); padding: 13px 14px; margin: 8px 0; }
.plan-top { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.plan-top strong { font-size: 13px; flex: 1; min-width: 180px; }
.plan-top .mono { color: var(--faint); font-size: 10px; }
.static-plan-item p { margin: 5px 0 0; font-size: 12px; line-height: 1.6; }
.static-plan-item blockquote { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--line-2); font-size: 11.5px; color: var(--muted); font-style: italic; }
.phase-head { margin-top: 20px !important; color: var(--faint) !important; font-family: var(--mono) !important; font-size: 10px !important; letter-spacing: .14em !important; text-transform: uppercase !important; }

.static-onepager { border: 1px solid var(--line); background: var(--card); padding: 15px 16px; }
.static-onepager p { font-size: 12.5px; margin: 5px 0; }
.static-onepager h3 { margin-top: 14px; }
.hook-line { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 12px !important; }
.fine { font-size: 11px; color: var(--faint); line-height: 1.65; }
.mono { font-family: var(--mono); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pills .chip { text-decoration: none; }
.risk-list { margin: 6px 0; padding-left: 18px; }
.risk-list li { font-size: 12px; line-height: 1.65; color: var(--ink-2); }
.cite-box { border-top: 1px dashed var(--line-2); padding-top: 16px; }

.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.example-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); background: var(--card); padding: 14px 15px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.example-card:hover { border-color: var(--red); transform: translateY(-1px); }
.example-card .kicker { font-size: 9px; }
.example-card strong { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.example-card > span:not(.kicker):not(.example-scores) { font-size: 11.5px; color: var(--muted); }
.example-scores { margin-top: 7px; font-family: var(--mono); font-size: 9.5px; color: var(--red); }

.glossary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 8px 0 18px; }
.term-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); background: var(--card); padding: 12px 13px; text-decoration: none; color: var(--ink); }
.term-card:hover { border-color: var(--red); }
.term-card strong { font-family: var(--serif); font-size: 14px; font-weight: 600; }
.term-card .zh { font-size: 11px; color: var(--red); }
.term-card > span:last-child { font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.zh-def { border-left: 2px solid var(--line-2); padding-left: 10px; color: var(--ink-2); }

.faq-item { border-bottom: 1px dashed var(--line); padding: 13px 0; }
.faq-item h2 { font-family: var(--sans); font-size: 14px; font-weight: 700; margin: 0 0 5px; }
.faq-item p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--ink-2); }

@media (max-width: 720px) {
  .static-nav { padding: 9px 18px; gap: 12px; }
  .static-scores { grid-template-columns: 1fr; }
  .static-facts, .static-jargon-grid, .example-grid, .glossary-grid { grid-template-columns: 1fr; }
  .static-table tbody th { width: 105px; }
}

.hero-links {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
}
.hero-links a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.hero-links a:hover { color: var(--red); border-bottom-color: var(--red); }

/* ---------- P1 compare / data / changelog ---------- */
.compare-grid, .data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.compare-card, .dataset-card {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); background: var(--card);
  padding: 14px 15px; text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.compare-card:hover, .dataset-card:hover { border-color: var(--red); transform: translateY(-1px); }
.compare-card strong, .dataset-card strong { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.compare-card > span:last-child, .dataset-card > span { font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.dataset-card code { margin-top: 6px; font-family: var(--mono); font-size: 9.5px; color: var(--red); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-col h2 { margin-top: 0; }
.two-col ul { padding-left: 18px; }
.two-col li { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.compare-table td, .compare-table th { font-size: 12px; }
.changelog-item { border-bottom: 1px dashed var(--line); padding: 12px 0; }
.changelog-item h2 { margin: 3px 0 5px; font-size: 17px; }
.changelog-item ul { margin: 0; padding-left: 18px; }
.changelog-item li { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }

@media (max-width: 720px) {
  .compare-grid, .data-grid, .two-col { grid-template-columns: 1fr; }
}
