/* roulang page: index */
:root {
  --ink: #14110E;
  --lift: #221C17;
  --lift-2: #2C261F;
  --paper: #F4EBDD;
  --text: #F7F1E8;
  --muted: #B7A89A;
  --accent: #E0A15A;
  --accent-deep: #C4843A;
  --accent-press: #A86E30;
  --line: #3A3128;
  --footer: #0E0C0A;
  --radius: 2px;
  --header-h: 68px;
  --max: 1120px;
  --bs-body-bg: #14110E;
  --bs-body-color: #F7F1E8;
  --bs-primary: #E0A15A;
  --bs-border-radius: 2px;
  --bs-link-color: #F4EBDD;
  --bs-link-hover-color: #E0A15A;
  --bs-border-color: #3A3128;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--paper); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--ink); }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1, h2, h3, .brand, .footer-brand {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "Songti SC", serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}
p { margin: 0 0 1.1em; }
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.idx {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}
.block-head { margin-bottom: 22px; max-width: 760px; }
.block-head h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 0 0 14px; }
.prose {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 760px;
}
.band { padding: 76px 0; background: var(--ink); }
.band-alt { background: var(--lift); }
.tag {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.5;
  padding: 0 6px;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.btn-solid, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-solid {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-solid:hover { background: var(--accent-deep); color: var(--ink); transform: translateY(1px); }
.btn-solid:active { background: var(--accent-press); color: var(--ink); transform: translateY(2px); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); transform: translateY(1px); }
.btn-ghost:active { transform: translateY(2px); }
.link-grow {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 1px;
  transition: background-size .28s ease, color .2s ease;
}
.link-grow:hover { background-size: 100% 1px; color: var(--accent); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: rgba(20, 17, 14, 0.96);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}
.nav-shell {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav-side { display: flex; align-items: center; gap: 6px; min-width: 220px; }
.nav-side.right { justify-content: flex-end; }
.nav-link {
  position: relative;
  color: var(--paper);
  font-size: 14px;
  padding: 8px 12px;
  background-image: none;
}
.nav-link:hover { color: var(--accent); }
.nav-link.is-active { color: var(--paper); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
}
.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--paper);
  font-size: 18px;
  white-space: nowrap;
  z-index: 2;
}
.brand:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--paper);
  margin: 5px auto;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 18px;
  background: var(--lift);
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  color: var(--paper);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.is-active { color: var(--accent); }

.hero {
  background: var(--ink);
  padding: calc(var(--header-h) + 54px) 0 36px;
  border-bottom: 1px solid var(--accent);
}
.hero h1 {
  font-size: clamp(1.85rem, 4.6vw, 3.5rem);
  margin: 0 0 12px;
  max-width: 16ch;
}
.sub {
  color: var(--paper);
  font-size: 17px;
  margin-bottom: 16px;
}
.intro {
  color: var(--muted);
  max-width: 740px;
  font-size: 16px;
  line-height: 1.75;
}
.hero-actions { margin: 8px 0 6px; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.metric { padding: 18px 18px 0 0; }
.metric b {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--paper);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  animation: rise .55s ease both;
}
.metric:nth-child(2) b { animation-delay: .06s; }
.metric:nth-child(3) b { animation-delay: .12s; }
.metric:nth-child(4) b { animation-delay: .18s; }
.metric span { color: var(--muted); font-size: 13px; }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.poster-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.poster {
  flex: 0 0 calc((100% - 70px) / 6);
  scroll-snap-align: start;
  color: var(--text);
  min-width: 0;
}
.poster-frame {
  aspect-ratio: 2 / 3;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease;
}
.poster-frame img { width: 100%; height: 100%; object-fit: cover; }
.poster:hover .poster-frame { transform: translateY(-2px); }
.poster-cap { display: block; padding-top: 10px; }
.poster-cap strong {
  display: block;
  margin-top: 6px;
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 16px;
  font-weight: 600;
}
.poster-cap em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.cell {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 16px;
  min-height: 140px;
}
.band-alt .cell { background: #1A1613; }
.bento-lg { grid-column: span 8; grid-row: span 2; min-height: 292px; }
.bento-sm { grid-column: span 4; }
.bento-n { grid-column: span 3; min-height: 160px; }
.cell h3 { font-size: 1.35rem; margin: 8px 0 10px; }
.cell p { color: var(--muted); margin: 0; font-size: 14.5px; }
.cell .kicker { color: var(--accent); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 0.08em; }

.scene-list { display: flex; flex-direction: column; gap: 10px; }
.scene {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
}
.scene:hover { background: var(--lift-2); color: var(--text); }
.scene strong {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 18px;
}
.scene span { color: var(--muted); font-size: 14.5px; }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.compare-col { padding: 8px 8px 0 0; }
.compare-col + .compare-col {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  padding-right: 0;
}
.compare-col h3 { font-size: 1.4rem; margin: 0 0 8px; }
.compare-col .note { color: var(--muted); min-height: 4.8em; }
.bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 42px;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
}
.track { height: 6px; background: #2A241E; position: relative; }
.track i {
  display: block;
  height: 100%;
  width: var(--w);
  background: #8C7358;
}
.compare-col.after .track i { background: var(--accent); }
.bar-row em { font-style: normal; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--paper); font-size: 12px; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px 12px;
  min-height: 132px;
  background: #1A1613;
}
.day b {
  display: block;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}
.day strong { display: block; margin: 12px 0 4px; font-size: 18px; font-family: "Songti SC", "Noto Serif SC", serif; }
.day span { color: var(--muted); font-size: 13px; }

.miles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.mile { border-top: 1px solid var(--accent); padding-top: 14px; }
.mile .n {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--accent);
  font-size: 12px;
}
.mile h3 { font-size: 1.25rem; margin: 8px 0; }
.mile p { color: var(--muted); margin: 0; font-size: 14.5px; }

.feature {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.feature-mark {
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: "Songti SC", "Noto Serif SC", serif;
  letter-spacing: 0.12em;
}
.feature h3 { margin: 8px 0; font-size: 1.45rem; }
.feature p { color: var(--muted); }
.news-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.news-row:hover { background: var(--lift-2); color: var(--text); }
.news-row b { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--accent); font-weight: 500; }
.news-row strong { display: block; font-size: 16px; }
.news-row span { color: var(--muted); font-size: 14px; }
.more-row { margin-top: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 860px; }
.chip {
  border: 1px solid var(--line);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 14px;
  background: transparent;
  transition: border-color .2s ease;
}
.chip:hover { border-color: var(--accent); color: var(--paper); }

.guard {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.guard svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.4; }
.guard h3 { font-size: 1.15rem; margin: 0 0 6px; }
.guard p { margin: 0; color: var(--muted); font-size: 14.5px; }

.qa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.qa article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 8px;
  background: #1A1613;
}
.qa h3 { font-size: 1.12rem; margin: 0 0 8px; }
.qa p { color: var(--muted); font-size: 14.5px; }

.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-btn-focus-box-shadow: none; }
.accordion-item {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.accordion-button {
  background: var(--lift);
  color: var(--text);
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 1.08rem;
  box-shadow: none;
  border-radius: var(--radius);
  padding: 16px 18px;
}
.accordion-button:not(.collapsed) {
  background: #2A241E;
  color: var(--paper);
  box-shadow: none;
}
.accordion-button:hover { color: var(--accent); }
.accordion-button::after { filter: grayscale(1) brightness(2); }
.accordion-button:focus { box-shadow: none; }
.accordion-body { background: #1A1613; color: var(--muted); line-height: 1.75; padding: 4px 18px 16px; }

.entry-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; }
.entry {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #1A1613;
  color: var(--text);
}
.entry:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); transition: transform .2s ease, border-color .2s ease; }
.entry.narrow { background: var(--ink); }
.entry h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0; }
.entry p { color: var(--muted); margin: 0; }

.intent-form { max-width: 760px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--paper); font-size: 14px; }
.field input, .field textarea {
  width: 100%;
  background: var(--ink);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  line-height: 1.5;
}
.band-alt .field input, .band-alt .field textarea { background: #14110E; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { min-height: 120px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 16px; }
.choices label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--paper); }
input[type="radio"] { accent-color: var(--accent); }
.form-tip { min-height: 1.5em; color: var(--accent); font-size: 14px; }
.form-done {
  border: 1px solid var(--accent);
  padding: 22px 18px;
  border-radius: var(--radius);
  color: var(--paper);
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.site-footer {
  background: var(--footer);
  border-top: 1px solid var(--line);
  padding: 42px 0 32px;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 28px; }
.footer-brand { font-size: 1.35rem; margin: 0 0 10px; color: var(--paper); }
.footer-label {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.site-footer a { display: block; color: var(--paper); padding: 4px 0; }
.site-footer a:hover { color: var(--accent); }
.copyline { margin-top: 8px; color: var(--muted); }

@media (max-width: 1024px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .bento-lg { grid-column: span 12; grid-row: auto; min-height: 0; }
  .bento-sm { grid-column: span 6; }
  .bento-n { grid-column: span 6; }
  .nav-side { min-width: 0; }
  .brand { font-size: 16px; }
}
@media (max-width: 991.98px) {
  .nav-side { display: none; }
  .nav-toggle { display: inline-block; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .brand { position: static; transform: none; font-size: 16px; }
  .nav-shell { justify-content: center; }
  .poster { flex-basis: 42%; }
  .miles { display: block; border-left: 1px solid var(--line); margin-left: 6px; }
  .mile { border-top: 0; border-left: 0; padding: 0 0 22px 16px; position: relative; }
  .mile::before {
    content: "";
    width: 7px; height: 7px;
    background: var(--accent);
    position: absolute;
    left: -4px; top: 4px;
  }
  .feature { grid-template-columns: 120px 1fr; }
  .qa { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .band { padding: 52px 0; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .scene { grid-template-columns: 1fr; gap: 4px; }
  .compare { grid-template-columns: 1fr; }
  .compare-col + .compare-col { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; margin-top: 12px; }
  .week { grid-template-columns: repeat(4, 1fr); }
  .news-row { grid-template-columns: 64px 1fr; }
  .news-row .side-tag { display: none; }
  .entry-grid, .pair, .footer-grid { grid-template-columns: 1fr; }
  .bento-sm, .bento-n { grid-column: span 12; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 28px); }
  .poster { flex-basis: 72%; }
  .week { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .feature { grid-template-columns: 1fr; }
  .feature-mark { aspect-ratio: 2 / 1; max-height: 160px; }
  .bar-row { grid-template-columns: 72px 1fr 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* roulang page: category2 */
:root {
  --ink: #14110E;
  --lift: #221C17;
  --lift-2: #2C261F;
  --paper: #F4EBDD;
  --text: #F7F1E8;
  --muted: #B7A89A;
  --accent: #E0A15A;
  --accent-deep: #C4843A;
  --accent-press: #A86E30;
  --line: #3A3128;
  --footer: #0E0C0A;
  --radius: 2px;
  --header-h: 68px;
  --max: 1120px;
  --bs-body-bg: #14110E;
  --bs-body-color: #F7F1E8;
  --bs-primary: #E0A15A;
  --bs-border-radius: 2px;
  --bs-link-color: #F4EBDD;
  --bs-link-hover-color: #E0A15A;
  --bs-border-color: #3A3128;
  color-scheme: dark;
}
/* roulang page: category2 */
:root {
  --ink: #14110E;
  --lift: #221C17;
  --lift-2: #2C261F;
  --paper: #F4EBDD;
  --text: #F7F1E8;
  --muted: #B7A89A;
  --accent: #E0A15A;
  --accent-deep: #C4843A;
  --accent-press: #A86E30;
  --line: #3A3128;
  --footer: #0E0C0A;
  --radius: 2px;
  --header-h: 68px;
  --max: 1120px;
  --bs-body-bg: #14110E;
  --bs-body-color: #F7F1E8;
  --bs-primary: #E0A15A;
  --bs-border-radius: 2px;
  --bs-link-color: #F4EBDD;
  --bs-link-hover-color: #E0A15A;
  --bs-border-color: #3A3128;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--paper); text-decoration: none; }
a:hover { color: var(--accent); }
p { margin: 0 0 0.9em; }
h1, h2, h3, .brand, .footer-brand {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "Songti SC", serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.tag {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.5;
  padding: 0 6px;
  letter-spacing: 0.04em;
  vertical-align: middle;
  background: transparent;
}
.tag.soft {
  border-color: var(--line);
  color: var(--paper);
}
.btn-solid, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-solid {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-solid:hover { background: var(--accent-deep); color: var(--ink); transform: translateY(1px); }
.btn-solid:active { background: var(--accent-press); color: var(--ink); transform: translateY(2px); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); transform: translateY(1px); }
.btn-ghost:active { transform: translateY(2px); }
.link-grow {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 1px;
  transition: background-size .28s ease, color .2s ease;
}
.link-grow:hover { background-size: 100% 1px; color: var(--accent); }
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: rgba(20, 17, 14, 0.96);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}
.nav-shell {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav-side { display: flex; align-items: center; gap: 6px; min-width: 220px; }
.nav-side.right { justify-content: flex-end; }
.nav-link {
  position: relative;
  color: var(--paper);
  font-size: 14px;
  padding: 8px 12px;
  background-image: none;
}
.nav-link:hover { color: var(--accent); }
.nav-link.is-active { color: var(--paper); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
}
.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--paper);
  font-size: 18px;
  white-space: nowrap;
  z-index: 2;
}
.brand:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  position: relative;
  z-index: 3;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--paper);
  margin: 5px auto;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 18px;
  background: var(--lift);
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  color: var(--paper);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.is-active { color: var(--accent); }
.page-hero {
  position: relative;
  background: var(--lift);
  padding: calc(var(--header-h) + 72px) 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--accent);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 0 100%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.hero-narrow { max-width: 720px; margin: 0 auto; text-align: center; }
.page-hero h1 {
  font-size: clamp(1.85rem, 4.6vw, 3.4rem);
  margin: 0 0 14px;
  line-height: 1.15;
}
.page-hero .sub {
  color: var(--muted);
  margin: 0 auto 18px;
  max-width: 36em;
}
.chap-index {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 0 0 22px;
  padding: 0;
}
.chap-index li {
  color: var(--muted);
  font-size: 13px;
}
.chap-index b {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 12px;
}
.band { padding: 72px 0; background: var(--ink); border-bottom: 1px solid var(--line); }
.band.lift { background: var(--lift); }
.sec-title { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0 0 18px; max-width: 18em; }
.sec-lead { color: var(--muted); max-width: 40em; margin-bottom: 22px; }
.chapter-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}
.chapter-card {
  flex: 0 0 82%;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--ink);
  border-radius: var(--radius);
  padding: 18px 18px 8px;
  min-height: 180px;
}
.chapter-card .num {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.chapter-card h3 { margin: 10px 0 8px; font-size: 1.35rem; }
.chapter-card p { color: var(--muted); }
.poster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
.poster-card {
  display: block;
  color: var(--text);
  border-radius: var(--radius);
  transition: transform .2s ease, background-color .2s ease;
}
.poster-card:hover { transform: translateY(-2px); color: var(--text); background: var(--lift-2); }
.poster-frame {
  aspect-ratio: 2 / 3;
  background: var(--ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
  color: var(--accent);
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  letter-spacing: 0.16em;
  font-size: 18px;
}
.band.lift .poster-frame { background: #1a1613; }
.poster-card h3 { margin: 12px 0 6px; font-size: 1.28rem; padding: 0 2px; }
.poster-card p { color: var(--muted); padding: 0 2px; min-height: 4.8em; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px 12px; }
.more-row { margin-top: 22px; padding-top: 8px; }
.legend { display: flex; flex-direction: column; }
.legend-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.legend-item p { color: var(--muted); margin: 0; }
.v-time { list-style: none; margin: 8px 0 0; padding: 0; max-width: 760px; }
.v-time li {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  padding: 0 0 26px 0;
}
.v-time li::before {
  content: "";
  position: absolute;
  left: 108px;
  top: 8px;
  bottom: -8px;
  width: 1px;
  background: var(--line);
}
.v-time li:last-child::before { bottom: auto; height: 8px; }
.v-time time {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--accent);
  font-size: 13px;
  padding-top: 4px;
}
.v-time h3 { margin: 0 0 6px; font-size: 1.2rem; position: relative; padding-left: 16px; }
.v-time h3::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.45em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.v-time p { color: var(--muted); margin: 0; padding-left: 16px; }
.prose { max-width: 720px; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 1.15em; }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qa-item {
  border: 1px solid var(--line);
  background: var(--lift);
  border-radius: var(--radius);
  padding: 18px 18px 8px;
}
.band.lift .qa-item { background: var(--ink); }
.qa-item h3 { font-size: 1.15rem; margin: 0 0 8px; }
.qa-item p { color: var(--muted); }
.intent-narrow { max-width: 560px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--paper); }
input, textarea {
  width: 100%;
  background: var(--ink);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  line-height: 1.6;
}
.band.lift input, .band.lift textarea { background: #14110E; }
input:focus, textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-ok { color: var(--accent); margin-top: 12px; }
.site-footer {
  background: var(--footer);
  border-top: 1px solid var(--line);
  padding: 42px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 28px;
}
.footer-brand { font-size: 1.25rem; margin: 0 0 8px; }
.footer-label {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.site-footer a { display: block; color: var(--paper); padding: 4px 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { color: var(--muted); }
.copyline { color: var(--muted); margin: 0; }
.chapter-rail::-webkit-scrollbar { height: 6px; }
.chapter-rail::-webkit-scrollbar-thumb { background: var(--line); }
@media (max-width: 991.98px) {
  .nav-side { display: none; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .brand { font-size: 16px; }
  .chapter-card { flex-basis: 46%; }
}
@media (max-width: 767.98px) {
  .band { padding: 48px 0; }
  .poster-grid, .qa-grid, .footer-grid { grid-template-columns: 1fr; }
  .chapter-card { flex-basis: 82%; }
  .v-time li { grid-template-columns: 86px 1fr; }
  .v-time li::before { left: 86px; }
  .legend-item { grid-template-columns: 76px 1fr; gap: 12px; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
}
@media (max-width: 520px) {
  .brand { font-size: 14px; max-width: calc(100% - 120px); overflow: hidden; text-overflow: ellipsis; }
  .page-hero { padding-top: calc(var(--header-h) + 48px); }
  .chap-index { gap: 8px 12px; }
  .poster-card p { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* roulang page: category1 */
:root {
 --ink: #14110E;
 --lift: #221C17;
 --lift-2: #2C261F;
 --paper: #F4EBDD;
 --text: #F7F1E8;
 --muted: #B7A89A;
 --accent: #E0A15A;
 --accent-deep: #C4843A;
 --accent-press: #A86E30;
 --line: #3A3128;
 --footer: #0E0C0A;
 --radius: 2px;
 --header-h: 68px;
 --max: 1120px;
 --bs-body-bg: #14110E;
 --bs-body-color: #F7F1E8;
 --bs-primary: #E0A15A;
 --bs-border-radius: 2px;
 --bs-link-color: #F4EBDD;
 --bs-link-hover-color: #E0A15A;
 --bs-border-color: #3A3128;
 color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
 margin: 0;
 background: var(--ink);
 color: var(--text);
 font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Heiti SC", sans-serif;
 font-size: 16px;
 line-height: 1.75;
 text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--paper); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, .brand, .footer-brand {
 font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
 font-weight: 600;
 letter-spacing: -0.03em;
 line-height: 1.15;
 color: var(--text);
}
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.tag {
 display: inline-block;
 border: 1px solid var(--accent);
 color: var(--accent);
 border-radius: var(--radius);
 font-size: 12px;
 line-height: 1.5;
 padding: 0 6px;
 letter-spacing: 0.04em;
 vertical-align: middle;
 background: transparent;
}
.btn-solid, .btn-ghost {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 42px;
 padding: 0 18px;
 border-radius: var(--radius);
 border: 1px solid transparent;
 cursor: pointer;
 transition: background-color .2s ease, transform .2s ease, color .2s ease, border-color .2s ease;
 text-decoration: none;
 line-height: 1;
}
.btn-solid { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-solid:hover { background: var(--accent-deep); color: var(--ink); transform: translateY(1px); }
.btn-solid:active { background: var(--accent-press); color: var(--ink); transform: translateY(2px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); transform: translateY(1px); }
.btn-ghost:active { transform: translateY(2px); }
.link-grow {
 background-image: linear-gradient(currentColor, currentColor);
 background-repeat: no-repeat;
 background-position: left bottom;
 background-size: 0 1px;
 transition: background-size .28s ease, color .2s ease;
 color: var(--paper);
}
.link-grow:hover { background-size: 100% 1px; color: var(--accent); }
.site-header {
 position: fixed;
 inset: 0 0 auto 0;
 z-index: 40;
 background: rgba(20, 17, 14, 0.96);
 border-bottom: 1px solid var(--line);
 min-height: var(--header-h);
}
.nav-shell {
 min-height: var(--header-h);
 display: flex;
 align-items: center;
 justify-content: space-between;
 position: relative;
}
.nav-side { display: flex; align-items: center; gap: 6px; min-width: 220px; }
.nav-side.right { justify-content: flex-end; }
.nav-link {
 position: relative;
 color: var(--paper);
 font-size: 14px;
 padding: 8px 12px;
 background-image: none;
}
.nav-link:hover { color: var(--accent); }
.nav-link.is-active { color: var(--paper); }
.nav-link.is-active::after {
 content: "";
 position: absolute;
 left: 12px;
 right: 12px;
 bottom: 2px;
 height: 2px;
 background: var(--accent);
}
.brand {
 position: absolute;
 left: 50%;
 top: 50%;
 transform: translate(-50%, -50%);
 color: var(--paper);
 font-size: 18px;
 white-space: nowrap;
 z-index: 2;
 max-width: calc(100% - 120px);
 overflow: hidden;
 text-overflow: ellipsis;
}
.brand:hover { color: var(--accent); }
.nav-toggle {
 display: none;
 width: 42px;
 height: 42px;
 border: 1px solid var(--line);
 background: transparent;
 border-radius: var(--radius);
 padding: 0;
 position: relative;
 z-index: 3;
}
.nav-toggle span { display: block; width: 18px; height: 1px; background: var(--paper); margin: 5px auto; }
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle:active { transform: translateY(1px); }
.mobile-nav {
 display: flex;
 flex-direction: column;
 padding: 8px 20px 18px;
 background: var(--lift);
 border-top: 1px solid var(--line);
}
.mobile-nav a { color: var(--paper); padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav a.is-active { color: var(--accent); }
.band { padding: 72px 0; background: var(--ink); border-bottom: 1px solid var(--line); }
.band.alt { background: var(--lift); }
.page-head { padding: calc(var(--header-h) + 52px) 0 40px; background: var(--ink); border-bottom: 1px solid var(--line); }
.kicker {
 font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
 font-size: 12px;
 letter-spacing: 0.12em;
 color: var(--accent);
 margin: 0 0 10px;
}
.page-head h1 {
 font-size: clamp(1.85rem, 4.6vw, 3.4rem);
 margin: 0 0 14px;
 max-width: 14em;
}
.page-note { color: var(--muted); margin: 0; max-width: 40em; }
.band h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); margin: 0 0 18px; max-width: 16em; }
.subhead { color: var(--muted); margin: -6px 0 22px; max-width: 42em; }
.filter-block { margin-top: 8px; }
.filter-row {
 display: grid;
 grid-template-columns: 72px 1fr;
 gap: 12px 16px;
 align-items: start;
 padding: 12px 0;
 border-bottom: 1px solid var(--line);
}
.filter-row b {
 font-weight: 500;
 color: var(--paper);
 font-size: 14px;
 padding-top: 6px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
 border: 1px solid var(--line);
 background: transparent;
 color: var(--paper);
 border-radius: var(--radius);
 min-height: 34px;
 padding: 4px 12px;
 cursor: pointer;
 transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip:active { transform: translateY(1px); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.chip.is-on:hover { background: var(--accent-deep); color: var(--ink); }
.entry-list { display: flex; flex-direction: column; }
.entry {
 display: grid;
 grid-template-columns: 112px 1fr;
 gap: 18px;
 align-items: center;
 padding: 16px 10px;
 border-bottom: 1px solid var(--line);
 transition: background-color .2s ease;
}
.entry:hover { background: var(--lift-2); }
.poster {
 aspect-ratio: 2 / 3;
 border: 1px solid var(--accent);
 background: var(--ink);
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--accent);
 font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
 letter-spacing: 0.16em;
 font-size: 15px;
}
.entry-body h3 { margin: 0 0 6px; font-size: 1.28rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.entry-meta em { font-style: normal; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--paper); }
.entry p { color: var(--muted); margin: 0; }
.empty-note { color: var(--muted); padding: 18px 0; margin: 0; }
.more-row { margin-top: 22px; }
.prose { max-width: 74ch; }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 0.5em; }
.prose p { color: var(--muted); margin: 0 0 1.15em; }
.scene-line {
 display: grid;
 grid-template-columns: 132px 1fr 92px;
 gap: 14px;
 align-items: center;
 padding: 14px 0;
 border-bottom: 1px solid var(--line);
 color: var(--muted);
 font-size: 14px;
}
.scene-line strong { color: var(--text); font-weight: 600; font-family: "Songti SC", "Noto Serif SC", serif; }
.scene-line span { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--paper); font-size: 12px; text-align: right; }
.meter { height: 2px; background: #3A3128; position: relative; }
.meter i { display: block; height: 2px; background: var(--accent); width: var(--w); }
.news-row {
 display: grid;
 grid-template-columns: 92px 1fr;
 gap: 14px;
 align-items: center;
 padding: 16px 10px;
 border-bottom: 1px solid var(--line);
 color: var(--text);
 transition: background-color .2s ease;
}
.news-row:hover { background: var(--lift-2); color: var(--text); }
.news-row b { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--accent); font-weight: 500; }
.news-row strong { display: block; font-size: 17px; font-family: "Songti SC", "Noto Serif SC", serif; }
.news-row span { color: var(--muted); font-size: 14px; }
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-bg: transparent; --bs-accordion-border-radius: 2px; --bs-accordion-btn-focus-box-shadow: none; }
.accordion-item { background: transparent; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.accordion-button {
 background: var(--lift-2);
 color: var(--text);
 box-shadow: none;
 font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
 font-size: 1.05rem;
 line-height: 1.45;
 padding: 16px 18px;
}
.accordion-button:not(.collapsed) { background: var(--lift-2); color: var(--accent); box-shadow: none; }
.accordion-button:hover { color: var(--accent); }
.accordion-button:focus { box-shadow: none; border-color: var(--accent); }
.accordion-button::after {
 background-image: none;
 width: 8px;
 height: 8px;
 border-right: 1px solid var(--accent);
 border-bottom: 1px solid var(--accent);
 transform: rotate(45deg);
 margin-left: 16px;
}
.accordion-button:not(.collapsed)::after { transform: rotate(225deg); }
.accordion-body { background: var(--ink); color: var(--muted); padding: 16px 18px 18px; }
.rel {
 display: grid;
 grid-template-columns: 64px 1fr;
 gap: 16px;
 padding: 18px 0;
 border-bottom: 1px solid var(--line);
}
.rel .idx { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--accent); padding-top: 4px; }
.rel h3 { margin: 0 0 6px; font-size: 1.22rem; }
.rel p { color: var(--muted); margin: 0; }
.site-footer { background: var(--footer); border-top: 1px solid var(--line); padding: 42px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand { font-size: 1.25rem; margin: 0 0 10px; }
.site-footer p { color: var(--muted); margin: 0 0 8px; }
.footer-label { color: var(--accent); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 0.12em; margin-bottom: 10px; }
.site-footer a { display: block; color: var(--paper); padding: 4px 0; }
.site-footer a:hover { color: var(--accent); }
.copyline { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
@media (max-width: 1024px) {
 .band { padding: 60px 0; }
 .entry { grid-template-columns: 100px 1fr; }
}
@media (max-width: 991.98px) {
 .nav-side { display: none; }
 .nav-toggle { display: inline-block; }
 .nav-shell { justify-content: flex-end; }
 .brand { font-size: 15px; }
 .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
 .wrap { width: min(var(--max), calc(100% - 28px)); }
 .page-head { padding-top: calc(var(--header-h) + 36px); }
 .band { padding: 48px 0; }
 .filter-row { grid-template-columns: 1fr; gap: 8px; }
 .scene-line { grid-template-columns: 1fr auto; }
 .scene-line .meter { grid-column: 1 / -1; }
 .news-row { grid-template-columns: 72px 1fr; }
 .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 520px) {
 .page-head h1 { font-size: 1.7rem; }
 .entry { grid-template-columns: 84px 1fr; gap: 12px; padding-inline: 4px; }
 .poster { font-size: 13px; letter-spacing: 0.08em; }
 .entry-body h3 { font-size: 1.08rem; }
 .rel { grid-template-columns: 42px 1fr; }
 .brand { font-size: 13px; max-width: calc(100% - 64px); }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after {
  animation: none !important;
  transition: none !important;
 }
}

/* roulang: framework shim */
/* 覆盖 Bootstrap 等对 a/btn 的全局默认，避免导航出现下划线/蓝链 */
.site-header a,.site-header a:hover,.navbar a,.navbar a:hover,.nav-links a,.nav-links a:hover,header nav a,header nav a:hover{text-decoration:none}
.site-header .btn,.navbar .btn,.nav-cta{text-decoration:none}
