:root {
  --paper: #F6F1E8;
  --ink: #1A1814;
  --mute: #5C574E;
  --line: #D9D1C3;
  --blue: #1E6FA8;
  --red: #B91C2C;
  --ochre: #9C5A2A;
  --pine: #3A6B52;
  --rust: #C45C26;
  --indigo: #3A4F7A;
  --plate: #FFFBF3;
  --screen: #EFE8D6;
}
* { box-sizing: border-box; margin: 0; }
html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  text-autospace: normal;
  hanging-punctuation: last allow-end;
}
body {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: break-word;
  line-break: auto;
  font-kerning: normal;
  padding-left: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-right));
}
@supports (text-spacing-trim: space-all) {
  html { text-spacing-trim: space-all; }
}
@media (min-width: 640px) {
  body { font-size: 18px; line-height: 1.88; }
}
a { color: inherit; text-decoration: none; }
.page { max-width: 72rem; margin: 0 auto; padding: 1.85rem 0 6.5rem; }
header {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .5rem 1.5rem; flex-wrap: wrap;
  padding-bottom: .95rem;
  margin-bottom: 2.15rem;
  border-bottom: 1px solid var(--ink);
}
.brand { font-size: 13px; font-weight: 600; color: var(--mute); }
.brand b {
  color: var(--blue);
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-weight: 600;
  letter-spacing: .06em;
}
.head-meta { display: flex; align-items: baseline; gap: 1rem; }
.feed, .back {
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-size: 13px; font-weight: 500; color: var(--mute);
}
.mail {
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-size: 13px; font-weight: 500; color: var(--mute);
}
.mail:hover, .feed:hover, .back:hover, .brand:hover { color: var(--blue); }
.series {
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--blue);
}
h1 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(1.75rem, 4.2vw, 2.28rem);
  font-weight: 700; letter-spacing: .02em; line-height: 1.32;
  margin-top: .5rem;
  text-wrap: pretty;
}
.lede {
  margin-top: .75rem;
  color: var(--mute);
  font-size: 1.06rem;
  line-height: 1.72;
}
/* 公众号封面只给 OG。正文操作截图用 figure.shot，不要当装饰插图堆。 */
.cover { display: none; }
.article {
  margin-top: 2.15rem;
  padding-top: 1.85rem;
  border-top: 1px solid var(--ink);
  overflow-wrap: break-word;
}
.article > p:first-child,
.article > .plate-break + p {
  font-weight: 500;
  font-size: 1.08em;
  line-height: 1.82;
}
.article h2 {
  display: flex; align-items: baseline; gap: .85rem 1.05rem; flex-wrap: wrap;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 1.42rem; font-weight: 700; line-height: 1.35;
  margin: 2.85rem 0 1.15rem;
  padding: .9rem 1.15rem;
  background: var(--plate);
  border: 1px solid var(--ink);
  border-left-width: 4px;
  border-left-color: var(--blue);
  text-wrap: pretty;
}
body.rm .article h2 { border-left-color: var(--ochre); }
body.tc .article h2 { border-left-color: var(--rust); }
.article h2 .sec {
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: var(--blue);
  flex: 0 0 auto;
}
body.rm .article h2 .sec { color: var(--ochre); }
body.tc .article h2 .sec { color: var(--rust); }
.article > h2:first-child {
  margin-top: 0;
}
.article .plate-break {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 1.15rem 1.5rem;
  align-items: center;
  margin: 0 0 2.15rem;
  padding: 1.05rem 1.15rem;
  background: var(--plate);
  border: 1px solid var(--ink);
}
.article .plate-break .plate {
  background: var(--plate);
  border: 1px solid var(--ink);
}
.article .plate-break svg { display: block; width: 100%; height: auto; }
.article .plate-break figcaption {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.article p.call,
.article aside.call {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 1.12em;
  line-height: 1.55;
  background: var(--plate);
  border: 1px solid var(--ink);
  border-left: 4px solid var(--ochre);
  padding: 1rem 1.15rem;
  margin: 1.75rem 0 1.85rem;
}
.article aside.call p { margin: 0 0 .55em; }
.article aside.call p:last-child { margin: 0; }
.article figure.shot {
  margin: 1.75rem 0 2rem;
  background: var(--plate);
  border: 1px solid var(--ink);
}
.article figure.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.article figure.shot figcaption {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute);
  padding: .7rem 1rem .9rem;
  border-top: 1px solid var(--line);
  margin: 0;
}
@media (max-width: 640px) {
  .article .plate-break { grid-template-columns: 1fr; }
  .article .plate-break .plate { max-width: 15rem; }
  .article h2 {
    font-size: 1.18rem;
    padding: .75rem .85rem;
    gap: .5rem .75rem;
    align-items: flex-start;
  }
  .article td:first-child { white-space: normal; width: auto; }
  .feed, .mail, .back { padding: .45rem 0; }
}
.article h3 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 1.12rem; font-weight: 700; line-height: 1.45;
  margin: 2.15rem 0 .7rem;
}
.article p { margin: 0 0 1.15em; }
.article h2 + p,
.article h3 + p { margin-top: 0; }
.article strong { font-weight: 700; }
.article em { font-style: italic; }
.article > p:has(> strong:only-child) {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 1.08em;
  line-height: 1.55;
  color: var(--ink);
  padding: .2rem 0 .2rem 1.15rem;
  border-left: 2px solid var(--ochre);
  margin: 1.65rem 0 1.75rem;
}
.article blockquote {
  margin: 1.75rem 0 1.9rem;
  padding: .2rem 0 .2rem 1.15rem;
  border-left: 2px solid var(--ink);
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 1.04em;
  line-height: 1.6;
}
.article blockquote p { margin: .4rem 0; }
.article ul, .article ol {
  margin: 1.35rem 0 1.7rem;
  padding-left: 0;
}
.article ul {
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.article ul li {
  position: relative;
  margin: 0;
  padding: .62rem 0 .62rem 1.2rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}
.article ul li:last-child { border-bottom: 0; }
.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .95em;
  width: .38rem;
  height: .38rem;
  background: var(--ink);
}
.article ol {
  list-style: none;
  counter-reset: n;
}
.article ol li {
  position: relative;
  padding: .15rem 0 .55rem 1.95rem;
}
.article ol li::before {
  counter-increment: n;
  content: counter(n) ".";
  position: absolute;
  left: 0;
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-size: .84em;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .04em;
}
.article li + li { margin-top: 0; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.55rem 0 1.9rem;
  font-size: .95em;
}
.article th, .article td {
  border: 1px solid var(--line);
  padding: .6rem .8rem;
  text-align: left;
  vertical-align: top;
}
.article td:first-child {
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  width: 8.5rem;
}
.article th {
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--mute);
  background: var(--plate);
  border-bottom-color: var(--ink);
}
.article hr {
  border: 0; border-top: 1px solid var(--line);
  margin: 2.65rem 0;
}
.article code {
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-size: .84em;
  font-weight: 500;
  background: var(--plate);
  border: 1px solid var(--line);
  padding: .08em .32em;
}
.article pre {
  margin: 1.2rem 0 1.5rem;
  padding: .9rem 1rem;
  background: var(--plate);
  border: 1px solid var(--ink);
  overflow-x: auto;
}
.article pre code {
  font-size: 12px;
  line-height: 1.55;
  background: none;
  border: 0;
  padding: 0;
  display: block;
  color: var(--ink);
}
.article a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.article a:hover { color: var(--ink); }
.article p:has(> a:only-child) {
  margin: .25rem 0 1.55rem;
}
.article p:has(> a:only-child) a,
.article a.go-line {
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
}
.article .refs {
  margin-top: 3.15rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ink);
}
.article hr:has(+ .refs) { display: none; }
.article .refs h2,
.article .refs .refs-kicker {
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--blue);
  margin: 0 0 1rem;
}
.article .refs p,
.article .refs li {
  font-size: .92em;
  line-height: 1.7;
  color: var(--mute);
}
.article .refs p { margin: 0 0 .75em; }
.article .refs ul {
  margin: .2rem 0 0;
  border: 0;
}
.article .refs ul li {
  padding: .35rem 0 .35rem 1.1rem;
  border: 0;
}
.article .refs ul li::before {
  width: .28rem;
  height: .28rem;
  background: var(--mute);
  top: .85em;
}
.letter {
  margin-top: 2.85rem;
  padding-top: 1.45rem;
  border-top: 1px solid var(--ink);
  font-size: 15px;
  line-height: 1.7;
  color: var(--mute);
}
.letter a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.letter a:hover { color: var(--ink); }
.letter b {
  font-family: "IBM Plex Mono", "ui-monospace", monospace;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .06em;
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.skip {
  position: absolute; left: -999px; top: .75rem;
  background: var(--ink); color: var(--paper);
  font-family: "IBM Plex Mono", "ui-monospace", monospace; font-size: 12px;
  padding: .4rem .7rem; text-decoration: none;
}
.skip:focus { left: 1rem; z-index: 10; }
::selection { background: var(--screen); color: var(--ink); }
