/* roulang page: index */
:root {
  --paper: #FBF6F3;
  --alt: #F4E7EA;
  --ink: #2A1420;
  --muted: #6E4456;
  --primary: #C23B62;
  --deep: #7A2348;
  --amber: #E39B4A;
  --line: rgba(122,35,72,.16);
  --shadow: 0 12px 32px rgba(122,35,72,.08);
  --shadow-strong: 0 18px 40px rgba(122,35,72,.16);
  --radius: 28px;
  --header-h: 84px;
  --sider-w: 280px;
  --dock-h: 52px;
  --grad: linear-gradient(135deg, #7A2348 0%, #C23B62 52%, #E39B4A 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
a { color: var(--deep); text-decoration: none; }
a:hover { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid #7A2348;
  outline-offset: 2px;
}
::selection { background: #F3C3D2; color: var(--ink); }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.num { font-family: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,246,243,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  min-height: var(--header-h);
}
.header-inner {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--deep); }
.age, .pill, .score, .medal, .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  line-height: 1;
}
.age {
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 6px 8px;
  flex: 0 0 auto;
}
.brand-text { font-weight: 800; font-size: 15px; line-height: 1.35; max-width: 240px; }
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav a {
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
}
.top-nav a:hover, .top-nav a.active { background: #F8E4EA; color: var(--deep); }
.doc-search { flex: 1 1 220px; max-width: 360px; position: relative; }
.doc-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px 10px 40px;
  font-size: 14px;
}
.doc-search input::placeholder { color: #A07A88; }
.doc-search input:focus { border-color: var(--primary); box-shadow: none; }
.doc-search .lens {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border: 2px solid var(--deep); border-radius: 50%;
}
.doc-search .lens::after {
  content: ""; position: absolute; width: 7px; height: 2px; background: var(--deep);
  right: -5px; bottom: -1px; transform: rotate(40deg);
}
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.version-pill, .lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.lang-switch { display: flex; gap: 4px; }
.lang-btn.is-on { background: var(--deep); color: #fff; border-color: var(--deep); }
.lang-btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-brand, .btn-line, .toc-toggle {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 750;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-position .25s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.btn-brand {
  background-image: var(--grad);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 8px 18px rgba(194,59,98,.22);
}
.btn-brand:hover { background-position: 100% 50%; color: #fff; transform: translateY(-1px); }
.btn-brand:active { transform: translateY(0); }
.btn-line { background: #fff; color: var(--deep); border-color: rgba(122,35,72,.28); }
.btn-line:hover { background: #F8E4EA; color: var(--deep); }
.toc-toggle { display: none; background: #fff; border-color: var(--line); color: var(--deep); }
.search-empty {
  display: none;
  margin: 18px auto;
  width: min(1120px, calc(100% - 40px));
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--muted);
}

.layout { display: flex; align-items: flex-start; }
.sider {
  width: var(--sider-w);
  flex: 0 0 var(--sider-w);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow: auto;
  padding: 22px 16px 80px;
  border-right: 1px solid var(--line);
  background: #fffdfb;
}
.sider-label { font-size: 12px; letter-spacing: .12em; color: var(--muted); margin: 0 8px 10px; }
.toc { display: flex; flex-direction: column; gap: 4px; }
.toc a {
  color: var(--ink);
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid transparent;
}
.toc a:hover { background: var(--alt); color: var(--deep); }
.toc a.active { background: #F8E4EA; color: var(--deep); border-color: var(--line); font-weight: 750; }
main { flex: 1 1 auto; min-width: 0; padding-bottom: calc(var(--dock-h) + 24px); }
section { padding: 72px 0; }
section:nth-of-type(even) { background: var(--alt); }
section:nth-of-type(odd) { background: var(--paper); }
.kicker { color: var(--primary); font-size: 13px; font-weight: 750; letter-spacing: .08em; margin-bottom: 8px; }
h1 { font-size: 40px; line-height: 1.25; font-weight: 850; margin: 0 0 14px; }
h2 { font-size: 28px; line-height: 1.35; font-weight: 820; margin: 0 0 12px; }
h3 { font-size: 18px; line-height: 1.45; font-weight: 780; margin: 0 0 8px; }
.lead { color: var(--ink); margin: 0 0 22px; max-width: 760px; }
.hero-band {
  background-image: var(--grad);
  border-radius: 32px;
  padding: 36px 36px 28px;
  color: #fff;
  box-shadow: var(--shadow-strong);
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 28px;
  align-items: end;
}
.hero-band h1, .hero-band .lead, .hero-band .kicker { color: #fff; }
.hero-band .lead { opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero-band .btn-line { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.hero-band .btn-line:hover { background: #fff; color: var(--deep); }
.badge-col { display: grid; gap: 12px; }
.data-badge {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 22px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(4px);
}
.data-badge span { font-size: 13px; opacity: .9; }
.data-badge strong { font-size: 28px; font-weight: 780; }

.card-xl, .scene-card, .voice-card, .diff-card, .entry-card, .path-card, .channel-card, .manual-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-xl:hover, .scene-card:hover, .voice-card:hover, .diff-card:hover, .entry-card:hover, .path-card:hover, .channel-card:hover, .manual-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}
.card-xl { padding: 28px; display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.score {
  width: 108px; height: 108px;
  background-image: var(--grad);
  color: #fff;
  flex-direction: column;
  font-weight: 800;
}
.score b { font-size: 32px; }
.score small { font-size: 12px; opacity: .9; margin-top: 4px; }
.bar-list { display: grid; gap: 16px; }
.bar-row { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; }
.bar-meta { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; margin-bottom: 8px; }
.track { height: 8px; background: #F6D5DE; border-radius: 999px; overflow: hidden; }
.fill { display: block; height: 100%; background-image: var(--grad); border-radius: 999px; }
.scene-grid, .voice-grid, .path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scene-card, .voice-card, .path-card, .manual-card, .channel-card { padding: 22px; }
.tag { display: inline-flex; border-radius: 999px; padding: 4px 10px; background: #F8E4EA; color: var(--deep); font-size: 12px; font-weight: 750; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: center; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.medal {
  width: 48px; height: 48px; color: #fff; font-weight: 800;
  background-image: var(--grad);
}
.abstract {
  min-height: 360px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 20%, rgba(227,155,74,.9), transparent 32%),
    radial-gradient(circle at 80% 30%, rgba(194,59,98,.85), transparent 28%),
    linear-gradient(160deg, #7A2348, #C23B62 55%, #E7B07A);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.abs-card {
  position: absolute; right: 24px; left: 24px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.abs-card:nth-child(1) { top: 36px; }
.abs-card:nth-child(2) { top: 126px; }
.abs-card:nth-child(3) { top: 216px; }
.voice-top, .channel-top, .rank-main { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.revisit { background: var(--grad); color: #fff; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.diff-grid, .channel-grid, .caliber { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.diff-card { padding: 26px; }
.diff-card.yes { background: #fff; }
.diff-card.no { background: #2A1420; color: #FBF6F3; border-color: #2A1420; }
.diff-card.no h3, .diff-card.no li { color: #FBF6F3; }
.diff-card ul, .manual-card ul { margin: 0; padding-left: 18px; }
.diff-card li, .manual-card li { margin: 6px 0; }
.news-list { display: grid; gap: 12px; }
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 18px;
}
.news-item time { color: var(--primary); font-weight: 800; }
.qa { display: grid; gap: 10px; }
.qa details { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 0 18px; }
.qa summary { cursor: pointer; font-weight: 780; padding: 14px 0; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa details p { margin: 0 0 14px; color: var(--muted); }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.assure article {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px;
  display: flex; gap: 12px; align-items: flex-start;
}
.chip { width: 54px; height: 54px; background: var(--grad); color: #fff; font-weight: 850; flex: 0 0 auto; }
.channel-card h3 { font-size: 22px; }
.rank-list { display: grid; gap: 10px; }
.rank-row {
  display: grid;
  grid-template-columns: 72px 1.3fr .7fr .9fr 1.4fr;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 14px;
}
.rank-row.top { background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.rank-no { font-weight: 850; color: var(--deep); }
.stars { color: var(--amber); letter-spacing: 1px; }
.path-card span, .manual-card span { color: var(--primary); font-weight: 800; font-size: 13px; }
.timeline { border-left: 2px solid rgba(194,59,98,.35); margin-left: 12px; display: grid; gap: 0; }
.time-item { position: relative; padding: 0 0 22px 22px; }
.time-item::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--grad);
}
.time-item h3 { font-size: 17px; }
.close-panel {
  border-radius: 32px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
}
.note { color: var(--muted); margin: 8px 0 0; }

.site-footer { background: #2A1420; color: #F8E7EC; padding: 42px 0 90px; }
.site-footer a { color: #F3C3D2; }
.foot-brand { font-weight: 850; font-size: 20px; color: #fff; display: block; margin-bottom: 8px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 16px; align-content: flex-start; }
.copy { margin-top: 18px; color: #E7C9D3; font-size: 14px; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  height: var(--dock-h);
  background: rgba(255,253,251,.96);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  backdrop-filter: blur(8px);
}
.dock p { margin: 0; font-weight: 750; }
.offcanvas { background: var(--paper); }
.offcanvas-header { border-bottom: 1px solid var(--line); }
.offcanvas .btn-close:focus { box-shadow: none; outline: 2px solid #7A2348; }

@media (max-width: 1199.98px) {
  .rank-row { grid-template-columns: 64px 1fr .8fr; }
  .rank-row .stars, .rank-row .short { grid-column: 2 / -1; }
}
@media (max-width: 991.98px) {
  :root { --header-h: 76px; }
  .sider { display: none; }
  .toc-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .doc-search { order: 5; flex: 1 1 100%; max-width: none; }
  .top-nav { order: 4; }
  .hero-band, .split, .card-xl, .diff-grid, .channel-grid, .foot-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  :root { --dock-h: 74px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  section { padding: 40px 0; }
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .scene-grid, .voice-grid, .path-grid, .assure { grid-template-columns: 1fr; }
  .hero-band { padding: 24px 18px; }
  .data-badge strong { font-size: 22px; }
  .lang-switch { display: none; }
  .close-panel { flex-direction: column; align-items: flex-start; }
  .header-tools .version-pill { display: none; }
  .rank-row { grid-template-columns: 56px 1fr; }
}
@media (max-width: 520px) {
  .brand-text { max-width: 150px; font-size: 13px; }
  .top-nav a { padding: 6px 8px; }
  .btn-brand, .btn-line { padding: 9px 12px; }
  .card-xl { padding: 18px; }
  .score { width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* roulang page: category2 */
:root {
 --paper: #FBF6F3;
 --alt: #F4E7EA;
 --ink: #2A1420;
 --muted: #6E4456;
 --primary: #C23B62;
 --deep: #7A2348;
 --amber: #E39B4A;
 --line: rgba(122,35,72,.16);
 --shadow: 0 12px 32px rgba(122,35,72,.08);
 --shadow-strong: 0 18px 40px rgba(122,35,72,.16);
 --radius: 28px;
 --header-h: 84px;
 --sider-w: 280px;
 --dock-h: 74px;
 --grad: linear-gradient(135deg, #7A2348 0%, #C23B62 52%, #E39B4A 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
 margin: 0;
 background: var(--paper);
 color: var(--ink);
 font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
 font-size: 16px;
 line-height: 1.75;
}
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
a { color: var(--deep); text-decoration: none; }
a:hover { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
 outline: 2px solid #7A2348;
 outline-offset: 2px;
}
::selection { background: #F4C3D2; color: #2A1420; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 40px; line-height: 1.28; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 28px; line-height: 1.35; font-weight: 800; margin-bottom: 18px; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 780; margin-bottom: 8px; }
.num { font-family: "SFMono-Regular", "Roboto Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.site-header {
 position: sticky;
 top: 0;
 z-index: 100;
 background: rgba(251,246,243,.94);
 border-bottom: 1px solid var(--line);
 backdrop-filter: blur(10px);
 min-height: var(--header-h);
}
.header-inner {
 width: min(1440px, calc(100% - 32px));
 margin: 0 auto;
 display: flex;
 align-items: center;
 gap: 16px;
 padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--deep); }
.age, .pill, .score, .medal, .chip {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 border-radius: 999px;
 line-height: 1;
}
.age {
 background-image: var(--grad);
 color: #fff;
 font-size: 12px;
 font-weight: 800;
 padding: 7px 8px;
 letter-spacing: .04em;
 flex: 0 0 auto;
}
.brand-text { font-weight: 800; font-size: 15px; line-height: 1.35; max-width: 240px; }
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav a {
 color: var(--ink);
 padding: 8px 12px;
 border-radius: 999px;
 font-size: 14px;
 font-weight: 650;
 white-space: nowrap;
}
.top-nav a:hover, .top-nav a.active { background: #F8E4EA; color: var(--deep); }
.doc-search { flex: 1 1 220px; max-width: 360px; position: relative; }
.doc-search input {
 width: 100%;
 border: 1px solid var(--line);
 background: #fff;
 color: var(--ink);
 border-radius: 999px;
 padding: 10px 16px 10px 40px;
 font-size: 14px;
}
.doc-search input::placeholder { color: #A07A88; }
.doc-search input:focus { border-color: var(--primary); box-shadow: none; outline: none; }
.doc-search .lens {
 position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
 width: 16px; height: 16px; border: 2px solid var(--deep); border-radius: 50%;
}
.doc-search .lens::after {
 content: ""; position: absolute; width: 7px; height: 2px; background: var(--deep);
 right: -5px; bottom: -1px; transform: rotate(40deg);
}
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.version-pill, .lang-btn {
 border: 1px solid var(--line);
 background: #fff;
 color: var(--muted);
 border-radius: 999px;
 padding: 6px 10px;
 font-size: 12px;
}
.lang-btn.is-on { background: var(--deep); color: #fff; border-color: var(--deep); }
.lang-btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-brand, .btn-line, .toc-toggle {
 border-radius: 999px;
 padding: 10px 16px;
 font-size: 14px;
 font-weight: 750;
 border: 1px solid transparent;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 transition: background-position .25s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
 cursor: pointer;
 text-decoration: none;
}
.btn-brand {
 background-image: var(--grad);
 background-size: 180% 180%;
 background-position: 0% 50%;
 color: #fff;
 box-shadow: 0 8px 18px rgba(194,59,98,.22);
}
.btn-brand:hover { background-position: 100% 50%; color: #fff; transform: translateY(-1px); }
.btn-brand:active { transform: translateY(0); }
.btn-line { background: #fff; color: var(--deep); border-color: rgba(122,35,72,.28); }
.btn-line:hover { background: #F8E4EA; color: var(--deep); }
.toc-toggle { background: #fff; color: var(--deep); border-color: var(--line); display: none; }
.search-empty {
 display: none;
 margin: 18px auto 0;
 width: min(1120px, calc(100% - 40px));
 background: #fff;
 border: 1px dashed var(--line);
 border-radius: 18px;
 padding: 14px 16px;
 color: var(--muted);
}
.shell {
 width: min(1440px, calc(100% - 32px));
 margin: 0 auto;
 display: grid;
 grid-template-columns: var(--sider-w) minmax(0, 1fr);
 gap: 28px;
 align-items: start;
}
.sider {
 position: sticky;
 top: calc(var(--header-h) + 16px);
 background: #fff;
 border: 1px solid var(--line);
 border-radius: 24px;
 box-shadow: var(--shadow);
 padding: 18px 14px;
}
.sider-label {
 margin: 2px 10px 10px;
 font-size: 12px;
 letter-spacing: .08em;
 color: var(--muted);
 font-weight: 750;
}
.toc { display: grid; gap: 4px; }
.toc a {
 color: var(--ink);
 border-radius: 14px;
 padding: 8px 10px;
 font-size: 14px;
 line-height: 1.45;
 border: 1px solid transparent;
}
.toc a:hover { background: var(--alt); color: var(--deep); }
.toc a.active { background: #F8E4EA; color: var(--deep); border-color: var(--line); font-weight: 750; }
main { flex: 1 1 auto; min-width: 0; padding-bottom: calc(var(--dock-h) + 24px); }
main .wrap { width: 100%; }
section { padding: 72px 0; }
main section:nth-of-type(even) { background: var(--alt); }
main section:nth-of-type(odd) { background: var(--paper); }
.lead { color: var(--ink); margin: 0 0 22px; max-width: 760px; }
.kicker { color: var(--primary); font-weight: 750; font-size: 13px; letter-spacing: .06em; margin-bottom: 10px; }
.mast {
 display: grid;
 grid-template-columns: 1.35fr .75fr;
 gap: 28px;
 align-items: stretch;
}
.answer-box, .note-card, .matrix-card, .quote-card, .step-row, .next-panel, .age-strip {
 background: #fff;
 border: 1px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
}
.answer-box { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.answer-label { font-size: 13px; color: var(--muted); margin: 0; }
.answer-box strong.num { font-size: 34px; line-height: 1; color: var(--deep); }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fact-list li {
 display: flex;
 justify-content: space-between;
 gap: 12px;
 padding-top: 8px;
 border-top: 1px solid var(--line);
 font-size: 14px;
}
.chip-row, .badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
 padding: 7px 12px;
 background: #fff;
 border: 1px solid var(--line);
 color: var(--deep);
 font-size: 13px;
 font-weight: 700;
}
.tag-fit { background: #F8E4EA; border-color: transparent; }
.tag-watch { background: #F7EFE6; color: #7A4E22; border-color: transparent; }
.tag-amber { background: rgba(227,155,74,.2); color: #7A4E22; border-color: transparent; }
.step-list { display: grid; gap: 18px; }
.step-row {
 padding: 22px;
 display: grid;
 grid-template-columns: 1.25fr .75fr;
 gap: 22px;
 align-items: center;
 transition: transform .2s ease, box-shadow .2s ease;
}
.step-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.step-row:nth-child(even) .step-copy { order: 2; }
.chap {
 display: inline-block;
 font-size: 12px;
 font-weight: 800;
 letter-spacing: .08em;
 color: var(--primary);
 margin-bottom: 6px;
}
.step-copy p, .note-card p, .quote-card p, .next-panel p, .age-strip p { margin-bottom: 0; color: var(--ink); }
.muted { color: var(--muted); }
.rank-art {
 border-radius: 22px;
 min-height: 168px;
 padding: 16px;
 background:
  radial-gradient(120px 80px at 20% 20%, rgba(227,155,74,.45), transparent 70%),
  linear-gradient(160deg, #F8E4EA, #FBF6F3 58%, #F3D3C4);
 border: 1px solid var(--line);
 display: grid;
 align-content: space-between;
 gap: 12px;
}
.medal {
 width: 64px;
 height: 64px;
 background-image: var(--grad);
 color: #fff;
 font-weight: 800;
 font-size: 22px;
 box-shadow: 0 8px 16px rgba(194,59,98,.25);
}
.medal.sm { width: 42px; height: 42px; font-size: 16px; }
.meter { height: 8px; background: rgba(122,35,72,.1); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background-image: var(--grad); border-radius: inherit; }
.score-line { display: flex; justify-content: space-between; align-items: baseline; }
.score-line b { font-size: 28px; color: var(--deep); }
.note-grid, .matrix-grid { display: grid; gap: 16px; }
.note-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.matrix-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.note-card, .matrix-card, .quote-card {
 padding: 22px;
 transition: transform .2s ease, box-shadow .2s ease;
}
.note-card:hover, .matrix-card:hover, .quote-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.note-card .idx {
 width: 36px; height: 36px; margin-bottom: 12px;
 background: #F8E4EA; color: var(--deep); font-weight: 800;
}
.matrix-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.matrix-top h3 { margin: 0; flex: 1; }
.score-pill {
 background-image: var(--grad);
 color: #fff;
 border-radius: 999px;
 padding: 6px 10px;
 font-size: 13px;
 font-weight: 800;
}
.quote-list { display: grid; gap: 14px; }
.quote-card { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; }
.quote-mark {
 font-size: 42px;
 line-height: 1;
 color: var(--primary);
 font-weight: 800;
}
.quote-card h3 { font-size: 18px; }
.timeline { display: grid; gap: 0; position: relative; }
.time-item {
 display: grid;
 grid-template-columns: 120px 18px 1fr;
 gap: 14px;
 padding: 0 0 22px;
}
.time-item time { color: var(--muted); font-size: 14px; padding-top: 2px; }
.rail { position: relative; }
.rail::before {
 content: "";
 width: 12px; height: 12px;
 border-radius: 50%;
 background-image: var(--grad);
 display: block;
 margin-top: 6px;
 box-shadow: 0 0 0 4px #F8E4EA;
}
.time-item:not(:last-child) .rail::after {
 content: "";
 position: absolute;
 width: 2px;
 top: 22px; bottom: -8px;
 left: 133px;
 background: rgba(122,35,72,.18);
}
.age-strip {
 padding: 22px 24px;
 display: flex;
 justify-content: space-between;
 gap: 18px;
 align-items: center;
}
.age-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
 padding: 8px 12px;
 background: #F8E4EA;
 color: var(--deep);
 font-weight: 800;
 font-size: 13px;
}
.next-panel {
 padding: 28px;
 display: flex;
 justify-content: space-between;
 gap: 18px;
 align-items: center;
}
.next-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dock {
 position: fixed;
 left: 0; right: 0; bottom: 0;
 z-index: 90;
 min-height: var(--dock-h);
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
 padding: 10px 18px;
 background: rgba(251,246,243,.96);
 border-top: 1px solid var(--line);
 backdrop-filter: blur(8px);
}
.dock p { margin: 0; color: var(--muted); font-size: 14px; }
.site-footer {
 background: #2A1420;
 color: #F8E4EA;
 padding: 48px 0 calc(var(--dock-h) + 28px);
}
.site-footer a { color: #F8E4EA; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; }
.foot-brand { display: block; font-weight: 800; font-size: 18px; line-height: 1.45; margin-bottom: 8px; }
.site-footer p { margin: 0; color: rgba(248,228,234,.86); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.foot-links a {
 border: 1px solid rgba(255,255,255,.2);
 border-radius: 999px;
 padding: 6px 12px;
 font-size: 14px;
}
.copy {
 margin-top: 22px;
 padding-top: 16px;
 border-top: 1px solid rgba(255,255,255,.12);
 color: rgba(255,255,255,.72);
 font-size: 13px;
}
.offcanvas { background: var(--paper); color: var(--ink); width: min(320px, 88vw); }
.offcanvas-header { border-bottom: 1px solid var(--line); }
.btn-close:focus { box-shadow: 0 0 0 2px #7A2348; }
@media (max-width: 1199.98px) {
 .header-inner { flex-wrap: wrap; }
 .doc-search { order: 8; flex: 1 1 100%; max-width: none; }
 .header-tools { margin-left: 0; }
}
@media (max-width: 991.98px) {
 .shell { grid-template-columns: 1fr; }
 .sider { display: none; }
 .toc-toggle { display: inline-flex; }
 .mast, .step-row, .quote-card, .age-strip, .next-panel, .foot-grid { grid-template-columns: 1fr; display: grid; }
 .step-row:nth-child(even) .step-copy { order: 0; }
 .note-grid, .matrix-grid { grid-template-columns: 1fr 1fr; }
 .quote-card { grid-template-columns: 1fr; }
 .quote-mark { display: none; }
 .time-item:not(:last-child) .rail::after { left: 125px; }
 h1 { font-size: 32px; }
}
@media (max-width: 767.98px) {
 section { padding: 40px 0; }
 h1 { font-size: 28px; }
 h2 { font-size: 22px; }
 .note-grid, .matrix-grid { grid-template-columns: 1fr; }
 .top-nav { order: 7; width: 100%; overflow-x: auto; padding-bottom: 2px; }
 .brand-text { max-width: 46vw; font-size: 13px; }
 .header-tools .btn-brand { padding: 8px 12px; }
 .dock { align-items: flex-start; flex-direction: column; }
 .next-panel, .age-strip { align-items: flex-start; }
 .time-item { grid-template-columns: 18px 1fr; }
 .time-item time { grid-column: 2; }
 .time-item:not(:last-child) .rail::after { left: 5px; }
}
@media (min-width: 992px) {
 .dock { min-height: 52px; padding: 8px 28px; }
}

/* roulang page: category1 */
:root {
  --paper: #FBF6F3;
  --alt: #F4E7EA;
  --ink: #2A1420;
  --muted: #6E4456;
  --primary: #C23B62;
  --deep: #7A2348;
  --amber: #E39B4A;
  --line: rgba(122,35,72,.16);
  --shadow: 0 12px 32px rgba(122,35,72,.08);
  --shadow-strong: 0 18px 40px rgba(122,35,72,.16);
  --radius: 28px;
  --header-h: 84px;
  --sider-w: 280px;
  --dock-h: 64px;
  --grad: linear-gradient(135deg, #7A2348 0%, #C23B62 52%, #E39B4A 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }
a { color: var(--deep); text-decoration: none; }
a:hover { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #7A2348;
  outline-offset: 2px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,246,243,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  min-height: var(--header-h);
}
.header-inner {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--deep); }
.age, .pill, .score, .medal, .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  line-height: 1;
}
.age {
  background: var(--deep);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  letter-spacing: .04em;
  flex: 0 0 auto;
}
.brand-text { font-weight: 800; font-size: 15px; line-height: 1.35; max-width: 240px; }
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav a {
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
}
.top-nav a:hover, .top-nav a.active { background: #F8E4EA; color: var(--deep); }
.doc-search { flex: 1 1 220px; max-width: 360px; position: relative; }
.doc-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px 10px 40px;
  font-size: 14px;
}
.doc-search input::placeholder { color: #A07A88; }
.doc-search input:focus { border-color: var(--primary); box-shadow: none; outline: none; }
.doc-search .lens {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border: 2px solid var(--deep); border-radius: 50%;
  pointer-events: none;
}
.doc-search .lens::after {
  content: ""; position: absolute; width: 7px; height: 2px; background: var(--deep);
  right: -5px; bottom: -1px; transform: rotate(40deg);
}
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.version-pill, .lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.lang-btn.is-on { background: var(--deep); color: #fff; border-color: var(--deep); }
.lang-btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-brand, .btn-line, .toc-toggle, .chip {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 750;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-position .25s ease, transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn-brand {
  background-image: var(--grad);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 8px 18px rgba(194,59,98,.22);
}
.btn-brand:hover { background-position: 100% 50%; color: #fff; transform: translateY(-1px); }
.btn-brand:active { transform: translateY(0); }
.btn-line { background: #fff; color: var(--deep); border-color: rgba(122,35,72,.28); }
.btn-line:hover { background: #F8E4EA; color: var(--deep); }
.toc-toggle { display: none; background: #fff; color: var(--deep); border-color: var(--line); }
.search-empty {
  display: none;
  margin: 18px auto 0;
  width: min(1120px, calc(100% - 40px));
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--muted);
}
.shell { display: flex; align-items: stretch; min-height: 60vh; }
.sider {
  width: var(--sider-w);
  flex: 0 0 var(--sider-w);
  position: sticky;
  top: var(--header-h);
  align-self: flex-start;
  height: calc(100vh - var(--header-h));
  overflow: auto;
  padding: 22px 16px 40px;
  border-right: 1px solid var(--line);
  background: rgba(251,246,243,.92);
}
.toc-label { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.toc { display: grid; gap: 4px; }
.toc a {
  color: var(--ink);
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid transparent;
}
.toc a:hover { background: var(--alt); color: var(--deep); }
.toc a.active { background: #F8E4EA; color: var(--deep); border-color: var(--line); font-weight: 750; }
main { flex: 1 1 auto; min-width: 0; padding-bottom: calc(var(--dock-h) + 24px); }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
section { padding: 72px 0; }
section:nth-of-type(even) { background: var(--alt); }
section:nth-of-type(odd) { background: var(--paper); }
h1 { font-size: 40px; line-height: 1.25; margin: 0 0 12px; font-weight: 800; }
h2 { font-size: 28px; line-height: 1.35; margin: 0 0 16px; font-weight: 800; }
h3 { font-size: 18px; line-height: 1.45; margin: 0; font-weight: 800; }
p { margin: 0 0 12px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 13px;
  font-weight: 750;
}
.lead { color: var(--ink); margin: 0 0 22px; max-width: 760px; }
.num { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; font-weight: 780; }
.node-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.node {
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.node span { display: block; color: var(--muted); font-size: 12px; }
.node strong { display: block; color: var(--deep); font-size: 18px; }
.node em { font-style: normal; font-size: 13px; color: var(--ink); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.chip { background: #fff; color: var(--ink); border-color: var(--line); padding: 8px 14px; }
.chip.is-on, .chip:hover { background: #F8E4EA; color: var(--deep); border-color: rgba(122,35,72,.28); }
.sort-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 700; }
.sort-label select {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
}
.sort-label select:focus { border-color: var(--primary); box-shadow: none; outline: 2px solid #7A2348; }
.sort-note { color: var(--muted); margin: 0; }
.rank-list { display: grid; gap: 14px; }
.rank-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rank-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.medal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-image: var(--grad);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(194,59,98,.2);
}
.rank-main { min-width: 0; }
.rank-pipe { font-weight: 650; color: var(--muted); font-size: 14px; }
.rank-sum { color: var(--ink); margin: 6px 0 0; }
.idx { height: 8px; border-radius: 999px; background: #F4E7EA; overflow: hidden; margin-top: 10px; }
.idx > span { display: block; height: 100%; background-image: var(--grad); border-radius: inherit; }
.score {
  background-image: var(--grad);
  color: #fff;
  min-width: 84px;
  padding: 12px 14px;
  font-size: 22px;
  flex-direction: column;
  gap: 4px;
  border-radius: 22px;
}
.score small { font-size: 12px; font-weight: 650; opacity: .9; }
.dim-row, .metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dim, .metric-card, .article-item, .qa, .close-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dim, .metric-card { padding: 22px; }
.dim p, .metric-card p { margin: 10px 0 0; }
.pill {
  background: rgba(227,155,74,.18);
  color: var(--deep);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(227,155,74,.45);
}
.metric-card strong { display: block; font-size: 32px; line-height: 1.1; margin: 8px 0; }
.step-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 18px;
}
.step-no {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background-image: var(--grad);
  font-weight: 800;
}
.article-list { display: grid; gap: 12px; }
.article-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); color: var(--deep); }
.article-item time { color: var(--deep); font-weight: 800; }
.qa-list { display: grid; gap: 12px; }
.qa { padding: 0 18px; }
.qa summary {
  cursor: pointer;
  font-weight: 800;
  padding: 16px 0;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "＋"; float: right; color: var(--primary); font-weight: 500; }
.qa[open] summary::after { content: "－"; }
.qa p { color: var(--muted); padding-bottom: 14px; }
.close-box {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}
.close-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  min-height: var(--dock-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 22px;
  background: rgba(42,20,32,.94);
  color: #fff;
  border-top: 1px solid rgba(227,155,74,.4);
}
.dock p { margin: 0; font-size: 14px; }
.dock .age { background: var(--amber); color: #2A1420; }
.site-footer {
  background: #2A1420;
  color: #F8E4EA;
  padding: 48px 0 calc(var(--dock-h) + 28px);
}
.site-footer a { color: #F8E4EA; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: start; }
.foot-brand { display: block; font-weight: 800; font-size: 18px; line-height: 1.45; margin-bottom: 8px; }
.foot-links { display: grid; gap: 6px; justify-items: start; }
.copy { margin-top: 22px; font-size: 13px; color: #E7C9D4; }
.offcanvas { background: var(--paper); color: var(--ink); width: min(320px, 88vw); }
.offcanvas-header { border-bottom: 1px solid var(--line); }
.btn-close:focus { box-shadow: 0 0 0 2px #7A2348; }
@media (max-width: 991.98px) {
  .sider { display: none; }
  .toc-toggle { display: inline-flex; }
  .header-inner { align-items: flex-start; }
  .top-nav { order: 6; width: 100%; overflow-x: auto; }
  .doc-search { max-width: none; flex-basis: 100%; }
}
@media (max-width: 767.98px) {
  :root { --dock-h: 96px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  section { padding: 40px 0; }
  .dim-row, .metric-grid, .foot-grid { grid-template-columns: 1fr; }
  .rank-card { grid-template-columns: 56px minmax(0, 1fr); }
  .medal { width: 52px; height: 52px; font-size: 20px; }
  .score { grid-column: 2; justify-self: start; min-width: 76px; }
  .close-box, .article-item, .step { grid-template-columns: 1fr; display: grid; }
  .close-box { align-items: stretch; }
  .dock { align-items: flex-start; flex-wrap: wrap; padding: 12px 14px 16px; }
}
@media (max-width: 520px) {
  .brand-text { font-size: 13px; max-width: 168px; }
  .header-tools { width: 100%; margin-left: 0; }
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .rank-pipe { display: block; }
}

/* 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}
