/* 档房合成版 · 共用样式 jian.css（`ku` 一路，2026-11-12）。
   颜色、字、册页右页的骨架（.ku-ye）、牌记（.ku-paiji）、控件（.ku-seg / .ku-pill / .ku-play）、
   夹签（.ku-jq：左签屉右卷宗卡）、图版（.ku-plate）、钤印带姓（.ku-seal）、单页试看（.ku-try）。
   页面这样接：<link rel="stylesheet" href="fonts.css"><link rel="stylesheet" href="jian.css">
   不要再链 _shared/room.css（它会去 Google 取字体）。颜色与 room.css 同值。
   要加共用的颜色或控件写在这里（先跟 ku 一路说）；各件自己的样式用自己的前缀，不要用 ku-。
   朱色（--zhu / --zhu-2）只给带着的姓和选中的那一个；“有影像”用石青（--shiqing）；控件按下去是墨底，不是朱。 */

:root {
  --paper: #f4eee4; --paper-white: #fbf7ee; --paper-deep: #efe7d8;
  --ink: #34241a; --ink-2: #4a3d33; --ink-3: #6b5a4b;
  --line: #b7a58d; --line-2: #cdbfaa;
  --zhu: #8f241b; --zhu-2: #b2342a; --zhu-wash: #e9d0c6; --zhu-paper: #f8ebe4;
  /* 国画颜料色：一屏最多再用三种 */
  --zhe: #a8642a; --tenghuang: #c79a2b; --shilv: #4f7a62; --shiqing: #3f6b8c; --dai: #2f3f58;
  --yanzhi: #9c3b46; --tan: #7a5a45; --qiuxiang: #8b8a45; --hui: #8a8177;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
}
* { box-sizing: border-box }
html { background: var(--paper) }
body { margin: 0; font-family: var(--serif); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; font-synthesis: none }
a { color: inherit }
button { font: inherit; color: inherit }
.ku-vt { writing-mode: vertical-rl; text-orientation: upright }

/* ── 册页右页的骨架：小标 · 断语 · 说明 · 控件 · 台面 · 牌记 ── */
.ku-ye { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100%; min-height: 0; color: var(--ink); font-family: var(--serif) }
.ku-ye-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 28px; padding-bottom: 12px }
.ku-ye-txt { min-width: 55%; flex: 1 1 0; transition: opacity .24s var(--ease) }   /* 控件排放不下时说明文字让宽；让到 55% 还放不下，控件排整排挪到说明下面靠右，仍是一行 */
.ku-ye-k { display: flex; align-items: baseline; gap: 14px; min-height: 26px; white-space: nowrap }
.ku-ye-k .no { font-size: 13px; letter-spacing: .3em; color: var(--ink-3) }
.ku-ye-k b { font-size: 16px; font-weight: 700; letter-spacing: .3em }
.ku-ye-k .ask { font-size: 13.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis }
.ku-ye-say { margin: 5px 0 0; font-size: 27px; font-weight: 900; line-height: 1.3; letter-spacing: .02em; transition: opacity .24s var(--ease) }
.ku-ye-note { margin: 6px 0 0; max-width: 47em; font-size: 14px; line-height: 1.68; color: var(--ink-2); transition: opacity .24s var(--ease) }
.ku-ye-say b, .ku-ye-note b.sn { color: var(--zhu); font-weight: inherit }
.ku-ye-txt.swap .ku-ye-say, .ku-ye-txt.swap .ku-ye-note { opacity: 0 }
.ku-ye-ctrl { flex: 0 0 auto; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 8px 10px; max-width: 100%; margin-left: auto; padding-top: 1px }
.ku-ye-stage { position: relative; min-height: 0; min-width: 0 }
@container (max-width: 860px) { .ku-ye-say { font-size: 24px } }

/* 控件：一组并排的选钮、单个选钮、“走一遍” */
.ku-seg { display: inline-flex; border: 1px solid var(--ink-2); border-radius: 2px; background: var(--paper-white) }
.ku-seg button { height: 32px; padding: 0 14px; border: 0; border-left: 1px solid var(--line); background: transparent; font-size: 13.5px; letter-spacing: .08em; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease) }
.ku-seg button:first-child { border-left: 0 }
.ku-seg button:hover { background: var(--paper-deep) }
.ku-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper-white) }
.ku-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 1px solid var(--ink-2); border-radius: 2px; background: var(--paper-white); font-size: 13.5px; letter-spacing: .08em; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease) }
.ku-pill:hover { background: var(--paper-deep) }
.ku-pill[aria-pressed="true"] { background: var(--ink); color: var(--paper-white) }
.ku-pill:disabled { opacity: .45; cursor: default }
.ku-seg[hidden], .ku-pill[hidden], .ku-play[hidden] { display: none }
.ku-seg, .ku-pill, .ku-play { flex: none; white-space: nowrap }
.ku-play { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 16px 0 13px; border: 1px solid var(--ink); border-radius: 16px; background: transparent; font-size: 13.5px; font-weight: 600; letter-spacing: .12em; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease) }
.ku-play i { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor }
.ku-play.run i { width: 8px; height: 10px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor }
.ku-play:hover, .ku-play.run { background: var(--ink); color: var(--paper-white) }
.ku-seg button:focus-visible, .ku-pill:focus-visible, .ku-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }

/* 牌记：“怎么知道的”，出处、口径、置信三栏 */
.ku-paiji { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); margin-top: 12px; border: 1px solid var(--ink-2); font-size: 13px; line-height: 1.58; color: var(--ink-2) }
.ku-paiji .k { display: grid; place-items: center; width: 4.6em; padding: 6px 0; border-right: 1px solid var(--ink-2); font-size: 13px; line-height: 1.45; letter-spacing: .12em; text-align: center; color: var(--ink) }
.ku-paiji > div:not(.k) { padding: 7px 12px 8px; border-left: 1px solid var(--line) }
.ku-paiji > div.k + div { border-left: 0 }
.ku-paiji b { margin-right: 9px; font-weight: 700; color: var(--ink) }

/* ── 图版：照片裁块镶在版框里，下面图注 ── */
.ku-plate { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0 }
.ku-plate .fr { flex: none; position: relative; padding: 5px; border: 1.5px solid var(--ink-2); background: var(--paper) }
.ku-plate .fr::after { content: ''; position: absolute; inset: 4px; border: 1px solid var(--line); pointer-events: none }
.ku-plate .win { position: relative; overflow: hidden; background: var(--paper-deep) }
.ku-plate img { position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none }
.ku-plate figcaption { flex: none; margin-top: 9px; max-width: 100%; font-size: 13px; line-height: 1.6; letter-spacing: .04em; color: var(--ink-3); text-align: center }

/* ── 钤印带姓 ── */
.ku-seal { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 13.5px; color: var(--ink-2) }
.ku-seal .yin { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px dashed var(--ink-3); font-size: 17px; font-weight: 900; line-height: 1; color: var(--ink-3) }
.ku-seal.on .yin { border: 0; background: var(--zhu-2); color: var(--paper-white) }
.ku-seal label { letter-spacing: .2em }
.ku-seal input { width: 58px; height: 30px; padding: 0 8px; border: 1px solid var(--ink-2); border-radius: 0; background: var(--paper-white); font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); text-align: center }
.ku-seal button { height: 30px; padding: 0 12px; border: 1px solid var(--ink-2); background: transparent; font-size: 13.5px; cursor: pointer }
.ku-seal button:hover { background: var(--ink); color: var(--paper-white) }
.ku-seal .msg b { color: var(--zhu); font-weight: 700 }
.ku-seal.on .ask, .ku-seal:not(.on) .has { display: none }
.ku-seal .has { display: inline-flex; align-items: center; gap: 10px }
.ku-seal .ask { display: inline-flex; align-items: center; gap: 8px }
.ku-seal input:focus-visible, .ku-seal button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }

/* ── 夹签：左签屉，右卷宗卡；从视口下沿升起 ── */
.ku-jq-scrim { position: fixed; inset: 0; z-index: 80; margin: 0; padding: 0; border: 0; background: rgba(52, 36, 26, .2); opacity: 0; pointer-events: none; cursor: default; transition: opacity .4s var(--ease) }
.ku-jq-scrim.on { opacity: 1; pointer-events: auto }
.ku-jq { position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; height: min(calc(100vh - 56px), 860px); background: var(--paper); border-top: 1.5px solid var(--ink-2); box-shadow: 0 -22px 44px -26px rgba(50, 32, 16, .55); color: var(--ink); font-family: var(--serif); transform: translateY(103%); visibility: hidden; transition: transform .56s var(--ease), visibility 0s .56s; outline: none }
.ku-jq.on { transform: none; visibility: visible; transition: transform .56s var(--ease), visibility 0s }
.ku-jq-in { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) 40px; grid-template-rows: minmax(0, 1fr) 54px; max-width: 1640px; height: 100%; margin: 0 auto; padding: 0 }
.ku-jq-in::before { content: ''; position: absolute; left: calc(50% - 40px); top: 0; bottom: 0; width: 80px; background: linear-gradient(to right, rgba(52, 36, 26, 0), rgba(52, 36, 26, .075) 48%, rgba(52, 36, 26, .11) 50%, rgba(52, 36, 26, .075) 52%, rgba(52, 36, 26, 0)); pointer-events: none }
.ku-jq-in::after { content: ''; position: absolute; left: calc(50% - .5px); top: 0; bottom: 0; width: 1px; background: rgba(52, 36, 26, .2); pointer-events: none }
.ku-jq-pg { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 22px 26px 0 22px; padding: 13px 14px 12px; border: 1.5px solid var(--ink-2) }
.ku-jq-pg.r { margin: 22px 22px 0 26px }
/* 书口：左“放回去”，右“下一根” */
.ku-jq-ko { grid-row: 1 / -1; position: relative; width: 40px; height: 100%; margin: 0; padding: 0; border: 0; border-right: 1px solid var(--line-2); background: none; color: var(--ink-3); cursor: pointer; transition: background .2s var(--ease) }
.ku-jq-ko.r { grid-column: 4; border-right: 0; border-left: 1px solid var(--line-2) }
.ku-jq-ko:hover { background: var(--paper-deep) }
.ku-jq-ko:disabled { cursor: default; opacity: .5 }
.ku-jq-ko:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px }
.ku-jq-ko .rib { position: absolute; left: 0; top: 0 }
.ku-jq-ko .chev { position: absolute; left: 0; bottom: 98px; color: var(--ink) }
.ku-jq-ko .ku-vt { position: absolute; left: 0; right: 0; margin: 0 auto; width: 1.2em; line-height: 1.2 }
.ku-jq-ko .a { top: 112px; font-size: 13.5px; letter-spacing: .4em; color: var(--ink-2) }
.ku-jq-ko .b { top: 176px; font-size: 15px; font-weight: 700; letter-spacing: .4em; color: var(--ink) }
.ku-jq-ko .c { bottom: 210px; font-size: 13.5px; letter-spacing: .3em; color: var(--ink-2) }
.ku-jq-ko .d { bottom: 26px; font-size: 12.5px; letter-spacing: .3em; color: var(--ink-3) }
/* 页脚：带着的姓、放回去、下一根 */
.ku-jq-ft { grid-column: 2 / 4; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0 20px; padding: 0 22px; font-size: 13.5px; color: var(--ink-2) }
.ku-jq-ft .sn { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; overflow: hidden }
.ku-jq-ft .sn .yin { flex: none; display: grid; place-items: center; width: 22px; height: 22px; background: var(--zhu-2); color: var(--paper-white); font-size: 13px; font-weight: 900; line-height: 1 }
.ku-jq-ft .sn b { color: var(--zhu); font-weight: 700 }
.ku-jq-ft .sn .drop { flex: none; height: 26px; margin-left: 4px; padding: 0 10px; border: 1px solid var(--ink-2); background: none; font-size: 13.5px; cursor: pointer }
.ku-jq-ft .sn .drop:hover { background: var(--ink); color: var(--paper-white) }
.ku-jq-ft .mid { display: flex; align-items: center; gap: 22px; white-space: nowrap }
.ku-jq-ft .mid b { padding: 0 6px; font-size: 14.5px; font-weight: 700; letter-spacing: .2em; color: var(--ink) }
.ku-jq-ft .drop:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }
.ku-jq-pg::after { content: ''; position: absolute; inset: 3.5px; border: 1px solid var(--line); pointer-events: none }
.ku-jq-hd { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px }
.ku-jq-hd .kk { display: flex; align-items: baseline; gap: 14px; min-width: 0; white-space: nowrap }
.ku-jq-hd .s { font-size: 13px; letter-spacing: .3em; color: var(--ink-3) }
.ku-jq-hd b { font-size: 16px; font-weight: 700; letter-spacing: .3em }
.ku-jq-hd .fr { font-size: 13.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis }
.ku-jq-lk { flex: none; padding: 2px 0; border: 0; background: none; font-size: 13.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap }
.ku-jq-lk:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px }
.ku-jq-lk:disabled { color: var(--line); cursor: default; text-decoration: none }
.ku-jq-t { flex: none; margin: 5px 0 0; font-size: 27px; font-weight: 900; line-height: 1.3; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.ku-jq-sub { flex: none; margin: 5px 0 0; font-size: 14px; line-height: 1.62; color: var(--ink-2) }

.ku-jq-box { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; margin-top: 11px; padding: 20px 12px 8px; border: 1px solid var(--ink-2); background: var(--paper-deep) }
.ku-jq-pai { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 20px 5px }
.ku-jq-none { grid-column: 1 / -1; grid-row: 1 / -1; align-self: center; text-align: center; font-size: 14px; color: var(--ink-3) }
.ku-q { position: relative; justify-self: center; width: 100%; max-width: 26px; min-width: 0; height: 100%; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 0; background: var(--paper-white); color: var(--ink); cursor: pointer; transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease) }
.ku-jq-pai.in .ku-q { animation: ku-q-in .36s var(--ease) both; animation-delay: calc(var(--i) * 11ms) }
@keyframes ku-q-in { from { opacity: 0; transform: translateY(16px) } }
.ku-q i { position: absolute; left: 50%; top: 6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--shiqing) }
.ku-q b { position: absolute; left: 0; right: 0; top: 18px; bottom: 40px; display: flex; align-items: center; writing-mode: vertical-rl; font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .02em; white-space: nowrap; overflow: hidden }
.ku-q em { position: absolute; left: 0; right: 0; bottom: 5px; height: 32px; display: flex; align-items: center; justify-content: flex-end; writing-mode: vertical-rl; font-style: normal; font-size: 12.5px; line-height: 1; color: var(--ink-3) }
.ku-q:hover { transform: translateY(-5px); border-color: var(--ink-2) }
.ku-q.c { border-color: var(--zhu-2); background: var(--zhu-paper); color: var(--zhu) }
.ku-q.c em { color: var(--zhu) }
.ku-q.on { transform: translateY(-12px); border: 1.5px solid var(--zhu-2); background: #fffdf8; box-shadow: 0 8px 12px -10px rgba(50, 32, 16, .7) }
.ku-q:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; z-index: 1 }
.ku-jq-pgr { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 24px; margin-top: 9px; font-size: 13px; color: var(--ink-2) }
.ku-jq-pgr .mid { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; white-space: nowrap }
.ku-jq-pgr input[type=range] { -webkit-appearance: none; appearance: none; flex: 0 1 242px; min-width: 60px; height: 14px; margin: 0; background: linear-gradient(var(--line), var(--line)) center / 100% 2px no-repeat; cursor: pointer }
.ku-jq-pgr input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--tw, 40px); height: 6px; border-radius: 0; background: var(--ink) }
.ku-jq-pgr input[type=range]::-moz-range-thumb { width: var(--tw, 40px); height: 6px; border: 0; border-radius: 0; background: var(--ink) }
.ku-jq-pgr input[type=range]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }
.ku-jq-pgr input[type=range]:disabled { opacity: .4; cursor: default }
.ku-jq-yrs { flex: none; display: flex; align-items: center; gap: 2px; min-height: 0; margin-top: 7px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden }
.ku-jq-yrs:empty { display: none }
.ku-jq-yrs span { margin-right: 8px; letter-spacing: .3em }
.ku-jq-yrs button { height: 22px; padding: 0 6px; border: 1px solid transparent; background: none; font-size: 12.5px; color: var(--ink-2); cursor: pointer }
.ku-jq-yrs button:hover { border-color: var(--line) }
.ku-jq-yrs button[aria-current="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ink-2); text-underline-offset: 4px }
.ku-jq-lg { flex: none; display: flex; align-items: center; gap: 18px; min-height: 20px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden }
.ku-jq-lg span { display: inline-flex; align-items: center; gap: 6px }
.ku-jq-lg .d { width: 6px; height: 6px; border-radius: 50%; background: var(--shiqing) }
.ku-jq-lg .z { width: 9px; height: 13px; border: 1px solid var(--zhu-2); background: var(--zhu-paper) }
.ku-jq-lg .zt { color: var(--zhu) }
.ku-jq-sum { flex: none; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 2px 0; margin: 8px 0 0; padding-top: 7px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--ink-2) }
.ku-jq-sum dt { letter-spacing: .3em; color: var(--ink-3) }
.ku-jq-sum dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

.ku-jq-yin { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font-size: 12.5px; color: var(--ink-3); cursor: pointer }
.ku-jq-yin i { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--ink-2); font-style: normal; font-size: 17px; font-weight: 900; line-height: 1; color: var(--ink) }
.ku-jq-yin.on i { border-color: var(--zhu-2); background: var(--zhu-2); color: var(--paper-white) }
.ku-jq-yin:hover span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px }
.ku-jq-yin[hidden] { display: none }
.ku-jq-card { flex: 0 1 auto; min-height: 0; margin-top: 10px; padding: 24px 28px 18px; border: 1px solid var(--ink-2); background: var(--paper-white); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent }
.ku-jq-card.in > * { animation: ku-card-in .34s var(--ease) both }
@keyframes ku-card-in { from { opacity: 0; transform: translateY(8px) } }
.ku-jq-card h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0; font-size: 34px; font-weight: 900; line-height: 1.2; letter-spacing: .06em }
.ku-jq-card h4.long { font-size: 25px; letter-spacing: .02em }
.ku-jq-card h4 small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-2) }
.ku-jq-card .m { margin: 6px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 15px; letter-spacing: .02em; color: var(--ink-2) }
.ku-jq-card .m i { margin: 0 .7em; font-style: normal }
.ku-jq-card .m .ny { margin-left: .6em; font-size: 13px; letter-spacing: 0; color: var(--ink-3) }   /* 括号年和年号对不上时的淡字（ku.js nyOf，11-14） */
.ku-jq-card dl { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 13px 0; margin: 15px 0 0; font-size: 15px; line-height: 1.62 }
.ku-jq-card dt { padding-top: 2px; font-size: 13px; letter-spacing: .3em; color: var(--ink-3) }
.ku-jq-card dd { margin: 0; min-width: 0 }
.ku-jq-card dd .hs { display: block; font-size: 13px; color: var(--ink-3) }
.ku-jq-card dd a { margin-left: 1em; border-bottom: 1px solid var(--ink-2); text-decoration: none; white-space: nowrap }
.ku-jq-card dd a:hover { color: var(--zhu) ; border-color: var(--zhu) }
.ku-jq-card dd svg { display: block; max-width: 100%; font-family: var(--serif) }
.ku-jq-card dd svg text { font-size: 12.5px; fill: var(--ink-2) }
.ku-jq-card dd svg text.gap { fill: var(--ink-3) }
.ku-jq-card dd svg text.me { fill: var(--zhu); font-weight: 700 }
.ku-jq-card .ft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line-2) }
.ku-jq-card .ft .sp { flex: 1 1 auto }
.ku-jq-card.empty { display: flex; flex-direction: column; justify-content: center; min-height: 240px; padding: 26px 34px }
.ku-jq-card .big { font-size: 27px; font-weight: 900; letter-spacing: .02em }
.ku-jq-card .tip { margin: 8px 0 0; font-size: 14px; line-height: 1.68; color: var(--ink-2) }
.ku-jq-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line) }
.ku-jq-card .two h5 { margin: 0 0 6px; font-size: 13px; font-weight: 400; letter-spacing: .3em; color: var(--ink-3) }
.ku-jq-card .two table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.75 }
.ku-jq-card .two td:last-child { text-align: right; color: var(--ink-2) }
.ku-jq-card .two td b.sn { color: var(--zhu) }
/* 11-18 主会话：手机上两栏各只一百来像素，“1,731／部”“排印、打／印”“木活字／本”怎么折都拆词（大门借这屉时扫出来的）：窄屏两张表上下排、各占整宽；
   数那一格不折，名那一格只在顿号处折（不用 overflow-wrap: anywhere，它把最小宽度量成一个字，表格就把名那一格挤成一字一行） */
.ku-jq-card .two td { word-break: keep-all }
.ku-jq-card .two td:last-child { white-space: nowrap; padding-left: 10px }
@media (max-width: 599.98px) { .ku-jq-card .two { grid-template-columns: minmax(0, 1fr); gap: 16px 0 } }
/* 卷宗卡下面：七开都落到这两页；牌记 */
.ku-jq-luo { flex: none; margin-top: 14px }
.ku-jq-luo .h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; height: 24px; border-bottom: 1px solid var(--ink-2); white-space: nowrap; overflow: hidden }
.ku-jq-luo .h b { font-size: 14.5px; font-weight: 700; letter-spacing: .2em }
.ku-jq-luo .h span { font-size: 12.5px; color: var(--ink-3) }
.ku-jq-luo .g { display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 24px; margin-top: 6px }
.ku-jq-luo .g > div { display: grid; grid-template-columns: 22px 92px minmax(0, 1fr); font-size: 13px; line-height: 1.72; color: var(--ink-2); white-space: nowrap }
.ku-jq-luo .g > div > span:last-child { overflow: hidden; text-overflow: ellipsis }
.ku-jq-luo .g > div.on { color: var(--ink); font-weight: 700 }
.ku-jq-pj { flex: none; grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.15fr); margin-top: auto; font-size: 12.5px; line-height: 1.48 }
.ku-jq-pj .k { width: auto; font-size: 12.5px; line-height: 1.4; letter-spacing: .1em }
.ku-jq-pj > div:not(.k) { padding: 5px 9px 6px; border-left-color: var(--line-2) }
.ku-jq-luo { margin-bottom: 12px }
.ku-jq-x { display: none; position: absolute; right: 8px; top: -17px; z-index: 2; place-items: center; width: 34px; height: 34px; padding: 0; border: 1.5px solid var(--ink-2); border-radius: 50%; background: var(--paper); font-size: 19px; line-height: 1; cursor: pointer }
.ku-jq-x:hover { background: var(--ink); color: var(--paper-white) }
.ku-jq-lk:focus-visible, .ku-jq-yin:focus-visible, .ku-jq-x:focus-visible, .ku-jq-yrs button:focus-visible, .ku-jq-card a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }

/* 矮屏：字和间距收一点；放不下时先收起“七开都落到这两页” */
@media (max-height: 860px) and (min-width: 820px) {
  .ku-jq-pg, .ku-jq-pg.r { margin-top: 16px }
  .ku-jq-ft { padding-top: 0 }
  .ku-jq-in { grid-template-rows: minmax(0, 1fr) 48px }
  .ku-jq-t { font-size: 24px }
  .ku-jq-sub { line-height: 1.55 }
  .ku-jq-card { padding: 18px 24px 14px }
  .ku-jq-card h4 { font-size: 29px }
  .ku-jq-card dl { gap: 9px 0; margin-top: 11px; font-size: 14.5px }
  .ku-jq-card .ft { margin-top: 12px; padding-top: 9px }
  .ku-jq-sum { line-height: 1.45 }
}
@media (max-height: 780px) and (min-width: 820px) { .ku-jq-luo { display: none } .ku-jq-yrs { display: none } }
@media (max-width: 1400px) and (min-width: 820px) { .ku-jq-luo .g { gap: 0 14px } .ku-jq-luo .g > div { grid-template-columns: 20px 80px minmax(0, 1fr) } }
@media (max-width: 1180px) and (min-width: 820px) { .ku-jq-pg { margin-left: 14px; margin-right: 18px } .ku-jq-pg.r { margin-left: 18px; margin-right: 14px } .ku-jq-pai { gap: 20px 3px } .ku-jq-lg { gap: 12px } }
/* 手机：整屏一层，签屉在上、卷宗卡在下，四排十根；不要书口 */
@media (max-width: 819px) {
  .ku-jq { top: 0; height: auto; border-top: 0 }
  .ku-jq-in { display: block; padding: 46px 12px 20px; overflow-y: auto; overscroll-behavior: contain }
  .ku-jq-in::before, .ku-jq-in::after, .ku-jq-ko, .ku-jq-luo { display: none }
  .ku-jq-pg, .ku-jq-pg.r { display: block; margin: 0 0 14px }
  .ku-jq-t { font-size: 22px; white-space: normal }
  .ku-jq-hd .fr { display: none }
  .ku-jq-box { flex: none }
  .ku-jq-pai { flex: none; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(4, 138px); gap: 16px 4px }
  .ku-jq-pgr .mid input { display: none }
  .ku-jq-lg { flex-wrap: wrap; white-space: normal; gap: 4px 14px }
  .ku-jq-sum dd { white-space: normal }
  .ku-jq-card { overflow: visible; padding: 18px 16px 14px }
  .ku-jq-card h4 { font-size: 25px }
  .ku-jq-pj { margin-top: 12px; grid-template-columns: 1fr; }
  .ku-jq-pj .k { display: none }
  .ku-jq-pj > div:not(.k) { border-left: 0; border-top: 1px solid var(--line-2) }
  .ku-jq-pj > div.k + div { border-top: 0 }
  .ku-jq-ft { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 4px 4px 20px }
  .ku-jq-ft .sn { white-space: normal }
  .ku-jq-x { display: grid; position: fixed; right: 10px; top: 8px }
}

/* ── 单页试看 ── */
.ku-try-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 44px; padding: 0 28px 0 26px; border-bottom: 1px solid var(--line-2) }
.ku-try-nav .l { display: flex; align-items: center; gap: 14px; white-space: nowrap }
.ku-try-nav .logo { font-size: 17px; font-weight: 900; letter-spacing: .26em; text-decoration: none }
.ku-try-nav .bar { width: 1px; height: 14px; background: var(--line) }
.ku-try-nav .room { font-size: 15px; font-weight: 700; letter-spacing: .14em }
.ku-try-nav .sub { font-size: 13px; letter-spacing: .08em; color: var(--ink-3) }
.ku-try-main { display: grid; grid-template-columns: minmax(260px, 30%) minmax(0, 1fr); gap: 0 48px; height: calc(100vh - 44px); min-height: 604px; padding: 22px 44px 22px 40px }
.ku-try-root { position: relative; min-width: 0; min-height: 0; container-type: inline-size }
.ku-try-root.fix { justify-self: start; align-self: start; outline: 1px dashed var(--line) }
.ku-try-mini { padding: 8px 44px 60px 40px }
.ku-try-mini h4 { margin: 0 0 10px; font-size: 13px; font-weight: 400; letter-spacing: .3em; color: var(--ink-3) }
.ku-try-mini .box { position: relative; width: 460px; height: 230px; border: 1px solid var(--line); background: var(--paper-white) }
@media (max-width: 819px) { .ku-try-main { display: block; height: auto; padding: 14px 12px } .ku-try-main > aside { height: 200px; margin-bottom: 14px } .ku-try-root { width: 100%; height: 620px; overflow-x: auto } .ku-try-mini { padding: 8px 12px 40px } .ku-try-mini .box { width: 100%; max-width: 460px } }
@media (max-width: 819px) {   /* 窄屏顶栏不撑出页宽（回 cang 07:32）：副题收起，钤印只留印、输入框和按钮 */
  .ku-try-nav { gap: 10px; padding: 0 12px }
  .ku-try-nav .l { min-width: 0; overflow: hidden }
  .ku-try-nav .sub { display: none }
  .ku-try-nav .r { flex: none; min-width: 0 }
  .ku-seal { gap: 8px }
  .ku-seal label, .ku-seal .has .msg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
  .ku-seal .ask .msg { max-width: 6em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
  /* 手机上页头照旧（控件排可以折行）：各件在手机上靠页头撑出的宽度横着滚，改成一行会把台面挤得太矮（xu 会画出负高） */
  .ku-ye-head { flex-wrap: nowrap }
  .ku-ye-txt { min-width: 0; flex: 1 1 auto }
  .ku-ye-ctrl { flex: 0 1 auto; flex-wrap: wrap; max-width: 54%; margin-left: 0 }
}
