/* 王哲然 · 纱幕：文艺复兴画家的作图纸。纸上织着一层细线（阿尔贝蒂的纱幕），作图线用红粉笔，字用石墨。
   每一问的图放在画框里；标题旁有一只“眼睛”，进入视野时向画框四角拉出视觉金字塔。 */
.c-wang-zheran {
  --bg: #f3f1eb; --paper: #faf9f5; --ink: #22252a; --ink-2: #464a51; --ink-3: #62666d; --rule: rgba(34, 37, 42, .18);
  --acc: #a33b20; --acc-ink: #fff; --acc-soft: rgba(163, 59, 32, .12); --brass: #7d5f24; --bronze: #8c6a3a;
  --head: "Noto Serif SC", "Songti SC", serif; --body: "Noto Serif SC", "Songti SC", serif;
  --gar: "Cormorant Garamond", "Noto Serif SC", serif; --cin: "Cinzel", "Noto Serif SC", serif;
  --bar-bg: rgba(243, 241, 235, .93); --chip-bg: rgba(250, 249, 245, .9); --chip-ring: #faf9f5;
  --veil: rgba(34, 37, 42, .05);
  background-color: var(--bg);
  /* 纱幕：粗细两层经纬线 */
  background-image: linear-gradient(var(--veil) 1px, transparent 1px), linear-gradient(90deg, var(--veil) 1px, transparent 1px),
    linear-gradient(rgba(34, 37, 42, .022) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 37, 42, .022) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px, 14px 14px, 14px 14px;
}
.c-wang-zheran main [hidden] { display: none !important; }
.c-wang-zheran .dlg { --dlg-bg: #eeebe4; --dlg-paper: #fbfaf7; --dlg-me: #22252a; --dlg-me-ink: #fbfaf7; --dlg-acc: #a33b20; }
.c-wang-zheran .c3bar { border-bottom: 1px solid var(--ink); }
.c-wang-zheran .c3bar__t a { letter-spacing: .06em; }
.c-wang-zheran .mk { font-size: 12.5px; letter-spacing: .16em; color: var(--acc); }

/* 目录：页边一排横线，像地面的一道道横线 */
.c-wang-zheran .c3toc a { font-family: var(--cin); font-size: 11.5px; color: var(--ink-3); }
.c-wang-zheran .c3toc a span { font-family: var(--body); font-size: 12.5px; }
.c-wang-zheran .c3toc a::after { width: 16px; height: 1px; border: 0; border-radius: 0; background: currentColor; transition: width .25s; }
.c-wang-zheran .c3toc a[aria-current="true"] { color: var(--acc); }
.c-wang-zheran .c3toc a[aria-current="true"]::after { width: 30px; height: 2px; }

/* ---------- 首屏 ---------- */
.c-wang-zheran .c3hero { padding-top: calc(var(--bar) + 26px); padding-bottom: 40px; }
.wz-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 450px); gap: clamp(28px, 4.5vw, 72px); max-width: 1240px; margin: 0 auto; align-items: start; }
.wz-k { margin: 0; font-size: 14px; letter-spacing: .2em; color: var(--acc); }
.wz-name { margin: 2px 0 0; font-family: var(--head); font-weight: 300; font-size: clamp(64px, 8.2vw, 122px); line-height: 1.04; letter-spacing: .08em; }
.wz-en { margin: 6px 0 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.wz-en span:first-child { font-family: var(--gar); font-style: italic; font-size: 27px; }
.wz-yr { font-family: var(--cin); font-size: 15px; letter-spacing: .14em; color: var(--ink-3); }
.wz-who { margin: 0 0 4px; font-size: 19px; font-weight: 600; line-height: 1.6; }
.wz-now { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.wz-rep { margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.wz-rep .mk { margin: 0; }
.wz-rep a { font-size: 19px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--acc); }
.wz-rep a:hover { color: var(--acc); }
.wz-rep small { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }
.wz-rel { position: relative; margin: 0 0 16px; padding: 11px 0 12px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.wz-rel p { margin: 0; font-size: 15px; line-height: 1.8; }
.wz-rel .mk { margin-bottom: 4px; }
.wz-q ol { list-style: none; margin: 0; padding: 0; }
.wz-q li a { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 8px; padding: 4px 0; text-decoration: none; font-size: 15px; line-height: 1.5; border-bottom: 1px dotted var(--rule); }
.wz-q li a b { font-family: var(--cin); font-weight: 500; font-size: 13.5px; color: var(--acc); letter-spacing: .06em; padding-top: 2px; }
.wz-q li a:hover span { text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: .2em; }
.wz-go { margin: 18px 0 0; }
.c-wang-zheran .c3-btn { border-radius: 0; font-size: 14px; min-height: 40px; }
.c-wang-zheran .c3-btn--go { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.c-wang-zheran .c3-btn--deep { background: transparent; color: var(--ink); border-color: var(--ink); }
.c-wang-zheran .c3-btn--wm { color: var(--ink-2); border-color: var(--rule); }

/* 找中心点 */
.wz-kk { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .18em; color: var(--acc); }
.wz-kk::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.wz-vp { margin: 0; }
.wz-vp__pic { position: relative; line-height: 0; background: #d9d6cf; box-shadow: 0 0 0 1px var(--ink), 0 0 0 7px var(--paper), 0 0 0 8px var(--rule); margin: 8px; cursor: crosshair; }
.wz-vp__pic img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.wz-vp__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wz-vp__rays { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .95)); }
.wz-vp__ray { stroke: #c2462a; stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: .95; }
.wz-vp.is-play .wz-vp__ray { stroke-dasharray: 6 4; opacity: calc(.62 + var(--al, 0) * .38); }
.wz-vp__stubs { filter: drop-shadow(0 0 1.2px rgba(255, 255, 255, .95)); }
.wz-vp__stub { stroke: #b23a1d; stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wz-vp__hz { stroke: #b23a1d; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .9; transition: opacity .6s; }
.wz-vp.is-play .wz-vp__hz { opacity: 0; }
.wz-vp__mark circle, .wz-vp__mark line { fill: none; stroke: #b23a1d; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.wz-vp__mark { opacity: 0; transition: opacity .5s; }
.wz-vp.is-found .wz-vp__mark { opacity: 1; }
.wz-vp.is-found .wz-vp__ray { stroke-dasharray: none; opacity: 1; }
.wz-vp__pin { position: absolute; z-index: 2; width: 46px; height: 46px; margin: -23px 0 0 -23px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: grab; touch-action: none; }
.wz-vp__pin i { position: absolute; inset: 7px; border-radius: 50%; border: 1.5px solid #b23a1d; background: radial-gradient(circle, #b23a1d 0 5px, rgba(255, 255, 255, .85) 5.5px 7px, transparent 7.5px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
.wz-vp__pin:active { cursor: grabbing; }
.wz-vp__pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wz-vp:not(.is-play) .wz-vp__pin { pointer-events: none; }
.wz-vp:not(.is-play):not(.is-js) .wz-vp__pin { display: none; }
.wz-vp__bar { display: flex; align-items: center; gap: 10px; margin: 12px 8px 0; font-size: 12.5px; letter-spacing: .1em; color: var(--ink-3); }
.wz-vp__bar b { position: relative; flex: 1; max-width: 220px; height: 3px; background: var(--rule); }
.wz-vp__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--al, 0) * 100%); background: var(--acc); transition: width .15s; }
.wz-vp__out { margin: 8px 8px 0; min-height: 3.5em; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.wz-vp__ctl { display: flex; gap: 8px; margin: 6px 8px 0; }
.wz-vp figcaption { margin: 10px 8px 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.wz-horizon { position: absolute; z-index: 0; height: 0; border-top: 1px dashed #b23a1d; opacity: 0; pointer-events: none; transition: opacity .8s .2s; }
.wz-horizon.is-on { opacity: .45; }
.wz-hero__txt { position: relative; z-index: 1; }

/* 小按钮（各个机关通用） */
.wz-vp__ctl button, .wz-steps button, .wz-sp__ctl button, .wz-cab__sw button, .wz-od__stages button, .wz-od__ctl button {
  min-height: 40px; padding: 6px 13px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 14px; line-height: 1.3; cursor: pointer; transition: background .2s, color .2s; }
:is(.wz-vp__ctl, .wz-steps, .wz-sp__ctl, .wz-cab__sw, .wz-od__stages, .wz-od__ctl) button:not([aria-pressed="true"]):not(:disabled):hover { background: rgba(34, 37, 42, .06); }
.c-wang-zheran :is(.wz-vp__ctl, .wz-steps, .wz-sp__ctl, .wz-cab__sw, .wz-od__stages, .wz-od__ctl) button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.c-wang-zheran .wz-od__ctl button:disabled { cursor: default; color: var(--ink-3); border-color: var(--rule); }
.c-wang-zheran button b { margin-right: 6px; font-family: var(--body); font-weight: 900; color: var(--acc); }
.c-wang-zheran button[aria-pressed="true"] b { color: #f2a68f; }

/* 丢勒的纱幕：首屏之下一条横幅 */
.wz-veil { max-width: 1240px; margin: 54px auto 0; }
.wz-veil img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.wz-veil figcaption { max-width: 760px; margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }

/* 首屏下方的履历、著作、链接 */
.wz-band { max-width: 1240px; margin: 34px auto 0; padding-top: 18px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1.25fr 1fr .9fr; gap: 34px; }
.wz-facts { margin: 0 0 6px; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.wz-mk2 { margin-top: 18px !important; }
.c-wang-zheran .c3-feats { margin: 0; padding: 0; list-style: none; counter-reset: f; }
.c-wang-zheran .c3-feats li { counter-increment: f; position: relative; padding: 5px 0 5px 28px; font-size: 14.5px; line-height: 1.6; border-bottom: 1px dotted var(--rule); }
.c-wang-zheran .c3-feats li::before { content: counter(f); position: absolute; left: 0; top: 5px; font-family: var(--cin); font-size: 13px; color: var(--acc); }
.c-wang-zheran .c3-books li, .c-wang-zheran .c3-links li { font-size: 14.5px; border-bottom-style: dotted; }
.c-wang-zheran .c3-books a, .c-wang-zheran .c3-links a { text-decoration-color: var(--acc); text-underline-offset: .2em; }

/* ---------- 每一问 ---------- */
.c-wang-zheran .c3q { display: block; padding: calc(var(--bar) + 40px) clamp(16px, 5vw, 72px) 70px; }
.wz-sec { position: relative; max-width: 1240px; margin: 0 auto; display: grid; gap: 16px clamp(30px, 4.5vw, 72px); align-items: start;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "head art" "body art"; grid-template-rows: auto 1fr; }
.wz-sec--l { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "art head" "art body"; }
.wz-sec__head { grid-area: head; position: relative; }
.wz-sec__art { grid-area: art; position: relative; }
.wz-sec__body { grid-area: body; position: relative; }
.c-wang-zheran .c3q__when { gap: 12px; }
.c-wang-zheran .c3q__when b { font-family: var(--cin); font-weight: 500; font-size: 30px; letter-spacing: .06em; color: var(--acc); }
.c-wang-zheran .c3q__when span { color: var(--ink-2); }
.wz-h { position: relative; }
.c-wang-zheran .c3q__q { margin: 6px 0 14px; font-weight: 600; font-size: clamp(28px, 3.3vw, 44px); line-height: 1.25; letter-spacing: .02em; }
.wz-eye { position: absolute; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(163, 59, 32, .5); opacity: 0; transition: opacity .5s; }
.wz-sec--r .wz-eye { right: calc(-1 * clamp(30px, 4.5vw, 72px) / 2 - 5px); }
.wz-sec--l .wz-eye { left: calc(-1 * clamp(30px, 4.5vw, 72px) / 2 - 5px); }
.c-wang-zheran .is-in .wz-eye { opacity: 1; }
.c-wang-zheran .c3q__lede { margin: 0; font-size: 16.5px; line-height: 1.95; text-align: justify; }
.c-wang-zheran .c3-quote { margin: 4px 0 16px; padding: 2px 0 2px 16px; border-left: 1px solid var(--acc); }
.c-wang-zheran .c3-quote blockquote p { font-size: 17.5px; line-height: 1.75; }
.c-wang-zheran .c3-tags li { border-radius: 0; border-color: var(--rule); background: rgba(250, 249, 245, .7); }
.c-wang-zheran .c3-works li a { text-decoration-color: var(--acc); text-underline-offset: .2em; }
.c-wang-zheran .talk { border-radius: 2px; border-color: var(--ink); background: var(--paper); }
.c-wang-zheran .c3-ask { border-radius: 0; border: 1px solid var(--rule); background: rgba(250, 249, 245, .7); }
.c-wang-zheran .c3-deeplink { color: var(--acc); }

/* 视觉金字塔：从标题旁的眼睛到画框四角（脚本画） */
.wz-pyr { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.wz-pyr line { stroke: var(--acc); stroke-width: 1; opacity: .5; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.4s cubic-bezier(.3, .6, .3, 1); }
.wz-pyr.is-on line { stroke-dashoffset: 0; }

/* 画框（各个机关） */
.wz-ab, .wz-ph, .wz-sp, .wz-op, .wz-cab, .wz-od, .wz-hi { position: relative; padding: 16px 18px 16px; background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--rule); margin: 7px; }
.wz-out { margin: 10px 0 0; min-height: 3.4em; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.wz-cap { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.wz-fig { margin: 24px 7px 0; }
.wz-fig img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.wz-fig figcaption { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.wz-fig--astro { max-width: 230px; margin-left: auto; margin-right: auto; text-align: center; }
.wz-fig--astro img { mix-blend-mode: normal; filter: drop-shadow(0 6px 10px rgba(60, 40, 10, .18)); }
.wz-fig--astro figcaption { text-align: left; }
.wz-fig--jaz { max-width: 280px; }
.wz-fig--jaz img { mix-blend-mode: normal; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }

/* 阿尔贝蒂的四步 */
.wz-ab__pic svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.wz-ab .ab-frame { fill: rgba(255, 255, 255, .5); stroke: var(--ink); stroke-width: 1.6; }
.wz-ab .ab-ticks line { stroke: var(--ink); stroke-width: 1.4; }
.wz-ab .ab-hz { stroke: var(--acc); stroke-width: 1; stroke-dasharray: 7 5; }
.wz-ab .ab-orth line { stroke: var(--ink-2); stroke-width: .9; opacity: .7; }
.wz-ab .ab-dline { stroke: var(--acc); stroke-width: 1.3; }
.wz-ab .ab-dline--2 { stroke-dasharray: 5 4; opacity: .7; }
.wz-ab .ab-trans line { stroke: var(--ink); stroke-width: 1; }
.wz-ab .ab-tiles polygon { fill: rgba(163, 59, 32, .2); }
.wz-ab .ab-diag { stroke: var(--acc); stroke-width: 2.2; }
.wz-ab .ab-dots circle { fill: var(--paper); stroke: var(--acc); stroke-width: 1.6; }
.wz-ab .ab-pt { cursor: grab; outline: none; touch-action: none; }
.wz-ab .ab-hit { fill: transparent; }
.wz-ab .ab-dot { fill: var(--acc); stroke: var(--paper); stroke-width: 2; }
.wz-ab .ab-dot--o { fill: var(--paper); stroke: var(--acc); stroke-width: 2.6; }
.wz-ab .ab-pt:focus-visible .ab-hit { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.wz-ab .ab-lab { font: 600 14px var(--body); fill: var(--acc); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.wz-ab .ab-tiles, .wz-ab .ab-s1, .wz-ab .ab-s2, .wz-ab .ab-s3, .wz-ab .ab-s4, .wz-ab .ab-c, .wz-ab .ab-d { transition: opacity .45s; }
.wz-ab[data-step="1"] :is(.ab-tiles, .ab-s2, .ab-s3, .ab-s4, .ab-c, .ab-d),
.wz-ab[data-step="2"] :is(.ab-tiles, .ab-s3, .ab-s4, .ab-d),
.wz-ab[data-step="3"] .ab-s4 { opacity: 0; pointer-events: none; }
.wz-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* 暗室里的日食 */
.wz-ph svg { display: block; width: 100%; height: auto; }
.wz-ph .ph-sky { fill: #e9ebe8; }
.wz-ph .ph-sunrays circle { fill: none; stroke: #c99a3d; stroke-dasharray: 2 7; opacity: .5; }
.wz-ph .ph-sun { fill: #f2c95f; stroke: #b9822a; stroke-width: 1.5; }
.wz-ph .ph-moon { fill: #2b2d33; }
.wz-ph .ph-moonring { fill: none; stroke: #2b2d33; stroke-width: 1; stroke-dasharray: 3 4; opacity: .45; }
.wz-ph .ph-room { fill: #2b2d32; }
.wz-ph .ph-floor path { fill: none; stroke: #4d5057; stroke-width: 1; }
.wz-ph .ph-screen { fill: #3a3d44; stroke: #6c7078; stroke-width: 1; }
.wz-ph .ph-rays line { stroke: #f2c95f; stroke-width: 1.1; opacity: .75; }
.wz-ph .ph-img { fill: #f8de90; }
.wz-ph .ph-wall { fill: #17181b; }
.wz-ph .ph-hole { fill: #f2c95f; }
.wz-ph .ph-lab { font: 600 15px var(--body); fill: var(--ink-2); }
.wz-ph .ph-lab--l { fill: #d7d9dd; }
.wz-range { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.wz-range input { flex: 1; height: 40px; accent-color: var(--acc); cursor: pointer; }

/* 一条街上的学者与工匠 */
.wz-sp__pic { position: relative; line-height: 0; }
.wz-sp__pic img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.wz-sp__veil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wz-sp__fog { fill: rgba(250, 249, 245, .82); opacity: 0; transition: opacity .45s; }
.wz-sp.is-on .wz-sp__fog { opacity: 1; }
.wz-sp__ctl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* 视学的三次变革 */
.wz-op__g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 200px); gap: 18px; align-items: start; }
.wz-op__steps { list-style: none; margin: 4px 0 0; padding: 0; counter-reset: s; }
.wz-op__steps li { counter-increment: s; position: relative; padding: 10px 0 14px 46px; }
.wz-op__steps li.wz-op__st { counter-increment: none; }
.wz-op__steps li.wz-op__st::before { content: "·"; font-size: 22px; }
.wz-op__steps li::before { content: counter(s, upper-roman); position: absolute; left: 0; top: 8px; width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 50%; font-family: var(--cin); font-size: 13px; background: var(--paper); }
.wz-op__steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 42px; bottom: -8px; width: 1px; background: var(--acc); }
.wz-op__steps li.wz-op__end::before { content: "◎"; color: var(--paper); background: var(--acc); border-color: var(--acc); font-family: var(--body); }
.wz-op__steps b { display: block; font-size: 17px; }
.wz-op__steps span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.wz-op__me { background: linear-gradient(90deg, var(--acc-soft), transparent 80%); }
.wz-op__go { display: inline-flex; align-items: center; min-height: 40px; margin-top: 2px; font-size: 14px; color: var(--acc); text-underline-offset: .2em; }
.wz-op__go::after { content: " →"; white-space: pre; }
.wz-op__eye { margin: 0; }
.wz-op__eye img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.wz-op__eye figcaption { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* 一个柜子，还是两个柜子 */
.wz-cab__sw { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.wz-cab__case { position: relative; padding: 46px 10px 12px; border: 1px solid var(--ink); background: linear-gradient(transparent calc(100% - 10px), rgba(34, 37, 42, .1) 0); }
.wz-cab__case::after { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 1px; background: var(--ink); transform: scaleY(0); transition: transform .5s; }
.wz-cab[data-cab="two"] .wz-cab__case::after { transform: scaleY(1); }
.wz-cab__lab { position: absolute; top: 10px; margin: 0; font-weight: 600; font-size: 15px; letter-spacing: .1em; transition: opacity .4s, transform .4s; }
.wz-cab__lab small { margin-left: 8px; font-weight: 400; font-size: 12px; letter-spacing: 0; color: var(--ink-3); }
.wz-cab__lab--all { left: 0; right: 0; text-align: center; }
.wz-cab__lab--math { left: 12px; color: var(--brass); }
.wz-cab__lab--phil { left: calc(50% + 12px); color: var(--acc); }
.wz-cab[data-cab="one"] :is(.wz-cab__lab--math, .wz-cab__lab--phil), .wz-cab[data-cab="two"] .wz-cab__lab--all { opacity: 0; transform: translateY(-4px); }
.wz-cab ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.wz-in { text-align: center; transition: transform .5s cubic-bezier(.3, .7, .3, 1); }
.wz-in svg { display: block; width: 100%; max-width: 92px; margin: 0 auto; height: auto; }
.wz-in svg g { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.wz-in span { display: block; font-size: 14px; }
.wz-cab[data-cab="two"] .wz-in--math { transform: translateX(-8px); }
.wz-cab[data-cab="two"] .wz-in--phil { transform: translateX(8px); }
.wz-cab[data-cab="two"] .wz-in--math svg g { stroke: var(--brass); }
.wz-cab[data-cab="two"] .wz-in--phil svg g { stroke: var(--acc); }

/* 复原一台里程计 */
.wz-od__stages { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wz-od__pic { border: 1px solid var(--rule); }
.wz-od__pic svg { display: block; width: 100%; height: auto; transition: background-color .5s; }
.wz-od .od-l { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.wz-od .od-wood, .wz-od .od-metal { fill: none; }
.wz-od .od-t { font: italic 600 15px var(--gar); fill: var(--ink-2); }
.wz-od .od-gl { stroke: var(--ink-2); stroke-width: 1.4; }
.wz-od .od-gdash { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 14 10; }
.wz-od .od-pin { fill: var(--acc); }
.wz-od .od-teeth line { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.wz-od .od-teeth line.od-mk { stroke: var(--acc); stroke-width: 3.6; }
.wz-od .od-ticks line { stroke: var(--ink); stroke-width: 1.2; }
.wz-od .od-hand { stroke: var(--acc); stroke-width: 2.2; stroke-linecap: round; }
.wz-od .od-axis line { stroke: #4a6178; stroke-width: 1; stroke-dasharray: 12 4 2 4; }
.wz-od .od-dim line, .wz-od .od-dim path { stroke: #1f2125; fill: #1f2125; stroke-width: 1; }
.wz-od .od-dim text { font: 13px var(--body); fill: #1f2125; }
.wz-od .od-note text { font: italic 600 20px var(--gar); fill: #8f3f22; }
.wz-od .od-note path { fill: none; stroke: #8f3f22; stroke-width: 1; stroke-dasharray: 2 3; }
.wz-od .od-pebbles circle { fill: #6e7076; stroke: #2e3034; stroke-width: 1.2; }
.wz-od .od-axis, .wz-od .od-dim, .wz-od .od-note { transition: opacity .5s; }
/* 一：手稿 */
.wz-od[data-stage="1"] svg { background-color: #eee1c3; }
.wz-od[data-stage="1"] .od-art { filter: url(#wz-wob); }
.wz-od[data-stage="1"] .od-l, .wz-od[data-stage="1"] .od-teeth line, .wz-od[data-stage="1"] .od-ticks line { stroke: #8f3f22; stroke-width: 1.5; }
.wz-od[data-stage="1"] .od-t { fill: #8f3f22; }
.wz-od[data-stage="1"] :is(.od-axis, .od-dim) { opacity: 0; }
/* 二：建模 */
.wz-od[data-stage="2"] svg { background-color: #eef1f3; }
.wz-od[data-stage="2"] .od-l, .wz-od[data-stage="2"] .od-teeth line, .wz-od[data-stage="2"] .od-ticks line { stroke: #3f5a73; stroke-width: 1.1; }
.wz-od[data-stage="2"] .od-t { fill: #3f5a73; font-style: normal; font-family: var(--body); font-size: 13px; }
.wz-od[data-stage="2"] :is(.od-dim, .od-note) { opacity: 0; }
/* 三：工程图纸 */
.wz-od[data-stage="3"] svg { background-color: #fff; }
.wz-od[data-stage="3"] .od-box .od-wood { fill: url(#wz-sec); }
.wz-od[data-stage="3"] .od-axis line { stroke: #1f2125; opacity: .7; }
.wz-od[data-stage="3"] .od-t { font-style: normal; font-family: var(--body); font-size: 13px; fill: #1f2125; }
.wz-od[data-stage="3"] .od-note { opacity: 0; }
/* 四：车间 */
.wz-od[data-stage="4"] svg { background-color: #e7e0d2; }
.wz-od[data-stage="4"] .od-wood { fill: url(#wz-grain); }
.wz-od[data-stage="4"] .od-metal { fill: #a88b4c; }
.wz-od[data-stage="4"] .od-l { stroke: #4a3218; stroke-width: 1.6; }
.wz-od[data-stage="4"] .od-nofill { fill: none; }
.wz-od[data-stage="4"] .od-teeth line { stroke: #6b4a22; }
.wz-od[data-stage="4"] .od-t { fill: #4a3218; font-style: normal; font-family: var(--body); font-size: 13px; }
.wz-od[data-stage="4"] :is(.od-axis, .od-dim, .od-note) { opacity: 0; }
.wz-od__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.wz-od__n { margin-left: auto; font-size: 14px; color: var(--ink-2); }
.wz-od__n b { font-family: var(--cin); font-size: 17px; color: var(--acc); }

/* 水运仪象台的复原史 */
.wz-wh { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.wz-hi .wh-rim { fill: none; stroke: var(--ink); stroke-width: 2.2; transition: stroke .5s, stroke-dasharray .5s; }
.wz-hi .wh-rim--in { stroke-width: 1; }
.wz-hi .wh-spokes line { stroke: var(--ink); stroke-width: 1.4; transition: stroke .5s; }
.wz-hi .wh-hub { fill: var(--paper); stroke: var(--ink); stroke-width: 2; transition: fill .5s, stroke .5s; }
.wz-hi .wh-b path { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.wz-hi .wh-b__h circle { fill: var(--acc); }
.wz-hi .wh-water path { fill: none; stroke: #5a7f9a; stroke-width: 3; stroke-linecap: round; }
.wz-hi .wh-water .wh-jet { stroke-width: 2; stroke-dasharray: 4 4; }
.wz-hi .wh-beam, .wz-hi .wh-tongue { fill: none; stroke: var(--ink-2); stroke-width: 3; }
.wz-hi .wh-top circle { fill: var(--ink-2); }
.wz-hi .wh-chain path:first-child { fill: none; stroke: var(--ink-3); stroke-width: 2; }
.wz-hi .wh-ladder path { fill: none; stroke: var(--ink-3); stroke-width: 1.4; }
.wz-hi .wh-tank { fill: rgba(90, 127, 154, .18); stroke: var(--ink-2); stroke-width: 1.4; }
.wz-hi .wh-t { font: 13px var(--body); fill: var(--ink-2); }
.wz-hi .wh-t--k { font-size: 15px; font-weight: 600; fill: var(--ink); }
.wz-hi .wh-chain, .wz-hi .wh-ladder { opacity: 0; transition: opacity .5s; }
.wz-hi .wh-buckets { transition: opacity .5s; }
.wz-hi[data-mode="flip"] .wh-b__f, .wz-hi[data-mode="bronze"] .wh-b__f, .wz-hi[data-mode="chain"] .wh-b__f { display: none; }
.wz-hi[data-mode="fix"] .wh-b__h { display: none; }
.wz-hi[data-mode="both"] .wh-b:nth-child(-n+6) .wh-b__f, .wz-hi[data-mode="both"] .wh-b:nth-child(n+7) .wh-b__h { display: none; }
.wz-hi[data-mode="none"] .wh-buckets { opacity: 0; }
.wz-hi[data-mode="none"] .wh-rim { stroke-dasharray: 6 6; }
.wz-hi[data-mode="chain"] .wh-buckets { opacity: .3; }
.wz-hi[data-mode="chain"] .wh-chain { opacity: 1; }
.wz-hi[data-mode="chain"] .wh-chain path:first-child { stroke: var(--acc); stroke-width: 2.6; }
.wz-hi[data-mode="bronze"] .wh-rim, .wz-hi[data-mode="bronze"] .wh-spokes line { stroke: var(--bronze); }
.wz-hi[data-mode="bronze"] .wh-hub { fill: #c9a56b; stroke: var(--bronze); }
.wz-hi[data-mode="bronze"] .wh-ladder { opacity: 1; }
.wz-hi[data-mode="bronze"] .wh-ladder path { stroke: var(--bronze); }
.wz-hi__sl { margin-top: 8px; }
.wz-hi__sl input { width: 100%; height: 40px; accent-color: var(--acc); cursor: pointer; }
.wz-hi__sl ol { list-style: none; display: flex; justify-content: space-between; margin: -4px 0 0; padding: 0; font-family: var(--cin); font-size: 11.5px; color: var(--ink-3); }
.wz-hi__sl ol li { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.wz-hi__sl ol li:first-child { justify-content: flex-start; }
.wz-hi__sl ol li:last-child { justify-content: flex-end; }
.wz-hi .wz-out { min-height: 6.2em; }
.wz-hi__key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }
.wz-hi__key span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border: 1.4px solid var(--ink); vertical-align: -1px; }
.wz-hi__key .k-flip::before { border-radius: 50%; background: var(--acc); border-color: var(--acc); }

/* ---------- 结尾 ---------- */
.c-wang-zheran .c3end { border-top: 1px solid var(--ink); }
.wz-end h2 { font-weight: 600; letter-spacing: .04em; }
.wz-end h2::after { content: ""; display: block; width: 64px; height: 2px; margin-top: 12px; background: var(--acc); }
.c-wang-zheran .c3-lin li { border-radius: 0; border-color: var(--rule); background: var(--paper); }

/* ---------- 窄屏 ---------- */
@media (max-width: 1240px) {
  .c-wang-zheran .c3toc a b { display: none; }
}
@media (max-width: 1100px) {
  .wz-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
  .wz-band { grid-template-columns: 1fr 1fr; }
  .wz-band__c:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .wz-hero { grid-template-columns: minmax(0, 1fr); }
  .wz-vp { max-width: 520px; }
  .wz-band { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .wz-sec, .wz-sec--l { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "art" "body"; grid-template-rows: auto; }
  .wz-eye, .wz-pyr { display: none; }
  .wz-op__g { grid-template-columns: minmax(0, 1fr) 140px; }
  .wz-horizon { display: none; }
}
@media (max-width: 560px) {
  .c-wang-zheran .c3q { padding-top: calc(var(--bar) + 26px); }
  /* SVG 里的字：视图缩小一半，字号翻倍 */
  .wz-ab .ab-lab { font-size: 24px; stroke-width: 6px; }
  .wz-ph .ph-lab { font-size: 26px; }
  .wz-od .od-t, .wz-od[data-stage] .od-t { font-size: 22px; }
  .wz-od .od-dim text { font-size: 22px; }
  .wz-od .od-note text { font-size: 30px; }
  .wz-hi .wh-t { font-size: 19px; }
  .wz-hi .wh-t--k { font-size: 22px; }
  .wz-in span { font-size: 13px; }
  .wz-name { letter-spacing: .04em; }
  .wz-ab, .wz-ph, .wz-sp, .wz-op, .wz-cab, .wz-od, .wz-hi { padding: 12px 12px 14px; margin: 6px 4px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--rule); }
  .wz-op__g { grid-template-columns: minmax(0, 1fr); }
  .wz-op__eye { max-width: 200px; }
  .wz-cab ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
  .wz-cab__case::after { left: 8px; right: 8px; top: 50%; bottom: auto; width: auto; height: 1px; transform: scaleX(0); }
  .wz-cab[data-cab="two"] .wz-cab__case::after { transform: scaleX(1); }
  .wz-cab__lab--phil { left: 12px; top: calc(50% + 6px); }
  .wz-cab[data-cab="two"] :is(.wz-in--math, .wz-in--phil) { transform: none; }
  .wz-cab[data-cab="two"] .wz-in--phil { transform: translateY(14px); }
  .wz-od__n { margin-left: 0; flex-basis: 100%; }
  .wz-vp__pic { margin: 6px; }
}
