/* 首屏以下：吸顶条、人、一官一节、结尾、邦禁六条、页脚。各节没有滚动触发的入场。 */
section[id] { scroll-margin-top: var(--bar); }
.sec, .ren, .jin { display: grid; grid-template-columns: calc(var(--side) - var(--pad)) minmax(0, 760px); padding: 104px var(--pad) 112px; }

/* 吸顶条：紧跟在首屏后面，过了首屏才看得到 */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; height: var(--bar); padding: 0 var(--pad); border-bottom: 1px solid color-mix(in oklch, var(--mo) 14%, transparent); }
.bar-brand { font-size: 14px; font-weight: 600; letter-spacing: .24em; white-space: nowrap; }
.bar-nav { display: flex; gap: 26px; margin: 0 auto; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.bar-nav a { color: var(--c2); transition: color 150ms var(--ease); }
.bar-nav a:hover { color: inherit; }
.bar-nav a[aria-current] { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }

/* 人 */
.ren-mark { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--chi); color: var(--su); font-size: 46px; font-weight: 600; line-height: 1; }
.big { font-size: clamp(26px, 3vw, 42px); font-weight: 600; line-height: 1.4; letter-spacing: .02em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.src { margin-top: 12px; font-size: 14px; color: var(--c2); }
.ren .body { margin-top: 28px; max-width: 34em; font-size: 18px; text-wrap: balance; }

/* 一官一节：左边大字、官名、职掌；右边产品、引文、正文、属官 */
.sec-l { padding-right: 28px; }
.sec-l .glyph { display: block; margin-left: -8px; font-size: clamp(120px, 13.6vw, 196px); }
.sec-l .word { font-size: clamp(60px, 6.6vw, 96px); }
.sec-l .office { margin-top: 22px; font-size: 19px; font-weight: 600; }
.sec-l .duty { margin-top: 10px; max-width: 19em; font-size: 14.5px; line-height: 1.7; color: var(--c2); }
.sec-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.sec-head h2 { font-size: clamp(32px, 3.2vw, 46px); font-weight: 600; line-height: 1.2; }
.sec blockquote { margin-top: 30px; font-size: clamp(20px, 1.75vw, 25px); font-weight: 500; line-height: 1.65; }
.sec blockquote cite, .sub cite { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--c2); }
.lead { margin-top: 26px; max-width: 33em; font-size: 19px; line-height: 1.8; text-wrap: balance; }
.g-huang .lead, .g-chi .lead { font-weight: 500; }  /* 这两块底色上成段的字要重一档，见规格 §2.2 */

.eight { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 34px; border: solid currentColor; border-width: var(--rule) 0 0 var(--rule); counter-reset: n; }
.eight li { counter-increment: n; padding: 14px 16px 16px; border: solid currentColor; border-width: 0 var(--rule) var(--rule) 0; font-size: 19px; font-weight: 600; line-height: 1.4; }
.eight li::before { content: counter(n, cjk-ideographic); display: block; font-size: 13px; font-weight: 400; color: var(--c2); }

.subs { margin-top: 40px; border-top: var(--rule) solid currentColor; }
.sub { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 18px 0 20px; border-bottom: 1px solid color-mix(in oklch, currentColor 34%, transparent); }
.sub h3 { font-size: 19px; font-weight: 600; line-height: 1.5; }
.sub h3 span { display: block; font-size: 14px; font-weight: 400; color: var(--c2); }
.sub p { font-size: 17px; line-height: 1.7; text-wrap: balance; }

/* 结尾：和全页右栏同一条纵轴 */
.jie { padding: 104px var(--pad) 112px var(--side); }
.jie .big { max-width: 760px; font-size: clamp(30px, 3.6vw, 52px); }
.jie-list { margin-top: 36px; max-width: 760px; border-top: var(--rule) solid currentColor; counter-reset: n; }
.jie-list li, .rules li { counter-increment: n; display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 17px 0 18px; border-bottom: 1px solid color-mix(in oklch, currentColor 30%, transparent); font-size: 19px; line-height: 1.65; text-wrap: balance; }
.jie-list li::before, .rules li::before { content: counter(n, cjk-ideographic); font-weight: 600; color: var(--c2); }

/* 邦禁六条 */
.jin h2 { font-size: clamp(40px, 4.4vw, 64px); font-weight: 600; line-height: 1.15; letter-spacing: .04em; }
.jin h2 span { display: block; }
.rules { border-top: var(--rule) solid currentColor; counter-reset: n; }

.footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding: 44px var(--pad) 48px; font-size: 14px; color: var(--c2); border-top: 1px solid color-mix(in oklch, var(--mo) 14%, transparent); }
.footer-brand { color: var(--mo); font-weight: 500; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { margin-left: auto; }

@media (max-width: 1099px) {
  .sec-l .glyph { font-size: 152px; } .sec-l .word { font-size: 66px; }
  .bar { gap: 16px; }
  .bar-brand { font-size: 13px; letter-spacing: .12em; }
  .bar-nav { gap: 14px; font-size: 13.5px; }
  .bar .voice > * { padding: 5px 12px; }
  .sub { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .sub p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .sec, .ren, .jin { display: block; padding: 56px var(--pad) 60px; }
  .jie { padding: 56px var(--pad) 60px; }
  .bar { gap: 8px; padding: 0 12px 0 0; }
  .bar-brand { display: none; }
  .bar-nav {
    flex: 1; align-self: stretch; align-items: center; min-width: 0; margin: 0;
    gap: 16px; padding: 0 22px 0 var(--pad); font-size: 13.5px;
    overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--pad) 22px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--pad), #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--pad), #000 calc(100% - 22px), transparent 100%);
  }
  .bar-nav::-webkit-scrollbar { display: none; }
  .bar .voice > * { padding: 5px 10px; }
  .ren-mark { width: 60px; height: 60px; margin-bottom: 22px; font-size: 30px; }
  .ren .body { margin-top: 20px; font-size: 16.5px; }
  .sec-l { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; margin-bottom: 30px; padding-right: 0; }
  .sec-l .glyph { grid-row: span 2; margin-left: -4px; font-size: 108px; }
  .sec-l .word { grid-column: 1 / -1; font-size: 60px; }
  .sec-l .office { align-self: end; margin-top: 0; font-size: 16px; }
  .sec-l .duty { align-self: start; margin-top: 4px; font-size: 13px; }
  .sec blockquote { margin-top: 22px; } .lead { margin-top: 18px; font-size: 16.5px; }
  .eight { grid-template-columns: repeat(2, 1fr); margin-top: 26px; } .eight li { padding: 11px 13px 13px; font-size: 17px; }
  .subs { margin-top: 30px; }
  .sub { padding: 15px 0 17px; }
  .sub p { font-size: 16px; }
  .jie-list { margin-top: 26px; }
  .jie-list li, .rules li { grid-template-columns: 40px minmax(0, 1fr); padding: 14px 0 15px; font-size: 16.5px; }
  .jin h2 { margin-bottom: 26px; }
  .footer { padding: 30px var(--pad) 36px; gap: 12px 20px; } .footer-copy { margin-left: 0; }
}
