:root {
  --pj-paper: #e9eef5;
  --pj-ink: #102a43;
  --pj-blue: #1f4f9a;
  --pj-blue-deep: #173d7a;
  --pj-brass: #c9a14a;
  --pj-brass-dark: #8a6a25;
  --pj-line: #cbd5e2;
  --pj-face: #fbfcfe;
  --pj-mute: #3d5368;
  --pj-r-big: 21px;
  --pj-r-small: 10px;
  --pj-cjk: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --pj-latin: "Bodoni MT", "Didot", "Times New Roman", serif;
  --pj-gutter: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pj-paper);
  color: var(--pj-ink);
  font-family: var(--pj-cjk);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pj-blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pj-blue-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--pj-blue); outline-offset: 2px; border-radius: 4px; }

.pj-skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  background: var(--pj-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--pj-r-small);
}
.pj-skip:focus { top: 12px; }

/* 页头 */
.pj-top { border-bottom: 1px solid var(--pj-line); background: var(--pj-paper); }
.pj-top-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px var(--pj-gutter) 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}
.pj-mark { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--pj-r-small); }
.pj-logo { display: block; }
.pj-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 2px; margin-right: -10px; margin-left: auto; }
.pj-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--pj-ink);
  text-decoration: none;
  font-size: 15px;
  border-radius: var(--pj-r-small);
}
.pj-nav a:hover { background: #dde5ef; color: var(--pj-ink); }
.pj-nav a[aria-current="page"] { color: var(--pj-blue); box-shadow: inset 0 -2px 0 var(--pj-brass); }

.pj-main { max-width: 1180px; margin: 0 auto; padding: 0 var(--pj-gutter) 56px; }

/* 大标题：短语包成整块，避免手机上剩一两个字掉到下一行 */
.pj-h1 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  line-break: strict;
}
.pj-ph { display: inline-block; }
.pj-h1--art { font-size: 36px; line-height: 1.22; }
.pj-h1--desk { font-size: 34px; }

/* 首页首屏 */
.pj-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0 36px;
}
.pj-hero-txt { min-width: 0; }
.pj-lede { margin: 10px 0 0; font-size: 16px; line-height: 1.7; color: var(--pj-mute); max-width: 30em; }

/* 搪瓷门牌 */
.pj-plate {
  position: relative;
  background: var(--pj-blue);
  color: #fff;
  border-radius: var(--pj-r-big);
  padding: 20px 24px 18px;
  box-shadow: 0 1px 0 #0d2c5e, 0 14px 26px -18px rgba(16, 42, 67, .65);
  isolation: isolate;
}
.pj-plate::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 15px;
  pointer-events: none;
  z-index: -1;
}
.pj-plate::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle, var(--pj-brass) 0 2.4px, var(--pj-brass-dark) 2.6px 3.2px, transparent 3.5px) 0 0 / 8px 8px no-repeat,
    radial-gradient(circle, var(--pj-brass) 0 2.4px, var(--pj-brass-dark) 2.6px 3.2px, transparent 3.5px) 100% 0 / 8px 8px no-repeat,
    radial-gradient(circle, var(--pj-brass) 0 2.4px, var(--pj-brass-dark) 2.6px 3.2px, transparent 3.5px) 0 100% / 8px 8px no-repeat,
    radial-gradient(circle, var(--pj-brass) 0 2.4px, var(--pj-brass-dark) 2.6px 3.2px, transparent 3.5px) 100% 100% / 8px 8px no-repeat;
}
.pj-plate p { margin: 0; }
.pj-plate a { color: #fff; }
.pj-plate-k { font-size: 14px; font-weight: 600; color: #dbe6f6; letter-spacing: .02em; }
.pj-plate-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 4px !important;
}
.pj-code {
  font-family: var(--pj-latin);
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: .06em;
  font-variant-numeric: lining-nums;
}
.pj-copy {
  min-height: 44px;
  min-width: 76px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--pj-r-small);
  background: var(--pj-brass);
  color: var(--pj-ink);
  font: 700 16px/1 var(--pj-cjk);
  cursor: pointer;
}
.pj-copy:hover { background: #d7b462; }
.pj-copy--done { background: #fff; }
.pj-plate-note { margin-top: 8px !important; font-size: 15px; line-height: 1.6; color: #eef3fb; }
.pj-plate-uid { margin-top: 6px !important; font-size: 21px; line-height: 1.45; font-weight: 700; }
.pj-plate--yours { background: var(--pj-blue-deep); }
.pj-plate-go { margin-top: 14px !important; }
.pj-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 20px;
  border-radius: var(--pj-r-small);
  background: #fff;
  color: var(--pj-blue) !important;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.pj-go:hover { background: #f4ecd8; }
.pj-plate-dis { margin-top: 10px !important; font-size: 14px; line-height: 1.6; color: #dbe6f6; }

/* 教程入口 */
.pj-pick {
  background: var(--pj-face);
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-r-big);
  padding: 14px 20px 14px;
}
.pj-pick-k {
  display: inline-block;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pj-brass-dark);
  border-bottom: 2px solid var(--pj-brass);
  line-height: 1.6;
}
.pj-pick-a { display: block; font-size: 18px; line-height: 1.45; font-weight: 700; }
.pj-pick-d { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--pj-mute); }

/* 首页下半部 */
.pj-home-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.pj-home-body > *, .pj-hero > * { min-width: 0; }
.pj-blk {
  background: var(--pj-face);
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-r-big);
  padding: 22px 20px;
}
.pj-blk h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.4; }
.pj-blk p, .pj-blk li { max-width: 38em; }
.pj-blk ul, .pj-blk ol { padding-left: 1.3em; }
.pj-blk table { font-size: 15px; }
.pj-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* 列表 */
.pj-entries { list-style: none; margin: 0; padding: 0; }
.pj-entry { border-top: 1px solid var(--pj-line); padding: 14px 0 12px; }
.pj-entry:first-child { border-top: 0; }
.pj-entry-a { font-size: 19px; line-height: 1.45; font-weight: 700; }
.pj-entry-d { margin: 6px 0 0; color: var(--pj-ink); }
.pj-entry-m { margin: 4px 0 0; font-size: 14px; color: var(--pj-mute); }
.pj-list, .pj-desk, .pj-find, .pj-lost { max-width: 760px; }
.pj-list .pj-entries {
  background: var(--pj-face);
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-r-big);
  padding: 4px 20px;
}
.pj-count { font-size: 15px; color: var(--pj-mute); margin: 12px 0; }
.pj-pager { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 18px; }
.pj-pager a { display: inline-flex; align-items: center; min-height: 44px; }
.pj-terms { padding-left: 1.2em; }

/* 面包屑：分隔符跟在前一项后面，不会单独落到行首 */
.pj-crumbs { margin: 10px 0 6px; font-size: 14px; color: var(--pj-mute); }
.pj-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.pj-crumbs li { display: inline-flex; align-items: center; }
.pj-crumbs li:not(:last-child) { white-space: nowrap; }
.pj-crumbs li:not(:last-child)::after { content: "\203A"; margin: 0 8px; color: var(--pj-brass-dark); }
.pj-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--pj-mute); }
.pj-crumbs [aria-current] { padding: 11px 0; line-height: 1.5; }

/* 文章 */
.pj-art { max-width: 800px; }
.pj-art-head { margin-bottom: 18px; }
.pj-byline { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 12px 0 0; font-size: 14px; color: var(--pj-mute); }
.pj-by { display: inline-block; padding: 4px 0; }
a.pj-by { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.pj-cover { margin: 0 0 22px; }
.pj-cover img { border-radius: var(--pj-r-big); border: 1px solid var(--pj-line); }
.pj-cover figcaption, .pj-shot figcaption { font-size: 14px; line-height: 1.6; color: var(--pj-mute); margin-top: 8px; }

.pj-toc {
  background: var(--pj-face);
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-r-big);
  padding: 16px 18px 10px;
  margin: 0 0 26px;
}
.pj-toc-k { margin: 0 0 6px; font-weight: 700; font-size: 15px; }
.pj-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: pjtoc; }
.pj-toc li { counter-increment: pjtoc; display: flex; gap: 10px; border-top: 1px dashed var(--pj-line); }
.pj-toc li::before {
  content: counter(pjtoc, decimal-leading-zero);
  font-family: var(--pj-latin);
  color: var(--pj-brass-dark);
  font-size: 17px;
  padding-top: 10px;
  min-width: 1.6em;
}
.pj-toc li.pj-toc-faq::before { content: "\00A7"; }
.pj-toc a { display: block; padding: 10px 0; line-height: 1.5; font-size: 15px; }

.pj-prose { font-size: 16px; }
.pj-prose p, .pj-prose li { max-width: 38em; }
.pj-prose > p { margin: 0 0 1.05em; }
.pj-prose h2 {
  counter-increment: pjh2;
  font-size: 23px;
  line-height: 1.4;
  margin: 2.1em 0 .7em;
  padding-top: 18px;
  border-top: 1px solid var(--pj-line);
  line-break: strict;
}
.pj-art .pj-prose { counter-reset: pjh2; }
.pj-art .pj-prose h2::before {
  content: counter(pjh2, decimal-leading-zero);
  display: inline-block;
  font-family: var(--pj-latin);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  color: #fff;
  background: var(--pj-blue);
  border-radius: 6px;
  padding: 5px 7px 4px;
  margin-right: 10px;
  vertical-align: 4px;
  box-shadow: inset 0 0 0 2px var(--pj-blue), inset 0 0 0 3px rgba(255, 255, 255, .8);
}
.pj-prose h3 { font-size: 19px; line-height: 1.45; margin: 1.6em 0 .5em; }
.pj-prose ul, .pj-prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.pj-prose li { margin: .3em 0; }
.pj-prose code { font-size: 14px; background: #e3e9f1; border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.pj-prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--pj-brass); color: var(--pj-mute); }
.pj-prose .pj-plate { margin: 1.6em 0; max-width: 38em; }

.pj-shot {
  margin: 1.4em 0 1.6em;
  background: var(--pj-face);
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-r-big);
  padding: 10px;
  max-width: 640px;
}
.pj-shot img { border-radius: var(--pj-r-small); }
.pj-shot figcaption { padding: 0 6px 2px; }

.pj-tbl { overflow-x: auto; margin: 1.2em 0 1.5em; border: 1px solid var(--pj-line); border-radius: var(--pj-r-small); background: var(--pj-face); }
.pj-tbl table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.6; }
.pj-tbl th, .pj-tbl td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--pj-line); }
.pj-tbl thead th { background: #dfe7f1; font-weight: 700; }
.pj-tbl tbody th { font-weight: 700; color: var(--pj-blue-deep); }
.pj-tbl tr:last-child th, .pj-tbl tr:last-child td { border-bottom: 0; }

.pj-twin { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 1.2em 0 1.4em; max-width: 38em; }
.pj-twin-c {
  background: var(--pj-face);
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-r-big);
  padding: 0 18px 14px;
  overflow: hidden;
}
.pj-twin-k {
  margin: 0 -18px 10px !important;
  padding: 6px 18px;
  background: var(--pj-blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: inset 0 -3px 0 var(--pj-brass);
}
.pj-twin-v { margin: 0 !important; font-size: 15px; line-height: 1.7; }

.pj-faq { margin-top: 2.4em; border-top: 1px solid var(--pj-line); padding-top: 18px; }
.pj-faq h2 { font-size: 23px; margin: 0 0 6px; }
.pj-qa { border-bottom: 1px dashed var(--pj-line); padding: 6px 0 12px; max-width: 38em; }
.pj-q { font-size: 17px; line-height: 1.5; margin: 10px 0 4px; }
.pj-a { margin: 0; }

.pj-art-end {
  margin-top: 30px;
  display: grid;
  gap: 16px;
  background: var(--pj-face);
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-r-big);
  padding: 18px 20px;
}
.pj-shelf-k { margin: 0; font-size: 14px; font-weight: 700; color: var(--pj-brass-dark); }
.pj-shelf-v { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pj-tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--pj-line); border-radius: 999px; font-size: 14px; background: #fff; }
a.pj-tag { min-height: 44px; }
.pj-next ul { margin: 4px 0 0; padding-left: 1.2em; }
.pj-next a { display: inline-block; padding: 9px 0; }
.pj-sign { margin: 0; font-size: 14px; color: var(--pj-mute); }

/* 站务页 */
.pj-meta { font-size: 14px; color: var(--pj-mute); margin: 8px 0 18px; }
.pj-prose--desk h2 { font-size: 21px; }

/* 查找 */
.pj-find-form { margin: 16px 0 8px; }
.pj-find-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.pj-find-row { display: flex; gap: 8px; }
.pj-find-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  font: 16px var(--pj-cjk);
  color: var(--pj-ink);
  background: #fff;
  border: 1px solid #8fa3ba;
  border-radius: var(--pj-r-small);
}
.pj-find-row button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--pj-r-small);
  background: var(--pj-blue);
  color: #fff;
  font: 700 16px var(--pj-cjk);
  cursor: pointer;
}
.pj-find-state { color: var(--pj-mute); font-size: 15px; }
.pj-find-out { list-style: none; padding: 0; margin: 0; }
.pj-find-out li { border-top: 1px solid var(--pj-line); padding: 10px 0; }
.pj-find-out a { font-weight: 700; display: inline-block; padding: 6px 0; }
.pj-find-out p { margin: 2px 0 0; font-size: 15px; color: var(--pj-mute); }

/* 404 */
.pj-lost { padding-top: 24px; }
.pj-lost-n { font-family: var(--pj-latin); font-size: 64px; line-height: 1; margin: 0 0 8px; color: var(--pj-blue); }
.pj-lost-go a { display: inline-flex; align-items: center; min-height: 44px; }

/* 页脚 */
.pj-foot { background: var(--pj-ink); color: #d9e2ec; }
.pj-foot-in { max-width: 1180px; margin: 0 auto; padding: 30px var(--pj-gutter) 26px; display: grid; gap: 14px; }
.pj-foot p { margin: 0; font-size: 14px; line-height: 1.75; max-width: 46em; }
.pj-foot-id { display: grid; gap: 8px; }
.pj-foot a { color: #f0d696; }
.pj-foot a:hover { color: #fff; }
.pj-foot-nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -8px; }
.pj-foot-nav a, .pj-foot-feed a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 14px; }
.pj-foot-feed a { padding-left: 0; }
.pj-foot-c { color: #9fb3c8; font-family: var(--pj-latin); }

@media (min-width: 720px) {
  :root { --pj-gutter: 28px; }
  body { font-size: 17px; }
  .pj-prose { font-size: 17px; }
  .pj-h1 { font-size: 52px; }
  .pj-h1--art { font-size: 46px; }
  .pj-h1--desk { font-size: 42px; }
  .pj-twin { grid-template-columns: 1fr 1fr; }
  .pj-blk { padding: 26px 30px; }
  .pj-prose h2 { font-size: 26px; }
}

@media (min-width: 1000px) {
  .pj-top-in { padding-top: 14px; padding-bottom: 12px; }
  .pj-h1--home { font-size: 68px; line-height: 1.14; }
  .pj-h1--art { font-size: 56px; line-height: 1.16; }
  .pj-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    grid-template-areas: "txt ours" "pick yours";
    gap: 26px 56px;
    padding: 44px 0 52px;
    align-items: start;
  }
  .pj-hero-txt { grid-area: txt; }
  .pj-plate--ours { grid-area: ours; }
  .pj-pick { grid-area: pick; }
  .pj-plate--yours { grid-area: yours; }
  .pj-lede { font-size: 18px; margin-top: 18px; }
  .pj-code { font-size: 46px; }
  .pj-home-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .pj-home-body > .pj-blk:first-child, .pj-home-body > .pj-blk--list { grid-column: 1 / -1; }
  .pj-foot-in { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .pj-foot-nav, .pj-foot-feed, .pj-foot-c { grid-column: 2; }
  .pj-foot-id { grid-row: 1 / span 3; }
}

@media (min-width: 1100px) {
  .pj-art {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 780px) 300px;
    column-gap: 56px;
    align-items: start;
  }
  .pj-art > * { grid-column: 1; }
  .pj-art > .pj-toc {
    grid-column: 2;
    grid-row: 1 / span 6;
    position: sticky;
    top: 20px;
    margin-top: 58px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
}

/* 标题断行与触摸区 */
h1, h2, .pj-h1 { text-wrap: balance; }
.pj-plate-note, .pj-plate-dis { text-wrap: pretty; }
.pj-toc a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; box-sizing: border-box; }
.pj-foot-dis a, .pj-foot-claim a, .pj-byline a {
  display: inline-block; min-width: 44px; min-height: 44px; line-height: 44px; text-align: center;
}
.pj-crumbs a { min-width: 44px; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .pj-top, .pj-foot, .pj-toc, .pj-plate--card { display: none; }
  body { background: #fff; }
}
