/* 沈括 · 学术名片 —— 石青底，象牙白字；朱色只给针锋和问题。 */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(../fonts/cormorant-garamond-vf.woff2) format('woff2'); unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2015, U+2018-201F, U+2026, U+2032-2033, U+2212, U+00D7; }

:root {
  --az0: #0e2540; --az1: #17365a; --az2: #1c4166; --az3: #255079;
  --iv: #efe8da; --iv2: #c5cdd6; --iv3: #93a4b7; --iv4: #6f839a;
  --line: rgba(239, 232, 218, .2); --line2: rgba(239, 232, 218, .1);
  --verm: #f0693c; --verm2: #c9472a; --ochre: #e3b25d; --mal: #5bb895;
  --paper: #ebe5d8; --paper2: #ded6c5; --ink: #18222d; --ink2: #4c5765; --ink3: #7a8390;
  --song: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --num: "Cormorant Garamond", "Noto Serif SC", serif;
  --bar: 52px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.sk {
  margin: 0; min-height: 100vh; color: var(--iv); font-family: var(--song); font-size: 17px; line-height: 1.9;
  background-color: var(--az1);
  background-image:
    radial-gradient(1200px 900px at 68% 34%, rgba(64, 120, 170, .26), transparent 62%),
    radial-gradient(900px 700px at 8% 100%, rgba(10, 28, 50, .5), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .025) 0 1px, transparent 1px 4px);
  background-attachment: fixed, fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: rgba(239, 232, 218, .45); text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--verm); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
.num { font-family: var(--num); font-variant-numeric: lining-nums; letter-spacing: .02em; }
.mk { margin: 0; font-size: 12.5px; letter-spacing: .14em; color: var(--iv3); font-weight: 400; line-height: 1.6; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--iv); color: var(--az1); padding: 6px 12px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 18px;
  border: 1px solid rgba(239, 232, 218, .5); border-radius: 2px; background: transparent; color: var(--iv);
  font: inherit; font-size: 15px; line-height: 1.3; text-decoration: none; cursor: pointer; letter-spacing: .04em; }
.btn:hover { border-color: var(--iv); background: rgba(239, 232, 218, .06); }
.btn--go { background: var(--iv); color: var(--az1); border-color: var(--iv); font-weight: 700; }
.btn--go:hover { background: #fff; }
.btn--sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn--ghost { border-color: transparent; color: var(--iv2); text-decoration: underline; text-decoration-color: rgba(239, 232, 218, .3); text-underline-offset: .25em; }
.btn--ghost:hover { border-color: transparent; background: transparent; color: var(--iv); }
.btn[disabled] { opacity: .38; cursor: default; }
.btn[aria-pressed="true"] { background: rgba(239, 232, 218, .14); border-color: var(--iv); }

/* ---------- 顶栏 ---------- */
.skbar { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--bar); display: flex; align-items: center; gap: 14px;
  padding: 0 22px; background: color-mix(in srgb, var(--az0) 78%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line2); }
.skbar__logo { display: grid; place-items: center; width: 30px; height: 30px; color: var(--verm); transform: rotate(7deg); }
.skbar__logo svg { width: 26px; height: 26px; }
.skbar__t { margin: 0; display: flex; gap: 12px; align-items: baseline; white-space: nowrap; font-size: 15px; }
.skbar__t a { text-decoration: none; font-weight: 700; }
.skbar__t span { color: var(--iv2); }
.skbar__nav { margin-left: auto; display: flex; gap: 22px; font-size: 14.5px; white-space: nowrap; }
.skbar__nav a { text-decoration: none; color: var(--iv2); }
.skbar__nav a:hover { color: var(--iv); }
.skbar__prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--verm); }

/* ---------- 左侧目录：小罗盘 ---------- */
.sktoc { position: fixed; z-index: 30; left: 18px; top: 50%; transform: translateY(-50%); width: 64px;
  transition: opacity .3s, visibility .3s; }
.sktoc__dial { width: 64px; height: 64px; margin: 0 0 10px; }
.sktoc__dial svg { width: 100%; height: 100%; overflow: visible; }
.sktoc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sktoc a { position: relative; display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 2px 0 2px 20px; text-decoration: none; color: var(--iv3); font-size: 13px; line-height: 1.3; }
.sktoc a b { width: 18px; font-weight: 400; text-align: center; }
.sktoc a span { position: absolute; left: 50px; white-space: nowrap; padding: 3px 10px; background: var(--az0); border: 1px solid var(--line); color: var(--iv);
  opacity: 0; pointer-events: none; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.sktoc a:hover span, .sktoc a:focus-visible span { opacity: 1; transform: none; }
.sktoc a::before { content: ""; position: absolute; left: 4px; top: 50%; width: 8px; height: 1px; background: var(--iv4); }
.sktoc a[aria-current="true"] { color: var(--iv); }
.sktoc a[aria-current="true"]::before { width: 14px; left: 0; height: 2px; background: var(--verm); }
body[data-cur="top"] .sktoc { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- 首屏 ---------- */
main { display: block; }
.skhero { position: relative; min-height: 100vh; padding: calc(var(--bar) + 22px) clamp(20px, 4vw, 64px) 36px clamp(20px, 7vw, 120px);
  display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "id dial" "more dial"; gap: 0 clamp(20px, 3vw, 48px); align-content: start; align-items: start; }
.skhero__id { grid-area: id; position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas:
  "era era" "name en" "name who" "name zi"; column-gap: 26px; padding-top: 14px; }
.skhero__more { grid-area: more; align-self: start; }
.dial { grid-area: dial; }
.skhero__era { grid-area: era; margin: 0 0 8px; display: flex; gap: 14px; align-items: baseline; color: var(--iv3); font-size: 14px; letter-spacing: .2em; }
.skhero__era .num { font-size: 22px; letter-spacing: .06em; color: var(--iv2); }
.skhero__name { grid-area: name; margin: 0; writing-mode: vertical-rl; font-weight: 900; font-size: clamp(96px, 10vw, 172px); line-height: 1; letter-spacing: .06em;
  color: var(--iv); text-shadow: 0 2px 0 rgba(0, 0, 0, .18); align-self: start; }
.skhero__en { grid-area: en; margin: 6px 0 0; font-family: var(--num); font-style: italic; font-size: 30px; line-height: 1.1; color: var(--iv2); align-self: end; }
.skhero__who { grid-area: who; margin: 12px 0 0; font-size: 19px; line-height: 1.6; font-weight: 700; max-width: 14em; }
.skhero__zi { grid-area: zi; margin: 8px 0 0; color: var(--iv3); font-size: 15px; align-self: start; }
/* 八个问题：实心朱圈的七问在罗盘上，空心的第八问是全书 */
.skhero__qs { list-style: none; margin: 24px 0 0; padding: 0; max-width: 34em; border-top: 1px solid var(--line); }
.skhero__qs li { border-bottom: 1px solid var(--line2); }
.skhero__qs a { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 0 12px; min-height: 37px; padding: 4px 8px 4px 4px;
  color: var(--iv2); text-decoration: none; font-size: 16px; line-height: 1.45; }
.skhero__qs b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--verm); color: var(--az0); font-size: 13px; font-weight: 700; line-height: 1; }
.skhero__qs .is-all b { background: transparent; border: 1px solid var(--verm); color: var(--verm); }
.skhero__qs small { color: var(--iv4); font-size: 12.5px; letter-spacing: .04em; white-space: nowrap; }
.skhero__qs a:hover, .skhero__qs a:focus-visible, .skhero__qs a.is-hot { background: rgba(14, 37, 64, .6); color: var(--iv); }
.skhero__qs a.is-cur { color: var(--iv); }
.skhero__qs a.is-cur::before { content: ""; position: absolute; left: -14px; top: 50%; width: 8px; height: 2px; background: var(--verm); }
.skhero__go { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 罗盘 ---------- */
.dial { position: relative; margin: 0; display: grid; justify-items: center; gap: 10px; }
.dial__stage { position: relative; width: min(calc(100vh - 290px), 44vw, 760px); min-width: 300px; aspect-ratio: 1; touch-action: pan-y; cursor: grab; border-radius: 50%; outline-offset: 6px; user-select: none; -webkit-user-select: none; }
.dial__stage.is-drag { cursor: grabbing; }
.dial__svg { display: block; width: 100%; height: 100%; overflow: visible; }

.d-face { fill: url(#dFace); stroke: rgba(239, 232, 218, .32); stroke-width: 1.2; }
.d-ring { fill: none; stroke: rgba(239, 232, 218, .2); stroke-width: 1; }
.d-ring--b { stroke: rgba(239, 232, 218, .42); stroke-width: 1.4; }
.d-dir { fill: var(--iv2); font-family: var(--song); font-size: 23px; font-weight: 400; text-anchor: middle; dominant-baseline: central; }
.d-dir--card { fill: var(--iv); font-weight: 700; font-size: 27px; }
.d-dir--wu { fill: var(--verm); font-weight: 900; }
.d-dtick { stroke: rgba(239, 232, 218, .45); stroke-width: 1.2; }
.d-tick { stroke-width: 2.1; stroke-linecap: butt; }
.d-tick--a { stroke: rgba(239, 232, 218, .78); }
.d-tick--b { stroke: rgba(197, 205, 214, .46); }
.d-tick--s { stroke-dasharray: 2 2; }
.d-tick--hl { stroke: var(--ochre); }
.d-tick--q { stroke: var(--verm); stroke-width: 3.2; }
.d-tick--cur { stroke: #fff; stroke-width: 3.4; }
.d-men { fill: var(--iv3); font-family: var(--song); font-size: var(--men, 17px); letter-spacing: 1px; text-anchor: middle; dominant-baseline: central; }
.d-men--on { fill: var(--iv); }
.d-lead { stroke: var(--verm); stroke-width: 2; }
.d-badge circle { fill: var(--verm); stroke: var(--az1); stroke-width: 3; }
.d-badge text { fill: var(--az0); font-family: var(--song); font-size: var(--bf, 19px); font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.d-badge--cur circle, .d-badge--hot circle { stroke: var(--iv); stroke-width: 4; }
.d-badge--hot circle { fill: #ff8a5c; }
.d-south { stroke: var(--verm); stroke-width: 1.4; stroke-dasharray: 7 6; opacity: .85; }
.d-arc { fill: none; stroke: var(--verm); stroke-width: 1.6; }
.d-arclab { fill: var(--verm); font-family: var(--song); font-size: var(--arc, 19px); dominant-baseline: central; }
.d-pool { fill: rgba(9, 26, 46, .55); stroke: rgba(239, 232, 218, .18); }
.d-shadow { fill: rgba(0, 0, 0, .28); filter: blur(5px); }
.d-thread { fill: rgba(239, 232, 218, .85); }
.d-hover { stroke: var(--ochre); stroke-width: 3; }

.dial__read { width: min(100%, 640px); margin: 14px 0 0; padding: 12px 18px 12px; border-top: 1px solid var(--line); background: rgba(14, 37, 64, .5); }
.dial__where { margin: 0; display: flex; gap: 14px; align-items: baseline; font-size: 14px; color: var(--iv2); }
.dial__where .mk { color: var(--verm); }
.dial__text { margin: 4px 0 6px; font-size: 16px; line-height: 1.8; min-height: 3.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dial__act { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.dial figcaption { width: min(100%, 640px); font-size: 13px; line-height: 1.75; color: var(--iv3); }

/* ---------- 生平带 ---------- */
.skband { max-width: 1320px; margin: 0 auto; padding: 40px clamp(20px, 5vw, 64px) 70px; border-top: 1px solid var(--line2); }
.skband__life { margin: 0 0 30px; max-width: 58em; font-size: 16.5px; line-height: 2; color: var(--iv2); }
.skband__g { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 36px; }
.skband__g .mk { margin-bottom: 10px; }
.sk-list { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 6px; font-size: 15px; line-height: 1.7; color: var(--iv2); }
.sk-list li::marker { color: var(--verm); font-family: var(--num); }
.sk-books, .sk-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; line-height: 1.6; }
.sk-books small, .sk-links small { display: block; color: var(--iv3); font-size: 13px; line-height: 1.65; }

/* ---------- 每一问 ---------- */
.skq { position: relative; padding: 90px clamp(20px, 5vw, 64px) 70px clamp(20px, 8vw, 120px); border-top: 1px solid var(--line2); }
.skq__in { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head art" "text art" "slip slip"; column-gap: clamp(28px, 4vw, 64px); align-items: start; }
.skq__h { grid-area: head; }
.skq__where { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-size: 13.5px; color: var(--iv3); letter-spacing: .06em; }
.skq__n { display: inline-grid; place-items: center; align-self: center; width: 42px; height: 42px; margin-right: 6px; border-radius: 50%; background: var(--verm); color: var(--az0); font-size: 21px; line-height: 1; font-weight: 700; letter-spacing: 0; }
.skq--notes .skq__n { background: transparent; border: 1.5px solid var(--verm); color: var(--verm); }
.skq h2 { margin: 12px 0 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.25; font-weight: 900; letter-spacing: .02em; }
.skq__word { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; }
.skq__word .mk { grid-column: 1 / -1; }
.skq__word b { font-size: 25px; font-weight: 700; letter-spacing: .12em; color: var(--ochre); }
.skq__word small { color: var(--iv2); font-size: 14px; }
.skq__text { grid-area: text; }
.skq__lede { margin: 22px 0 0; font-size: 17.5px; line-height: 2; color: var(--iv); }
.skq__go { margin: 26px 0 0; display: grid; gap: 10px; }
.deeplink { justify-self: start; font-size: 14.5px; color: var(--iv2); }
.ask { display: block; width: 100%; max-width: 30em; padding: 9px 14px 10px; border: 0; border-left: 2px solid var(--verm); background: rgba(14, 37, 64, .42);
  color: var(--iv); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.ask:hover { background: rgba(14, 37, 64, .8); }
.ask b { display: block; font-size: 15.5px; line-height: 1.5; }
.ask small { display: block; margin-top: 2px; font-size: 13px; color: var(--iv3); }
.rel { display: inline-block; margin-right: 6px; padding: 0 5px; border: 1px solid var(--iv4); border-radius: 2px; font-size: 11.5px; line-height: 1.55; color: var(--iv2); letter-spacing: .06em; }
.rel--w { border-color: var(--verm); color: var(--verm); }

.skq__art { grid-area: art; margin: 0; padding: 14px 14px 12px; background: var(--az0); border: 1px solid var(--line2); }
.art__stage { position: relative; width: 100%; aspect-ratio: 600 / 420; }
.art-map .art__stage, .art-stack .art__stage { aspect-ratio: 600 / 440; }
.art__stage--auto { aspect-ratio: auto; }
.art__cv, .art__svg { display: block; width: 100%; height: 100%; }
.art__svg { height: auto; }
.art-pole .art__cv, .art-needle .art__cv, .art-map .art__cv, .art-type .art__cv { touch-action: none; }
.art__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 12px 2px 0; }
.art__btns { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.art__out { margin: 10px 2px 0; min-height: 3.4em; font-size: 15px; line-height: 1.75; color: var(--iv); }
.skq__art figcaption { margin: 8px 2px 0; padding-top: 8px; border-top: 1px solid var(--line2); font-size: 12.5px; line-height: 1.75; color: var(--iv3); }
.rng { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--iv2); }
.rng input { width: 150px; accent-color: var(--verm); }
.rng output { min-width: 4.5em; font-size: 14px; color: var(--iv); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid rgba(239, 232, 218, .4); border-radius: 2px; }
.seg button { min-height: 38px; padding: 6px 14px; border: 0; background: transparent; color: var(--iv2); font: inherit; font-size: 14px; cursor: pointer; }
.seg button + button { border-left: 1px solid rgba(239, 232, 218, .25); }
.seg button[aria-pressed="true"] { background: var(--iv); color: var(--az1); font-weight: 700; }
.art__nums { margin: 10px 2px 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 28px; }
.art__nums div { display: grid; }
.art__nums dt { font-size: 12.5px; color: var(--iv3); letter-spacing: .1em; }
.art__nums dd { margin: 0; font-family: var(--num); font-size: 30px; line-height: 1.1; font-weight: 500; }
.art__nums div:nth-child(2) dd { color: var(--iv3); }
.art__nums div:nth-child(3) dd { color: var(--ochre); }

/* 原文：竖排的纸签 */
.skq__slip { grid-area: slip; margin: 44px 0 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "slip tr" "cap tr"; gap: 0 40px; }
.slip { grid-area: slip; position: relative; margin: 0; height: 330px; overflow-x: auto; overflow-y: hidden; writing-mode: vertical-rl;
  padding: 26px 30px 22px 22px; background: var(--paper); color: var(--ink);
  background-image: linear-gradient(90deg, transparent 0 calc(100% - 7px), var(--verm2) calc(100% - 7px) calc(100% - 5px), transparent calc(100% - 5px)),
    repeating-linear-gradient(90deg, rgba(24, 34, 45, .05) 0 1px, transparent 1px 2.25em);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .7); scrollbar-color: var(--ink3) var(--paper2); }
.slip p { margin: 0; font-size: 19px; line-height: 2.25; letter-spacing: .1em; font-weight: 400; }
.skq__slip > figcaption { grid-area: cap; margin: 10px 0 0; font-size: 13px; color: var(--iv3); }
.slip__tr { grid-area: tr; }
.slip__tr p:last-child { margin: 8px 0 0; font-size: 15px; line-height: 2; color: var(--iv2); }

/* ---------- 第八问：格子 ---------- */
.nb-cell { stroke: none; }
.nb-lab { fill: var(--iv2); font-family: var(--song); font-size: 13px; }
.nb-lab--n { fill: var(--iv3); font-family: var(--num); font-size: 14px; }
.nb-bar text { font-family: var(--song); font-size: 13.5px; fill: var(--iv); }
.nb-cap { fill: var(--iv3); font-family: var(--song); font-size: 13px; }

/* ---------- 终点 ---------- */
.skend { padding: 100px clamp(20px, 5vw, 64px) 80px clamp(20px, 8vw, 120px); border-top: 1px solid var(--line2); }
.skend__in { max-width: 1320px; margin: 0 auto; }
.skend__h h2 { margin: 6px 0 0; font-size: clamp(32px, 4vw, 50px); font-weight: 900; }
.skend__h .mk { color: var(--verm); font-size: 15px; }
.skend__lede { margin: 12px 0 0; font-size: 17.5px; color: var(--iv2); max-width: 40em; }
.sk-lin { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.sk-lin li { padding: 16px 18px 20px 0; border-bottom: 1px solid var(--line2); }
.sk-lin li:not(:nth-child(4n)) { border-right: 1px solid var(--line2); }
.sk-lin li:not(:nth-child(4n+1)) { padding-left: 18px; }
.sk-lin__x, .sk-lin a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; text-decoration: none; }
.sk-lin b { font-size: 19px; font-weight: 700; }
.sk-lin a b { text-decoration: underline; text-decoration-color: var(--verm); text-underline-offset: .25em; }
.sk-lin p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.85; color: var(--iv2); }
.skend__go { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skend__fine { margin: 36px 0 0; max-width: 60em; font-size: 13px; line-height: 1.9; color: var(--iv3); }

/* ---------- 读一段：抽屉 ---------- */
.reader { position: fixed; z-index: 60; top: var(--bar); right: 0; bottom: 0; width: min(480px, 100%); background: var(--paper); color: var(--ink);
  box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .8); overflow-y: auto; overscroll-behavior: contain; }
.reader__in { padding: 26px 30px 40px; }
.reader__x { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink2); font-size: 30px; line-height: 1; cursor: pointer; }
.reader__where { color: var(--verm2); padding-right: 40px; }
.reader__t { margin: 8px 0 0; font-size: 22px; line-height: 1.5; font-weight: 700; padding-right: 30px; }
.reader__gloss { margin: 12px 0 0; padding: 10px 14px; background: rgba(23, 54, 90, .08); border-left: 2px solid var(--verm2); font-size: 15px; line-height: 1.8; color: var(--ink2); }
.reader__text { margin: 16px 0 0; font-size: 18px; line-height: 2.05; letter-spacing: .03em; }
.reader__text p { margin: 0; }
.reader__text .note { font-size: .78em; color: var(--ink3); }
.reader__nav { margin: 26px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 4px; font-size: 14px; }
.reader .btn--ghost { color: var(--ink2); text-decoration-color: rgba(24, 34, 45, .3); }
.reader .btn--ghost:hover { color: var(--ink); }
.reader__src { margin-left: auto; color: var(--ink2); }

.tip { position: fixed; z-index: 70; left: 0; top: 0; max-width: 320px; padding: 8px 12px; background: var(--az0); border: 1px solid var(--line); color: var(--iv);
  font-size: 13.5px; line-height: 1.7; pointer-events: none; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7); }
.tip b { color: var(--ochre); font-weight: 400; display: block; font-size: 12.5px; letter-spacing: .06em; }

/* 作品单独打开时角落的「在展馆中查看」小签（../assets/wk.js） */
.sk .wk-pill { transform: scale(.9); transform-origin: left bottom; }

/* ---------- 宽度 ---------- */
@media (max-width: 1280px) {
  .sktoc { display: none; }
  .skq, .skend { padding-left: clamp(20px, 5vw, 64px); }
  .skhero { padding-left: clamp(20px, 5vw, 64px); }
}
@media (max-width: 1100px) {
  .skhero { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "id" "dial" "more"; min-height: 0; padding-top: calc(var(--bar) + 22px); gap: 18px; }
  .skhero__id { align-self: start; }
  .dial__stage { width: min(92vw, 640px); }
  .skhero__qs { max-width: 40em; }
  .skband__g { grid-template-columns: 1fr 1fr; }
  .skband__g > div:first-child { grid-column: 1 / -1; }
  .skq__in { grid-template-columns: 1fr; grid-template-areas: "head" "text" "art" "slip"; }
  .skq__art { margin-top: 28px; }
  .sk-lin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sk-lin li { padding-left: 0 !important; border-right: 0 !important; }
  .sk-lin li:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--line2) !important; }
  .sk-lin li:nth-child(even) { padding-left: 18px !important; }
}
@media (max-width: 760px) {
  body.sk { font-size: 16px; }
  .skbar { padding: 0 12px; gap: 10px; }
  .skbar__nav { gap: 14px; font-size: 14px; }
  .hide-s { display: none; }
  .skhero { padding: calc(var(--bar) + 18px) 16px 30px; gap: 18px; }
  .skhero__id { column-gap: 16px; }
  .skhero__name { font-size: 92px; }
  .skhero__en { font-size: 24px; }
  .skhero__who { font-size: 17px; }
  .skhero__qs a { grid-template-columns: 24px minmax(0, 1fr); font-size: 15.5px; padding: 6px 4px; }
  .skhero__qs small { display: none; }
  .dial__stage { width: calc(100vw - 24px); min-width: 0; }
  .dial__read { padding: 10px 12px; }
  .skband { padding: 30px 16px 50px; }
  .skband__g { grid-template-columns: 1fr; gap: 26px; }
  .skq { padding: 64px 16px 50px; }
  .skq__n { width: 36px; height: 36px; font-size: 18px; }
  .skq__lede { font-size: 16.5px; }
  .skq__art { padding: 10px 8px 10px; margin-left: -6px; margin-right: -6px; }
  .rng input { width: 120px; }
  .skq__slip { grid-template-columns: 1fr; grid-template-areas: "slip" "cap" "tr"; }
  .slip { height: 300px; padding: 20px 24px 16px 16px; }
  .slip p { font-size: 17.5px; }
  .slip__tr { margin-top: 18px; }
  .skend { padding: 70px 16px 60px; }
  .sk-lin { grid-template-columns: 1fr; }
  .sk-lin li, .sk-lin li:nth-child(odd), .sk-lin li:nth-child(even) { padding: 14px 0 16px !important; border-right: 0 !important; }
  .seg button { padding: 6px 10px; font-size: 13.5px; }
  .reader { top: auto; height: 78vh; width: 100%; border-radius: 0; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .8); }
  .reader__in { padding: 20px 18px 36px; }
  .sk .wk-pill { transform: scale(.82); }
}
@media (prefers-reduced-motion: reduce) {
  .sktoc a span { transition: none; }
}
