/* 叶秀山 · 学术名片 · 一桌二椅
   京剧的台上只有一张桌子、两把椅子：摆法一变，就是另一处所在。
   右边是一座小戏台（守旧、红氍毹、桌围椅帔），每一问换一种摆法；左边一条红纸戏单当目录。
   色板取自戏台：漆黑、桌围的朱红、刺绣的金、戏单的纸。 */

:root {
  --lacquer: #16100d;
  --lacquer-2: #211713;
  --curtain: #3d0f0c;
  --red: #b8322a;
  --red-2: #cf4636;
  --red-ink: #1c0c09;
  --gold: #d2a24a;
  --gold-2: #f0cf7e;
  --ivory: #efe6d6;
  --ivory-2: rgba(239, 230, 214, .76);
  --ivory-3: rgba(239, 230, 214, .5);
  --line: rgba(210, 162, 74, .3);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --bar: 56px;
  --xd: 46px;
  --stage-w: 42vw;
  --dawn: 0;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.ye { margin: 0; background: var(--lacquer); color: var(--ivory); font-family: var(--serif); font-size: 18px; line-height: 1.9; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
a { color: var(--gold-2); text-decoration-color: rgba(240, 207, 126, .45); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--ivory); text-decoration-color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
::selection { background: var(--red-2); color: var(--ivory); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--lacquer); padding: 6px 12px; }
.skip:focus { top: 12px; }
button { font: inherit; }

/* ---------- 顶栏 ---------- */
.ybar { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--bar); display: flex; align-items: center; gap: 16px; padding: 0 24px 0 0; background: rgba(22, 16, 13, .94); border-bottom: 1px solid var(--line); }
.ybar__logo { display: grid; place-items: center; width: var(--xd); height: var(--bar); background: var(--red); color: var(--red-ink); }
.ybar__logo svg { width: 18px; height: 20px; }
.ybar__t { margin: 0; font-size: 15px; line-height: 1.3; letter-spacing: .04em; }
.ybar__t span { color: var(--ivory-2); margin-left: 10px; }
.ybar__nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.ybar__nav a { color: var(--ivory-2); text-decoration: none; }
.ybar__nav a:hover { color: var(--gold-2); }

/* ---------- 戏单：左边一条红纸 ---------- */
.xidan { position: fixed; z-index: 30; top: var(--bar); bottom: 0; left: 0; width: var(--xd); display: flex; flex-direction: column; align-items: stretch; padding: 10px 0; overflow-y: auto; scrollbar-width: none;
  background: var(--red) linear-gradient(90deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .1)); box-shadow: inset -1px 0 0 rgba(0, 0, 0, .35); }
.xidan::-webkit-scrollbar { display: none; }
.xidan a { display: flex; justify-content: center; padding: 9px 0; color: var(--red-ink); text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .2em; border-bottom: 1px solid rgba(28, 12, 9, .25); }
.xidan a span { writing-mode: vertical-rl; text-orientation: upright; }
.xidan a:hover { background: rgba(255, 255, 255, .12); }
.xidan a[aria-current="true"] { background: var(--lacquer); color: var(--gold-2); }

/* ---------- 戏台（右侧固定） ---------- */
.stage { position: fixed; z-index: 1; top: var(--bar); right: 0; bottom: 0; width: var(--stage-w); overflow: hidden; border-left: 1px solid var(--line); }
.stage__drop { position: absolute; inset: 0;
  background-color: color-mix(in oklab, var(--curtain), #c9773f calc(var(--dawn) * 70%));
  background-image:
    radial-gradient(circle at 50% 30%, rgba(210, 162, 74, .16), rgba(210, 162, 74, 0) 46%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23d2a24a' stroke-opacity='.16' stroke-width='1.2'%3E%3Ccircle cx='42' cy='42' r='15'/%3E%3Ccircle cx='42' cy='42' r='7'/%3E%3Cpath d='M42 21v-9M42 63v9M21 42h-9M63 42h9M27 27l-6-6M57 57l6 6M57 27l6-6M27 57l-6 6'/%3E%3Ccircle cx='0' cy='0' r='8'/%3E%3Ccircle cx='84' cy='0' r='8'/%3E%3Ccircle cx='0' cy='84' r='8'/%3E%3Ccircle cx='84' cy='84' r='8'/%3E%3C/g%3E%3C/svg%3E");
  transition: background-color 1.2s; }
.stage__drop::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 14px), linear-gradient(var(--red), #8f241d); opacity: .9; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 21%; background: linear-gradient(#8a2219, #4e120d 70%); clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); box-shadow: inset 0 2px 0 rgba(210, 162, 74, .55); }
.stage__light { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse 46% 60% at var(--lx, 50%) 70%, rgba(255, 228, 170, .22), rgba(0, 0, 0, 0) 70%), linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .2)); transition: background .9s; mix-blend-mode: screen; }
body[data-light="ming"] .stage__light { background: radial-gradient(ellipse 80% 80% at 50% 60%, rgba(255, 238, 200, .55), rgba(255, 238, 200, .1) 80%); }
body[data-light="xuan"] .stage__drop { background-color: #120d1c; }
body[data-light="xuan"] .stage__light { background: radial-gradient(ellipse 30% 40% at 50% 72%, rgba(170, 160, 230, .2), rgba(0, 0, 0, 0) 70%); mix-blend-mode: normal; }
body[data-light="xuan"] .stage::after { filter: brightness(.45); }

.stage__hang { position: absolute; z-index: 2; left: 9%; right: 9%; top: 9%; height: 46%; }
.hang { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(-14px); transition: opacity .8s, transform .8s; }
.hang.on { opacity: 1; transform: none; }
.hang[data-for="kant"] { top: auto; bottom: -62%; left: 2%; right: auto; width: 38%; height: 100%; place-items: end start; }
.props--stage { position: absolute; z-index: 2; left: 3%; right: 3%; bottom: 6%; width: 94%; height: 44%; }
.stage__cap { position: absolute; z-index: 4; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; font-size: 13px; letter-spacing: .14em; color: var(--ivory-2); }
.stage__cap span { display: none; }
.stage__cap span.on { display: inline; }

/* 挂在台上的画 */
.fig { margin: 0; }
.fig__im { position: relative; }
.fig img { display: block; width: 100%; height: auto; }
.fig--stage { max-width: 100%; max-height: 100%; display: grid; }
.fig--stage figcaption { display: none; }
.fig--stage .fig__im { max-height: 100%; }
.fig--stage img { max-height: 39vh; width: auto; max-width: 100%; }
.k-gild .fig__im { padding: 4%; background: linear-gradient(135deg, #a77a2c, #e7c06b 35%, #c28f3a 60%, #f0cf7e 85%, #a77a2c); box-shadow: 0 0 0 1px #3a220f, 0 16px 40px rgba(0, 0, 0, .5); }
.k-gild img { mix-blend-mode: multiply; }
.k-paint .fig__im { padding: 10px; background: #e9dfc9; box-shadow: 0 0 0 6px var(--gold), 0 0 0 7px #3a220f, 0 18px 40px rgba(0, 0, 0, .55); }
.k-shadow .fig__im { background: none; }
.k-shadow img { filter: drop-shadow(0 0 18px rgba(255, 220, 160, .25)); }

/* 一桌二椅 */
.props { display: block; overflow: visible; }
.props .pool { fill: rgba(0, 0, 0, .35); }
.props .lq { fill: #2a1a14; }
.props .cl { fill: var(--red); }
.props .gd { stroke: var(--gold); stroke-width: 2; }
.props .gdz { stroke: var(--gold); stroke-width: 1.4; }
.props .gdf { fill: var(--gold); }
.props .back .cl { fill: #9d2a23; }
.p { transform: translate(var(--x), var(--y)) scale(calc(var(--s) * var(--sx, 1)), var(--s)); transition: transform 1.1s cubic-bezier(.65, 0, .25, 1), opacity .7s; }
/* 默认是“桌后设椅”：后排两把可见，前排两把藏着。同一侧的前后两把走同一条路，换前后排时只交叉淡入淡出。 */
.p-t { --x: 200px; --y: 172px; --s: 1; }
.p-bl, .p-fl { --x: 163px; --y: 172px; --s: .9; }
.p-br, .p-fr { --x: 237px; --y: 172px; --s: .9; }
.p-fl, .p-fr { opacity: 0; }
.brush { opacity: 0; transition: opacity .6s .4s; }
.props[data-set="waichang"] .p-bl, .props[data-set="waichang"] .p-fl { --x: 70px; --y: 192px; --s: 1; }
.props[data-set="waichang"] .p-br, .props[data-set="waichang"] .p-fr { --x: 330px; --y: 192px; --s: 1; }
.props[data-set="denggao"] .p-bl, .props[data-set="denggao"] .p-fl { --x: 200px; --y: 106px; --s: .92; }
.props[data-set="denggao"] .p-br, .props[data-set="denggao"] .p-fr { --x: 470px; --y: 192px; --s: 1; }
.props[data-set="shuan"] .p-bl, .props[data-set="shuan"] .p-fl { --x: 200px; --y: 168px; --s: .9; }
.props[data-set="shuan"] .p-br, .props[data-set="shuan"] .p-fr { --x: 470px; --y: 192px; --s: 1; }
.props[data-set="shuan"] .brush { opacity: 1; }
.props[data-set="bazi"] .p-bl, .props[data-set="bazi"] .p-fl { --x: 92px; --y: 196px; --s: 1; --sx: .74; }
.props[data-set="bazi"] .p-br, .props[data-set="bazi"] .p-fr { --x: 308px; --y: 196px; --s: 1; --sx: .74; }
.props[data-set="bazi"] .p-t { --y: 168px; --s: .82; }
.props[data-set="kong"] .p-bl, .props[data-set="kong"] .p-fl { --x: -80px; --y: 192px; --s: 1; }
.props[data-set="kong"] .p-br, .props[data-set="kong"] .p-fr { --x: 480px; --y: 192px; --s: 1; }
.props[data-set="duizuo"] .p-bl, .props[data-set="duizuo"] .p-fl { --x: 96px; --y: 192px; --s: 1; --sx: .58; }
.props[data-set="duizuo"] .p-br, .props[data-set="duizuo"] .p-fr { --x: 304px; --y: 192px; --s: 1; --sx: .58; }
.props[data-set="dan"] .p-t { --x: 280px; --s: .92; }
.props[data-set="dan"] .p-bl, .props[data-set="dan"] .p-fl { --x: 110px; --y: 192px; --s: 1; }
.props[data-set="dan"] .p-br, .props[data-set="dan"] .p-fr { --x: 480px; --y: 192px; --s: 1; }
.props[data-set="end"] .p-t { --y: 214px; opacity: 0; }
/* 前排可见的摆法 */
.props:is([data-set="waichang"], [data-set="bazi"], [data-set="duizuo"]) :is(.p-fl, .p-fr) { opacity: 1; }
.props:is([data-set="waichang"], [data-set="bazi"], [data-set="duizuo"]) :is(.p-bl, .p-br) { opacity: 0; }
.props:is([data-set="denggao"], [data-set="dan"]) .p-fl { opacity: 1; }
.props:is([data-set="denggao"], [data-set="dan"]) :is(.p-bl, .p-br, .p-fr) { opacity: 0; }
.props[data-set="shuan"] :is(.p-br, .p-fr, .p-fl) { opacity: 0; }
.props:is([data-set="kong"], [data-set="end"]) :is(.p-bl, .p-br, .p-fl, .p-fr) { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .p, .hang, .stage__drop, .stage__light { transition: none; } }

/* ---------- 正文 ---------- */
main { position: relative; z-index: 2; margin-left: var(--xd); width: calc(100% - var(--xd) - var(--stage-w)); }
.scr { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--bar) + 56px) 48px 72px 40px; display: grid; align-content: center; }
.scr__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 36px; max-width: 900px; }
.play { writing-mode: vertical-rl; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.play__n { margin: 0; font-size: 15px; letter-spacing: .3em; color: var(--gold); font-weight: 600; }
.play h2 { margin: 0; font-weight: 900; font-size: clamp(32px, 3vw, 46px); line-height: 1.25; letter-spacing: .14em; color: var(--ivory); max-height: 76vh; }
.play__y { writing-mode: horizontal-tb; display: none; }
.txt { min-width: 0; max-width: 34em; }
.txt > p { margin: 0 0 16px; }
.txt .lede { font-size: 18.5px; }
.say { margin: 26px 0 24px; padding: 2px 0 2px 22px; border-left: 3px solid var(--red-2); }
.say p { margin: 0; font-size: 22px; line-height: 1.75; font-weight: 600; color: var(--gold-2); }
.say cite { display: block; margin-top: 8px; font-style: normal; font-size: 14px; color: var(--ivory-2); }
.stars { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14.5px; }
.stars li { padding: 0 10px; border: 1px solid var(--line); color: var(--ivory-2); }
.works { list-style: none; margin: 0 0 22px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 15.5px; line-height: 1.75; }
.works a { text-decoration: none; }
.works a:hover { text-decoration: underline; }
.works small { color: var(--ivory-2); font-size: 14px; margin-left: 8px; }
.ask__h { margin: 0 0 8px !important; font-size: 14px; letter-spacing: .14em; color: var(--ivory-2); }
.ask { display: grid; gap: 8px; margin: 0 0 22px; }
.ask a { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; padding: 9px 14px 9px 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ivory); background: rgba(22, 16, 13, .6); transition: border-color .2s, background .2s; }
.ask a:hover, .ask a:focus-visible { border-color: var(--gold); background: rgba(184, 50, 42, .18); }
.ask a i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 3px; background: var(--red); color: var(--red-ink); font-size: 13px; font-weight: 700; }
.ask a b { font-weight: 600; font-size: 16.5px; line-height: 1.6; }
.ask a small { grid-column: 2; color: var(--ivory-2); font-size: 13.5px; line-height: 1.6; }
.go { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 8px !important; }
.yb { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 1px solid var(--gold); color: var(--gold-2); background: transparent; text-decoration: none; font-size: 15px; line-height: 1.5; cursor: pointer; transition: background .2s, color .2s; }
.yb:hover, .yb:focus-visible { background: var(--gold); color: var(--lacquer); }
.yb--solid { background: var(--red-2); border-color: var(--red-2); color: var(--ivory); }
.yb--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--lacquer); }
.yb--gong { background: var(--gold); color: var(--lacquer); font-weight: 700; }
.yb--gong::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff3c8, #b07d2c 60%, #6b4512); box-shadow: 0 0 0 2px rgba(22, 16, 13, .5); }
.yb--gong.ring { animation: ring .35s 3; }
@keyframes ring { 50% { transform: rotate(-3deg) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .yb--gong.ring { animation: none; } }
.fig--inline { display: none; margin: 26px 0 0; }
.fig--inline figcaption, .wg-frame figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.75; color: var(--ivory-2); }
.fig--inline figcaption b, .wg-frame figcaption b { color: var(--ivory); font-weight: 600; }

/* 每屏的图注在桌面上随台显示，正文里只保留一行出处 */
.scr .fig--inline + .credit { display: none; }

/* ---------- 首屏 ---------- */
.hero .scr__in { grid-template-columns: auto minmax(0, 1fr); gap: 0 44px; }
.hero__name { writing-mode: vertical-rl; display: flex; flex-direction: column; gap: 12px; }
.hero h1 { margin: 0; font-weight: 900; font-size: clamp(88px, 9vw, 148px); line-height: 1; letter-spacing: .08em; color: var(--gold-2); text-shadow: 0 0 40px rgba(210, 162, 74, .2); }
.hero__en { margin: 0; writing-mode: vertical-rl; font-size: 18px; letter-spacing: .2em; color: var(--ivory-2); font-style: italic; }
.hero__yr { margin: 0; font-size: 18px; letter-spacing: .1em; color: var(--ivory-2); text-combine-upright: none; }
.hero__yr i { font-style: normal; }
.motto { font-size: 26px; line-height: 1.6; font-weight: 700; color: var(--ivory); margin-bottom: 10px !important; }
.motto small { display: block; font-size: 13.5px; font-weight: 400; color: var(--ivory-3); margin-top: 4px; }
.who { font-size: 18.5px; font-weight: 600; }
.facts { font-size: 15.5px; line-height: 1.85; color: var(--ivory-2); }
.feats { list-style: none; margin: 0 0 22px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 15.5px; line-height: 1.7; }
.feats li { display: grid; grid-template-columns: 18px 1fr; }
.feats li::before { content: ""; width: 7px; height: 7px; margin-top: .72em; background: var(--red-2); }
.shelf { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shelf a { display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--ivory-2); font-size: 13px; }
.shelf .cov { display: grid; place-items: center; width: 40px; height: 158px; padding: 8px 0; background: var(--red); color: var(--red-ink); font-weight: 700; font-size: 13px; letter-spacing: .04em; writing-mode: vertical-rl; box-shadow: inset 0 0 0 1px rgba(28, 12, 9, .3), inset 0 0 0 4px var(--red), inset 0 0 0 5px rgba(28, 12, 9, .35); transition: background .2s; }
.shelf a:hover .cov, .shelf a:focus-visible .cov { background: var(--gold); }
.links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; }
.hero__go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px !important; }
.note { font-size: 13px; color: var(--ivory-3); line-height: 1.7; }
.hero__stage { display: none; }

/* ---------- 小机关 ---------- */
.wg { margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--line); background: rgba(33, 23, 19, .78); }
.wg__h { margin: 0 0 10px; font-size: 14px; letter-spacing: .1em; color: var(--ivory-2); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { padding: 6px 14px; border: 1px solid var(--gold); background: transparent; color: var(--gold-2); cursor: pointer; font-size: 15px; }
.seg button[aria-checked="true"] { background: var(--gold); color: var(--lacquer); font-weight: 700; }
.wg__out { margin: 12px 0 0; font-size: 15.5px; line-height: 1.8; color: var(--ivory); min-height: 3.6em; }
.wg-brush { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.brush__pad { position: relative; width: 200px; height: 200px; background: #efe6d6; box-shadow: inset 0 0 0 2px var(--red); }
.brush__grid { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(transparent calc(50% - .5px), rgba(184, 50, 42, .45) calc(50% - .5px), rgba(184, 50, 42, .45) calc(50% + .5px), transparent calc(50% + .5px)),
  linear-gradient(90deg, transparent calc(50% - .5px), rgba(184, 50, 42, .45) calc(50% - .5px), rgba(184, 50, 42, .45) calc(50% + .5px), transparent calc(50% + .5px)),
  linear-gradient(45deg, transparent calc(50% - .5px), rgba(184, 50, 42, .25) calc(50% - .5px), rgba(184, 50, 42, .25) calc(50% + .5px), transparent calc(50% + .5px)),
  linear-gradient(-45deg, transparent calc(50% - .5px), rgba(184, 50, 42, .25) calc(50% - .5px), rgba(184, 50, 42, .25) calc(50% + .5px), transparent calc(50% + .5px)); }
.brush__hz { position: absolute; inset: 0; z-index: 1; }
.brush__hz svg { display: block; }
.brush__chars, .brush__btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.brush__chars button { width: 40px; height: 40px; border: 1px solid var(--gold); background: transparent; color: var(--gold-2); font-size: 20px; cursor: pointer; }
.brush__chars button[aria-checked="true"] { background: var(--gold); color: var(--lacquer); font-weight: 700; }
.brush__msg { margin: 0; font-size: 13px; color: var(--ivory-3); }
.wg-frame { padding: 14px; max-width: 440px; }
.frame { position: relative; overflow: hidden; touch-action: none; user-select: none; }
.frame img { display: block; width: 100%; height: auto; }
.frame__base { filter: grayscale(1) brightness(.62) contrast(1.05); }
.frame__color { position: absolute; inset: 0; clip-path: inset(var(--t, 20%) var(--r, 10%) var(--b, 50%) var(--l, 40%)); }
.frame__box { position: absolute; top: var(--t, 20%); right: var(--r, 10%); bottom: var(--b, 50%); left: var(--l, 40%); padding: 0; border: 7px solid var(--gold); background: transparent; box-shadow: 0 0 0 1px #3a220f, inset 0 0 0 1px #3a220f, 0 10px 30px rgba(0, 0, 0, .5); cursor: grab; }
.frame__box:active { cursor: grabbing; }

/* ---------- 散场 ---------- */
.cast { list-style: none; margin: 8px 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.cast li { padding-top: 10px; border-top: 1px solid var(--line); }
.cast b { font-size: 18px; color: var(--gold-2); }
.cast .rel { margin-left: 10px; font-size: 13px; color: var(--ivory-3); letter-spacing: .1em; }
.cast p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.75; color: var(--ivory-2); }
.fine { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.8; color: var(--ivory-2); }
.fine p { margin: 0 0 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) { :root { --stage-w: 38vw; } .scr { padding-right: 32px; } }
@media (max-width: 1000px) {
  .stage { display: none; }
  main { width: calc(100% - var(--xd)); }
  .fig--inline { display: block; }
  .fig--inline.k-gild .fig__im, .fig--inline.k-paint .fig__im { max-width: 520px; }
  .fig--inline.k-shadow { max-width: 220px; }
  .hero__stage { display: block; margin: 30px 0 0; padding: 18px 6% 0; background: var(--curtain); box-shadow: inset 0 -40px 0 #5c160f; }
  .hero__stage svg { width: 100%; height: auto; }
  .hero .scr__in { display: block; }
  .hero__name { writing-mode: horizontal-tb; flex-direction: row; flex-wrap: wrap; align-items: baseline; margin-bottom: 18px; }
  .hero__en { writing-mode: horizontal-tb; }
}
@media (max-width: 760px) {
  :root { --xd: 0px; --bar: 52px; }
  body.ye { font-size: 17px; }
  .xidan { display: none; }
  .ybar { padding: 0 14px 0 0; gap: 10px; }
  .ybar__logo { width: 46px; }
  .ybar__t span { display: none; }
  .ybar__nav { gap: 14px; font-size: 14px; }
  .ybar__nav .hide-s { display: none; }
  .scr { padding: 84px 18px 56px; min-height: auto; }
  .hero { min-height: 100vh; min-height: 100svh; }
  .scr__in { display: block; }
  .play { writing-mode: horizontal-tb; gap: 6px; margin-bottom: 18px; }
  .play h2 { font-size: 30px; letter-spacing: .04em; max-height: none; }
  .hero h1 { font-size: 72px; }
  .wg-brush { grid-template-columns: 1fr; }
  .cast { grid-template-columns: minmax(0, 1fr); }
  .say p { font-size: 20px; }
}
/* 追问署名里的关系标签：戏单上的小金框 */
.ask .rel { display: inline-block; margin-right: 6px; padding: 0 5px; border: 1px solid var(--gold); color: var(--gold); font-size: 12px; line-height: 1.6; letter-spacing: .1em; vertical-align: 1px; }

/* ---------- 群聊（对话录）：追问下面的入口，做成戏单上的签条；点开是多人群聊窗口（窗口在 dlg.css，这里只配色） ---------- */
.ye .av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--av-bg); color: var(--av-fg);
  font: 700 11px/1 var(--serif); font-style: normal; letter-spacing: 0; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15) inset; }
.ye .talks { display: grid; justify-items: start; gap: 8px; margin: 0 0 22px; }
.ye .talk { display: inline-grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; max-width: 100%;
  padding: 8px 18px 8px 10px; border: 1px solid var(--gold); background: var(--curtain); color: var(--ivory); text-decoration: none;
  box-shadow: inset 0 0 0 3px var(--curtain), inset 0 0 0 4px rgba(210, 162, 74, .45); transition: background .2s; }
.ye .talk:hover, .ye .talk:focus-visible { background: #561712; box-shadow: inset 0 0 0 3px #561712, inset 0 0 0 4px var(--gold); }
.ye .talk__av { grid-row: 1 / span 2; display: flex; align-items: center; }
.ye .talk__av .av { width: 28px; height: 28px; font-size: 10.5px; margin-left: -9px; box-shadow: 0 0 0 2px var(--curtain); }
.ye .talk__av .av:first-child { margin-left: 0; }
.ye .talk__av b { margin-left: 5px; font-size: 12px; font-weight: 600; color: var(--gold-2); }
.ye .talk__t { font-weight: 600; font-size: 16px; line-height: 1.5; letter-spacing: .02em; }
.ye .talk__n { font-size: 12.5px; line-height: 1.5; color: var(--gold-2); letter-spacing: .06em; }
.ye .wm { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -8px 0 24px !important; font-size: 15px; }
.ye .wm a::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--red-2); vertical-align: 2px; }
/* 群聊窗口：漆黑的台口，金色描边，红色是自己 */
body.ye .dlg { --dlg-bg: #211713; --dlg-paper: #2e221b; --dlg-ink: #efe6d6; --dlg-ink-2: #d8ccb6; --dlg-ink-3: #b6a78d; --dlg-rule: rgba(210, 162, 74, .3);
  --dlg-me: #b8322a; --dlg-me-ink: #fff4e6; --dlg-acc: #f0cf7e; --dlg-mod: rgba(239, 230, 214, .08); --dlg-font: var(--serif); }
