/* roulang page: index */
:root {
  --bg: #0E0F12;
  --elev: #17191E;
  --paper: #F3F0E8;
  --text: #F6F3EC;
  --ink: #1A1916;
  --muted: #A39E94;
  --muted-ink: #6F6A62;
  --accent: #E23D5A;
  --accent-deep: #c42e49;
  --signal: #D6FF4A;
  --line: rgba(246,243,236,0.14);
  --line-ink: rgba(26,25,22,0.12);
  --radius: 12px;
  --shadow: 0 16px 40px rgba(0,0,0,.28);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --head: 74px;
  --age: 36px;
  --side: 260px;
  --dur: 180ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color-scheme: dark;
}
img, svg { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::placeholder { color: var(--muted); opacity: 1; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.ulink {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 1px;
  transition: background-size var(--dur) ease;
}
.ulink:hover { background-size: 100% 1px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14,15,18,.94);
  border-top: 1px solid var(--signal);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.topbar-row {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  min-height: var(--head);
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark {
  width: 36px; height: 36px; flex: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  display: grid; place-items: center;
}
.logo-name { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.search { position: relative; min-width: 0; }
.search input, .field {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--elev);
  padding: 0 16px;
  outline: none;
}
.search input:focus, .field:focus { border-color: var(--signal); }
.top-tools { display: flex; align-items: center; gap: 8px; }
.chip, .badge {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--text);
  white-space: nowrap;
}
.chip i, .badge i, .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); flex: none;
}
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs button {
  border: 0; background: transparent; color: var(--muted);
  padding: 6px 10px; font-size: 12px;
}
.langs button.on { color: var(--ink); background: var(--paper); }
.langs button:disabled { opacity: .38; cursor: not-allowed; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  display: none; align-items: center; justify-content: center;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.mainnav {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  display: flex; gap: 22px;
  min-height: 42px; align-items: center;
  overflow-x: auto;
}
.mainnav a {
  font-size: 14px; color: var(--muted); padding: 8px 0; white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.mainnav a:hover { color: var(--text); }
.mainnav a.active { color: var(--text); border-bottom-color: var(--signal); }

.agebar {
  position: sticky; top: var(--head); z-index: 39;
  height: var(--age);
  display: flex; align-items: center; justify-content: center;
  background: #14161B; color: var(--muted);
  font-size: 13px; border-bottom: 1px solid var(--line);
}
.shell { display: block; }
.sidecat {
  position: fixed;
  top: calc(var(--head) + var(--age));
  left: 0; width: var(--side);
  height: calc(100vh - var(--head) - var(--age));
  overflow: auto;
  background: var(--elev);
  border-right: 1px solid var(--line);
  padding: 22px 16px 32px;
  z-index: 30;
}
.toc-title { font-size: 12px; color: var(--muted); letter-spacing: .12em; margin-bottom: 12px; }
.toc { position: relative; counter-reset: toc; }
.toc-bar {
  position: absolute; left: 0; top: 0; width: 2px; height: 18px;
  background: var(--signal);
  transition: top var(--dur) ease, height var(--dur) ease;
}
.toc a {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 6px 8px 6px 12px;
  color: var(--muted); font-size: 13px;
}
.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.toc a:hover { color: var(--text); }
.toc a[aria-current="true"] { color: var(--text); }
.toc a[aria-current="true"]::before { color: var(--signal); }
.scrim { display: none; }
main { margin-left: var(--side); min-width: 0; }
.section { padding: 88px 0; }
.bg { background: var(--bg); }
.elev { background: var(--elev); }
.paper { background: var(--paper); color: var(--ink); color-scheme: light; }
.paper .muted, .paper .sec-lead { color: var(--muted-ink); }
.sec-head { position: relative; margin-bottom: 28px; max-width: 760px; }
.sec-index {
  position: absolute; right: 0; top: -12px;
  font-family: var(--mono); font-size: 56px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246,243,236,.2);
}
.paper .sec-index { -webkit-text-stroke: 1px rgba(26,25,22,.22); }
h1 { font-size: 64px; line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 36px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.35; font-weight: 700; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.sec-lead { margin-top: 12px; font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 68ch; }
.intro { margin-top: 16px; max-width: 62ch; color: var(--text); }
.hero { padding-top: 72px; padding-bottom: 72px; }
.hero-grid, .demo-grid, .quality-grid, .case-grid, .list-layout, .join-grid, .news-grid {
  display: grid; gap: 28px; align-items: start;
}
.hero-grid { grid-template-columns: 1.25fr .9fr; align-items: center; gap: 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background var(--dur) ease, transform var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.paper .btn-ghost { color: var(--ink); border-color: rgba(26,25,22,.22); }
.player {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.screen { position: relative; aspect-ratio: 16/10; background: #1A1916; }
.block { position: absolute; }
.block-a { left: 0; top: 0; width: 42%; height: 48%; background: var(--accent); }
.block-b { right: 0; bottom: 0; width: 54%; height: 34%; background: var(--paper); }
.block-c { left: 12%; top: 62%; width: 28%; height: 8px; background: var(--text); }
.controls { display: grid; grid-template-columns: 1.5fr .7fr .55fr .5fr; gap: 8px; padding: 12px; }
.ctrl {
  height: 32px; border-radius: 999px;
  border: 1px dashed rgba(246,243,236,.28);
  color: var(--muted); font-family: var(--mono); font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); }
.metric { padding: 8px 16px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric b {
  display: block; font-family: var(--mono); font-size: 40px; font-weight: 500;
  letter-spacing: -0.04em; line-height: 1.1; color: var(--text);
}
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.feature-grid, .quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.group, .card, .quote, .plan, .faq-item, .manual li, .note, .def, .case {
  border: 1px solid var(--line); border-radius: var(--radius); background: transparent;
}
.group { padding: 22px; }
.group h3 { margin-bottom: 8px; }
.row {
  display: grid; grid-template-columns: 92px 1fr auto;
  gap: 12px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.row strong { font-size: 15px; }
.row p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.paper .row p { color: var(--muted-ink); }
.badge.off i { background: var(--muted); }
.list-layout { grid-template-columns: 1.45fr .8fr; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack .card:nth-child(2) { margin-left: 28px; }
.stack .card:nth-child(3) { margin-left: 8px; }
.card { padding: 16px; transition: transform var(--dur) ease, border-color var(--dur) ease; }
.card:hover { transform: translateY(-2px); border-color: rgba(246,243,236,.32); }
.wide-card { display: grid; grid-template-columns: 168px 1fr; gap: 16px; min-height: 100%; }
.poster { position: relative; min-height: 148px; border-radius: 10px; background: var(--accent); overflow: hidden; }
.mini-card { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.mini-card .poster { min-height: 72px; }
.card h3 { margin: 8px 0; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.meta-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.scene {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.scene .num { font-family: var(--mono); font-size: 28px; color: var(--accent); }
.tag {
  font-family: var(--mono); font-size: 12px; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 10px; color: var(--muted);
}
.demo-grid { grid-template-columns: 1.4fr .8fr; }
.notes { display: flex; flex-direction: column; gap: 12px; }
.note { padding: 16px 16px 14px; }
.note b { display: block; margin-bottom: 4px; }
.note span { color: var(--muted); font-size: 14px; }
.quality-grid { grid-template-columns: 1.05fr .95fr; }
.ladder, .defs { display: flex; flex-direction: column; }
.ladder article, .def {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.ladder .on { border-top-color: var(--signal); }
.ladder em, .def em { font-style: normal; font-family: var(--mono); color: var(--muted); font-size: 13px; }
.case-grid { grid-template-columns: 1.4fr .85fr; }
.case { padding: 22px; }
.case .poster { min-height: 120px; margin-bottom: 16px; }
.case.small .poster { min-height: 72px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 14px; align-items: stretch; }
.plan { padding: 22px; display: flex; flex-direction: column; min-height: 100%; background: transparent; }
.plan .price { font-family: var(--mono); font-size: 40px; line-height: 1; margin: 14px 0; letter-spacing: -0.04em; }
.plan .price small { font-size: 14px; margin-left: 4px; }
.plan-rows { margin: 8px 0 18px; }
.plan-rows li {
  min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border-top: 1px solid var(--line-ink); font-size: 14px;
}
.plan-rows span { color: var(--muted-ink); }
.plan .btn { margin-top: auto; }
.plan.featured {
  background: var(--accent); color: var(--text); border-color: transparent;
  border-top: 1px solid var(--signal);
}
.plan.featured .plan-rows li { border-top-color: rgba(246,243,236,.22); }
.plan.featured .plan-rows span { color: rgba(246,243,236,.78); }
.plan.featured .btn-primary { background: var(--paper); color: var(--ink); }
.plan.featured .btn-primary:hover { background: #fff; }
.wall { columns: 3; column-gap: 14px; }
.wall article {
  break-inside: avoid; display: inline-block; width: 100%;
  margin: 0 0 14px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--dur) ease;
}
.wall article:hover { transform: translateY(-2px); }
.wall article:nth-child(3n) { padding-bottom: 28px; }
.wall article:nth-child(2) { padding-top: 26px; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 13px; }
.wall p { margin: 8px 0; font-size: 15px; }
.quote { padding: 22px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.quote q { quotes: none; font-size: 16px; line-height: 1.75; }
.quote footer { font-family: var(--mono); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.news-grid { grid-template-columns: 180px 1fr; }
.axis { border-left: 1px solid var(--line); padding-left: 14px; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.news-list a {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line-ink); color: var(--ink);
}
.news-list time { font-family: var(--mono); font-size: 13px; color: var(--muted-ink); }
.entry {
  display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.timeline article { border-top: 1px solid var(--signal); padding-top: 14px; }
.timeline b { display: block; font-size: 18px; margin: 8px 0; }
.timeline p { color: var(--muted); font-size: 14px; }
.manual { display: grid; gap: 0; }
.manual li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 18px; border-radius: 0; border-width: 1px 1px 0 0; }
.manual li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.manual li:last-child { border-bottom-width: 1px; border-radius: 0 0 var(--radius) var(--radius); }
.manual .num { font-family: var(--mono); font-size: 22px; color: var(--accent); }
.faq-item { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; padding: 0; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 0; font-weight: 700; font-size: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-weight: 500; transition: transform var(--dur) ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 18px; max-width: 70ch; }
.cta { background: #090A0C; }
.join-grid { grid-template-columns: 1.05fr .95fr; align-items: start; }
.lead { display: grid; gap: 10px; }
.field { border-radius: var(--radius); background: transparent; }
.field.is-error { border-color: var(--accent); }
select.field {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.form-msg { display: none; align-items: center; gap: 8px; font-size: 13px; }
.lead.is-bad .msg-bad, .lead.is-ok .msg-ok { display: flex; }
.msg-bad { color: var(--accent); }
.site-footer { margin-left: var(--side); background: #090A0C; border-top: 1px solid var(--line); padding: 42px 0 28px; }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { font-weight: 700; font-size: 18px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.copy { margin-top: 22px; color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
  .icon-btn { display: inline-flex; }
  .search { display: none; }
  body.search-open .search {
    display: block; position: absolute; left: 16px; right: 16px; top: 68px; z-index: 60;
  }
  .sidecat { transform: translateX(-105%); transition: transform var(--dur) ease; z-index: 50; width: min(86vw, 300px); }
  body.drawer-open .sidecat { transform: none; }
  body.drawer-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 45; }
  main, .site-footer { margin-left: 0; }
  .topbar-row { grid-template-columns: 1fr auto; }
}
@media (max-width: 1024px) {
  h1 { font-size: 52px; }
  .wide-card { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .feature-grid, .quote-grid, .wall { grid-template-columns: 1fr; columns: 2; }
  .wall { columns: 2; }
  .timeline { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; }
  .langs button:disabled { display: none; }
}
@media (max-width: 720px) {
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }
  .section { padding: 56px 0; }
  .hero { padding-top: 40px; padding-bottom: 48px; }
  .hero-grid, .demo-grid, .quality-grid, .case-grid, .list-layout, .join-grid, .news-grid, .feature-grid, .quote-grid, .plan-grid {
    grid-template-columns: 1fr;
  }
  .stack .card:nth-child(2), .stack .card:nth-child(3) { margin-left: 0; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .metric, .metric:first-child { border-left: 0; padding-left: 0; }
  .scene { grid-template-columns: 48px 1fr; }
  .scene .tag { grid-column: 2; justify-self: start; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .controls { grid-template-columns: 1fr 1fr; }
  .sec-index { display: none; }
  .news-list a { grid-template-columns: 1fr; gap: 4px; }
  .wall { columns: 1; }
  .logo-name { font-size: 14px; }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 32px); }
  .topbar-row, .mainnav { width: calc(100% - 24px); }
  .chip-prefix { display: none; }
  .metric b { font-size: 32px; }
  .actions .btn, .join-grid .btn { width: 100%; }
  .manual li { grid-template-columns: 48px 1fr; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .card:hover, .wall article:hover, .btn:active, .sidecat { transform: none !important; }
}

/* roulang page: category1 */
:root {
  --bg: #0E0F12;
  --elev: #17191E;
  --paper: #F3F0E8;
  --text: #F6F3EC;
  --ink: #1A1916;
  --muted: #A39E94;
  --muted-ink: #6F6A62;
  --accent: #E23D5A;
  --accent-deep: #c42e49;
  --signal: #D6FF4A;
  --line: rgba(246,243,236,0.14);
  --line-ink: rgba(26,25,22,0.12);
  --radius: 12px;
  --shadow: 0 16px 40px rgba(0,0,0,.28);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --head: 74px;
  --navh: 42px;
  --age: 36px;
  --side: 260px;
  --dur: 180ms;
}
/* roulang page: category1 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color-scheme: dark;
}
img, svg { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14,15,18,.94);
  border-top: 1px solid var(--signal);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.topbar-row {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  min-height: var(--head);
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  display: grid;
  place-items: center;
}
.logo-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.search { position: relative; min-width: 0; }
.search input, .field {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--elev);
  padding: 0 16px;
  outline: none;
}
.search input:focus, .field:focus { border-color: var(--signal); }
.field.is-error { border-color: var(--accent); }
.field.is-ok { border-color: var(--signal); }
.top-tools { display: flex; align-items: center; gap: 10px; }
.chip, .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--text);
  white-space: nowrap;
  background: transparent;
}
.chip i, .badge i, .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
  display: inline-block;
}
.badge.off i { background: var(--muted); }
.langs {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}
.langs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
}
.langs button.on { color: var(--ink); background: var(--paper); }
.langs button:disabled { opacity: .38; cursor: not-allowed; }
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn[aria-expanded="true"] { background: var(--elev); }
.mainnav {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  gap: 22px;
  min-height: var(--navh);
  align-items: center;
  overflow-x: auto;
}
.mainnav a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.mainnav a:hover { color: var(--text); }
.mainnav a.active { color: var(--text); border-bottom-color: var(--signal); }
.agebar {
  position: sticky;
  top: calc(var(--head) + var(--navh));
  z-index: 39;
  min-height: var(--age);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--elev);
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.sidecatalog {
  position: fixed;
  top: calc(var(--head) + var(--navh) + var(--age));
  left: 0;
  width: var(--side);
  bottom: 0;
  overflow: auto;
  padding: 28px 16px 40px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  z-index: 30;
}
.toc-title {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .12em;
  margin: 0 0 12px 12px;
}
.toc { counter-reset: toc; }
.toc a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 8px 6px 12px;
  color: var(--muted);
  font-size: 13px;
  border-radius: 8px;
  transition: color var(--dur) ease, background var(--dur) ease;
}
.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.toc a:hover { color: var(--text); background: rgba(246,243,236,0.04); }
.toc a[aria-current="true"] {
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--signal);
}
.toc a[aria-current="true"]::before { color: var(--signal); }
.shade {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.48);
  z-index: 45;
}
.shade[hidden] { display: none; }
main { margin-left: var(--side); min-width: 0; }
.section { padding: 84px 0; }
.band { background: var(--elev); }
.paper { background: var(--paper); color: var(--ink); }
.paper .muted, .paper .sec-lead, .paper .row p, .paper .card p { color: var(--muted-ink); }
.sec-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 12px;
  margin-bottom: 28px;
  align-items: start;
}
.idx {
  font-family: var(--mono);
  color: var(--signal);
  font-size: 13px;
  padding-top: 12px;
}
h1 {
  font-size: 64px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}
h3 { font-size: 18px; line-height: 1.4; font-weight: 700; }
.sec-lead {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 68ch;
}
.pagehead-grid {
  display: grid;
  grid-template-columns: 1.35fr .75fr;
  gap: 48px;
  align-items: end;
}
.crumb {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.crumb a { border-bottom: 1px solid transparent; }
.crumb a:hover { color: var(--text); border-bottom-color: var(--text); }
.statrow { display: grid; gap: 12px; }
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: transparent;
}
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.stat span { color: var(--muted); font-size: 13px; }
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 0;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14,15,18,.35);
}
.filter-set {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-right: 18px;
}
.filter-set + .filter-set {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.filter-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-right: 4px;
}
.tag {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  transition: color var(--dur) ease, background var(--dur) ease, border-color var(--dur) ease, transform var(--dur) ease;
}
.tag:hover { color: var(--text); }
.tag:active { transform: scale(.98); }
.tag.is-on {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}
.catalog-mix {
  display: grid;
  grid-template-columns: 1.45fr .82fr;
  gap: 18px;
  align-items: stretch;
}
.catalog-side, .stack { display: grid; gap: 18px; }
.catalog-rest {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  margin-top: 18px;
}
.card, .quote, .plan, .faq-item, .note, .def, .case, .group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
}
.card {
  padding: 16px;
  transition: transform var(--dur) ease, border-color var(--dur) ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(246,243,236,.32);
}
.wide-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  min-height: 100%;
}
.mini-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}
.line-card {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 16px;
  align-items: center;
}
.poster {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--accent);
  min-height: 112px;
}
.wide-card .poster { min-height: 220px; }
.mini-card .poster { min-height: 76px; }
.line-card .poster { min-height: 96px; }
.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  clip-path: polygon(62% 0, 100% 0, 100% 100%, 38% 100%);
}
.poster.alt::before { clip-path: polygon(0 0, 46% 0, 28% 100%, 0 100%); }
.poster.deep { background: #9d2438; }
.poster.deep::before { background: #d7d2c6; }
.meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.meta-line time, .when {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.card p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.card h3 a.ulink { color: inherit; }
.def-list { display: grid; gap: 0; }
.def {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 8px;
  border: 0;
  border-top: 1px solid var(--line-ink);
  border-radius: 0;
  background: transparent;
}
.def:last-child { border-bottom: 1px solid var(--line-ink); }
.def strong { font-size: 16px; }
.def span { color: var(--muted-ink); font-size: 15px; }
.def em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.ticker {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.ticker a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  font-size: 15px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur) ease;
}
.ticker a:hover { background-size: 100% 1px; }
.ticker time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--signal);
}
.axis li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line-ink);
}
.axis li:last-child { border-bottom: 1px solid var(--line-ink); }
.axis time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-ink);
}
.axis a {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ulink {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur) ease;
}
.ulink:hover { background-size: 100% 1px; }
.morebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.morebar p { color: var(--muted); max-width: 46ch; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background var(--dur) ease, transform var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.paper .btn-ghost { color: var(--ink); border-color: rgba(26,25,22,.22); }
.paper .card, .paper .faq-item, .paper .note {
  border-color: var(--line-ink);
  background: #fffdf8;
}
.paper .badge { color: var(--ink); border-color: var(--line-ink); }
.paper .card:hover { border-color: rgba(26,25,22,.4); }
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-item { padding: 0 18px; }
.faq-item summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  transition: transform var(--dur) ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 0 16px;
  color: var(--muted-ink);
  max-width: 68ch;
  font-size: 16px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  background: var(--bg);
  color: var(--text);
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.foot-brand { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 6px; }
.copy { margin-top: 28px; color: var(--muted); font-size: 13px; }
@media (max-width: 1100px) {
  .icon-btn { display: inline-flex; }
  .topbar-row { grid-template-columns: 1fr auto; }
  .search { display: none; grid-column: 1 / -1; }
  .search.is-open { display: block; }
  .sidecatalog {
    top: 0;
    width: min(280px, 88vw);
    z-index: 60;
    transform: translateX(-105%);
    transition: transform var(--dur) ease;
    box-shadow: var(--shadow);
  }
  .sidecatalog.is-open { transform: translateX(0); }
  main { margin-left: 0; }
  .pagehead-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 1024px) {
  h1 { font-size: 52px; }
  .catalog-mix { grid-template-columns: 1fr; }
  .wide-card .poster { min-height: 180px; }
}
@media (max-width: 768px) {
  .container { width: min(1200px, calc(100% - 32px)); }
  .section { padding: 64px 0; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .sec-head { grid-template-columns: 48px 1fr; }
  .catalog-rest, .line-card, .foot-grid, .morebar, .def { grid-template-columns: 1fr; }
  .line-card .poster { min-height: 140px; }
  .axis li { grid-template-columns: 72px 1fr; gap: 10px; }
  .filter-set + .filter-set { border-left: 0; padding-left: 0; }
  .langs button:disabled { display: none; }
}
@media (max-width: 720px) {
  h1 { font-size: 38px; }
  .wide-card, .mini-card { grid-template-columns: 1fr; }
  .mini-card .poster { min-height: 120px; }
  .logo-name { font-size: 14px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
  .stat b { font-size: 24px; }
}
@media (max-width: 520px) {
  .topbar-row, .mainnav { width: calc(100% - 24px); }
  .chip-prefix { display: none; }
  .morebar, .foot-links { align-items: flex-start; }
  .foot-grid { flex-direction: column; }
  .ticker { gap: 18px; }
  h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .card:hover, .btn:active, .tag:active, .sidecatalog { transform: none; }
  .sidecatalog { transition: none; }
  .sidecatalog.is-open { transform: none; }
}
