/* roulang page: index */
:root {
  --green: #0F6E5B;
  --green-d: #0B5647;
  --apricot: #D36B2C;
  --purple: #5A476E;
  --paper: #F6F1E8;
  --band: #EADFCF;
  --card: #FFFCF7;
  --ink: #241C16;
  --muted: #6E6258;
  --line: #E3D8C8;
  --read: #2F7D4A;
  --apricot-bg: #F8E6D6;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(36, 28, 22, 0.06);
  --sans: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "Sarasa Mono SC", "Noto Sans Mono CJK SC", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  padding-bottom: 84px;
}
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6em;
}
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 18px; margin-bottom: 0.45em; }
p { margin-bottom: 1em; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-d); }
::selection { background: var(--green); color: var(--card); }
.grid-container { max-width: 1120px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  min-height: 44px;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--green);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark::after {
  content: "码";
  position: absolute;
  left: 15px;
  top: 8px;
  color: var(--purple);
  opacity: 0.55;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; }
.brand-text span:first-child { font-size: 15px; }
.brand-text span:last-child { font-size: 13px; color: var(--muted); font-weight: 600; }
.top-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  color: var(--ink);
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}
.nav-link:hover { color: var(--green); }
.nav-link.is-active { color: var(--green); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  background: var(--green);
}
.menu-toggle {
  display: none;
  min-height: 44px;
  min-width: 64px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--green); color: var(--card); }
.off-canvas {
  background: var(--card);
  border-right: 1px solid var(--line);
}
.canvas-nav { padding: 12px 0; }
.canvas-nav .nav-link {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
}
.canvas-nav .nav-link.is-active::after { left: 20px; right: auto; width: 36px; bottom: 10px; }
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-paper { background: var(--paper); }
.section-band { background: var(--band); }
.section-card { background: var(--card); }
.section-apricot { background: var(--apricot-bg); border-bottom-color: #E8CDB8; }
.prose { max-width: 68em; }
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "乱";
  position: absolute;
  right: 6%;
  top: 18px;
  font-size: 200px;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.04;
  transform: translate(10px, 8px);
  pointer-events: none;
}
.hero .grid-container { position: relative; z-index: 1; }
h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--green);
  margin-top: 0.6em;
}
.lead { color: var(--muted); font-size: 17px; max-width: 38em; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.btn-primary { background: var(--green); color: var(--card); }
.btn-primary:hover { background: var(--green-d); color: var(--card); }
.btn-line { background: transparent; color: var(--apricot); border-color: var(--apricot); }
.btn-line:hover { background: rgba(211, 107, 44, 0.08); color: var(--apricot); }
.bar-card, .card, .voice, .sample, .place-main, .place-card, .place-strip, .entry, .snap-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.bar-card { padding: 22px 22px 18px; }
.card-kicker, .who, .meta, .tag {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.card-kicker { color: var(--apricot); margin-bottom: 14px; }
.bad-line, .mono {
  font-family: var(--mono);
  color: var(--purple);
  word-break: break-all;
  line-height: 1.7;
  margin-bottom: 0;
}
.apricot-rule { display: block; height: 1px; background: var(--apricot); margin: 12px 0; border: 0; }
.ok-line { color: var(--ink); margin-bottom: 0; display: flex; align-items: flex-start; gap: 8px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--read);
  flex: 0 0 8px;
  margin-top: 0.65em;
}
.track { position: relative; }
.track-line {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 2px;
  background: var(--green);
}
.step-no {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--card);
  color: var(--green);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 0.35em; }
.step p { margin-bottom: 0; color: var(--ink); }
.scene-box { position: relative; }
.scene-box > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.switch { display: flex; gap: 10px; margin: 8px 0 16px; }
.switch label {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}
#mode-bad:checked ~ .switch label[for="mode-bad"],
#mode-ok:checked ~ .switch label[for="mode-ok"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--card);
}
#mode-bad:focus-visible ~ .switch label[for="mode-bad"],
#mode-ok:focus-visible ~ .switch label[for="mode-ok"] {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.pane-ok { display: none; }
#mode-ok:checked ~ .stage .pane-bad { display: none; }
#mode-ok:checked ~ .stage .pane-ok { display: block; }
.stage {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.stage .bad-line { font-size: 20px; margin-bottom: 0; }
.stage .ok-line { font-size: 20px; }
.step-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.step-item {
  min-height: 64px;
  border-top: 2px solid var(--green);
  padding-top: 8px;
  font-weight: 700;
}
.step-item span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.voice-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.voice {
  flex: 0 0 min(420px, 86vw);
  scroll-snap-align: start;
  padding: 18px 20px 16px;
}
.voice::before {
  content: "“";
  display: block;
  font-size: 52px;
  line-height: 0.8;
  color: var(--green);
  height: 34px;
}
.voice p { margin-bottom: 10px; }
.who { color: var(--apricot); }
.compare-bad, .compare-ok { padding: 8px 8px 4px; position: relative; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--card);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
}
.jag {
  width: 100%;
  height: 14px;
  background:
    linear-gradient(135deg, var(--apricot) 8px, transparent 0) 0 0 / 16px 14px,
    linear-gradient(45deg, var(--apricot) 8px, transparent 0) 0 7px / 16px 14px;
}
.state-name { font-size: 14px; color: var(--apricot); font-weight: 700; margin-bottom: 8px; }
.note-list { border-top: 1px solid var(--line); }
.note-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.note-row time { color: var(--muted); font-variant-numeric: tabular-nums; }
.note-row h3 { margin-bottom: 0.2em; font-size: 18px; }
.note-row p { margin: 0; color: var(--muted); }
.note-row a { color: var(--ink); }
.note-row a:hover { color: var(--green); }
.qa { border-top: 1px solid var(--line); }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.qa summary {
  min-height: 56px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.plus { width: 22px; height: 22px; position: relative; flex: 0 0 22px; }
.plus::before, .plus::after {
  content: "";
  position: absolute;
  background: var(--green);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.plus::before { width: 14px; height: 2px; }
.plus::after { width: 2px; height: 14px; }
.qa[open] .plus::after { display: none; }
.qa-a { padding: 0 0 16px; max-width: 68em; }
.qa-a a { font-weight: 700; border-bottom: 2px solid var(--green); }
.bound-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bound-item {
  padding-top: 8px;
  border-top: 2px solid var(--apricot);
}
.bound-item h3 { font-size: 18px; }
.bound-item p { margin: 0; }
.sample-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.sample { padding: 18px 18px 16px; }
.sample p { margin-bottom: 0.4em; }
.sample .ok-line { margin-bottom: 0; }
.place-main, .place-card, .place-strip { padding: 18px; }
.place-card + .place-card { margin-top: 16px; }
.frame {
  margin-top: 8px;
  min-height: 210px;
  border-radius: 12px;
  background: var(--band);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.frame-sub {
  width: 100%;
  background: var(--ink);
  color: var(--card);
  border-radius: 10px;
  padding: 12px 14px;
}
.frame-sub .mono { color: #E6D7F2; margin-bottom: 4px; }
.frame-sub .ok-line { color: var(--card); }
.snap {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
}
.snap-item {
  flex: 0 0 230px;
  scroll-snap-align: start;
  padding: 16px;
}
.snap-item p { margin-bottom: 0.35em; }
.snap-item .ok-line { margin: 0; }
.snap::-webkit-scrollbar { height: 8px; }
.snap::-webkit-scrollbar-thumb { background: #CDBFAE; border-radius: 999px; }
.entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
}
.entry + .entry { margin-top: 14px; }
.entry:hover { border-color: var(--green); }
.entry p { margin: 0; color: var(--muted); }
.text-link {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  border-bottom: 2px solid var(--green);
  color: var(--green);
}
.text-link:hover { color: var(--green-d); border-color: var(--green-d); }
.read-list { border-top: 1px solid var(--line); }
.read-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.read-item h3 { font-size: 18px; margin-bottom: 0.25em; }
.read-item a { color: var(--ink); }
.read-item a:hover { color: var(--green); }
.read-item p { margin: 0; color: var(--muted); }
.close-narrow { max-width: 36em; }
.site-footer {
  background: var(--ink);
  color: #F3EADF;
  padding: 42px 0 28px;
}
.site-footer a { color: #F3EADF; }
.site-footer a:hover { color: #FFFFFF; }
.foot-brand { font-weight: 700; font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.foot-note { color: #D9CBBA; margin-bottom: 0; }
.foot-col h3 { color: #F3EADF; font-size: 15px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 6px; }
.foot-meta {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(227, 216, 200, 0.25);
  color: #D9CBBA;
  font-size: 14px;
}
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(36, 28, 22, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  min-height: 64px;
}
.dock-text { margin: 0; font-weight: 700; }
@media (max-width: 1023px) {
  .section { padding: 48px 0; }
  .track-line { left: 8px; right: 8px; }
}
@media (min-width: 1024px) {
  .jag { width: 18px; height: 100%; min-height: 240px; }
  .sample-grid {
    grid-template-columns: 1.25fr 0.85fr 1.05fr 0.95fr;
    align-items: start;
  }
  .sample:nth-child(2) { margin-top: 36px; }
  .sample:nth-child(4) { margin-top: 22px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .sample-grid { grid-template-columns: 1fr 1fr; }
  .step-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 639px) {
  .section { padding: 36px 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .top-nav { display: none; }
  .header-bar { min-height: 64px; }
  .track-line { left: 17px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .step { padding-left: 28px; margin-bottom: 8px; }
  .step-row, .bound-grid { grid-template-columns: 1fr 1fr; }
  .note-row { grid-template-columns: 1fr; gap: 4px; }
  .entry { flex-direction: column; align-items: flex-start; }
  .jag { height: 14px; min-height: 0; }
  .dock { height: 56px; padding: 6px 10px; }
  .dock-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .dock .btn { width: 100%; height: 44px; max-height: 56px; }
  .hero::before { font-size: 120px; right: -10px; }
}
@media (max-width: 520px) {
  h1 { font-size: 28px; }
  .brand-text span:first-child { font-size: 14px; }
  .step-row, .bound-grid { grid-template-columns: 1fr; }
  .switch { flex-wrap: wrap; }
  .frame { min-height: 160px; }
}

/* roulang page: category1 */
:root {
 --green: #0F6E5B;
 --green-d: #0B5647;
 --apricot: #D36B2C;
 --purple: #5A476E;
 --paper: #F6F1E8;
 --band: #EADFCF;
 --card: #FFFCF7;
 --ink: #241C16;
 --muted: #6E6258;
 --line: #E3D8C8;
 --read: #2F7D4A;
 --apricot-bg: #F8E6D6;
 --radius: 16px;
 --shadow: 0 8px 24px rgba(36, 28, 22, 0.06);
 --sans: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
 --mono: "Sarasa Mono SC", "Noto Sans Mono CJK SC", ui-monospace, monospace;
}
/* roulang page: category1 */
html { scroll-behavior: smooth; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
 margin: 0;
 background: var(--paper);
 color: var(--ink);
 font-family: var(--sans);
 font-size: 16px;
 line-height: 1.8;
 overflow-x: hidden;
 padding-bottom: 0;
}
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-d); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
 color: var(--ink);
 font-family: var(--sans);
 line-height: 1.3;
 font-weight: 700;
 margin: 0 0 0.6em;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; margin-bottom: 0.35em; }
ul, ol { margin: 0; padding: 0; }
.grid-container { max-width: 1120px; }
.site-header {
 position: sticky;
 top: 0;
 z-index: 40;
 background: var(--card);
 border-bottom: 1px solid var(--line);
}
.header-bar {
 min-height: 72px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 16px;
}
.brand {
 display: flex;
 align-items: center;
 gap: 10px;
 color: var(--ink);
 min-height: 44px;
}
.brand:hover { color: var(--ink); }
.brand-mark {
 position: relative;
 width: 42px;
 height: 42px;
 flex: 0 0 42px;
 border-radius: 12px;
 background: var(--paper);
 border: 1px solid var(--line);
 color: var(--green);
 font-weight: 700;
 font-size: 22px;
 display: flex;
 align-items: center;
 justify-content: center;
}
.brand-mark::after {
 content: "码";
 position: absolute;
 left: 15px;
 top: 8px;
 color: var(--purple);
 opacity: 0.55;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; }
.brand-text span:first-child { font-size: 15px; }
.brand-text span:last-child { font-size: 13px; color: var(--muted); font-weight: 600; }
.top-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
 position: relative;
 color: var(--ink);
 min-height: 44px;
 padding: 0 14px;
 display: inline-flex;
 align-items: center;
 font-weight: 600;
}
.nav-link:hover { color: var(--green); }
.nav-link.is-active { color: var(--green); }
.nav-link.is-active::after {
 content: "";
 position: absolute;
 left: 14px;
 right: 14px;
 bottom: 8px;
 height: 2px;
 background: var(--green);
}
.menu-toggle {
 display: none;
 min-height: 44px;
 min-width: 64px;
 padding: 0 14px;
 border-radius: 999px;
 border: 1px solid var(--green);
 background: transparent;
 color: var(--green);
 font-weight: 700;
 cursor: pointer;
}
.menu-toggle:hover { background: var(--green); color: var(--card); }
.off-canvas { background: var(--card); color: var(--ink); }
.canvas-nav { padding: 12px 0; }
.canvas-nav .nav-link {
 display: flex;
 width: 100%;
 border-bottom: 1px solid var(--line);
 padding: 0 20px;
}
.canvas-nav .nav-link.is-active::after { left: 20px; right: auto; width: 36px; bottom: 10px; }
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-paper { background: var(--paper); }
.section-band { background: var(--band); }
.section-card { background: var(--card); }
.section-apricot { background: var(--apricot-bg); border-bottom-color: #E8CDB8; }
.crumb-bar, .doc-row, .section, .cat-head { scroll-margin-top: 84px; }
.crumb-bar {
 padding: 12px 0;
 background: var(--card);
 border-bottom: 1px solid var(--line);
}
.crumb-row {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 16px;
 min-height: 44px;
}
.crumbs ol {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 list-style: none;
 margin: 0;
 padding: 0;
 color: var(--muted);
 font-size: 14px;
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
 content: "/";
 margin: 0 8px;
 color: var(--muted);
}
.crumbs a { color: var(--ink); font-weight: 600; }
.crumbs a:hover { color: var(--green); }
.crumbs [aria-current="page"] { color: var(--green); font-weight: 700; }
.back-up {
 min-height: 44px;
 display: inline-flex;
 align-items: center;
 color: var(--apricot);
 font-weight: 700;
 border-bottom: 2px solid transparent;
}
.back-up:hover { color: var(--apricot); border-bottom-color: var(--apricot); }
.cat-head {
 position: relative;
 overflow: hidden;
 padding: 28px 0 22px;
 background: var(--paper);
 border-bottom: 1px solid var(--line);
}
.cat-head::before {
 content: "乱";
 position: absolute;
 right: 7%;
 top: -6px;
 font-size: 96px;
 line-height: 1;
 font-weight: 700;
 color: var(--ink);
 opacity: 0.04;
 transform: translate(8px, 6px);
 pointer-events: none;
}
.cat-head-row {
 position: relative;
 z-index: 1;
 display: flex;
 align-items: flex-start;
 justify-content: space-between;
 gap: 24px;
}
.scope { color: var(--muted); max-width: 40em; margin: 0; }
.entry-count {
 margin: 4px 0 0;
 min-width: 76px;
 text-align: right;
 color: var(--muted);
 font-weight: 700;
 font-size: 14px;
}
.entry-count b {
 display: block;
 color: var(--green);
 font-size: 28px;
 line-height: 1.2;
 font-weight: 700;
}
.block-title::after {
 content: "";
 display: block;
 width: 36px;
 height: 2px;
 background: var(--green);
 margin-top: 8px;
}
.doc-list { border-top: 1px solid var(--line); }
.doc-row {
 display: grid;
 grid-template-columns: 88px 1fr;
 gap: 18px;
 align-items: start;
 padding: 14px 0;
 border-bottom: 1px solid var(--line);
 line-height: 1.7;
}
.doc-row:hover { background: rgba(234, 223, 207, 0.35); }
.doc-row h3 { line-height: 1.45; }
.doc-row p { margin: 0; color: var(--muted); }
.row-tag { margin: 2px 0 0; }
.chip {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 28px;
 padding: 2px 10px;
 border-radius: 999px;
 font-size: 13px;
 font-weight: 700;
 line-height: 1.4;
}
.chip-bad {
 background: var(--purple);
 color: var(--card);
 font-family: var(--mono);
}
.chip-miss {
 color: var(--apricot);
 border: 1px solid var(--apricot);
 background: transparent;
}
.chip-stack {
 color: var(--ink);
 border: 1px solid var(--line);
 background: var(--paper);
}
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-link {
 min-height: 44px;
 padding: 0 18px;
 border-radius: 999px;
 border: 1px solid var(--apricot);
 color: var(--apricot);
 background: transparent;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 font-weight: 700;
 transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.filter-link:hover { background: rgba(211, 107, 44, 0.08); color: var(--apricot); transform: translateY(-1px); }
.filter-link.is-all { background: var(--green); border-color: var(--green); color: var(--card); }
.filter-link.is-all:hover { background: var(--green-d); color: var(--card); }
.pair-card {
 background: var(--card);
 border: 1px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 padding: 22px;
 max-width: 680px;
}
.card-kicker { color: var(--apricot); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.pair-label {
 display: flex;
 align-items: center;
 gap: 8px;
 margin: 0 0 6px;
 color: var(--muted);
 font-size: 13px;
 font-weight: 700;
}
.dot {
 width: 8px;
 height: 8px;
 border-radius: 50%;
 background: var(--purple);
 display: inline-block;
}
.dot-read { background: var(--read); }
.bad-line {
 font-family: var(--mono);
 color: var(--purple);
 font-size: 20px;
 line-height: 1.6;
 margin: 0;
 overflow-x: auto;
 white-space: nowrap;
}
.ok-line { font-size: 20px; margin: 0; color: var(--ink); }
.pair-split { height: 1px; background: var(--apricot); margin: 14px 0; border: 0; }
.pair-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.order-list { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.order-list li {
 display: grid;
 grid-template-columns: 36px 1fr;
 gap: 12px;
 align-items: center;
 min-height: 52px;
 border-bottom: 1px solid var(--line);
 padding: 8px 0;
 line-height: 1.7;
}
.order-no { color: var(--green); font-weight: 700; }
.order-list a { font-weight: 700; }
.qa-item { border-bottom: 1px solid var(--line); max-width: 46em; }
.qa-item summary {
 min-height: 52px;
 cursor: pointer;
 font-weight: 700;
 list-style: none;
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 12px;
 padding: 10px 0;
 line-height: 1.5;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after {
 content: "+";
 color: var(--green);
 font-size: 22px;
 font-weight: 500;
 line-height: 1;
 flex: 0 0 auto;
}
.qa-item[open] summary::after { content: "–"; }
.qa-item p { margin: 0 0 8px; }
.qa-item a { font-weight: 700; }
.close-row {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 18px;
}
.close-row p { margin: 0; max-width: 36em; }
.close-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn {
 min-height: 44px;
 padding: 0 22px;
 border-radius: 999px;
 border: 1px solid transparent;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 font-weight: 700;
 font-size: 15px;
 cursor: pointer;
 transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
 outline: 2px solid var(--green);
 outline-offset: 3px;
}
.btn-primary { background: var(--green); color: var(--card); }
.btn-primary:hover { background: var(--green-d); color: var(--card); }
.btn-line { background: transparent; color: var(--apricot); border-color: var(--apricot); }
.btn-line:hover { background: rgba(211, 107, 44, 0.08); color: var(--apricot); }
.text-home { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; color: var(--ink); }
.text-home:hover { color: var(--green); }
.site-footer {
 background: var(--ink);
 color: var(--paper);
 padding: 48px 0 28px;
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--band); }
.foot-col { margin-bottom: 18px; }
.foot-brand { font-weight: 700; font-size: 18px; margin: 0 0 8px; color: var(--paper); }
.foot-note { color: var(--line); margin: 0; }
.site-footer h3 { font-size: 15px; margin: 0 0 10px; color: var(--paper); }
.site-footer h3::after { display: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; line-height: 1.7; }
.site-footer .foot-col > p { margin: 0; }
.foot-meta {
 margin: 12px 0 0;
 padding-top: 16px;
 border-top: 1px solid rgba(227, 216, 200, 0.35);
 color: var(--line);
 font-size: 13px;
}
.button, button.button { border-radius: 999px; }
@media screen and (max-width: 1023px) {
 .section { padding: 48px 0; }
}
@media screen and (max-width: 639px) {
 .top-nav { display: none; }
 .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
 .section { padding: 36px 0; }
 h1 { font-size: 24px; }
 h2 { font-size: 20px; }
 .cat-head { padding: 22px 0 18px; }
 .cat-head-row { display: block; }
 .entry-count { text-align: left; margin-top: 10px; }
 .entry-count b { display: inline; font-size: 22px; margin-right: 4px; }
 .doc-row { grid-template-columns: 72px 1fr; gap: 10px; }
 .close-row { display: block; }
 .close-actions { margin-top: 12px; }
 .crumb-row { align-items: flex-start; }
}
@media screen and (max-width: 520px) {
 .brand-text span:first-child { font-size: 14px; }
 .header-bar { min-height: 64px; }
 .bad-line, .ok-line { font-size: 16px; }
 .filter-link { padding: 0 14px; }
}

/* roulang page: category2 */
:root {
  --green: #0F6E5B;
  --green-d: #0B5647;
  --apricot: #D36B2C;
  --purple: #5A476E;
  --paper: #F6F1E8;
  --band: #EADFCF;
  --card: #FFFCF7;
  --ink: #241C16;
  --muted: #6E6258;
  --line: #E3D8C8;
  --read: #2F7D4A;
  --apricot-bg: #F8E6D6;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(36, 28, 22, 0.06);
  --sans: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "Sarasa Mono SC", "Noto Sans Mono CJK SC", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, summary { font-family: inherit; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-d); }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.6em;
}
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
::selection { background: rgba(15, 110, 91, 0.18); }
.grid-container { max-width: 1120px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  min-height: 44px;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--green);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark::after {
  content: "码";
  position: absolute;
  left: 15px;
  top: 8px;
  color: var(--purple);
  opacity: 0.55;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; }
.brand-text span { white-space: nowrap; }
.brand-text span:first-child { font-size: 15px; }
.brand-text span:last-child { font-size: 13px; color: var(--muted); font-weight: 600; }
.top-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  color: var(--ink);
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}
.nav-link:hover { color: var(--green); }
.nav-link:active { color: var(--green-d); }
.nav-link.is-active { color: var(--green); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  background: var(--green);
}
.menu-toggle {
  display: none;
  min-height: 44px;
  min-width: 64px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--green); color: var(--card); }
.off-canvas { background: var(--card); color: var(--ink); }
.off-canvas .close-button {
  color: var(--ink);
  font-size: 28px;
  right: 12px;
  top: 6px;
}
.canvas-nav { padding: 48px 0 12px; }
.canvas-nav .nav-link {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--line);
  padding: 10px 20px;
  height: auto;
  white-space: normal;
  line-height: 1.4;
}
.canvas-nav .nav-link.is-active::after { left: 20px; right: auto; width: 36px; bottom: 10px; }
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-paper { background: var(--paper); }
.section-band { background: var(--band); }
.section-card { background: var(--card); }
.section-apricot { background: var(--apricot-bg); border-bottom-color: #E8CDB8; }
.block-title { position: relative; display: inline-block; }
.block-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 8px;
  background: var(--green);
}
.lead { color: var(--muted); font-size: 17px; max-width: 40em; margin-bottom: 0; }
.btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.btn-primary { background: var(--green); color: var(--card); }
.btn-primary:hover { background: var(--green-d); color: var(--card); }
.btn-line { background: transparent; color: var(--apricot); border-color: var(--apricot); }
.btn-line:hover { background: rgba(211, 107, 44, 0.08); color: var(--apricot); }
.crumb-sec {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.crumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}
.crumb { margin: 0; }
.crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}
.crumb li { display: inline-flex; align-items: center; gap: 6px; }
.crumb li:not(:last-child)::after { content: "/"; color: var(--muted); }
.crumb [aria-current="page"] { color: var(--ink); font-weight: 700; }
.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  white-space: nowrap;
}
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 26px;
}
.page-head::before {
  content: "幕";
  position: absolute;
  right: 4%;
  top: -18px;
  font-size: 140px;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.04;
  transform: translate(8px, 6px);
  pointer-events: none;
}
.page-head .grid-container { position: relative; z-index: 1; }
.head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.head-copy { min-width: 0; }
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-top: 6px;
}
.scene-main, .scene-side, .qa, .doc-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.scene-main, .scene-side { padding: 22px; }
.scene-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.scene-side { flex: 1; }
.card-kicker {
  color: var(--apricot);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}
.scene-main h3, .scene-side h3 { margin-bottom: 12px; }
.subbar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 12px;
}
.bad-line {
  margin: 0;
  font-family: var(--mono);
  color: var(--purple);
  font-size: 18px;
  line-height: 1.6;
  word-break: break-all;
}
.ok-line {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
}
.apricot-rule {
  display: block;
  height: 1px;
  margin: 10px 0;
  background: var(--apricot);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--read);
  display: inline-block;
  margin-right: 8px;
  vertical-align: 1px;
}
.scene-note { color: var(--muted); margin: 12px 0 0; font-size: 15px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--card);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
}
.env-list { list-style: none; margin: 8px 0 0; padding: 0; max-width: 820px; }
.env-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.env-list h3 { margin: 0 0 0.2em; font-size: 18px; }
.env-list p { margin: 0; color: var(--ink); }
.idx { color: var(--apricot); font-weight: 700; font-size: 18px; line-height: 1.3; padding-top: 2px; }
.cmp { margin-top: 8px; }
.cmp-head, .cmp-row {
  display: grid;
  grid-template-columns: 132px 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.cmp-head {
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.cmp-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.cmp-name { font-weight: 700; padding-top: 4px; }
.cmp-bad, .cmp-ok { min-width: 0; }
.cmp-bad p, .cmp-ok p { margin: 8px 0 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.doc-list { list-style: none; margin: 8px 0 0; padding: 0; }
.doc-list li {
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}
.doc-list li:hover { border-color: #c9bba8; }
.doc-list a { font-weight: 700; font-size: 18px; line-height: 1.4; }
.doc-list p { margin: 6px 0 0; color: var(--muted); }
.qa-list { max-width: 760px; }
.qa { margin-bottom: 12px; padding: 0 18px; }
.qa summary {
  cursor: pointer;
  list-style: none;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  color: var(--green);
  font-size: 22px;
  font-weight: 500;
  flex: 0 0 auto;
}
.qa[open] summary::after { content: "–"; }
.qa p { margin: 0; padding: 0 0 16px; color: var(--ink); }
.qa a { font-weight: 700; }
.close-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.close-row p { margin: 0; max-width: 40em; }
.close-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  color: var(--ink);
}
.foot-brand { font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.foot-note, .site-footer p { color: var(--muted); }
.foot-col h3 { font-size: 15px; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--green); font-weight: 600; }
.site-footer a:hover { color: var(--green-d); }
.foot-meta {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
@media screen and (max-width: 1023px) {
  .section { padding: 48px 0; }
  .top-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  h1 { font-size: 28px; }
  .scene-stack { height: auto; margin-top: 16px; }
}
@media screen and (max-width: 639px) {
  .section { padding: 36px 0; }
  h1 { font-size: 24px; }
  h2 { font-size: 22px; }
  .page-head { padding: 20px 0 18px; }
  .head-row { flex-direction: column; gap: 10px; }
  .count-pill { margin-top: 0; }
  .crumb-bar { align-items: flex-start; }
  .cmp-head { display: none; }
  .cmp-head, .cmp-row { grid-template-columns: 1fr; gap: 8px; }
  .state-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }
  .close-row { flex-direction: column; align-items: stretch; }
  .close-actions .btn { width: 100%; }
  .env-list li { grid-template-columns: 40px 1fr; }
  .foot-col { margin-bottom: 8px; }
}
@media screen and (min-width: 640px) {
  .state-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}
