/* SPDX-FileCopyrightText: 2026 IjalG
   SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0
   Required Notice: Copyright 2026 IjalG (https://github.com/IjalG/notice-board) */

/* ==========================================================================
   信息公示栏 · 样式
   设计取向：政务/事业单位公示栏的信任感优先，克制的层级、文档化的排版。
   尺度锁定：圆角统一 2px；单一强调色（朱砂红）通篇一致；浅色主题。
   ========================================================================== */

:root {
  --paper: #f6f7f5;
  --surface: #ffffff;
  --surface-sunken: #f1f2f0;
  --ink: #15181c;
  --ink-2: #4b5259;
  --ink-3: #7d858c;
  --rule: #e3e6e3;
  --rule-strong: #ccd1cd;
  --accent: #b02a1e;
  --accent-ink: #8c1f15;
  --accent-wash: #f9ece9;
  --radius: 2px;
  --wrap: 1180px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", STSong, SimSun, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  font-feature-settings: "kern";
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
dl,
dd,
dt,
ol,
ul {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--ink-3);
  margin-left: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 10px 16px;
  border: 1px solid var(--accent);
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
}

/* ---------------------------------------------------------------- 版头 */

.masthead {
  background: var(--surface);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: 30px;
  padding-bottom: 26px;
}

.masthead__org {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.masthead__title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-top: 6px;
}

.masthead__title a:hover {
  color: var(--accent-ink);
}

.masthead__sub {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 34em;
}

.masthead__side {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-shrink: 0;
}

.seal {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}

.measures {
  display: grid;
  gap: 8px;
  border-left: 1px solid var(--rule);
  padding-left: 20px;
}

.measures__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.measures dt {
  font-size: 12px;
  color: var(--ink-3);
  min-width: 4.5em;
}

.measures dd {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
}

/* ---------------------------------------------------------------- 骨架 */

.layout {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 56px;
  padding-top: 34px;
  padding-bottom: 72px;
}

.rail {
  position: sticky;
  top: 24px;
  align-self: start;
}

.rail__group + .rail__group {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.rail__title {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.rail__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 8px 7px 10px;
  font-size: 14px;
  color: var(--ink-2);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background-color 120ms ease, color 120ms ease;
}

.rail__list a:hover {
  background: var(--surface);
  color: var(--ink);
}

.rail__list a.is-active {
  border-left-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-weight: 600;
}

.rail__count {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

.rail__list a.is-active .rail__count {
  color: var(--accent-ink);
}

.rail__note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-3);
}

/* ------------------------------------------------------------ 列表页头部 */

.board-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  align-items: end;
  gap: 32px;
  padding-bottom: 18px;
}

.board-head__title {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.board-head__note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
}

.search__label {
  display: block;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.search__field {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}

.search__field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-wash);
}

.search__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius);
}

.search__field input:focus {
  outline: none;
}

.search__field input::placeholder {
  color: var(--ink-3);
}

.search__clear {
  border: 0;
  background: transparent;
  color: var(--accent-ink);
  font: inherit;
  font-size: 12.5px;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: var(--radius);
}

.search__clear:hover {
  background: var(--accent-wash);
}

.result {
  font-size: 12.5px;
  color: var(--ink-3);
  font-family: var(--mono);
  padding-bottom: 10px;
}

/* ---------------------------------------------------------------- 列表 */

.notices {
  border-top: 1px solid var(--rule-strong);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.notice {
  border-bottom: 1px solid var(--rule);
}

.notice:last-child {
  border-bottom: 0;
}

.notice.is-pinned {
  box-shadow: inset 3px 0 0 var(--accent);
}

.notice__link {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 22px 18px 20px;
  transition: background-color 120ms ease;
}

.notice__link:hover {
  background: #fbfbfa;
}

.notice__date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 3px;
}

.notice__day {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.notice__weekday {
  font-size: 11.5px;
  color: var(--ink-3);
}

.notice__main {
  display: block;
  min-width: 0;
}

.notice__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.tag {
  display: inline-block;
  padding: 1px 7px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--surface-sunken);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.tag--accent {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.tag--muted {
  color: var(--ink-3);
  background: transparent;
  border-style: dashed;
}

.notice__no {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

.notice__title {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.005em;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.notice__link:hover .notice__title {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.notice__summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.notice__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--ink-3);
}

.notice__foot > span + span::before {
  content: "·";
  margin-right: 6px;
  color: var(--rule-strong);
}

/* -------------------------------------------------------- 空状态 / 404 */

.blank {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 0;
  padding: 40px 24px;
  text-align: left;
}

.blank__title {
  font-size: 15.5px;
  font-weight: 600;
}

.blank__note {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 52ch;
}

.blank--filter {
  margin-top: 0;
}

.blank--404 {
  border-top: 1px solid var(--rule-strong);
  padding: 72px 24px;
}

.blank__code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
}

.blank .btn {
  margin-top: 18px;
}

/* ---------------------------------------------------------------- 详情 */

.doc {
  max-width: 860px;
}

.crumbs {
  font-size: 12.5px;
  color: var(--ink-3);
  padding-bottom: 16px;
}

.crumbs a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs__sep {
  margin: 0 8px;
  color: var(--rule-strong);
}

.doc__head {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--accent);
  padding: 30px 34px 26px;
}

.doc__number {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  margin-bottom: 12px;
}

.doc__title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.doc__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 28px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.doc__meta-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.doc__meta dt {
  font-size: 12px;
  color: var(--ink-3);
  min-width: 4.5em;
  flex-shrink: 0;
}

.doc__meta dd {
  font-size: 13.5px;
  color: var(--ink);
}

.doc__lead {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.prose {
  margin-top: 26px;
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.95;
}

.prose > * + * {
  margin-top: 16px;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.prose h2 {
  font-size: 19px;
  margin-top: 34px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.prose h3 {
  font-size: 16.5px;
  margin-top: 26px;
}

.prose h4 {
  font-size: 15px;
  margin-top: 22px;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--ink-3);
}

.prose blockquote {
  padding: 12px 18px;
  background: var(--surface);
  border-left: 3px solid var(--rule-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

.prose blockquote p + p {
  margin-top: 10px;
}

.prose code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface-sunken);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1px 5px;
}

.prose pre {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow-x: auto;
}

.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 28px 0;
}

.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover {
  color: #fff;
  background: var(--accent);
  text-decoration-color: transparent;
}

.prose strong {
  font-weight: 700;
}

.files {
  margin-top: 34px;
}

.files__title,
.related__title {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.files__list {
  background: var(--surface);
  border: 1px solid var(--rule);
}

.files__item + .files__item {
  border-top: 1px solid var(--rule);
}

.files__item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  transition: background-color 120ms ease;
}

.files__item a:hover {
  background: #fbfbfa;
}

.files__name {
  font-size: 14px;
  font-weight: 500;
}

.files__item a:hover .files__name {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.files__hint {
  font-size: 12px;
  color: var(--accent-ink);
  flex-shrink: 0;
}

.doc__stamp {
  margin-top: 26px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--ink-3);
}

.doc__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.doc__copied {
  font-size: 12.5px;
  color: var(--accent-ink);
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, transform 80ms ease;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn:active {
  transform: translateY(1px);
}

/* ------------------------------------------------------ 相邻 / 同类 */

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
  max-width: 860px;
}

.pager__item {
  flex: 1 1 260px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 120ms ease;
}

.pager__item:hover {
  border-color: var(--accent);
}

.pager__item--next {
  text-align: right;
  margin-left: auto;
}

.pager__hint {
  display: block;
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--ink-3);
  margin-bottom: 4px;
}

.pager__title {
  display: -webkit-box;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related {
  margin-top: 40px;
  max-width: 860px;
}

.related__list {
  border-top: 1px solid var(--rule-strong);
}

.related__list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--rule);
}

.related__list a:hover .related__name {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.related__date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  flex-shrink: 0;
}

.related__name {
  font-size: 14px;
}

/* ---------------------------------------------------------------- 页脚 */

.foot {
  background: var(--surface);
  border-top: 1px solid var(--rule);
}

.foot__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-top: 26px;
  padding-bottom: 30px;
}

.foot__org {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.foot__note {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.8;
}

.foot__meta {
  text-align: right;
  font-size: 12.5px;
  color: var(--ink-3);
  flex-shrink: 0;
}

.foot__meta p + p {
  margin-top: 4px;
}

.foot__meta a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- 自适应 */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .rail {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .rail__group + .rail__group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .rail__note {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .board-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .masthead__inner {
    flex-direction: column;
    gap: 22px;
  }

  .masthead__side {
    align-items: center;
  }

  .foot__inner {
    flex-direction: column;
    gap: 22px;
  }

  .foot__meta {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding: 0 16px;
  }

  .masthead__title {
    font-size: 27px;
  }

  .rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .rail__note {
    display: none;
  }

  .rail__title {
    margin-bottom: 6px;
  }

  .rail__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .rail__list a {
    padding: 4px 10px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
    gap: 8px;
  }

  .rail__list a.is-active {
    border-color: var(--accent);
  }

  .notice__link {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px 16px 18px;
  }

  .notice__date {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .notice__title {
    font-size: 16px;
  }

  .doc__head {
    padding: 22px 18px 20px;
  }

  .doc__title {
    font-size: 23px;
  }

  .pager__item--next {
    text-align: left;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ------------------------------------------------- 正文扩展元素
   语法高亮是全站唯一的例外色区：只在 pre 内使用三种功能色，
   正文、标题、按钮仍然只使用单一的朱砂红强调色。                  */

.prose pre code.hljs {
  display: block;
}

.hljs-comment,
.hljs-quote {
  color: var(--ink-3);
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-section,
.hljs-doctag,
.hljs-type,
.hljs-deletion {
  color: var(--accent-ink);
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta .hljs-string {
  color: #2f5d45;
}

.hljs-number,
.hljs-symbol,
.hljs-bullet,
.hljs-variable,
.hljs-template-variable,
.hljs-link {
  color: #8a5a1f;
}

.hljs-title,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class {
  color: #1c4f8a;
}

.hljs-built_in,
.hljs-builtin-name,
.hljs-params,
.hljs-attr,
.hljs-meta {
  color: var(--ink-2);
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: 700;
}

.prose .table-wrap {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.prose th {
  padding: 8px 12px;
  background: var(--surface-sunken);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose .task-item {
  list-style: none;
  margin-left: -1.4em;
}

.prose input.task-box {
  width: 13px;
  height: 13px;
  margin-right: 8px;
  accent-color: var(--accent);
  vertical-align: baseline;
}

/* 数学公式：构建期已渲染为内联 SVG，线上不依赖任何数学库或字体文件 */

.prose .math {
  font-size: inherit;
}

mjx-container[jax="SVG"] {
  direction: ltr;
}

mjx-container[jax="SVG"] > svg {
  overflow: visible;
  max-width: 100%;
}

mjx-container[jax="SVG"] > svg a {
  fill: var(--accent-ink);
  stroke: var(--accent-ink);
}

.math--block,
.math--display {
  display: block;
  margin: 20px 0;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
}

.math--block mjx-container[jax="SVG"],
.math--display mjx-container[jax="SVG"] {
  display: block;
}

.math--inline mjx-container[jax="SVG"] {
  display: inline-block;
  vertical-align: baseline;
}

mjx-assistive-mml {
  position: absolute !important;
  top: 0;
  left: 0;
  display: block !important;
  width: auto !important;
  padding: 1px 0 0 0 !important;
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  overflow: hidden !important;
  opacity: 0;
}

.prose code.math-error {
  color: var(--accent-ink);
  background: var(--accent-wash);
  border-color: #e3c3bd;
}

.prose code.math-pending {
  color: var(--ink-3);
}

.prose img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.prose .callout,
.prose .notice-box {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

.prose details {
  margin: 18px 0;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.prose summary {
  cursor: pointer;
  font-weight: 600;
}

.prose iframe,
.prose video {
  max-width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.prose .columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

hr.footnotes-sep {
  margin-top: 34px;
}

.prose .footnotes {
  font-size: 13.5px;
  color: var(--ink-2);
}

.prose .footnote-ref a,
.prose .footnote-backref {
  color: var(--accent-ink);
  text-decoration: none;
}

.prose .footnote-ref a:hover,
.prose .footnote-backref:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- 打印 */

@media print {
  @page {
    margin: 18mm;
  }

  body {
    background: #fff;
    font-size: 11.5pt;
  }

  .skip,
  .rail,
  .search,
  .result,
  .doc__actions,
  .pager,
  .related,
  .foot__meta,
  .masthead__side {
    display: none !important;
  }

  .layout {
    display: block;
    padding: 0;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  .masthead {
    border-top-color: var(--accent);
    margin-bottom: 18pt;
  }

  .notices {
    background: #fff;
  }

  .notice__link {
    padding: 8pt 0;
  }

  .notice__summary {
    -webkit-line-clamp: initial;
  }

  .doc {
    max-width: none;
  }

  .doc__head {
    border: 0;
    border-top: 2px solid var(--accent);
    padding: 0 0 10pt;
  }

  .prose {
    max-width: none;
    font-size: 11.5pt;
  }

  .prose a {
    color: var(--ink);
    text-decoration: none;
  }

  .foot {
    border-top: 1px solid var(--rule);
    margin-top: 16pt;
  }
}
