/* roulang page: index */
:root {
  --bg: #100E0C;
  --stage: #1A1412;
  --primary: #D06A2B;
  --primary-hot: #E28948;
  --plum: #6E4C62;
  --paper: #E6D3B0;
  --text: #F3EEE6;
  --muted: #8F867B;
  --line: #3A312C;
  --shadow: 0 12px 28px rgba(0, 0, 0, .48);
  --edge: 1px solid rgba(208, 106, 43, .18);
  --radius: 2px;
  --side: 17rem;
  --header: 4.75rem;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --space: 1.15rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.no-js .accordion-content { display: block !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
a { color: var(--paper); text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; line-height: 1.28; margin: 0 0 .55rem; }
h1 { font-size: 2.7rem; }
h2 { font-size: 1.6rem; display: inline-block; border-bottom: 2px solid var(--primary); padding-bottom: .12rem; }
h3 { font-size: 1.15rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(16, 14, 12, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.header-bar {
  display: flex; align-items: center; gap: .85rem;
  min-height: var(--header); padding: .55rem 1.1rem;
}
.brand { display: flex; align-items: center; gap: .45rem; flex: 0 0 auto; color: var(--text); }
.brand-mark { font-family: var(--serif); font-size: 1.12rem; letter-spacing: -.03em; line-height: 1.2; }
.brand-badge, .tag, .lang-slot span, .version-switch button {
  border: 1px solid var(--plum); color: var(--paper); border-radius: var(--radius);
}
.brand-badge { font-size: .72rem; letter-spacing: .08em; padding: .08rem .32rem; }
.nav-main { display: flex; align-items: center; gap: .2rem; flex: 0 1 auto; }
.nav-main a {
  color: var(--text); padding: .35rem .7rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s;
}
.nav-main a:hover { color: var(--primary-hot); border-color: var(--line); }
.nav-main a[aria-current="page"], .nav-main a.is-active {
  color: #1A1412; background: var(--primary); border-color: var(--primary);
}
.doc-search { margin-left: auto; }
.doc-search input {
  width: 15.5rem; height: 2.35rem; padding: 0 .75rem;
  background: transparent; color: var(--text);
  border: 1px solid var(--paper); border-radius: var(--radius);
}
.doc-search input::placeholder { color: var(--muted); }
.doc-search input:focus { border-color: var(--primary); outline: none; }
.header-tools { display: flex; align-items: center; gap: .45rem; }
.version-switch { display: flex; }
.version-switch button, .nav-toggle {
  background: transparent; color: var(--paper); cursor: pointer;
  border: 1px solid var(--plum); border-radius: var(--radius);
  padding: .28rem .55rem; transition: background .2s, border-color .2s, color .2s;
}
.version-switch button.is-on, .lang-slot span.is-on {
  background: var(--plum); color: var(--text);
}
.version-switch button:hover, .nav-toggle:hover { border-color: var(--primary); color: var(--text); }
.lang-slot span { display: inline-block; padding: .28rem .55rem; font-size: .92rem; }
.nav-toggle { display: none; }
.doc-shell { display: block; }
.doc-side {
  position: fixed; z-index: 30; top: var(--header); left: 0;
  width: var(--side); height: calc(100vh - var(--header));
  overflow: auto; background: #140f0d; border-right: 1px solid var(--line);
  padding: 1rem .85rem 2rem;
}
.side-label { color: var(--muted); font-size: .78rem; letter-spacing: .14em; margin: 0 0 .7rem; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block; color: var(--muted); padding: .38rem .55rem .38rem .7rem;
  border-left: 2px solid transparent; font-size: .92rem; line-height: 1.45;
}
.toc a:hover { color: var(--text); background: rgba(208,106,43,.06); }
.toc a.is-active { color: var(--paper); border-left-color: var(--primary); background: rgba(208,106,43,.1); }
.toc-sub { list-style: none; margin: 0; padding: 0 0 .2rem .65rem; }
.toc-sub a { font-size: .84rem; }
.doc-main { margin-left: var(--side); min-width: 0; }
.wrap { width: min(1120px, calc(100% - 2.4rem)); margin: 0 auto; }
.panel { padding: 2.5rem 0 2.2rem; position: relative; scroll-margin-top: 5.4rem; }
.panel:nth-child(even) { background: var(--stage); }
.panel + .panel { box-shadow: inset 0 1px 0 var(--line), inset 0 7px 0 #100E0C, inset 0 8px 0 var(--line); }
.credit { display: flex; flex-wrap: wrap; gap: .35rem .8rem; color: var(--paper); font-size: .78rem; letter-spacing: .12em; margin: 0 0 .7rem; }
.credit span + span::before { content: ""; display: inline-block; width: 1.1rem; height: 1px; background: var(--plum); margin-right: .45rem; vertical-align: middle; }
.lead { max-width: 44em; color: var(--text); }
.muted { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.7rem; padding: .4rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--primary); background: var(--primary); color: #1A1412;
  font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--primary-hot); border-color: var(--plum); color: #1A1412; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--plum); }
.btn-ghost:hover { background: #241816; color: var(--text); border-color: var(--plum); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.hero-copy .subhead { color: var(--primary); font-family: var(--serif); font-size: 1.2rem; margin: .2rem 0 .8rem; }
.poster {
  width: min(100%, 280px); margin-left: auto; aspect-ratio: 2 / 3; position: relative;
  background: #120e0c; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid rgba(208,106,43,.28);
}
.poster i { position: absolute; display: block; }
.block-a { left: 8%; top: 7%; width: 78%; height: 22%; background: #6E4C62; }
.block-b { left: 14%; top: 33%; width: 62%; height: 16%; background: #D06A2B; opacity: .85; }
.block-c { left: 8%; top: 53%; width: 46%; height: 18%; background: #3A312C; }
.block-d { right: 8%; top: 54%; width: 22%; height: 28%; background: #E6D3B0; opacity: .35; }
.tear {
  left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, transparent, #100E0C 72%);
  border-top: 1px dashed rgba(230,211,176,.35);
}
.poster-cap { position: absolute; left: .7rem; bottom: .6rem; z-index: 2; color: var(--paper); font-size: .78rem; letter-spacing: .08em; }
.scene-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.scene-item, .voice, .film-cell, .figure, .entry-line, .note-row, .manual-list a, .compare-col, .step {
  background: #14110f; border-radius: var(--radius); box-shadow: var(--shadow); border: var(--edge);
}
.scene-item { padding: .95rem 1rem 1rem; min-height: 9.2rem; }
.scene-item h3 { margin-bottom: .35rem; }
.w1 { flex: 1.05 1 13rem; } .w2 { flex: 1.75 1 18rem; } .w3 { flex: .86 1 12rem; } .w4 { flex: 1.3 1 16rem; }
.scene-item:hover, .note-row:hover, .film-cell:hover, .manual-list a:hover { border-color: rgba(110,76,98,.9); }
.solution-band { border: var(--edge); box-shadow: var(--shadow); background: #14110f; }
.problem, .remedy { padding: 1.1rem 1.15rem 1.2rem; }
.problem { background: #221612; }
.kicker { color: var(--paper); font-size: .78rem; letter-spacing: .14em; margin: 0 0 .35rem; }
.remedy ol { margin: 0; padding-left: 1.2rem; }
.remedy li { margin: .25rem 0; }
.step-list { display: flex; flex-direction: column; gap: .75rem; }
.step { display: grid; grid-template-columns: 4.2rem 1fr; gap: .4rem 1rem; padding: .9rem 1rem; scroll-margin-top: 5.6rem; }
.step b { font-family: var(--serif); color: var(--primary); font-size: 1.35rem; }
.step p { margin: 0; color: var(--muted); }
.night-copy { padding-right: .8rem; }
.time-scale { list-style: none; margin: 0; padding: .2rem 0 0 0; border-left: 2px solid var(--plum); }
.time-scale li { position: relative; padding: 0 0 .95rem 1rem; color: var(--paper); }
.time-scale li::before {
  content: ""; position: absolute; left: -6px; top: .45rem; width: 10px; height: 10px;
  background: var(--primary); border-radius: 1px;
}
.time-scale strong { display: block; font-family: var(--serif); color: var(--text); }
.film { display: flex; gap: .75rem; overflow-x: auto; padding: .2rem 0 .7rem; scroll-snap-type: x proximity; }
.film-cell { flex: 0 0 240px; min-height: 132px; padding: .8rem .9rem; scroll-snap-align: start; position: relative; }
.film-cell em { display: block; color: var(--primary); font-style: normal; font-family: var(--serif); margin-bottom: .25rem; }
.sprocket { height: 8px; margin-bottom: .55rem; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }
.figure-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.figure { flex: 1 1 13rem; padding: 1rem 1rem .85rem; }
.figure strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--paper); line-height: 1; }
.figure span { color: var(--primary); }
.voice-board { display: grid; gap: 1rem; }
.voice { padding: 1rem 1.1rem; max-width: 46rem; }
.voice:nth-child(2) { margin-left: 11%; }
.voice q { font-family: var(--serif); font-size: 1.2rem; }
.voice p { margin: .55rem 0 0; color: var(--muted); }
.people-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.tag { display: inline-block; padding: .28rem .55rem; color: var(--paper); }
.entry-list { display: flex; flex-direction: column; gap: .7rem; }
.entry-line { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .95rem 1rem; color: var(--text); }
.entry-line:hover { border-color: var(--primary); color: var(--paper); }
.entry-line small { color: var(--muted); }
.note-list { display: flex; flex-direction: column; }
.note-row {
  display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .8rem; align-items: center;
  padding: .85rem .2rem; border-bottom: 1px solid var(--line); color: var(--text);
}
.note-row:hover { color: var(--paper); }
.note-row b { color: var(--paper); font-weight: 500; }
.scale-list { display: flex; flex-direction: column; gap: .85rem; }
.scale { display: grid; grid-template-columns: 7rem 1fr auto; gap: .7rem; align-items: center; }
.scale-bar { height: 8px; background: #2a2420; border: 1px solid var(--line); }
.scale-bar i { display: block; height: 100%; background: var(--primary); }
.scale em { color: var(--paper); font-style: normal; }
.manual-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.manual-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .72rem .85rem; margin-bottom: .45rem; color: var(--paper); }
.accordion { background: transparent; border: 0; margin: 0; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-title {
  font-family: var(--serif); font-size: 1.08rem; color: var(--text) !important;
  background: var(--stage) !important; border: 1px solid var(--line) !important; border-radius: var(--radius);
  padding: .9rem 2.4rem .9rem .9rem !important;
}
.accordion-title:hover, .accordion-title:focus { background: #241816 !important; color: var(--paper) !important; }
.accordion-content { background: #140f0d !important; color: var(--text) !important; border: 1px solid var(--line) !important; border-top: 0 !important; padding: .9rem 1rem 1rem !important; }
.compare { display: grid; grid-template-columns: 1fr 18px 1fr; gap: 0; align-items: stretch; }
.compare-col { padding: 1rem 1.05rem 1.1rem; }
.compare-gap { background: repeating-linear-gradient(#100E0C, #100E0C 4px, #3A312C 4px, #3A312C 5px); }
.close-band { display: flex; justify-content: space-between; gap: 1.2rem; align-items: flex-end; flex-wrap: wrap; }
.site-footer {
  margin-left: var(--side); background: #0d0b0a; border-top: 1px solid var(--line);
  padding: 1rem 0 1.2rem;
}
.footer-bar { width: min(1120px, calc(100% - 2.4rem)); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer-brand { font-family: var(--serif); color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.footer-links a { color: var(--paper); font-size: .92rem; }
.footer-links a:hover { color: var(--primary-hot); }
.copy { color: var(--muted); font-size: .82rem; margin: .35rem 0 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 1024px) {
  .doc-side { position: sticky; top: var(--header); width: 100%; height: auto; max-height: 9.5rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .toc { display: flex; gap: .25rem; overflow-x: auto; }
  .toc li { flex: 0 0 auto; }
  .toc-sub { display: none; }
  .doc-main, .site-footer { margin-left: 0; }
  h1 { font-size: 2.15rem; }
  .poster { margin: .4rem 0 0; }
}
@media (max-width: 768px) {
  .header-bar { flex-wrap: wrap; }
  .doc-search { order: 5; flex: 1 1 100%; margin-left: 0; }
  .doc-search input { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .nav-main { display: none; width: 100%; order: 6; }
  .nav-main.is-open { display: flex; }
  .voice:nth-child(2) { margin-left: 0; }
  .note-row, .scale, .step { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare-gap { height: 12px; }
  .close-band { align-items: flex-start; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.35rem; }
  .wrap { width: calc(100% - 1.4rem); }
  .header-bar { padding-inline: .7rem; }
  .figure strong { font-size: 2rem; }
  .btn { width: 100%; }
}

/* roulang page: category2 */
:root {
 --bg: #100E0C;
 --stage: #1A1412;
 --primary: #D06A2B;
 --primary-hot: #E28948;
 --plum: #6E4C62;
 --paper: #E6D3B0;
 --text: #F3EEE6;
 --muted: #8F867B;
 --line: #3A312C;
 --shadow: 0 12px 28px rgba(0, 0, 0, .48);
 --edge: 1px solid rgba(208, 106, 43, .18);
 --radius: 2px;
 --side: 17rem;
 --header: 4.75rem;
 --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
 --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
 --space: 1.15rem;
}
/* roulang page: category2 */
:root {
 --bg: #100E0C;
 --stage: #1A1412;
 --primary: #D06A2B;
 --primary-hot: #E28948;
 --plum: #6E4C62;
 --paper: #E6D3B0;
 --text: #F3EEE6;
 --muted: #8F867B;
 --line: #3A312C;
 --shadow: 0 12px 28px rgba(0, 0, 0, .48);
 --edge: 1px solid rgba(208, 106, 43, .18);
 --radius: 2px;
 --side: 17rem;
 --header: 4.75rem;
 --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
 --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
 --space: 1.15rem;
}
html { scroll-behavior: smooth; font-size: 16px; }
html.no-js .accordion-content { display: block !important; }
*, *::before, *::after { box-sizing: border-box; }
body {
 margin: 0;
 background: var(--bg);
 color: var(--text);
 font-family: var(--sans);
 font-size: 1rem;
 line-height: 1.8;
 text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
a { color: var(--paper); text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 700; color: var(--text); }
.sr-only {
 position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
 overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.site-header {
 position: sticky; top: 0; z-index: 40;
 background: rgba(16, 14, 12, .96);
 border-bottom: 1px solid var(--line);
 box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.header-bar {
 display: flex; align-items: center; gap: .85rem;
 min-height: var(--header); padding: .55rem 1.1rem;
}
.brand { display: flex; align-items: center; gap: .45rem; flex: 0 0 auto; color: var(--text); }
.brand-mark { font-family: var(--serif); font-size: 1.12rem; letter-spacing: -.03em; line-height: 1.2; }
.brand-badge, .tag, .lang-slot span, .version-switch button {
 border: 1px solid var(--plum); color: var(--paper); border-radius: var(--radius);
}
.brand-badge { font-size: .72rem; letter-spacing: .08em; padding: .08rem .32rem; }
.nav-main { display: flex; align-items: center; gap: .2rem; flex: 0 1 auto; }
.nav-main a {
 color: var(--text); padding: .35rem .7rem; border-radius: var(--radius);
 border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s;
}
.nav-main a:hover { color: var(--primary-hot); border-color: var(--line); }
.nav-main a[aria-current="page"], .nav-main a.is-active {
 color: #1A1412; background: var(--primary); border-color: var(--primary);
}
.doc-search { margin-left: auto; margin-bottom: 0; }
.doc-search input {
 width: 15.5rem; height: 2.35rem; padding: 0 .75rem; margin: 0;
 background: transparent; color: var(--text);
 border: 1px solid var(--paper); border-radius: var(--radius);
 box-shadow: none;
}
.doc-search input::placeholder { color: var(--muted); }
.doc-search input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(208,106,43,.25); }
.header-tools { display: flex; align-items: center; gap: .45rem; }
.version-switch { display: flex; gap: .3rem; }
.version-switch button, .nav-toggle {
 background: transparent; color: var(--paper); cursor: pointer;
 border: 1px solid var(--plum); border-radius: var(--radius);
 padding: .28rem .55rem; transition: background .2s, border-color .2s, color .2s;
}
.version-switch button.is-on, .lang-slot span.is-on {
 background: var(--plum); color: var(--text);
}
.version-switch button:hover, .nav-toggle:hover { border-color: var(--primary); color: var(--text); }
.version-switch button:focus-visible, .nav-toggle:focus-visible, .btn:focus-visible, a:focus-visible {
 outline: 2px solid var(--primary); outline-offset: 2px;
}
.lang-slot span { display: inline-block; padding: .28rem .5rem; font-size: .85rem; }
.nav-toggle { display: none; }
.doc-side {
 position: fixed; left: 0; top: var(--header); z-index: 20;
 width: var(--side); height: calc(100vh - var(--header));
 overflow: auto; background: #140f0d;
 border-right: 1px solid var(--line);
 padding: 1rem .75rem 2rem;
}
.toc-kicker {
 margin: 0 0 .7rem; color: var(--paper); font-size: .75rem; letter-spacing: .16em;
}
.toc a {
 display: block; color: var(--muted); padding: .38rem .55rem .38rem .7rem;
 border-left: 2px solid transparent; font-size: .92rem; line-height: 1.45;
 transition: color .2s, background .2s, border-color .2s;
}
.toc a:hover { color: var(--text); background: rgba(208,106,43,.06); }
.toc a.is-active { color: var(--paper); border-left-color: var(--primary); background: rgba(208,106,43,.1); }
.toc-sub a { font-size: .84rem; }
.doc-main { margin-left: var(--side); min-width: 0; }
.doc-section {
 padding: 1.35rem 1.4rem 1.2rem;
 border-bottom: 1px solid var(--line);
 scroll-margin-top: calc(var(--header) + .4rem);
}
.doc-section:nth-child(even) { background: var(--stage); }
.doc-section:nth-child(odd) { background: transparent; }
.credit {
 display: flex; align-items: center; gap: .65rem;
 margin: 0 0 .55rem; color: var(--paper); font-size: .78rem; letter-spacing: .14em;
}
.credit::before, .credit::after {
 content: ""; height: 1px; background: var(--line); flex: 1; max-width: 4.5rem;
}
.credit span { white-space: nowrap; }
h1 {
 font-family: var(--serif); font-size: 2.7rem; line-height: 1.25;
 letter-spacing: -.04em; margin: .1rem 0 .35rem;
 border-bottom: 2px solid var(--primary); display: inline-block;
}
h2 {
 font-family: var(--serif); font-size: 1.6rem; line-height: 1.35;
 letter-spacing: -.03em; margin: 0 0 .7rem;
 border-bottom: 2px solid var(--primary); display: inline-block;
}
h3 { font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; margin: 0 0 .35rem; }
.lead, .prose { max-width: 46em; }
.subhead { color: var(--primary); font-family: var(--serif); font-size: 1.2rem; margin: .15rem 0 .75rem; }
.muted { color: var(--muted); }
.letterbox {
 display: grid; grid-template-columns: 1.5fr .7fr 1.1fr; gap: .35rem;
 margin-top: .35rem; max-width: 34rem; height: 3rem;
}
.letterbox i { display: block; border: var(--edge); border-radius: var(--radius); }
.letterbox i:nth-child(1) { background: #6E4C62; }
.letterbox i:nth-child(2) { background: #D06A2B; }
.letterbox i:nth-child(3) { background: #3A312C; }
.btn {
 display: inline-flex; align-items: center; justify-content: center;
 min-height: 2.7rem; padding: .4rem 1rem; border-radius: var(--radius);
 border: 1px solid var(--primary); background: var(--primary); color: #1A1412;
 font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--primary-hot); border-color: var(--plum); color: #1A1412; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--plum); }
.btn-ghost:hover { background: #241816; color: var(--text); border-color: var(--plum); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.hero-copy .subhead { color: var(--primary); font-family: var(--serif); font-size: 1.2rem; margin: .2rem 0 .8rem; }
.block-a { left: 8%; top: 7%; width: 78%; height: 22%; background: #6E4C62; }
.scene-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.scene-item, .voice, .film-cell, .figure, .entry-line, .note-row, .manual-list a, .compare-col, .step, .note-block {
 background: #14110f; border-radius: var(--radius); box-shadow: var(--shadow); border: var(--edge);
}
.scene-item { padding: .95rem 1rem 1rem; min-height: 9.2rem; }
.scene-item h3 { margin-bottom: .35rem; }
.scene-item:hover, .note-row:hover, .film-cell:hover, .manual-list a:hover { border-color: rgba(110,76,98,.9); }
.step-list { display: flex; flex-direction: column; gap: .75rem; }
.step { padding: .9rem 1rem; }
.figure-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.people-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.tag { display: inline-block; padding: .12rem .45rem; color: var(--paper); font-size: .78rem; line-height: 1.6; }
.entry-list { display: flex; flex-direction: column; gap: .7rem; }
.entry-line { padding: .7rem .85rem; }
.note-list { display: flex; flex-direction: column; }
.note-row {
 display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .8rem; align-items: center;
 padding: .85rem .9rem; margin-bottom: .45rem; border-bottom: 0; color: var(--text);
 transition: border-color .2s, color .2s;
}
.note-row:hover { color: var(--paper); }
.note-row b { color: var(--paper); font-weight: 500; }
.scale-list { display: flex; flex-direction: column; gap: .85rem; }
.manual-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.manual-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .72rem .85rem; margin-bottom: .45rem; color: var(--paper); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-title {
 font-family: var(--serif); font-size: 1.08rem; color: var(--text) !important;
 background: var(--stage) !important; border: 1px solid var(--line) !important; border-radius: var(--radius);
 padding: .9rem 2.4rem .9rem .9rem !important;
}
.accordion-title:hover, .accordion-title:focus { background: #241816 !important; color: var(--paper) !important; }
.accordion-content { background: var(--stage); color: var(--text); border: 1px solid var(--line); border-top: 0; }
.compare-col { padding: 1rem 1.05rem 1.1rem; }
.film-strip {
 display: flex; gap: .75rem; overflow-x: auto; max-width: 100%;
 padding: .35rem .05rem .85rem; scroll-snap-type: x mandatory;
}
.film-strip::-webkit-scrollbar { height: 8px; }
.film-strip::-webkit-scrollbar-thumb { background: #3A312C; }
.film-cell {
 position: relative; flex: 0 0 20.5rem; min-height: 9.4rem;
 display: flex; scroll-snap-align: start; padding: .95rem 1.45rem .9rem;
 transition: border-color .2s;
}
.film-cell::before, .film-cell::after {
 content: ""; position: absolute; top: 0; bottom: 0; width: 12px;
 background: repeating-linear-gradient(to bottom, #100E0C 0 5px, transparent 5px 13px);
}
.film-cell::before { left: 0; }
.film-cell::after { right: 0; }
.film-body { min-width: 0; }
.film-no {
 font-family: var(--serif); color: var(--primary); font-size: 1.35rem;
 letter-spacing: -.04em; display: block; line-height: 1.2;
}
.film-meta { margin: .15rem 0 0; color: var(--paper); font-size: .92rem; }
.film-meta span { color: var(--muted); margin-right: .35rem; }
.filter-empty { color: var(--paper); }
.order-layout {
 display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1.1rem; align-items: start;
}
.tick-list {
 list-style: none; margin: .2rem 0 0; padding: 0 0 0 .2rem;
 border-left: 2px solid var(--primary);
}
.tick-list li {
 padding: .42rem .75rem; color: var(--paper); line-height: 1.45;
}
.tick-list b { display: block; color: var(--primary); font-family: var(--serif); font-weight: 700; }
.rule-list { list-style: none; margin: .2rem 0 0; padding: 0; max-width: 52rem; }
.rule-list li {
 display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: .8rem;
 padding: .8rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header) + .4rem);
}
.rule-k { color: var(--paper); font-family: var(--serif); }
.meter-list { max-width: 46rem; margin-top: .3rem; }
.meter-row {
 display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 4.2rem;
 gap: .75rem; align-items: center; margin: .35rem 0 .15rem;
}
.meter-name { color: var(--text); }
.meter-track { height: 7px; background: #241c18; border: 1px solid var(--line); }
.meter-track i { display: block; height: 100%; background: var(--primary); }
.meter-row b { color: var(--paper); font-family: var(--serif); font-weight: 700; text-align: right; }
.meter-note { margin: 0 0 .7rem 7.25rem; color: var(--muted); font-size: .92rem; }
.w76 { width: 76%; }
.w60 { width: 60%; }
.w28 { width: 28%; }
.note-block { margin-top: .75rem; padding: .9rem 1rem .35rem; scroll-margin-top: calc(var(--header) + .4rem); }
.note-block h3 { color: var(--paper); }
.more-link {
 display: inline-flex; align-items: center; justify-content: center;
 min-height: 2.7rem; padding: .4rem 1rem; border-radius: var(--radius);
 border: 1px solid var(--primary); background: var(--primary); color: #1A1412;
 font-weight: 700; transition: background .2s, border-color .2s;
}
.more-link:hover { background: var(--primary-hot); border-color: var(--plum); color: #1A1412; }
.site-footer {
 margin-left: var(--side); background: #0d0b0a; border-top: 1px solid var(--line);
}
.footer-bar {
 display: flex; justify-content: space-between; gap: 1rem; align-items: center;
 padding: .95rem 1.25rem 1.05rem;
}
.footer-brand { font-family: var(--serif); color: var(--text); font-size: 1.05rem; }
.copy { color: var(--muted); margin: .15rem 0 0; font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.footer-links a { color: var(--paper); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--primary-hot); }
@media (max-width: 1024px) {
 .header-bar { flex-wrap: wrap; }
 .doc-search { flex: 1 1 14rem; min-width: 0; }
 .doc-search input { width: 100%; }
 .brand-mark { font-size: 1.02rem; }
 h1 { font-size: 2.3rem; }
 .order-layout { grid-template-columns: 8.5rem minmax(0, 1fr); }
}
@media (max-width: 768px) {
 .nav-toggle { display: inline-flex; margin-left: auto; }
 .doc-search { order: 6; flex: 1 1 100%; margin-left: 0; }
 .header-tools { order: 5; }
 .nav-main {
  display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch;
  order: 7; background: #161210; border: 1px solid var(--line); padding: .35rem;
 }
 .nav-main.is-open { display: flex; }
 .nav-main a { padding: .6rem .7rem; }
 .doc-side {
  position: sticky; top: 0; width: 100%; height: auto; max-height: none;
  border-right: 0; border-bottom: 1px solid var(--line); padding: .55rem .7rem .65rem;
 }
 .toc { display: flex; gap: .25rem; overflow-x: auto; }
 .toc a {
  white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; padding: .35rem .55rem;
 }
 .toc a.is-active { border-bottom-color: var(--primary); background: transparent; }
 .doc-main, .site-footer { margin-left: 0; }
 .doc-section { padding: 1.15rem 1rem 1rem; }
 .meter-note { margin-left: 0; }
}
@media (max-width: 520px) {
 h1 { font-size: 2rem; }
 h2 { font-size: 1.35rem; }
 .header-tools, .version-switch { width: auto; }
 .film-cell { flex-basis: 86vw; }
 .order-layout, .rule-list li, .meter-row, .note-row { grid-template-columns: 1fr; }
 .note-row { gap: .2rem; }
 .btn-row { flex-direction: column; align-items: stretch; }
 .footer-bar { flex-direction: column; align-items: flex-start; }
 .letterbox { height: 2.4rem; }
 .tick-list b { display: inline; margin-right: .35rem; }
}

/* roulang page: category1 */
:root {
 --bg: #100E0C;
 --stage: #1A1412;
 --primary: #D06A2B;
 --primary-hot: #E28948;
 --plum: #6E4C62;
 --paper: #E6D3B0;
 --text: #F3EEE6;
 --muted: #8F867B;
 --line: #3A312C;
 --shadow: 0 12px 28px rgba(0, 0, 0, .48);
 --edge: 1px solid rgba(208, 106, 43, .18);
 --radius: 2px;
 --side: 17rem;
 --header: 4.75rem;
 --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
 --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
 --space: 1.15rem;
}
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
 margin: 0;
 background: var(--bg);
 color: var(--text);
 font-family: var(--sans);
 font-size: 1rem;
 line-height: 1.8;
 text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
a { color: var(--paper); text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .55rem; font-weight: 700; color: var(--text); }
::selection { background: var(--primary); color: #1A1412; }
.sr-only {
 position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
 overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.site-header {
 position: sticky; top: 0; z-index: 40;
 background: rgba(16, 14, 12, .96);
 border-bottom: 1px solid var(--line);
 box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.header-bar {
 display: flex; align-items: center; gap: .85rem;
 min-height: var(--header); padding: .55rem 1.1rem;
}
.brand { display: flex; align-items: center; gap: .45rem; flex: 0 0 auto; color: var(--text); }
.brand-mark { font-family: var(--serif); font-size: 1.12rem; letter-spacing: -.03em; line-height: 1.2; }
.brand-badge, .tag, .lang-slot span, .version-switch button {
 border: 1px solid var(--plum); color: var(--paper); border-radius: var(--radius);
}
.brand-badge { font-size: .72rem; letter-spacing: .08em; padding: .08rem .32rem; }
.nav-main { display: flex; align-items: center; gap: .2rem; flex: 0 1 auto; }
.nav-main a {
 color: var(--text); padding: .35rem .7rem; border-radius: var(--radius);
 border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s;
}
.nav-main a:hover { color: var(--primary-hot); border-color: var(--line); }
.nav-main a[aria-current="page"], .nav-main a.is-active {
 color: #1A1412; background: var(--primary); border-color: var(--primary);
}
.doc-search { margin-left: auto; }
.doc-search input {
 width: 15.5rem; height: 2.35rem; padding: 0 .75rem;
 background: transparent; color: var(--text);
 border: 1px solid var(--paper); border-radius: var(--radius);
}
.doc-search input::placeholder { color: var(--muted); }
.doc-search input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(208,106,43,.25); }
.header-tools { display: flex; align-items: center; gap: .45rem; }
.version-switch { display: flex; gap: .3rem; }
.version-switch button, .nav-toggle {
 background: transparent; color: var(--paper); cursor: pointer;
 border: 1px solid var(--plum); border-radius: var(--radius);
 padding: .28rem .55rem; transition: background .2s, border-color .2s, color .2s;
}
.version-switch button.is-on, .lang-slot span.is-on { background: var(--plum); color: var(--text); }
.version-switch button:hover, .nav-toggle:hover { border-color: var(--primary); color: var(--text); }
.lang-slot span { display: inline-block; padding: .28rem .5rem; font-size: .85rem; }
.nav-toggle { display: none; }
.doc-shell { min-height: 60vh; }
.doc-side {
 position: fixed; top: var(--header); left: 0; bottom: 0; width: var(--side);
 overflow: auto; background: #120f0d; border-right: 1px solid var(--line);
 padding: 1.1rem .8rem 2rem; z-index: 30;
}
.side-kicker { color: var(--paper); font-size: .75rem; letter-spacing: .16em; margin: .2rem 0 .7rem .7rem; }
.toc a {
 display: block; color: var(--muted); padding: .38rem .55rem .38rem .7rem;
 border-left: 2px solid transparent; font-size: .92rem; line-height: 1.45;
 transition: color .2s, background .2s, border-color .2s;
}
.toc a:hover { color: var(--text); background: rgba(208,106,43,.06); }
.toc a.is-active { color: var(--paper); border-left-color: var(--primary); background: rgba(208,106,43,.1); }
.doc-main { margin-left: var(--side); min-width: 0; }
.doc-main .grid-container { padding-left: 0; padding-right: 0; }
.block { padding: 2.25rem 1.45rem 2.35rem; border-top: 1px solid var(--line); text-align: left; }
.block:nth-child(odd) { background: var(--stage); }
.block:nth-child(even) { background: var(--bg); }
.kicker { color: var(--paper); font-size: .78rem; letter-spacing: .14em; margin: 0 0 .4rem; }
.crumb { color: var(--muted); font-size: .85rem; margin: 0 0 .7rem; }
.crumb a { color: var(--paper); border-bottom: 1px solid transparent; }
.crumb a:hover { border-bottom-color: var(--primary); color: var(--primary-hot); }
h1 { font-family: var(--serif); font-size: 2.7rem; line-height: 1.22; letter-spacing: -.04em; }
h2 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.35; letter-spacing: -.03em; }
h3 { font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; }
.rule { display: block; width: 3.2rem; height: 2px; background: var(--primary); margin-top: .4rem; }
.subhead { color: var(--primary); font-family: var(--serif); font-size: 1.2rem; margin: .35rem 0 .8rem; line-height: 1.5; }
.lead { max-width: 44em; color: var(--text); }
.muted { color: var(--muted); }
.credit { list-style: none; margin: .4rem 0 0; padding: .2rem 0 0; border-top: 1px solid var(--line); }
.credit li {
 display: flex; justify-content: space-between; gap: 1rem;
 border-bottom: 1px solid var(--line); padding: .48rem 0; font-size: .92rem;
}
.credit span { color: var(--paper); letter-spacing: .08em; }
.credit strong { font-weight: 500; color: var(--text); }
.poster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: .4rem; }
.vcard {
 background: #14110f; border-radius: var(--radius); box-shadow: var(--shadow); border: var(--edge);
 padding: .45rem .45rem .8rem; transition: border-color .2s;
}
.vcard:hover { border-color: rgba(110,76,98,.95); }
.poster { position: relative; aspect-ratio: 2 / 3; background: #100e0c; overflow: hidden; border-radius: var(--radius); }
.sw { position: absolute; display: block; }
.p1 .sw1 { left: 8%; top: 7%; width: 78%; height: 16%; background: #6E4C62; }
.p1 .sw2 { left: 14%; top: 32%; width: 62%; height: 26%; background: #D06A2B; }
.p1 .sw3 { left: 8%; bottom: 22%; width: 40%; height: 7%; background: #E6D3B0; }
.p2 .sw1 { right: 8%; top: 10%; width: 34%; height: 42%; background: #6E4C62; }
.p2 .sw2 { left: 8%; top: 28%; width: 48%; height: 14%; background: #E6D3B0; }
.p2 .sw3 { left: 8%; bottom: 16%; width: 72%; height: 18%; background: #D06A2B; }
.p3 .sw1 { left: 10%; top: 12%; width: 80%; height: 10%; background: #E6D3B0; }
.p3 .sw2 { left: 18%; top: 34%; width: 46%; height: 34%; background: #6E4C62; }
.p3 .sw3 { right: 10%; bottom: 14%; width: 28%; height: 22%; background: #D06A2B; }
.p4 .sw1 { left: 0; top: 18%; width: 100%; height: 12%; background: #3A312C; }
.p4 .sw2 { left: 12%; top: 40%; width: 70%; height: 22%; background: #D06A2B; }
.p4 .sw3 { left: 12%; bottom: 14%; width: 36%; height: 8%; background: #6E4C62; }
.p5 .sw1 { left: 8%; top: 8%; width: 22%; height: 70%; background: #6E4C62; }
.p5 .sw2 { left: 38%; top: 22%; width: 52%; height: 18%; background: #E6D3B0; }
.p5 .sw3 { left: 38%; top: 48%; width: 40%; height: 28%; background: #D06A2B; }
.p6 .sw1 { left: 10%; top: 14%; width: 80%; height: 22%; background: #D06A2B; }
.p6 .sw2 { left: 10%; top: 42%; width: 55%; height: 8%; background: #E6D3B0; }
.p6 .sw3 { left: 10%; bottom: 12%; width: 80%; height: 16%; background: #6E4C62; }
.poster-cap {
 position: absolute; left: 0; right: 0; bottom: 0;
 padding: .38rem .55rem; background: #0d0b0a; color: var(--paper);
 font-size: .75rem; letter-spacing: .06em;
}
.vcard-body { padding: .7rem .35rem .15rem; }
.vcard-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.scale {
 position: relative; display: flex; justify-content: space-between; gap: .8rem;
 margin-top: 1.3rem; padding-top: 1.15rem;
}
.scale::before {
 content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--primary);
}
.scale a {
 flex: 1; display: flex; flex-direction: column; gap: .15rem;
 color: var(--text); padding: .35rem .2rem .2rem;
 border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.scale a i { font-style: normal; color: var(--paper); font-size: .82rem; letter-spacing: .08em; }
.scale a b { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.scale a:hover { color: var(--primary-hot); border-bottom-color: var(--plum); }
.step-list { display: flex; flex-direction: column; gap: .75rem; margin-top: .3rem; }
.step {
 display: grid; grid-template-columns: 4.2rem 1fr; gap: .8rem;
 background: #14110f; border-radius: var(--radius); box-shadow: var(--shadow); border: var(--edge);
 padding: .95rem 1rem 1rem;
}
.step-no { font-family: var(--serif); color: var(--primary); font-size: 1.45rem; line-height: 1.2; }
.step p { margin: 0 0 .35rem; }
.step p:last-child { margin-bottom: 0; }
.voice {
 max-width: 40rem; margin: .5rem 0 .2rem 7%;
 background: #14110f; border-radius: var(--radius); box-shadow: var(--shadow); border: var(--edge);
 border-left: 3px solid var(--primary); padding: 1.05rem 1.15rem 1rem;
}
.voice blockquote { margin: 0 0 .7rem; font-family: var(--serif); font-size: 1.28rem; line-height: 1.65; color: var(--text); }
.voice p { margin: 0; color: var(--paper); }
.note-list { display: flex; flex-direction: column; }
.note-row {
 display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .8rem; align-items: center;
 padding: .9rem .15rem; border-bottom: 1px solid var(--line); color: var(--text);
 transition: color .2s, border-color .2s;
}
.note-row:hover { color: var(--paper); border-bottom-color: var(--plum); }
.note-row b { color: var(--paper); font-weight: 500; }
.note-row span { color: var(--muted); }
.more-line { margin: .4rem 0 0; }
.btn {
 display: inline-flex; align-items: center; justify-content: center;
 min-height: 2.7rem; padding: .4rem 1rem; border-radius: var(--radius);
 border: 1px solid var(--primary); background: var(--primary); color: #1A1412;
 font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--primary-hot); border-color: var(--plum); color: #1A1412; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .nav-main a:focus-visible, .toc a:focus-visible, .note-row:focus-visible, .scale a:focus-visible {
 outline: 2px solid var(--primary); outline-offset: 2px;
}
.cta-action { display: flex; align-items: center; }
.site-footer {
 margin-left: var(--side); background: #0d0b0a; border-top: 1px solid var(--line);
}
.footer-bar {
 display: flex; justify-content: space-between; gap: 1rem; align-items: center;
 padding: .95rem 1.25rem 1.05rem;
}
.footer-brand { font-family: var(--serif); font-size: 1.05rem; color: var(--text); }
.copy { color: var(--muted); margin: .15rem 0 0; font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.footer-links a { color: var(--paper); font-size: .88rem; border-bottom: 1px solid transparent; padding-bottom: .05rem; }
.footer-links a:hover { border-bottom-color: var(--primary); color: var(--primary-hot); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-title {
 font-family: var(--serif); font-size: 1.08rem; color: var(--text) !important;
 background: var(--stage) !important; border: 1px solid var(--line) !important; border-radius: var(--radius);
 padding: .9rem 2.4rem .9rem .9rem !important;
}
.accordion-title:hover, .accordion-title:focus { background: #241816 !important; color: var(--paper) !important; }
.accordion-content { background: var(--stage); color: var(--text); border: 1px solid var(--line); border-top: 0; }
@media (max-width: 1180px) {
 .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
 .nav-toggle { display: inline-flex; margin-left: auto; }
 .doc-search { margin-left: 0; }
 .nav-main, .doc-search, .header-tools { display: none; }
 .header-bar.is-open { flex-wrap: wrap; align-items: flex-start; }
 .header-bar.is-open .nav-main,
 .header-bar.is-open .doc-search,
 .header-bar.is-open .header-tools { display: flex; width: 100%; }
 .header-bar.is-open .nav-main { flex-direction: column; align-items: stretch; }
 .header-bar.is-open .doc-search input, .header-bar.is-open .header-tools { width: 100%; }
 .doc-side { width: 16rem; }
 h1 { font-size: 2.3rem; }
}
@media (max-width: 768px) {
 .doc-side {
  position: relative; top: auto; width: 100%; height: auto;
  border-right: 0; border-bottom: 1px solid var(--line); padding: .75rem .8rem .85rem;
 }
 .toc { display: flex; gap: .3rem; overflow-x: auto; }
 .toc a { flex: 0 0 auto; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
 .toc a.is-active { border-left-color: transparent; border-bottom-color: var(--primary); }
 .doc-main, .site-footer { margin-left: 0; }
 .block { padding: 1.65rem 1rem 1.75rem; }
 .voice { margin-left: 0; }
 .footer-bar { flex-direction: column; align-items: flex-start; }
 .scale { flex-direction: column; gap: .35rem; }
 h1 { font-size: 2.05rem; }
}
@media (max-width: 520px) {
 .poster-grid { grid-template-columns: 1fr; }
 .step { grid-template-columns: 3.1rem 1fr; }
 .note-row { grid-template-columns: 1fr; gap: .15rem; }
 .brand-mark { font-size: .95rem; }
 h2 { font-size: 1.35rem; }
 .header-bar { padding-inline: .7rem; }
}
