:root {
  --fe-paper: #cdeee6;
  --fe-ink: #12302b;
  --fe-red: #d62839;
  --fe-white: #fffdf6;
  --fe-line: #a9d9cd;
  --fe-sub: #effaf6;
  --fe-soft: #2f5a52;
  --fe-r-big: 14px;
  --fe-r-small: 4px;
  --fe-cjk: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --fe-lat: "Copperplate Gothic Bold", "Copperplate Gothic", "Engravers MT", Georgia, serif;
  --fe-under: var(--fe-paper);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fe-paper);
  color: var(--fe-ink);
  font-family: var(--fe-cjk);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--fe-ink); text-decoration-color: var(--fe-red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--fe-red); }

:focus-visible { outline: 3px solid var(--fe-red); outline-offset: 2px; border-radius: 2px; }

.fe-skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--fe-ink); color: var(--fe-white); padding: 10px 16px; border-radius: var(--fe-r-small);
  min-height: 44px; display: inline-flex; align-items: center;
}
.fe-skip:focus { top: 8px; color: var(--fe-white); }

.fe-sr, .fe-offscreen {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 页头 */
.fe-top { border-top: 5px solid var(--fe-ink); }
.fe-top-in {
  max-width: 1160px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap;
}
.fe-brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--fe-ink); text-decoration: none; }
.fe-brand:hover { color: var(--fe-ink); }
.fe-logo-svg { display: block; width: 150px; height: 40px; }
.fe-menu-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.fe-menu-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--fe-r-small); text-decoration: none; font-size: 15px; color: var(--fe-ink);
}
.fe-menu-list a:hover { background: var(--fe-sub); color: var(--fe-ink); }
.fe-menu-list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--fe-red); font-weight: 700; }

.fe-main { display: block; max-width: 1160px; margin: 0 auto; padding: 0 16px 56px; }
.fe-main:focus { outline: none; }

/* 首屏 */
.fe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  grid-template-areas: "say code" "pick uid";
  gap: 22px 56px;
  align-items: start;
  padding: 26px 0 44px;
}
.fe-hero-say { grid-area: say; }
.fe-hero-code { grid-area: code; filter: drop-shadow(0 10px 14px rgba(18, 48, 43, 0.16)); }
.fe-hero-pick { grid-area: pick; }
.fe-hero-uid { grid-area: uid; filter: drop-shadow(0 8px 12px rgba(18, 48, 43, 0.12)); }

.fe-hero-h {
  margin: 0; font-size: 86px; line-height: 1.06; font-weight: 800; letter-spacing: -0.01em;
  line-break: strict; text-wrap: balance;
}
.fe-hero-lead { margin: 18px 0 0; max-width: 30em; font-size: 18px; line-height: 1.7; color: var(--fe-soft); text-wrap: pretty; }

.fe-hero-pick {
  background: var(--fe-ink); color: var(--fe-white);
  border-radius: var(--fe-r-big); padding: 18px 22px 20px;
  border-left: 8px solid var(--fe-red);
}
.fe-pick-tag {
  display: inline-block; margin: 0 0 6px; padding: 1px 10px; border-radius: var(--fe-r-small);
  background: var(--fe-red); color: #fff; font-size: 13px; line-height: 1.7;
}
.fe-pick-link {
  display: block; color: var(--fe-white); font-size: 21px; line-height: 1.45; font-weight: 700;
  text-decoration-color: var(--fe-red); text-wrap: balance; line-break: strict; padding: 7px 0; min-height: 44px;
}
.fe-pick-link:hover { color: #ffd9dc; }
.fe-pick-why { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: #d4ece5; }

/* 号票 */
.fe-stub {
  --z: 7px;
  position: relative;
  background: var(--fe-white);
  padding: 24px 22px 24px 78px;
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--z)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--z)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) 51% repeat-x;
}
.fe-stub::before, .fe-stub::after {
  content: ""; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; background: var(--fe-under);
}
.fe-stub::before { left: -10px; }
.fe-stub::after { right: -10px; }
.fe-stub-head {
  position: absolute; left: 0; top: 10px; bottom: 10px; width: 60px;
  writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center; gap: 6px;
  border-right: 2px dashed var(--fe-line);
}
.fe-stub-kind { display: block; font-size: 17px; font-weight: 800; color: var(--fe-red); letter-spacing: 0.12em; text-orientation: upright; }
.fe-stub-from { display: block; font-size: 13px; color: var(--fe-soft); letter-spacing: 0.08em; }
.fe-stub-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.fe-stub-num {
  margin: 0; font-family: var(--fe-lat); font-weight: 700; font-size: 42px; line-height: 1.1;
  letter-spacing: 0.06em; color: var(--fe-red);
}
.fe-dots { color: var(--fe-ink); font-size: 26px; letter-spacing: 0.18em; font-family: var(--fe-cjk); }
.fe-copy {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--fe-r-small);
  background: var(--fe-ink); color: var(--fe-white); font: 700 15px/1 var(--fe-cjk); cursor: pointer;
}
.fe-copy:hover { background: #1f4a42; }
.fe-copy.fe-copy-done { background: var(--fe-red); }
.fe-stub-note { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--fe-ink); text-wrap: pretty; }
.fe-stub-go { margin: 14px 0 0; }
.fe-go {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px;
  background: var(--fe-red); color: #fff; border-radius: var(--fe-r-small);
  font-weight: 700; text-decoration: none; line-height: 1.4;
}
.fe-go:hover { background: #b81f2f; color: #fff; }
.fe-stub-disc { margin: 10px 0 0; font-size: 13px; line-height: 1.65; color: var(--fe-soft); }
.fe-stub-disc a { color: var(--fe-ink); }

.fe-hero-code .fe-stub { transform: rotate(-1.4deg); }
.fe-hero-uid .fe-stub { transform: rotate(1.1deg); margin-left: 26px; }
.fe-stub-uid { min-height: 196px; }
.fe-nobr { display: inline-block; }

/* 首页下方 */
.fe-home-body {
  counter-reset: fe-w;
  background: var(--fe-white); border-radius: var(--fe-r-big);
  padding: 34px 40px 18px; columns: 2 22em; column-gap: 48px;
}
.fe-home-body h2 {
  counter-increment: fe-w; break-after: avoid; break-inside: avoid;
  margin: 0 0 10px; font-size: 22px; line-height: 1.4; line-break: strict; text-wrap: balance;
}
.fe-home-body h2::before {
  content: counter(fe-w) "号窗口"; display: block; width: max-content; margin-bottom: 6px;
  font-size: 13px; font-weight: 700; color: var(--fe-red); border: 1.5px solid var(--fe-red);
  border-radius: var(--fe-r-small); padding: 0 8px; line-height: 1.8;
}
.fe-home-body p, .fe-home-body ul { margin: 0 0 16px; break-inside: avoid; }
.fe-home-body h2:not(:first-child) { margin-top: 26px; }
.fe-ask { padding-left: 1.2em; }
.fe-ask li { margin-bottom: 8px; }

.fe-shelf { margin-top: 30px; }
.fe-shelf-h { font-size: 22px; margin: 0 0 12px; line-break: strict; text-wrap: balance; }
.fe-shelf-list { list-style: none; margin: 0; padding: 0; }
.fe-shelf-item {
  background: var(--fe-sub); border: 1px solid var(--fe-line); border-radius: var(--fe-r-big);
  padding: 16px 20px;
}
.fe-shelf-link { font-size: 19px; font-weight: 700; display: inline-block; padding: 9px 0; line-height: 1.45; min-height: 44px; }
.fe-shelf-desc { margin: 4px 0 6px; color: var(--fe-soft); }
.fe-shelf-meta { font-size: 13px; color: var(--fe-soft); }
.fe-shelf-more a { display: inline-flex; align-items: center; min-height: 44px; }

/* 面包屑 */
.fe-crumb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: 14px; color: var(--fe-soft); }
.fe-crumb-list li { display: inline-flex; align-items: center; }
.fe-crumb-list li + li::before { content: "›"; padding: 0 8px; color: var(--fe-soft); }
.fe-crumb-list a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--fe-soft); }

/* 文章页 */
.fe-art-head, .fe-cover, .fe-toc, .fe-art, .fe-faq, .fe-after, .fe-doc-head, .fe-doc, .fe-list-head, .fe-cards, .fe-pager, .fe-seek, .fe-list-also {
  max-width: 780px; margin-left: auto; margin-right: auto;
}
.fe-art-head { padding-top: 8px; }
.fe-art-h, .fe-doc-h, .fe-list-h {
  margin: 4px 0 10px; font-size: 40px; line-height: 1.25; font-weight: 800; line-break: strict; text-wrap: balance;
}
.fe-byline, .fe-doc-date { font-size: 14px; color: var(--fe-soft); margin-bottom: 20px; }
.fe-cover { margin-top: 0; margin-bottom: 22px; }
.fe-cover img { display: block; width: 100%; border-radius: var(--fe-r-big); }
.fe-cover figcaption { font-size: 14px; color: var(--fe-soft); margin-top: 8px; }

.fe-toc {
  background: var(--fe-ink); color: var(--fe-white); border-radius: var(--fe-r-big);
  padding: 16px 22px 12px; margin-bottom: 22px;
}
.fe-toc-h { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #ffd9dc; }
.fe-toc ul { list-style: none; margin: 0; padding: 0; counter-reset: fe-t; }
.fe-toc li { counter-increment: fe-t; }
.fe-toc a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--fe-white);
  text-decoration: none; border-bottom: 1px dashed rgba(169, 217, 205, 0.35); line-height: 1.45; padding: 4px 0;
}
.fe-toc a::before {
  content: counter(fe-t, decimal-leading-zero); flex: none; font-family: var(--fe-lat); font-size: 13px;
  color: var(--fe-ink); background: var(--fe-paper); border-radius: var(--fe-r-small); padding: 2px 6px;
}
.fe-toc a:hover { color: #ffd9dc; }

.fe-art, .fe-doc {
  --fe-under: var(--fe-white);
  background: var(--fe-white); border-radius: var(--fe-r-big);
  padding: 30px 40px 34px; font-size: 17px; line-height: 1.85;
}
.fe-art > p, .fe-art > ul, .fe-art > ol, .fe-doc > p, .fe-doc > ul, .fe-doc > ol { max-width: 38em; }
.fe-art { counter-reset: fe-h; }
.fe-art h2, .fe-doc h2 {
  margin: 2.1em 0 0.7em; font-size: 24px; line-height: 1.4; line-break: strict; text-wrap: balance;
}
.fe-art h2 { counter-increment: fe-h; display: flex; align-items: baseline; gap: 12px; scroll-margin-top: 16px; }
.fe-art h2::before {
  content: counter(fe-h, decimal-leading-zero) "号"; flex: none; position: relative; top: -3px;
  font-size: 13px; font-weight: 700; line-height: 1; color: #fff; background: var(--fe-red);
  padding: 6px 9px 6px 11px; border-radius: var(--fe-r-small);
  -webkit-mask: radial-gradient(circle 4px at 0 50%, #0000 96%, #000);
  mask: radial-gradient(circle 4px at 0 50%, #0000 96%, #000);
}
.fe-art p, .fe-doc p { margin: 0 0 1em; }
.fe-art li, .fe-doc li { margin-bottom: 0.55em; }
.fe-art ol > li::marker { font-weight: 700; color: var(--fe-red); }
.fe-art .fe-stub { background: var(--fe-paper); margin: 1.4em 0 1.4em; }
.fe-stub-wide { max-width: 560px; }

.fe-shot { margin: 1.2em 0 1.4em; }
.fe-shot img { display: block; border: 1px solid var(--fe-line); border-radius: var(--fe-r-small); background: #fff; }
.fe-shot figcaption { font-size: 14px; line-height: 1.6; color: var(--fe-soft); margin-top: 8px; }

.fe-tablewrap { overflow-x: auto; margin: 1.2em 0 1.4em; border: 1px solid var(--fe-line); border-radius: var(--fe-r-small); }
.fe-table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: 15px; line-height: 1.6; }
.fe-table th, .fe-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--fe-line); }
.fe-table thead th { background: var(--fe-ink); color: var(--fe-white); font-weight: 700; }
.fe-table tbody th { background: var(--fe-sub); font-weight: 700; min-width: 7em; }
.fe-table tbody tr:last-child th, .fe-table tbody tr:last-child td { border-bottom: 0; }

.fe-faq {
  margin-top: 22px; background: var(--fe-sub); border: 1px solid var(--fe-line);
  border-radius: var(--fe-r-big); padding: 22px 40px 10px;
}
.fe-faq-h { margin: 0 0 12px; font-size: 22px; line-break: strict; text-wrap: balance; }
.fe-faq-item { border-top: 1px dashed var(--fe-line); padding: 14px 0 6px; }
.fe-faq-q { margin: 0 0 6px; font-size: 17px; line-height: 1.55; line-break: strict; }
.fe-faq-a { margin: 0 0 8px; font-size: 16px; line-height: 1.8; max-width: 38em; }

.fe-after { margin-top: 22px; padding: 0 4px; }
.fe-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.fe-chips-label { font-size: 14px; font-weight: 700; margin-right: 4px; }
.fe-chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 2px 12px;
  border: 1.5px solid var(--fe-ink); border-radius: var(--fe-r-small); font-size: 14px; background: var(--fe-white);
}
a.fe-chip { min-height: 44px; }
.fe-log { margin-bottom: 12px; }
.fe-log-h { margin: 0; font-size: 14px; font-weight: 700; }
.fe-log-list { margin: 4px 0 0; padding-left: 1.2em; font-size: 14px; color: var(--fe-soft); }
.fe-after-links { font-size: 15px; }
.fe-after-links a { display: inline-block; padding: 10px 0; }

/* 列表页 */
.fe-list-head { padding-top: 8px; }
.fe-list-intro { max-width: 38em; font-size: 16px; color: var(--fe-ink); }
.fe-list-intro p { margin: 0 0 10px; }
.fe-list-count { font-size: 14px; color: var(--fe-soft); margin: 4px 0 16px; }
.fe-cards { list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; display: grid; gap: 14px; }
.fe-card {
  --fe-under: var(--fe-paper);
  position: relative; background: var(--fe-white); border-radius: var(--fe-r-big); padding: 18px 22px 16px 26px;
  border-left: 6px solid var(--fe-red);
}
.fe-card-link { font-size: 20px; font-weight: 700; line-height: 1.45; display: inline-block; padding: 8px 0; min-height: 44px; line-break: strict; }
.fe-card-desc { margin: 6px 0; color: var(--fe-soft); }
.fe-card-meta { font-size: 13px; color: var(--fe-soft); }
.fe-pager { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.fe-pager-a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--fe-white); border-radius: var(--fe-r-small); }
.fe-pager-now { font-size: 14px; color: var(--fe-soft); }
.fe-list-also { font-size: 14px; color: var(--fe-soft); }

/* 站务页 */
.fe-doc-head { padding-top: 8px; }
.fe-doc table { border-collapse: collapse; }

/* 站内查号 */
.fe-seek { background: var(--fe-ink); color: var(--fe-white); border-radius: var(--fe-r-big); padding: 22px 26px; margin-bottom: 20px; }
.fe-seek-label { display: block; font-size: 15px; margin-bottom: 8px; }
.fe-seek-row { display: flex; gap: 10px; }
.fe-seek-input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 2px solid var(--fe-line);
  border-radius: var(--fe-r-small); font: 16px var(--fe-cjk); color: var(--fe-ink); background: var(--fe-white);
}
.fe-seek-btn {
  min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--fe-r-small);
  background: var(--fe-red); color: #fff; font: 700 16px var(--fe-cjk); cursor: pointer;
}
.fe-seek-state { font-size: 14px; color: #d4ece5; margin: 12px 0 0; }
.fe-seek-state a { color: #fff; }
.fe-seek-out { list-style: none; margin: 10px 0 0; padding: 0; }
.fe-seek-hit { background: var(--fe-white); color: var(--fe-ink); border-radius: var(--fe-r-small); padding: 10px 14px; margin-top: 10px; }
.fe-seek-link { display: inline-block; padding: 6px 0; font-weight: 700; font-size: 17px; }
.fe-seek-sum { margin: 2px 0 4px; font-size: 14px; color: var(--fe-soft); }

/* 404 */
.fe-lost { max-width: 640px; margin: 40px auto 20px; background: var(--fe-white); border-radius: var(--fe-r-big); padding: 34px 36px 26px; }
.fe-lost-slip {
  display: inline-block; margin: 0 0 10px; padding: 4px 16px; font-size: 26px; font-weight: 800;
  color: var(--fe-white); background: var(--fe-red); border-radius: var(--fe-r-small);
}
.fe-lost-h { margin: 0 0 12px; font-size: 34px; line-height: 1.3; line-break: strict; text-wrap: balance; }
.fe-lost-go { padding-left: 1.2em; }
.fe-lost-go a { display: inline-block; padding: 10px 0; }

/* 页脚 */
.fe-foot { background: var(--fe-ink); color: var(--fe-white); margin-top: 20px; }
.fe-foot a { color: var(--fe-white); }
.fe-foot a:hover { color: #ffd9dc; }
.fe-foot-in {
  max-width: 1160px; margin: 0 auto; padding: 34px 16px 28px;
  display: grid; grid-template-columns: 1.3fr 1.4fr 0.8fr; gap: 26px 40px;
}
.fe-brand-foot { color: var(--fe-white); }
.fe-brand-foot:hover { color: var(--fe-white); }
.fe-foot-line { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: #d4ece5; }
.fe-foot-line a { display: inline-block; min-height: 44px; padding: 10px 0; box-sizing: border-box; }
.fe-foot-label { margin: 0 0 4px; font-size: 13px; color: #a9d9cd; }
.fe-foot-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.fe-foot-list a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.fe-foot-rss { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.fe-foot-copy { margin: 6px 0 0; font-size: 13px; color: #a9d9cd; }

@media (max-width: 1100px) {
  .fe-hero-h { font-size: 64px; }
}

@media (max-width: 860px) {
  .fe-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "say" "code" "pick" "uid";
    gap: 16px; padding: 12px 0 28px;
  }
  .fe-hero-code .fe-stub, .fe-hero-uid .fe-stub { transform: none; margin-left: 0; }
  .fe-home-body { columns: 1; padding: 24px 20px 8px; }
  .fe-foot-in { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .fe-top-in { padding: 6px 16px 2px; }
  .fe-menu { width: 100%; }
  .fe-menu-list { justify-content: space-between; gap: 2px; }
  .fe-menu-list a { padding: 0 8px; font-size: 15px; }
  .fe-hero-h { font-size: 42px; line-height: 1.12; }
  .fe-hero-lead { font-size: 15px; margin-top: 10px; line-height: 1.65; }
  .fe-stub { padding: 18px 16px 18px 62px; }
  .fe-stub-head { width: 48px; }
  .fe-stub-num { font-size: 32px; }
  .fe-stub-note { font-size: 13.5px; margin-top: 8px; }
  .fe-hero-pick { padding: 14px 16px 16px; }
  .fe-pick-link { font-size: 18px; }
  .fe-pick-why { font-size: 13.5px; margin-top: 4px; }
  .fe-art-h, .fe-doc-h, .fe-list-h { font-size: 28px; }
  .fe-art, .fe-doc { padding: 20px 18px 24px; font-size: 16px; line-height: 1.8; }
  .fe-art h2, .fe-doc h2 { font-size: 21px; }
  .fe-faq { padding: 18px 18px 6px; }
  .fe-seek { padding: 18px 16px; }
  .fe-lost { padding: 26px 20px 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .fe-copy, .fe-go, .fe-menu-list a { transition: background-color 0.15s ease; }
}
