/* roulang page: index */
:root {
  --paper: #F3EEE4;
  --paper-2: #E7E0D2;
  --ink: #241C16;
  --ink-soft: #5C5146;
  --tea: #3E6B4E;
  --tea-deep: #2C4E39;
  --clay: #C4653A;
  --clay-deep: #8E4324;
  --plum: #5C4D7A;
  --line: #DDD2C2;
  --card: #FFFCF6;
  --codebar: #221C17;
  --codeink: #E6D7A8;
  --clay-wash: #F8E6DC;
  --plum-wash: #E8E2F2;
  --shadow: 0 8px 24px rgba(36, 28, 22, .06);
  --radius: 10px;
  --header-h: 76px;
  --side-w: 240px;
  --bs-primary: #3E6B4E;
  --bs-primary-rgb: 62, 107, 78;
  --bs-link-color: #2C4E39;
  --bs-link-hover-color: #8E4324;
  --bs-body-color: #241C16;
  --bs-body-bg: #F3EEE4;
  --bs-body-font-family: "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --bs-border-color: #DDD2C2;
  --bs-secondary-color: #5C5146;
  --bs-heading-color: #241C16;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 2px rgba(92, 77, 122, .45);
  --bs-accordion-active-bg: #F8E6DC;
  --bs-accordion-active-color: #241C16;
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238E4324'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235C5146'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-form-invalid-border-color: #C4653A;
  --bs-form-invalid-color: #8E4324;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  color: var(--ink);
  line-height: 1.35;
  font-weight: 650;
  margin: 0 0 .45em;
}
h1 { font-size: clamp(32px, 4vw, 40px); letter-spacing: 0; }
h2 { font-size: clamp(24px, 3vw, 28px); }
h3 { font-size: clamp(18px, 2vw, 20px); font-weight: 650; }
p { margin: 0 0 .85em; }
a { color: var(--tea-deep); text-underline-offset: 3px; }
a:hover { color: var(--clay-deep); }
:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
}
::selection { background: #d5e4d8; color: var(--ink); }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--tea);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  z-index: 2000;
}
.skip:focus { top: 8px; color: #fff; }

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1040;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(36, 28, 22, .03);
}
.topbar-row { display: contents; }
.logo {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-weight: 650;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
  letter-spacing: 0;
}
.logo:hover { color: var(--tea-deep); }
.search {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 6px 0 14px;
  min-height: 42px;
}
.search:focus-within { border-color: var(--tea); box-shadow: 0 0 0 2px rgba(92, 77, 122, .28); }
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  min-width: 0;
  height: 40px;
  color: var(--ink);
  outline: none;
}
.search input::placeholder { color: #8a7d70; }
.search button {
  border: 0;
  background: var(--tea);
  color: #fff;
  border-radius: 999px;
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.search button:hover { background: var(--tea-deep); }
.search button:active { transform: none; }
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.4;
}
.nav-a:hover { background: var(--paper-2); color: var(--clay-deep); }
.nav-a.active, .nav-a[aria-current="page"] {
  background: #e5f0e8;
  color: var(--tea-deep);
  font-weight: 600;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  padding: 5px 9px;
  line-height: 1.4;
}
.seg button.is-on {
  background: var(--plum);
  color: #f6f1ea;
}
.seg button:hover:not(.is-on) { color: var(--ink); background: var(--paper-2); }
.seg button:active { transform: none; }
.toc-btn {
  display: none;
  border: 1px solid var(--tea-deep);
  background: var(--card);
  color: var(--tea-deep);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
}
.toc-btn:hover { background: var(--tea); color: #fff; }

.toc-side {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: var(--side-w);
  height: calc(100vh - var(--header-h));
  overflow: auto;
  background: #f7f3eb;
  border-right: 1px solid var(--line);
  padding: 18px 12px 32px;
  z-index: 1020;
}
.toc-label {
  margin: 14px 10px 6px;
  color: var(--plum);
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 600;
}
.toc-link {
  display: block;
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  padding: 5px 10px 5px 14px;
  border-radius: 8px;
}
.toc-link:hover { color: var(--ink); background: rgba(255, 252, 246, .7); }
.toc-link.active {
  color: var(--tea-deep);
  font-weight: 600;
  background: #fff;
}
.toc-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 3px;
  background: var(--tea);
}
.main-col { margin-left: var(--side-w); min-width: 0; }
.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.section {
  padding: 64px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.band { background: var(--paper); }
.band-alt { background: var(--paper-2); }
.section-head { margin-bottom: 20px; max-width: 78em; }
.section-head p, .prose p { text-align: justify; color: var(--ink-soft); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--plum);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.lede {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 12px;
  text-align: justify;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn-tea, .btn-clay, .btn-ink, .text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn-tea { background: var(--tea); color: #fff; border-color: var(--tea-deep); }
.btn-tea:hover { background: var(--tea-deep); color: #fff; transform: translateY(-1px); }
.btn-tea:active { transform: none; background: var(--tea-deep); }
.btn-clay { background: transparent; color: var(--clay-deep); border-color: var(--clay); }
.btn-clay:hover { background: var(--clay-wash); color: var(--clay-deep); transform: translateY(-1px); }
.btn-clay:active { transform: none; }
.btn-ink { background: transparent; color: var(--ink); border-color: transparent; padding-inline: 8px; }
.btn-ink:hover { color: var(--clay-deep); }
.text-btn {
  background: transparent;
  color: var(--tea-deep);
  border-color: var(--tea);
  padding-inline: 14px;
}
.text-btn:hover { background: var(--tea); color: #fff; transform: translateY(-1px); }
.text-btn:active { transform: none; }

.board-grid { align-items: stretch; }
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
}
.metric::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tea);
}
.metric:nth-child(2)::after, .metric:nth-child(4)::after { background: var(--clay); }
.metric:nth-child(1) { min-height: 168px; }
.metric:nth-child(2) { min-height: 132px; }
.metric:nth-child(3) { min-height: 150px; }
.metric:nth-child(4) { min-height: 118px; }
.metric b {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 650;
  color: var(--ink);
}
.metric span { display: block; color: var(--plum); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.metric p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; text-align: left; }
body[data-version="v2"] .metric { box-shadow: inset 0 0 0 1px var(--plum), var(--shadow); }

.channel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 8px solid var(--tea);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 18px 20px;
}
.channel-bar h2 { margin-bottom: 6px; }
.channel-bar p { margin: 0; color: var(--ink-soft); text-align: justify; }

.paper-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
  height: 100%;
}
.paper-card:hover { border-color: var(--tea); }
.paper-card p { color: var(--ink-soft); text-align: justify; }
.stack-gap { display: grid; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;
  text-decoration: none;
}
.chip-plum { background: var(--plum-wash); color: var(--plum); }
.chip-clay { background: var(--clay-wash); color: var(--clay-deep); }
.chip-tea { background: #e5f0e8; color: var(--tea-deep); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.split-demo {
  margin-top: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  font-variant-numeric: tabular-nums;
}
.split-demo span {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.split-demo span i {
  font-style: normal;
  color: var(--clay-deep);
  font-family: "Sarasa Gothic SC", "Noto Sans Mono", "Noto Sans SC", monospace;
}

.scale {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin: 8px 0 12px;
}
.scale b {
  display: block;
  height: 10px;
  border-left: 1px solid var(--ink-soft);
  position: relative;
}
.scale b::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  border-top: 1px solid var(--line);
}
.lane {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.lane strong { font-size: 14px; font-weight: 600; }
.lane .rail {
  position: relative;
  height: 28px;
  background: repeating-linear-gradient(90deg, transparent 0 7.5%, rgba(36,28,22,.18) 7.5% calc(7.5% + 1px));
  border-radius: 6px;
  background-color: var(--card);
  border: 1px solid var(--line);
}
.seg {
  position: absolute;
  top: 6px;
  height: 14px;
  border-radius: 4px;
}
.seg-a { left: 8%; width: 28%; background: var(--tea); }
.seg-b { left: 18%; width: 34%; background: var(--clay); }
.seg-c { left: 46%; width: 16%; background: var(--plum); }

.compare-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.pane {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-height: 240px;
}
.pane-bad { border: 1px solid var(--clay); }
.pane-good { border: 1px solid var(--tea); }
.pane h3 { margin-bottom: 8px; }
.pane dl { margin: 0; }
.pane dt { color: var(--ink-soft); font-size: 13px; }
.pane dd {
  margin: 0 0 8px;
  font-family: "Sarasa Gothic SC", "Noto Sans Mono", "Noto Sans SC", monospace;
  font-size: 18px;
}
.switch-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px;
}
.switch-col button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  font-size: 13px;
  min-height: 36px;
}
.switch-col button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.switch-col button:hover { border-color: var(--tea-deep); }
.compare-wrap[data-view="bad"] .pane-good { opacity: .42; }
.compare-wrap[data-view="good"] .pane-bad { opacity: .42; }

.info-table { margin: 0; }
.info-table div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.info-table dt { color: var(--plum); font-weight: 600; }
.info-table dd { margin: 0; }

.timeline { list-style: none; margin: 0; padding: 4px 0 0 8px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tea);
  box-shadow: 0 0 0 3px var(--paper);
}
.band-alt .timeline li::before { box-shadow: 0 0 0 3px var(--paper-2); }
.timeline li:last-child::before { background: var(--plum); }
.timeline time { display: block; color: var(--clay-deep); font-size: 13px; font-weight: 600; }
.timeline h3 { margin-bottom: 2px; }

.term-row { display: flex; flex-wrap: wrap; gap: 8px; }
.term-row a {
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}
.term-row a:hover { border-color: var(--tea); color: var(--tea-deep); transform: translateY(-1px); }
.term-row a:active { transform: none; }

.entry {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.entry:hover { border-color: var(--tea); color: inherit; }
.entry:active { transform: none; }
.thumb {
  height: 72px;
  border-radius: 8px;
  background: var(--codebar);
  color: var(--codeink);
  display: grid;
  place-items: center;
  font-family: "Sarasa Gothic SC", "Noto Sans Mono", "Noto Sans SC", monospace;
  font-size: 18px;
}
.entry-title { display: block; font-size: 18px; color: var(--ink); margin-bottom: 2px; }
.meta { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); font-size: 13px; margin-bottom: 4px; }
.entry p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; text-align: left; }

#samples { background: var(--codebar); color: var(--codeink); }
#samples h2, #samples h3 { color: var(--paper); }
#samples .section-head p { color: #ddd1b6; }
.sample-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.sample-grid span {
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 215, 168, .28);
  border-radius: 8px;
  background-image: linear-gradient(rgba(230,215,168,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(230,215,168,.08) 1px, transparent 1px);
  background-size: 8px 8px;
  font-family: "Sarasa Gothic SC", "Noto Sans Mono", "Noto Sans SC", monospace;
  font-size: 16px;
  color: var(--codeink);
}

.promise { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.promise li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.promise li:last-child { border-bottom: 0; }
.mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5f0e8;
  color: var(--tea-deep);
  font-family: "Noto Serif SC", serif;
  font-weight: 650;
}
.promise h3 { font-size: 18px; margin-bottom: 2px; }
.promise p { margin: 0; color: var(--ink-soft); text-align: justify; }

.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qa {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--clay);
  border-radius: var(--radius);
  padding: 14px 16px 8px;
  box-shadow: var(--shadow);
}
.qa p { color: var(--ink-soft); text-align: justify; }

.accordion { --bs-accordion-bg: var(--card); --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: 10px; --bs-accordion-btn-color: var(--ink); }
.accordion-item { background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; border-radius: 10px !important; overflow: hidden; }
.accordion-button {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 18px;
  line-height: 1.45;
  background: var(--card);
  color: var(--ink);
  box-shadow: none;
  padding: 14px 16px;
}
.accordion-button:not(.collapsed) {
  background: var(--clay-wash);
  color: var(--ink);
  box-shadow: none;
}
.accordion-button:hover { background: #f3e7da; }
.accordion-button:focus { box-shadow: inset 0 0 0 2px var(--plum); }
.accordion-body { color: var(--ink-soft); text-align: justify; padding: 4px 16px 14px; background: var(--card); }

.further { list-style: none; margin: 0; padding: 0; }
.further li { border-bottom: 1px solid var(--line); }
.further a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  text-decoration: none;
  color: var(--ink);
}
.further a:hover { color: var(--tea-deep); }
.further small { color: var(--ink-soft); white-space: nowrap; }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.form-label { font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.form-control, .form-select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  box-shadow: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--tea);
  box-shadow: 0 0 0 2px rgba(92, 77, 122, .35);
}
.field.is-error .form-control, .field.is-error .form-select { border-color: var(--clay); }
.help { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.err { display: none; font-size: 13px; color: var(--clay-deep); }
.field.is-error .err { display: block; }
.success-box {
  display: none;
  background: #e5f0e8;
  border: 1px solid var(--tea);
  color: var(--tea-deep);
  border-radius: 10px;
  padding: 18px;
  font-weight: 600;
}
.success-box.show { display: block; }

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 36px 0 22px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.footer-logo {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 650;
  margin-bottom: 6px;
  color: var(--paper);
}
.site-footer p { color: #e6dccb; text-align: left; }
.footer-links { display: flex; flex-direction: column; gap: 6px; min-width: 120px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: #f0c2ae; }
.copy {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(243, 238, 228, .18);
  color: #cbbfae;
  font-size: 13px;
}
.offcanvas { background: var(--paper); color: var(--ink); width: min(300px, 88vw); }
.offcanvas-header { border-bottom: 1px solid var(--line); }
.offcanvas-title { font-family: "Noto Serif SC", serif; font-size: 18px; margin: 0; }
.btn-close { opacity: .7; }
@media (max-width: 1199.98px) {
  .sample-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  :root { --header-h: 150px; }
  .show-mobile { display: inline-flex !important; }
  .toc-side { display: none; }
  .main-col { margin-left: 0; }
  .topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    min-height: var(--header-h);
    padding: 10px 14px 12px;
    gap: 8px;
  }
  .topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .search { width: 100%; }
  .topbar-tools { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .main-nav { flex: 0 0 auto; }
  .section { padding: 36px 0; }
  .compare-wrap { grid-template-columns: 1fr; gap: 10px; }
  .switch-col { flex-direction: row; padding: 0; }
  .switch-col button { flex: 1; }
  .qa-grid { grid-template-columns: 1fr; }
  .channel-bar { flex-direction: column; align-items: flex-start; }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 767.98px) {
  .wrap { width: calc(100% - 28px); }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .sample-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .entry { grid-template-columns: 72px minmax(0, 1fr); }
  .lede { font-size: 16px; }
}
@media (max-width: 520px) {
  :root { --header-h: 168px; }
  .metric-grid, .sample-grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(n) { min-height: 0; }
  .info-table div { grid-template-columns: 1fr; gap: 0; }
  .lane { grid-template-columns: 64px 1fr; }
  .further a { flex-direction: column; gap: 0; }
  h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* roulang page: category1 */
:root {
 --paper: #F3EEE4;
 --paper-2: #E7E0D2;
 --ink: #241C16;
 --ink-soft: #5C5146;
 --tea: #3E6B4E;
 --tea-deep: #2C4E39;
 --clay: #C4653A;
 --clay-deep: #8E4324;
 --plum: #5C4D7A;
 --line: #DDD2C2;
 --card: #FFFCF6;
 --codebar: #221C17;
 --codeink: #E6D7A8;
 --clay-wash: #F8E6DC;
 --plum-wash: #E8E2F2;
 --shadow: 0 8px 24px rgba(36, 28, 22, .06);
 --radius: 10px;
 --header-h: 76px;
 --side-w: 240px;
 --bs-primary: #3E6B4E;
 --bs-primary-rgb: 62, 107, 78;
 --bs-link-color: #2C4E39;
 --bs-link-hover-color: #8E4324;
 --bs-body-color: #241C16;
 --bs-body-bg: #F3EEE4;
 --bs-body-font-family: "Noto Sans SC", "Source Han Sans SC", sans-serif;
 --bs-border-color: #DDD2C2;
 --bs-secondary-color: #5C5146;
 --bs-heading-color: #241C16;
 --bs-focus-ring-color: rgba(92, 77, 122, .45);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
 margin: 0;
 color: var(--ink);
 background: var(--paper);
 font-family: "Noto Sans SC", "Source Han Sans SC", sans-serif;
 font-size: 16px;
 line-height: 1.8;
 text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--tea-deep); text-underline-offset: 3px; }
a:hover { color: var(--clay-deep); }
p { margin: 0 0 .85em; }
[hidden] { display: none !important; }
h1, h2, h3 {
 font-family: "Noto Serif SC", "Source Han Serif SC", serif;
 font-weight: 650;
 color: var(--ink);
 letter-spacing: 0;
}
h1 { font-size: 36px; line-height: 1.35; margin: 0; }
h2 { font-size: 26px; line-height: 1.4; margin: 0 0 14px; }
h3 { font-size: 18px; line-height: 1.5; margin: 0 0 6px; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.topbar {
 position: fixed;
 inset: 0 0 auto 0;
 z-index: 1040;
 min-height: var(--header-h);
 display: grid;
 grid-template-columns: auto minmax(180px, 1fr) auto;
 align-items: center;
 gap: 16px;
 padding: 10px 20px;
 background: var(--card);
 border-bottom: 1px solid var(--line);
 box-shadow: 0 1px 0 rgba(36, 28, 22, .03);
}
.logo {
 font-family: "Noto Serif SC", "Source Han Serif SC", serif;
 font-weight: 650;
 font-size: 18px;
 color: var(--ink);
 text-decoration: none;
 line-height: 1.3;
 max-width: 12em;
}
.logo:hover { color: var(--tea-deep); }
.search {
 display: flex;
 align-items: center;
 background: var(--paper);
 border: 1px solid var(--line);
 border-radius: 999px;
 padding: 0 6px 0 14px;
 min-height: 42px;
}
.search:focus-within { border-color: var(--tea); box-shadow: 0 0 0 2px rgba(92, 77, 122, .28); }
.search input {
 flex: 1;
 border: 0;
 background: transparent;
 min-width: 0;
 height: 40px;
 color: var(--ink);
 outline: none;
 font-size: 14px;
}
.search input::placeholder { color: #8a7d70; }
.search button {
 border: 0;
 background: var(--tea);
 color: #fff;
 border-radius: 999px;
 height: 32px;
 padding: 0 12px;
 font-size: 13px;
 cursor: pointer;
}
.search button:hover { background: var(--tea-deep); }
.search button:active { transform: none; }
.topbar-tools {
 display: flex;
 align-items: center;
 gap: 10px;
 min-width: 0;
}
.tool-row { display: flex; align-items: center; gap: 8px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-a {
 color: var(--ink);
 text-decoration: none;
 font-size: 14px;
 padding: 6px 10px;
 border-radius: 8px;
 line-height: 1.4;
 white-space: nowrap;
}
.nav-a:hover { background: var(--paper-2); color: var(--clay-deep); }
.nav-a.active, .nav-a[aria-current="page"] {
 background: #e5f0e8;
 color: var(--tea-deep);
 font-weight: 600;
}
.seg {
 display: inline-flex;
 border: 1px solid var(--line);
 border-radius: 999px;
 overflow: hidden;
 background: var(--paper);
 flex: 0 0 auto;
}
.seg button {
 border: 0;
 background: transparent;
 color: var(--ink-soft);
 font-size: 12px;
 padding: 5px 9px;
 line-height: 1.4;
 cursor: pointer;
}
.seg button.is-on { background: var(--plum); color: #f6f1ea; }
.seg button:hover:not(.is-on) { color: var(--ink); background: var(--paper-2); }
.seg button:active { transform: none; }
.toc-btn {
 display: none;
 border: 1px solid var(--tea-deep);
 background: var(--card);
 color: var(--tea-deep);
 border-radius: 8px;
 padding: 6px 10px;
 font-size: 14px;
 cursor: pointer;
}
.toc-btn:hover { background: var(--tea); color: #fff; }
.toc-btn:active { transform: none; }
.doc-side {
 position: fixed;
 top: var(--header-h);
 left: 0;
 bottom: 0;
 width: var(--side-w);
 overflow: auto;
 background: var(--card);
 border-right: 1px solid var(--line);
 padding: 18px 12px 32px;
 z-index: 1020;
}
.toc-kicker {
 margin: 0 8px 8px;
 color: var(--plum);
 font-size: 12px;
 font-weight: 650;
 letter-spacing: .04em;
}
.toc-a {
 display: block;
 color: var(--ink-soft);
 text-decoration: none;
 font-size: 14px;
 line-height: 1.6;
 padding: 6px 10px 6px 12px;
 border-radius: 8px;
}
.toc-a:hover { background: var(--paper); color: var(--clay-deep); }
.toc-a.is-current {
 color: var(--tea-deep);
 background: #e5f0e8;
 box-shadow: inset 3px 0 0 var(--tea);
 font-weight: 600;
}
.main-col {
 margin-left: var(--side-w);
 padding-top: var(--header-h);
 min-width: 0;
}
.wrap {
 width: min(940px, calc(100% - 40px));
 margin: 0 auto;
}
.section {
 padding: 64px 0;
 scroll-margin-top: calc(var(--header-h) + 12px);
 border-top: 1px solid var(--line);
}
.section p { text-align: justify; color: var(--ink-soft); }
.band-paper { background: var(--paper); }
.band-soft { background: var(--paper-2); }
.cat-head {
 padding: 26px 0 22px;
 background: var(--paper-2);
 border-top: 0;
}
.cat-head .wrap {
 position: relative;
 padding-left: 18px;
}
.cat-head .wrap::before {
 content: "";
 position: absolute;
 left: 0;
 top: 2px;
 bottom: 2px;
 width: 8px;
 border-radius: 4px;
 background: var(--plum);
}
.crumb {
 display: flex;
 flex-wrap: wrap;
 gap: 6px;
 align-items: center;
 margin: 0 0 8px;
 font-size: 13px;
 color: var(--ink-soft);
}
.crumb a { color: var(--tea-deep); text-decoration: none; }
.crumb a:hover { color: var(--clay-deep); }
.head-row {
 display: flex;
 align-items: flex-start;
 justify-content: space-between;
 gap: 12px;
}
.scope { margin: 8px 0 0; max-width: 42em; }
.badge-ver, .badge-chip, .state {
 display: inline-flex;
 align-items: center;
 min-height: 22px;
 padding: 0 8px;
 border-radius: 999px;
 font-size: 12px;
 line-height: 1.2;
 white-space: nowrap;
}
.badge-ver { background: var(--plum); color: #f6f1ea; margin-top: 8px; }
.badge-chip { background: var(--plum-wash); color: var(--plum); }
.badge-chip.clay { background: var(--clay-wash); color: var(--clay-deep); }
.filter-bar { display: grid; gap: 14px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { min-width: 4.5em; color: var(--plum); font-size: 13px; font-weight: 650; }
.chip {
 border: 1px solid var(--line);
 background: var(--card);
 color: var(--ink-soft);
 border-radius: 999px;
 font-size: 12px;
 padding: 4px 10px;
 line-height: 1.4;
 cursor: pointer;
 transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip.is-on { background: var(--plum); color: #f6f1ea; border-color: var(--plum); }
.chip[data-group="level"].is-on { background: var(--clay); border-color: var(--clay-deep); color: #fff; }
.chip[data-group="rev"].is-on { background: var(--tea); border-color: var(--tea-deep); color: #fff; }
.chip:hover:not(.is-on) { border-color: var(--tea); color: var(--tea-deep); }
.chip:active { transform: none; }
.count-line { margin: 4px 0 0; color: var(--ink); font-weight: 600; }
.count-line span { color: var(--tea-deep); font-variant-numeric: tabular-nums; }
.empty-note {
 margin-top: 14px;
 padding: 12px 14px;
 border: 1px dashed var(--clay);
 border-radius: 8px;
 color: var(--clay-deep);
 background: var(--clay-wash);
}
.entry-list { display: grid; gap: 12px; }
.entry-row {
 display: grid;
 grid-template-columns: minmax(0, 1fr) 148px;
 gap: 16px;
 align-items: stretch;
 background: var(--card);
 border: 1px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 padding: 16px 16px 14px;
 transition: border-color .2s ease, box-shadow .2s ease;
}
.entry-row:hover { border-color: var(--tea); box-shadow: 0 8px 24px rgba(36, 28, 22, .08); }
.entry-main h3 a { color: var(--ink); text-decoration: none; }
.entry-main h3 a:hover { color: var(--tea-deep); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.entry-main p { margin: 0; }
.entry-status {
 display: flex;
 flex-direction: column;
 align-items: flex-end;
 justify-content: space-between;
 gap: 8px;
 border-left: 1px solid var(--line);
 padding-left: 12px;
}
.state-ok { color: var(--tea-deep); background: #e5f0e8; }
.state-wait { color: var(--clay-deep); background: var(--clay-wash); }
.state-rev { color: var(--plum); background: var(--plum-wash); }
.dir { color: var(--ink-soft); font-size: 12px; }
.row-link { font-size: 14px; text-decoration: none; }
.row-link:hover { color: var(--clay-deep); }
.more-band {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 16px;
 padding: 18px 18px;
 background: var(--card);
 border: 1px solid var(--line);
 border-left: 8px solid var(--tea);
 border-radius: var(--radius);
}
.more-band p { margin: 0; }
.btn-tea, .btn-clay, .btn-ink, .text-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 40px;
 padding: 0 16px;
 border-radius: 8px;
 font-size: 15px;
 text-decoration: none;
 border: 1px solid transparent;
 cursor: pointer;
 transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn-tea { background: var(--tea); color: #fff; border-color: var(--tea-deep); }
.btn-tea:hover { background: var(--tea-deep); color: #fff; transform: translateY(-1px); }
.btn-tea:active, .btn-clay:active, .text-btn:active { transform: none; }
.btn-clay { background: transparent; color: var(--clay-deep); border-color: var(--clay); }
.btn-clay:hover { background: var(--clay-wash); color: var(--clay-deep); transform: translateY(-1px); }
.btn-ink { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ink:hover { border-color: var(--ink); color: var(--ink); }
.text-btn { background: transparent; color: var(--tea-deep); padding: 0 4px; min-height: 36px; }
.text-btn:hover { color: var(--clay-deep); }
.read-grid {
 display: grid;
 grid-template-columns: 1.45fr .8fr;
 gap: 20px;
 align-items: start;
}
.map-dl {
 display: grid;
 grid-template-columns: 108px 1fr;
 gap: 8px 12px;
 margin: 8px 0 0;
}
.map-dl dt { margin: 0; color: var(--plum); font-weight: 650; }
.map-dl dd { margin: 0; color: var(--ink-soft); }
.info-box {
 background: var(--card);
 border: 1px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 padding: 16px;
}
.box-kicker { margin: 0 0 8px; color: var(--plum); font-weight: 650; font-size: 13px; }
.info-box ul { margin: 0; padding: 0; list-style: none; }
.info-box li {
 padding: 8px 0;
 border-top: 1px solid var(--line);
 color: var(--ink);
 font-size: 14px;
}
.info-box li:first-child { border-top: 0; }
.mini-code {
 margin: 14px 0 0;
 padding: 10px 12px;
 background: var(--codebar);
 color: var(--codeink);
 border-radius: 8px;
 font-family: "Sarasa Gothic SC", "Noto Sans Mono", "Noto Sans SC", monospace;
 font-size: 14px;
 letter-spacing: .08em;
 text-align: center;
}
.point-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 12px;
 margin: 0;
}
.point-grid div {
 background: var(--card);
 border: 1px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 padding: 14px 16px;
}
.point-grid dt { font-weight: 650; color: var(--ink); }
.point-grid dd { margin: 4px 0 0; color: var(--ink-soft); }
.rev-list { list-style: none; margin: 0; padding: 4px 0 0; border-left: 1px solid var(--line); }
.rev-list li {
 position: relative;
 display: flex;
 gap: 16px;
 align-items: baseline;
 padding: 0 0 16px 18px;
 color: var(--ink);
}
.rev-list li::before {
 content: "";
 width: 9px;
 height: 9px;
 border-radius: 50%;
 background: var(--tea);
 border: 2px solid var(--card);
 position: absolute;
 left: -5px;
 top: .55em;
}
.rev-list time { color: var(--plum); font-variant-numeric: tabular-nums; min-width: 6.5em; font-size: 14px; }
.qa-list { margin: 0; }
.qa-list div {
 padding: 10px 0 10px 14px;
 border-left: 3px solid var(--clay);
 margin: 0 0 12px;
}
.qa-list dt { font-weight: 650; color: var(--ink); }
.qa-list dd { margin: 2px 0 0; color: var(--ink-soft); }
.site-footer {
 background: #241C16;
 color: var(--paper);
 padding: 36px 0 20px;
}
.footer-grid {
 width: min(1180px, calc(100% - 40px));
 margin: 0 auto;
 display: flex;
 justify-content: space-between;
 gap: 24px;
}
.footer-logo {
 font-family: "Noto Serif SC", "Source Han Serif SC", serif;
 font-size: 18px;
 color: var(--paper);
 margin: 0 0 8px;
}
.site-footer p { color: #e7e0d2; margin: 0; }
.footer-links { display: flex; gap: 16px; align-items: flex-start; }
.footer-links a { color: var(--paper); text-decoration: none; }
.footer-links a:hover { color: var(--codeink); }
.copy {
 width: min(1180px, calc(100% - 40px));
 margin: 18px auto 0;
 padding-top: 12px;
 border-top: 1px solid rgba(243, 238, 228, .18);
 color: #cbbfae;
 font-size: 13px;
}
.offcanvas { background: var(--card); color: var(--ink); }
.offcanvas-header { border-bottom: 1px solid var(--line); }
.btn-close { filter: none; opacity: .7; }
@media (max-width: 1199.98px) {
 .read-grid { grid-template-columns: 1fr; }
 .entry-row { grid-template-columns: minmax(0, 1fr) 120px; }
}
@media (max-width: 991.98px) {
 .toc-btn { display: inline-flex; }
 .doc-side { display: none; }
 .main-col { margin-left: 0; }
 .topbar {
  grid-template-columns: 1fr auto;
  grid-template-areas: "logo tools" "search search" "nav nav";
  align-items: center;
 }
 .logo { grid-area: logo; }
 .search { grid-area: search; }
 .topbar-tools { grid-area: tools; }
 .main-nav {
  grid-area: nav;
  overflow-x: auto;
  padding-bottom: 2px;
 }
 .topbar { display: grid; }
 .main-nav { display: flex; }
 .section { padding: 36px 0; }
 h1 { font-size: 30px; }
 h2 { font-size: 22px; }
}
@media (max-width: 767.98px) {
 .topbar-tools { flex-wrap: wrap; justify-content: flex-end; }
 .tool-row { display: none; }
 .head-row, .more-band, .footer-grid, .entry-row, .rev-list li { display: block; }
 .entry-status {
  border-left: 0;
  border-top: 1px solid var(--line);
  padding: 8px 0 0;
  margin-top: 8px;
  align-items: flex-start;
 }
 .point-grid, .map-dl { grid-template-columns: 1fr; }
 .footer-links { margin-top: 12px; }
 .wrap, .footer-grid, .copy { width: min(100% - 28px, 940px); }
}
@media (max-width: 520px) {
 h1 { font-size: 26px; }
 .logo { font-size: 16px; }
 .seg button { padding: 5px 7px; }
 .filter-label { width: 100%; }
}

/* 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}
