/* roulang page: index */
:root {
  --ink: #241C22;
  --paper: #F4EFE6;
  --paper-2: #EFE6DA;
  --card: #FBF7F1;
  --line: #E3D9CC;
  --plum: #6B3358;
  --plum-deep: #4A2340;
  --persimmon: #E07A3D;
  --moss: #3E6B5A;
  --muted: rgba(36, 28, 34, .68);
  --radius: 10px;
  --shadow: 0 8px 18px rgba(36, 28, 34, .06);
  --bar: 64px;
  --side: 16rem;
  --space: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  padding-top: var(--bar);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(36, 28, 34, .045) .7px, transparent .7px);
  background-size: 4px 4px;
}
body.lock { overflow: hidden; }
h1, h2, h3, .logo-name, .side-title {
  font-family: "Songti SC", "Noto Serif SC", "Palatino Linotype", serif;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(107, 51, 88, .18); }
.num { font-variant-numeric: tabular-nums; font-family: ui-monospace, "Sarasa Mono", "Noto Sans Mono", monospace; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: var(--bar);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: var(--bar);
  display: grid;
  grid-template-columns: auto minmax(12rem, 28rem) auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--plum);
  font-size: 12px;
  flex: 0 0 auto;
}
.logo-name { font-size: 18px; white-space: nowrap; }
.search { position: relative; min-width: 0; }
.search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0 12px;
  outline: none;
}
.search input:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(107, 51, 88, .12); }
.top-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.age-pill, .version, .lang-now {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.age-pill {
  color: var(--persimmon);
  border: 1px solid rgba(224, 122, 61, .45);
  border-radius: var(--radius);
  padding: 2px 8px;
  background: rgba(224, 122, 61, .08);
}
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-btn {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  color: var(--ink);
}
.lang-btn.is-on { background: var(--plum); color: #fff; }
.lang-btn:hover { background: rgba(107, 51, 88, .08); }
.lang-btn.is-on:hover { background: var(--plum-deep); color: #fff; }
.menu-btn {
  display: none;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}
.sidenav {
  position: fixed;
  top: var(--bar);
  left: 0;
  bottom: 0;
  width: var(--side);
  z-index: 40;
  overflow: auto;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 18px 12px 28px;
}
.side-label {
  margin: 8px 12px;
  font-size: 12px;
  color: var(--muted);
}
.side-nav a, .toc a {
  display: block;
  padding: 8px 12px 8px 14px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.side-nav a:hover, .toc a:hover { background: #F6EFE6; color: var(--plum-deep); }
.side-nav a.is-current, .toc a.is-current {
  border-left-color: var(--plum);
  background: #F3EBE3;
  color: var(--plum-deep);
}
.side-note { margin: 18px 12px 0; font-size: 13px; color: var(--persimmon); }
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(36, 28, 34, .35);
  z-index: 35;
}
.overlay.show { display: block; }
.content-wrap { position: relative; z-index: 1; margin-left: var(--side); }
.container { width: min(72rem, calc(100% - 48px)); margin: 0 auto; }
.block { padding: var(--space) 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
#metrics { border-top: 0; padding-top: 48px; }
.block.is-warm { background: var(--paper-2); }
#metrics {
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(224, 122, 61, .18), transparent 70%),
    radial-gradient(380px 200px at 0% 80%, rgba(107, 51, 88, .08), transparent 72%),
    var(--paper);
}
.folio { color: var(--plum); font-size: 13px; margin-bottom: 8px; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 16em; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
h3 { font-size: 1.125rem; }
.lede { margin-top: 14px; max-width: 46rem; color: var(--ink); }
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
  gap: 22px;
  align-items: end;
}
.side-card, .cell, .zone-card, .step, .t-item, .quote, .form-card, .term {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.side-card { padding: 18px; }
.side-kicker { font-size: 13px; color: var(--plum); }
.side-title { margin: 8px 0; font-size: 1.35rem; }
.side-card p { color: var(--muted); }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.metric { padding: 16px 18px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.metric-num { color: var(--moss); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }
.metric-label { margin-top: 6px; color: var(--muted); }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #F6EFE6;
  color: var(--plum-deep);
  font-size: 12px;
}
.section-head { margin-bottom: 22px; }
.matrix { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.matrix-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cell-main { min-height: 100%; padding: 26px; background: #F8F1EA; justify-content: space-between; }
.cell:hover, .zone-card:hover, .step:hover, .t-item:hover, .term:hover, .quote:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: #CDBEA8;
}
.cell span, .step a, .more-row a, .chart-link, .text-link { color: var(--plum-deep); }
.k { font-size: 13px; color: var(--plum); }
.scene { display: grid; grid-template-columns: 3.2rem 8.5rem minmax(0, 1fr); gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.scene:first-child { border-top: 1px solid var(--line); }
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.compare-row { display: grid; grid-template-columns: 8.5rem 1fr 1fr; }
.compare-row > div { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.compare-row > div + div { border-left: 1px solid var(--line); }
.compare-row:last-child > div { border-bottom: 0; }
.compare-head { background: #F6EFE6; font-family: "Songti SC", "Noto Serif SC", serif; }
.rhythm {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 240px;
  padding: 12px 4px 0;
}
.day { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.bar-wrap { height: 180px; width: 100%; display: flex; align-items: flex-end; }
.bar { width: 100%; background: var(--plum); border-radius: var(--radius) var(--radius) 0 0; }
.day.peak .bar { background: var(--plum-deep); }
.day span { font-size: 13px; color: var(--muted); }
.chart-link { display: inline-block; margin-top: 16px; border-bottom: 1px solid var(--plum); }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; right: 8px; top: 28px; height: 1px; background: var(--line); }
.t-item { position: relative; display: block; padding: 18px; min-height: 180px; }
.t-item .num { color: var(--moss); }
.news-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.news-row h3 a:hover { color: var(--plum-deep); }
.news-row p { color: var(--muted); margin-top: 4px; }
.news-row time { color: var(--moss); font-size: 14px; }
.more-row { display: flex; justify-content: flex-end; margin-top: 16px; }
.zone-list { display: grid; gap: 14px; }
.zone-card {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}
.zone-card h3 { font-size: 1.35rem; }
.assure { border-top: 1px solid var(--line); }
.assure-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--plum);
  background: var(--card);
}
.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.qa-item { border-bottom: 1px solid var(--line); }
.qa-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.qa-q::after { content: "＋"; color: var(--plum); font-family: sans-serif; }
.qa-item.open .qa-q::after { content: "－"; }
.qa-a { padding: 0 0 14px; color: var(--muted); }
.faq-list { display: grid; gap: 10px; }
.faq-list .qa-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 0 16px; }
.faq-list .qa-item.open { border-color: #CDBEA8; }
.steps { display: grid; grid-template-columns: 1.3fr 1fr .85fr; gap: 14px; }
.step { padding: 18px; min-height: 220px; display: flex; flex-direction: column; gap: 8px; }
.step .num { color: var(--moss); font-size: 20px; }
.step a { margin-top: auto; border-bottom: 1px solid var(--plum); align-self: flex-start; }
.quote { padding: 18px 20px; margin-bottom: 12px; }
.quote:nth-child(2) { margin-left: 7%; }
.quote:nth-child(3) { margin-left: 14%; }
.quote p { font-family: "Songti SC", "Noto Serif SC", serif; font-size: 1.125rem; }
.who { display: block; margin-top: 8px; color: var(--muted); font-family: "PingFang SC", "Noto Sans SC", sans-serif; font-size: 14px; }
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.term { padding: 16px 18px; display: block; }
.term dt { font-family: "Songti SC", "Noto Serif SC", serif; font-size: 1.2rem; color: var(--plum-deep); }
.term dd { margin: 6px 0 0; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.fact-list { margin-top: 16px; }
.fact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.form-card { padding: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
  outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(107, 51, 88, .12); }
.note {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #E7F0EC;
  color: var(--moss);
  border: 1px solid rgba(62, 107, 90, .25);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--plum-deep); color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-line { background: transparent; color: var(--persimmon); border-color: var(--persimmon); }
.btn-line:hover, .btn-line:focus-visible { background: rgba(224, 122, 61, .12); color: var(--persimmon); transform: translateY(-1px); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.footer { border-top: 1px solid var(--line); background: var(--card); padding: 36px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.footer a { border-bottom: 1px solid transparent; }
.footer a:hover { color: var(--plum-deep); border-bottom-color: var(--plum); }
.legal { margin-top: 12px; color: var(--muted); font-size: 14px; }
.age-line { color: var(--persimmon); margin-top: 8px; }
@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .topbar-inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "menu logo tools" "search search search"; padding: 10px 14px; gap: 10px; }
  .menu-btn { grid-area: menu; }
  .logo { grid-area: logo; }
  .top-tools { grid-area: tools; }
  .search { grid-area: search; }
  body { --bar: 108px; }
  .sidenav { transform: translateX(-105%); transition: transform .2s ease; }
  .sidenav.open { transform: translateX(0); }
  .content-wrap { margin-left: 0; }
  .hero-top, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(odd) { border-right: 1px solid var(--line); }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
  .steps, .glossary { grid-template-columns: 1fr 1fr; }
  .lang-now { display: none; }
}
@media (max-width: 767px) {
  :root { --space: 44px; }
  #metrics { padding-top: 28px; }
  .container { width: calc(100% - 28px); }
  .metric-grid, .matrix, .matrix-side, .compare-row, .steps, .glossary, .timeline, .zone-card { grid-template-columns: 1fr; }
  .metric { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .compare-row > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .compare-row > div::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--plum); font-size: 12px; }
  .compare-head { display: none; }
  .scene, .news-row { grid-template-columns: 3rem minmax(0, 1fr); }
  .scene p, .news-row time { grid-column: 2; }
  .timeline::before { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .quote:nth-child(n) { margin-left: 0; }
  .rhythm { min-width: 560px; }
  .rhythm-scroll { overflow-x: auto; padding-bottom: 6px; }
  .logo-name { font-size: 15px; }
  .version, .age-pill { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .menu-btn, .overlay { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* roulang page: category1 */
:root {
  --ink: #241C22;
  --paper: #F4EFE6;
  --paper-2: #EFE6DA;
  --card: #FBF7F1;
  --line: #E3D9CC;
  --plum: #6B3358;
  --plum-deep: #4A2340;
  --persimmon: #E07A3D;
  --moss: #3E6B5A;
  --muted: rgba(36, 28, 34, .68);
  --radius: 10px;
  --shadow: 0 8px 18px rgba(36, 28, 34, .06);
  --bar: 64px;
  --side: 16rem;
  --space: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  padding-top: var(--bar);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(36, 28, 34, .045) .7px, transparent .7px);
  background-size: 4px 4px;
}
body.lock { overflow: hidden; }
h1, h2, h3, .logo-name, .side-label {
  font-family: "Songti SC", "Noto Serif SC", "Palatino Linotype", serif;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
}
h1 { margin: 0; font-size: clamp(1.85rem, 3vw, 2.55rem); }
h2 { margin: 0 0 18px; font-size: clamp(1.35rem, 2vw, 1.8rem); }
h3 { margin: 0 0 6px; font-size: 1.12rem; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: var(--bar);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: var(--bar);
  display: grid;
  grid-template-columns: auto minmax(12rem, 28rem) auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--plum);
  font-size: 12px;
  flex: 0 0 auto;
}
.logo-name { font-size: 18px; white-space: nowrap; }
.search { position: relative; min-width: 0; }
.search input, .field input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0 12px;
  outline: none;
}
.search input:focus, .field input:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(107, 51, 88, .12); }
.top-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.age-pill, .version, .lang-now { color: var(--muted); font-size: 13px; white-space: nowrap; }
.age-pill {
  color: var(--persimmon);
  border: 1px solid rgba(224, 122, 61, .45);
  border-radius: var(--radius);
  padding: 2px 8px;
  background: rgba(224, 122, 61, .08);
}
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-btn { border: 0; background: transparent; padding: 6px 10px; color: var(--ink); }
.lang-btn.is-on { background: var(--plum); color: #fff; }
.lang-btn:hover { background: rgba(107, 51, 88, .08); }
.lang-btn.is-on:hover { background: var(--plum-deep); color: #fff; }
.menu-btn {
  display: none;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}
.menu-btn:hover { border-color: var(--plum); color: var(--plum-deep); }
.sidenav {
  position: fixed;
  top: var(--bar);
  left: 0;
  bottom: 0;
  width: var(--side);
  z-index: 40;
  overflow: auto;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 18px 12px 28px;
}
.side-label {
  margin: 14px 12px 6px;
  font-size: 13px;
  color: var(--muted);
}
.side-label:first-child { margin-top: 0; }
.side-nav a, .toc a {
  display: block;
  padding: 8px 12px 8px 14px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.side-nav a:hover, .toc a:hover { background: #F6EFE6; color: var(--plum-deep); }
.side-nav a.is-current, .toc a.is-current {
  border-left-color: var(--plum);
  background: #F3EBE3;
  color: var(--plum-deep);
}
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(36, 28, 34, .28);
  z-index: 30;
}
.scrim[hidden] { display: none; }
.page-shell { margin-left: var(--side); position: relative; z-index: 1; }
.container { width: min(72rem, calc(100% - 48px)); margin: 0 auto; }
.section { padding: var(--space) 0; position: relative; }
.section-paper { background: transparent; }
.section-card { background: rgba(251, 247, 241, .55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt { background: var(--paper-2); }
.dochead-grid, .remind-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
  gap: 28px;
  align-items: end;
}
.dochead { overflow: hidden; }
.dochead::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: 4%;
  top: -70px;
  background: radial-gradient(circle, rgba(224, 122, 61, .2), transparent 68%);
  pointer-events: none;
}
.crumb { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.crumb a:hover { color: var(--plum-deep); }
.meta-side, .cell, .form-card, .filter-bar, .note-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.meta-side { padding: 18px; position: relative; z-index: 1; }
.meta-side p { color: var(--muted); margin-top: 10px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.meta-side time { color: var(--moss); font-size: 14px; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #F6EFE6;
  color: var(--plum-deep);
  font-size: 12px;
}
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  padding: 16px 18px;
}
.filter-groups { display: flex; flex-wrap: wrap; gap: 16px 22px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-size: 13px; color: var(--muted); min-width: 3em; }
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  min-height: 32px;
  padding: 0 10px;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.chip:hover { transform: translateY(-1px); border-color: #CDBEA8; }
.chip.is-on, .chip[aria-pressed="true"] {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}
.chip.is-on:hover { background: var(--plum-deep); }
.result-count { margin: 0; white-space: nowrap; font-size: 15px; }
.result-count strong { color: var(--moss); font-size: 1.35rem; font-weight: 600; margin: 0 4px; }
.news-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.news-row .folio { color: var(--plum); padding-top: 2px; }
.news-row h3 { font-size: 1.12rem; }
.news-row h3 a:hover { color: var(--plum-deep); }
.news-row p { color: var(--muted); margin-top: 4px; }
.news-row time { color: var(--moss); font-size: 14px; white-space: nowrap; }
.news-row.is-hidden { display: none; }
.empty-note {
  display: none;
  margin-top: 16px;
  color: var(--persimmon);
}
.empty-note.is-show { display: block; }
.more-row { display: flex; justify-content: flex-end; }
.more-row a, .text-link { color: var(--plum-deep); }
.text-link { display: inline-block; margin-top: 14px; border-bottom: 1px solid transparent; }
.text-link:hover, .more-row a:hover { border-bottom-color: var(--plum); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-line {
  background: transparent;
  color: var(--persimmon);
  border-color: var(--persimmon);
}
.btn-line:hover, .btn-line:focus-visible {
  background: rgba(224, 122, 61, .12);
  transform: translateY(-1px);
}
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--plum-deep);
  transform: translateY(-1px);
}
.scope-grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 14px;
}
.cell { padding: 18px 18px 16px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.cell:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: #CDBEA8; }
.cell .folio { color: var(--moss); font-size: 13px; display: block; margin-bottom: 8px; }
.cell p, .note-item p, .remind-copy p { color: var(--muted); }
.cell.is-out { background: #F8F1EA; }
.note-list { overflow: hidden; }
.note-item {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.note-item:last-child { border-bottom: 0; }
.note-item .folio { color: var(--plum); }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.qa-item { border-bottom: 1px solid var(--line); }
.qa-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 1.02rem;
}
.qa-q::after { content: "＋"; color: var(--plum); font-family: "PingFang SC", sans-serif; }
.qa-item.open .qa-q::after { content: "－"; }
.qa-a { display: none; padding: 0 0 16px; color: var(--muted); max-width: 46rem; }
.qa-item.open .qa-a { display: block; }
.form-card { padding: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 14px; }
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  margin: 4px 0 14px;
}
.check input { margin-top: 4px; accent-color: var(--plum); }
.form-note { margin-bottom: 12px; font-size: 14px; }
.form-note.is-ok { color: var(--moss); }
.form-note.is-warn { color: var(--persimmon); }
.footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 36px 0 28px;
  position: relative;
  z-index: 1;
}
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.age-line { color: var(--persimmon); margin: 10px 0; }
.legal { color: var(--muted); font-size: 14px; }
.domain { color: var(--ink); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a:hover { color: var(--plum-deep); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
@media (max-width: 1023px) {
  :root { --bar: 118px; --space: 56px; }
  .topbar-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 10px 16px 12px;
  }
  .search { grid-column: 1 / -1; }
  .menu-btn { display: inline-flex; align-items: center; }
  .sidenav { transform: translateX(-105%); transition: transform .2s ease; }
  .sidenav.is-open { transform: translateX(0); }
  .page-shell { margin-left: 0; }
  .dochead-grid, .remind-grid { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 767px) {
  :root { --space: 44px; }
  .scope-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .result-count { justify-self: start; }
  .news-row { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .news-row time { grid-column: 2; }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 520px) {
  .container { width: min(72rem, calc(100% - 32px)); }
  .logo-name { font-size: 15px; }
  .version { display: none; }
  .lang-btn { padding: 6px 8px; }
  .note-item { grid-template-columns: 2.6rem minmax(0, 1fr); }
  h1 { font-size: 1.7rem; }
}

/* roulang page: category2 */
:root {
  --ink: #241C22;
  --paper: #F4EFE6;
  --paper-2: #EFE6DA;
  --card: #FBF7F1;
  --line: #E3D9CC;
  --plum: #6B3358;
  --plum-deep: #4A2340;
  --persimmon: #E07A3D;
  --moss: #3E6B5A;
  --muted: rgba(36, 28, 34, .68);
  --radius: 10px;
  --shadow: 0 8px 18px rgba(36, 28, 34, .06);
  --bar: 64px;
  --side: 16rem;
  --space: 76px;
}
:root { --space: 44px; }
/* roulang page: category2 */
:root {
  --ink: #241C22;
  --paper: #F4EFE6;
  --paper-2: #EFE6DA;
  --card: #FBF7F1;
  --line: #E3D9CC;
  --plum: #6B3358;
  --plum-deep: #4A2340;
  --persimmon: #E07A3D;
  --moss: #3E6B5A;
  --muted: rgba(36, 28, 34, .68);
  --radius: 10px;
  --shadow: 0 8px 18px rgba(36, 28, 34, .06);
  --bar: 64px;
  --side: 16rem;
  --space: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  padding-top: var(--bar);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(36, 28, 34, .045) .7px, transparent .7px);
  background-size: 4px 4px;
}
body.lock { overflow: hidden; }
h1, h2, h3, .logo-name, .side-kicker {
  font-family: "Songti SC", "Noto Serif SC", "Palatino Linotype", serif;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; font-family: "Songti SC", "Palatino Linotype", serif; }
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  min-height: var(--bar);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: var(--bar);
  display: grid;
  grid-template-columns: auto minmax(12rem, 28rem) auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--plum);
  font-size: 12px;
  flex: 0 0 auto;
}
.logo-name { font-size: 18px; white-space: nowrap; }
.search { position: relative; min-width: 0; }
.search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0 12px;
  outline: none;
}
.search input:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(107, 51, 88, .12); }
.tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.age-pill, .version {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.age-pill {
  color: var(--persimmon);
  border: 1px solid rgba(224, 122, 61, .45);
  border-radius: var(--radius);
  padding: 2px 8px;
  background: rgba(224, 122, 61, .08);
}
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.lang-btn {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  color: var(--ink);
}
.lang-btn.is-on { background: var(--plum); color: #fff; }
.lang-btn:hover { background: rgba(107, 51, 88, .08); }
.lang-btn.is-on:hover { background: var(--plum-deep); color: #fff; }
.menu-btn {
  display: none;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  align-items: center;
}
.menu-btn:hover { border-color: var(--plum); color: var(--plum-deep); }
.sidenav {
  position: fixed;
  top: var(--bar);
  left: 0;
  bottom: 0;
  width: var(--side);
  z-index: 40;
  overflow: auto;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 18px 12px 28px;
}
.side-kicker {
  margin: 14px 12px 6px;
  font-size: 13px;
  color: var(--muted);
}
.side-nav a, .toc a {
  display: block;
  padding: 8px 12px 8px 14px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.side-nav a:hover, .toc a:hover { background: #F6EFE6; color: var(--plum-deep); }
.side-nav a.is-current, .toc a.is-current {
  border-left-color: var(--plum);
  background: #F3EBE3;
  color: var(--plum-deep);
}
.mask {
  position: fixed;
  inset: 0;
  background: rgba(36, 28, 34, .28);
  z-index: 30;
}
.mask[hidden] { display: none; }
.shell, .footer { position: relative; z-index: 1; margin-left: var(--side); }
.container { width: min(72rem, calc(100% - 48px)); margin: 0 auto; }
.block { padding: 72px 0; border-bottom: 1px solid var(--line); }
.block-alt { background: rgba(239, 230, 218, .55); }
.section-head { margin-bottom: 22px; max-width: 40rem; }
.section-head h2 { font-size: 1.7rem; }
.section-head p { margin-top: 8px; color: var(--muted); }
.head-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
  gap: 28px;
  align-items: end;
}
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.crumb a:hover { color: var(--plum-deep); }
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.lead { margin-top: 12px; max-width: 38rem; color: var(--ink); }
.meta-row {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.meta-row li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.meta-row li:last-child { border-bottom: 0; }
.meta-row span { color: var(--muted); font-size: 13px; }
.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(240px, 5fr);
  gap: 18px;
  align-items: start;
}
.guide-main, .point, .mag-card, .diff-wrap, .read-row, .qa-item, .prefer-line {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.guide-main { padding: 26px 26px 22px; position: relative; overflow: hidden; }
.guide-main::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  right: -40px; top: -50px;
  background: radial-gradient(circle, rgba(224, 122, 61, .22), rgba(224, 122, 61, 0) 68%);
  pointer-events: none;
}
.guide-main h2, .section-head h2 { position: relative; }
.guide-copy { margin-top: 12px; color: var(--ink); }
.guide-copy + .guide-copy { color: var(--muted); }
.point-col { display: grid; gap: 12px; }
.point { padding: 16px 16px 14px; }
.point:hover, .mag-card:hover, .read-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: #CDBEA8;
}
.point .num, .mag-card .num { color: var(--plum); font-size: 13px; }
.point h3, .mag-card h3 { font-size: 1.15rem; margin: 6px 0; }
.point p, .mag-card p, .read-row p { color: var(--muted); }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #F6EFE6;
  color: var(--plum-deep);
  font-size: 12px;
}
.mag-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 14px;
  align-items: start;
}
.mag-card {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mag-card.tall { min-height: 300px; }
.mag-card.mid { min-height: 228px; }
.mag-card.short { min-height: 168px; }
.mag-card .tag { align-self: flex-start; margin-top: 10px; }
.mag-card p { margin-top: 4px; }
.card-link, .text-link, .more-inline {
  color: var(--plum-deep);
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
}
.card-link:hover, .text-link:hover, .more-inline:hover { color: var(--plum); }
.diff-wrap { overflow: hidden; }
.diff-table { width: 100%; border-collapse: collapse; }
.diff-table th, .diff-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 500;
}
.diff-table tr:last-child th, .diff-table tr:last-child td { border-bottom: 0; }
.diff-table thead th {
  background: #F6EFE6;
  font-family: "Songti SC", "Noto Serif SC", serif;
}
.diff-table th[scope="row"] { width: 8.5rem; color: var(--muted); font-weight: 500; background: transparent; }
.diff-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.read-list { display: grid; gap: 10px; }
.read-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.read-row h3 { font-size: 1.05rem; }
.read-row h3 a:hover { color: var(--plum-deep); }
.read-row time { color: var(--moss); font-size: 14px; white-space: nowrap; }
.faq-list { display: grid; gap: 10px; }
.qa-item { padding: 0 16px; }
.qa-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.qa-q::after { content: "＋"; color: var(--plum); }
.qa-item.open .qa-q::after { content: "－"; }
.qa-a { display: none; padding: 0 0 14px; color: var(--muted); }
.qa-item.open .qa-a { display: block; }
.prefer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  flex-wrap: wrap;
}
.prefer-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prefer-form label { color: var(--muted); font-size: 14px; }
.prefer-form input {
  height: 40px;
  width: min(16rem, 70vw);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0 12px;
  outline: none;
}
.prefer-form input:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(107, 51, 88, .12); }
.btn {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--plum);
  background: var(--plum);
  color: #fff;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.btn:hover, .btn:active { background: var(--plum-deep); border-color: var(--plum-deep); transform: translateY(-1px); }
.btn-line {
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--persimmon);
  color: var(--persimmon);
  background: transparent;
  transition: background .18s ease, transform .18s ease;
}
.btn-line:hover { background: rgba(224, 122, 61, .12); transform: translateY(-1px); }
.tip { width: 100%; font-size: 14px; }
.tip.ok { color: var(--moss); }
.tip.warn { color: var(--persimmon); }
.footer { background: var(--card); border-top: 1px solid var(--line); padding: 36px 0 42px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.age-line { margin-top: 10px; color: var(--persimmon); font-size: 14px; }
.legal { margin-top: 6px; color: var(--muted); font-size: 13px; }
.domain { color: var(--ink); }
.footer-links { display: grid; gap: 6px; justify-items: start; }
.footer-links a:hover { color: var(--plum-deep); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; }
  .sidenav { transform: translateX(-105%); transition: transform .2s ease; }
  .sidenav.is-open { transform: translateX(0); }
  .shell, .footer { margin-left: 0; }
  .topbar-inner { grid-template-columns: auto minmax(0, 1fr) auto; padding: 8px 14px; }
  .age-pill { display: none; }
}
@media (max-width: 767px) {
  :root { --space: 44px; }
  .block { padding: 44px 0; }
  .container { width: min(72rem, calc(100% - 28px)); }
  .topbar-inner {
    grid-template-columns: 1fr auto;
    min-height: 0;
    padding: 8px 12px 10px;
  }
  .search { grid-column: 1 / -1; }
  .logo-name { font-size: 15px; }
  .version { display: none; }
  .head-grid, .guide-grid, .mag-grid, .read-row, .footer-grid { grid-template-columns: 1fr; }
  .read-row time { justify-self: start; }
  .mag-card.tall, .mag-card.mid, .mag-card.short { min-height: 0; }
  .diff-table th[scope="row"] { width: auto; }
  .diff-foot { align-items: flex-start; flex-direction: column; }
  .lang-btn { padding: 6px 8px; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.55rem; }
  .section-head h2, .guide-main h2 { font-size: 1.35rem; }
  .prefer-form, .prefer-form input { width: 100%; }
}
