/* ==========================================================================
   91漫画网 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --paper: #F6F1E7;
  --paper-soft: #FBF8F1;
  --ink: #16202E;
  --ink-soft: #3C4757;
  --ink-mute: #6A7280;
  --line: #D9D3C6;
  --line-strong: #C3BBA9;
  --orange: #C65A24;
  --orange-deep: #A6471A;
  --orange-tint: #F4E3D7;
  --green: #2F6B4F;
  --green-tint: #DDEAE1;
  --red: #B23A3A;
  --red-tint: #F3DEDE;
  --blue: #2C4A73;
  --blue-tint: #DEE5EF;
  --radius: 8px;
  --radius-sm: 4px;
  --container: 1180px;
  --gutter: 24px;
  --header-h: 72px;
  --shadow-card: 0 1px 0 rgba(22, 32, 46, 0.04), 0 6px 18px rgba(22, 32, 46, 0.06);
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

a:hover {
  color: var(--orange-deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

time {
  font-variant-numeric: tabular-nums;
}

strong {
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background-color: var(--ink);
  color: var(--paper);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   2. layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--ink);
  border-bottom: 1px solid rgba(246, 241, 231, 0.12);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 44px;
  color: var(--paper);
}

.brand:hover {
  color: var(--paper);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background-color: var(--orange);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-slogan {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 231, 0.72);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(246, 241, 231, 0.28);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--paper);
  transition: transform 120ms ease, opacity 120ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: rgba(246, 241, 231, 0.82);
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  color: #fff;
  background-color: rgba(246, 241, 231, 0.08);
}

.primary-nav a.is-current {
  color: #fff;
  background-color: rgba(198, 90, 36, 0.28);
  border-bottom-color: var(--orange);
}

.site-main {
  display: block;
  width: 100%;
}

.home-main,
.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-mute);
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.breadcrumb a:hover {
  color: var(--orange-deep);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.page-header {
  padding: 18px 0 8px;
}

.page-title {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.22;
  font-weight: 800;
  color: var(--ink);
  max-width: 22em;
}

/* --------------------------------------------------------------------------
   3. components · 通用组件
   -------------------------------------------------------------------------- */

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.section-head p,
.section-sub,
.section-desc,
.section-lead {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62em;
}

.sub-head {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.btn-primary:hover {
  background-color: var(--orange-deep);
  border-color: var(--orange-deep);
  color: #fff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
  background-color: var(--orange-tint);
}

/* 文字箭头链接 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-deep);
}

.link-arrow::after {
  content: "→";
  font-size: 14px;
  transition: transform 120ms ease;
}

.link-arrow:hover {
  color: var(--orange);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.tag-serial,
.tag-green {
  background-color: var(--green-tint);
  color: var(--green);
  border-color: rgba(47, 107, 79, 0.24);
}

.tag-done {
  background-color: var(--blue-tint);
  color: var(--blue);
  border-color: rgba(44, 74, 115, 0.24);
}

.tag-paused,
.tag-grey {
  background-color: #ECE7DC;
  color: var(--ink-mute);
  border-color: var(--line-strong);
}

.tag-check,
.tag-red {
  background-color: var(--red-tint);
  color: var(--red);
  border-color: rgba(178, 58, 58, 0.24);
}

.tag-blue {
  background-color: var(--blue-tint);
  color: var(--blue);
  border-color: rgba(44, 74, 115, 0.24);
}

/* 状态点 */
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  background-color: var(--ink-mute);
}

.status-dot.dot-serial,
.status-dot.status-ongoing,
.status-dot.status-dot--serial,
.status-dot.status-dot--green {
  background-color: var(--green);
}

.status-dot.dot-done,
.status-dot.status-done,
.status-dot.status-dot--done {
  background-color: var(--blue);
}

.status-dot.dot-paused,
.status-dot.status-paused,
.status-dot.status-dot--pause,
.status-dot.status-dot--gray {
  background-color: var(--ink-mute);
}

.status-dot.dot-check,
.status-dot.status-checking,
.status-dot.status-dot--red {
  background-color: var(--red);
}

.status-dot.status-dot--orange {
  background-color: var(--orange);
}

/* 状态胶囊（内页标题区） */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.status-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

.status-chip--serial,
.status-chip--green {
  color: var(--green);
  border-color: rgba(47, 107, 79, 0.3);
  background-color: var(--green-tint);
}

.status-chip--done {
  color: var(--blue);
  border-color: rgba(44, 74, 115, 0.3);
  background-color: var(--blue-tint);
}

.status-chip--pause,
.status-chip--ink {
  color: var(--ink-soft);
  border-color: var(--line-strong);
  background-color: #ECE7DC;
}

.status-chip--proof,
.status-chip--orange {
  color: var(--red);
  border-color: rgba(178, 58, 58, 0.3);
  background-color: var(--red-tint);
}

/* 通用图片框 */
figure {
  position: relative;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--line);
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

/* 页脚 */
.site-footer {
  background-color: var(--ink);
  color: rgba(246, 241, 231, 0.78);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter) 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px 28px;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--orange);
}

.footer-slogan {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(246, 241, 231, 0.9);
}

.footer-desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(246, 241, 231, 0.6);
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  color: rgba(246, 241, 231, 0.72);
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(246, 241, 231, 0.14);
}

.footer-bottom p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter) 26px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(246, 241, 231, 0.52);
}

/* --------------------------------------------------------------------------
   4. pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  padding-top: 28px;
}

/* 首屏阅读调度台 */
.hero-dispatch {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--orange-tint);
  color: var(--orange-deep);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
}

.hero-lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-board {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.route-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: grid;
  grid-template-columns: 26px minmax(0, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.legend-index {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-deep);
  font-variant-numeric: tabular-nums;
}

.legend-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.legend-desc {
  font-size: 13px;
  color: var(--ink-mute);
  min-width: 0;
}

/* 题材分拨区 */
.genre-split {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.genre-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
  align-items: stretch;
}

.genre-lead {
  display: flex;
  flex-direction: column;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.genre-lead-figure {
  margin: 0;
}

.genre-lead-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.genre-lead-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.genre-lead-body h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.genre-lead-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.genre-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.genre-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  transition: border-color 120ms ease, background-color 120ms ease;
}

.genre-row:hover {
  background-color: var(--paper-soft);
  border-color: var(--line-strong);
  border-left-color: var(--orange-deep);
}

.genre-row-main {
  min-width: 0;
}

.genre-row-main h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.genre-row-main p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.genre-row .link-arrow {
  flex: 0 0 auto;
}

/* 更新线路看板 */
.update-board {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.update-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: start;
}

.route-nodes {
  min-width: 0;
  padding: 20px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.route-node-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.route-node {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 6px 12px;
  padding: 14px 0 14px 18px;
  border-left: 2px solid var(--line);
}

.route-node:first-child {
  padding-top: 4px;
}

.route-node:last-child {
  padding-bottom: 4px;
}

.route-node::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--orange);
  border: 2px solid var(--paper-soft);
}

.route-node:first-child::before {
  top: 10px;
}

.route-node .tag {
  justify-self: start;
}

.node-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  align-self: center;
}

.node-desc {
  grid-column: 2;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.update-stream {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.update-side-figure {
  margin: 0;
}

.update-side-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.update-row-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.update-stream .update-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.update-stream .update-row:last-child {
  border-bottom: 0;
}

.update-stream .update-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.update-stream .update-name:hover {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.update-stream .update-time {
  font-size: 12.5px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 追更站台三车道 */
.rank-stand {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.rank-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.rank-lane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.rank-stand .lane-head {
  padding: 16px 18px;
  background-color: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.rank-stand .lane-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.lane-note {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-mute);
}

.rank-row-list {
  display: flex;
  flex-direction: column;
  padding: 6px 18px 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-deep);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.rank-row a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.rank-row a:hover {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lane-more {
  margin-top: 18px;
}

/* 阅读路径三步条 */
.reading-path {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.path-step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-sm);
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.path-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.step-action,
.step-result {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.step-result {
  color: var(--ink-mute);
}

.path-step .link-arrow {
  margin-top: auto;
}

/* 条目校准摘要 */
.calibration {
  padding: 48px 0 8px;
}

.calibration-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: start;
}

.issue-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.issue-type {
  min-width: 0;
  padding: 16px 18px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
}

.issue-type h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.issue-type p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.check-note {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-note p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   5. pages · 内页共用标题区
   -------------------------------------------------------------------------- */

.page-hero {
  margin-top: 20px;
  padding: 22px 24px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-label,
.page-tag,
.page-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange-deep);
}

.page-lead,
.page-lede {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 62em;
}

.hero-tags,
.page-status,
.field-tags,
.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.field-tags li {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.page-head {
  margin-top: 20px;
  padding: 0;
}

.page-head-body {
  padding: 22px 24px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   6. pages · 题材索引
   -------------------------------------------------------------------------- */

.genre-overview,
.genre-cards,
.tag-definitions,
.entry-links {
  padding: 40px 0 0;
}

.genre-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #fff;
}

.genre-overview .genre-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 20px;
  align-items: start;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  background-color: transparent;
}

.genre-overview .genre-row:last-child {
  border-bottom: 0;
}

.genre-overview .genre-row:hover {
  background-color: var(--paper-soft);
}

.genre-name {
  min-width: 0;
}

.genre-name h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.genre-scope {
  min-width: 0;
}

.genre-scope p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.genre-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.genre-tags a:hover {
  color: var(--orange-deep);
  border-color: var(--orange);
  background-color: var(--orange-tint);
}

.genre-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.genre-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.genre-card-figure {
  margin: 0;
}

.genre-card-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
}

.genre-card h3 {
  padding: 14px 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.genre-card p {
  padding: 6px 16px 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.genre-card-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genre-card-link {
  margin: 12px 16px 16px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange-deep);
  border-top: 1px dashed var(--line);
}

.genre-card-link:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tag-definition {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
  overflow: hidden;
}

.tag-definition-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.tag-definition-row:last-child {
  border-bottom: 0;
}

.tag-definition-row dt {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.tag-definition-row dd {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  min-width: 0;
}

.entry-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.entry-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 18px 20px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
}

.entry-link h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.entry-link p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.entry-link:hover {
  background-color: #fff;
  border-color: var(--line-strong);
  border-left-color: var(--orange-deep);
}

/* --------------------------------------------------------------------------
   7. pages · 更新线路
   -------------------------------------------------------------------------- */

.updates-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 32px;
}

.week-view,
.update-stream {
  min-width: 0;
}

.week-view {
  padding: 20px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.day-cell {
  min-width: 0;
  padding: 12px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.day-cell:first-child {
  grid-column: 1 / -1;
}

.day-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.day-bar {
  display: block;
  height: 4px;
  margin: 8px 0 10px;
  border-radius: 2px;
  background-color: var(--line-strong);
}

.day-bar-ongoing {
  background-color: var(--green);
}

.day-bar-done {
  background-color: var(--blue);
}

.day-bar-paused {
  background-color: var(--ink-mute);
}

.day-bar-checking {
  background-color: var(--red);
}

.day-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.day-items li {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  min-width: 0;
  overflow-wrap: anywhere;
}

.day-items a {
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.day-items a:hover {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.week-figure {
  margin: 14px 0 0;
}

.week-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.updates-shell .update-stream {
  padding: 20px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.update-list {
  display: flex;
  flex-direction: column;
}

.update-list .update-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.update-list .update-row:last-child {
  border-bottom: 0;
}

.update-list .update-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.update-list .update-name:hover {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.genre-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.update-list .update-time {
  font-size: 12.5px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.update-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-deep);
  white-space: nowrap;
}

.update-link:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legend-section,
.maintain-section {
  margin-top: 40px;
}

.legend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.legend-row .status-dot {
  margin-top: 8px;
}

.legend-row p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  min-width: 0;
}

.legend-figure {
  margin: 0;
}

.legend-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.maintain-body {
  padding: 20px 22px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
}

.maintain-body p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.maintain-body p + p {
  margin-top: 10px;
}

.maintain-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-deep);
}

.maintain-link:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   8. pages · 追更站台
   -------------------------------------------------------------------------- */

.lane-defs,
.rank-arena,
.pace-notes {
  margin-top: 40px;
}

.lane-defs h2,
.rank-arena h2,
.pace-notes h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.lane-def-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.lane-def {
  min-width: 0;
  padding: 18px 20px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-sm);
}

.lane-def h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.lane-def p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.lane-def-note {
  color: var(--ink-mute);
  font-size: 13px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.rank-lane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 18px;
}

.rank-arena .rank-lane {
  display: flex;
  flex-direction: column;
}

.rank-arena .lane-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background-color: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.lane-cover {
  margin: 0;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}

.lane-cover img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.lane-head-text {
  min-width: 0;
}

.lane-head-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.lane-head-text p {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.rank-list {
  display: flex;
  flex-direction: column;
  padding: 6px 16px 12px;
}

.rank-arena .rank-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-arena .rank-row:last-child {
  border-bottom: 0;
}

.rank-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.rank-title:hover {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.genre-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 1px 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-mute);
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.lane-foot {
  margin-top: auto;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
}

.lane-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange-deep);
}

.lane-foot a:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.pace-note {
  min-width: 0;
  padding: 18px 20px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
}

.pace-note h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.pace-note p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.pace-foot {
  margin-top: 18px;
}

.pace-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-deep);
}

.pace-foot a:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   9. pages · 阅读路径
   -------------------------------------------------------------------------- */

.reading-hero {
  padding: 0;
  border: 0;
  background-color: transparent;
  margin-top: 20px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-hero-copy {
  min-width: 0;
}

.section-label {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange-deep);
  background-color: var(--orange-tint);
  border-radius: var(--radius-sm);
}

.page-hero-figure {
  margin: 0;
}

.page-hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.path-section,
.state-section,
.faq-section,
.next-section {
  margin-top: 40px;
}

.path-section .path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.path-section .path-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.path-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.path-section .path-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.path-action,
.path-result,
.path-warn {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.path-result {
  color: var(--ink-mute);
}

.path-warn {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--red);
  background-color: var(--red-tint);
  border-radius: var(--radius-sm);
}

.path-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-deep);
}

.path-link:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.state-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.state-col {
  min-width: 0;
  padding: 20px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.state-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.state-list {
  display: flex;
  flex-direction: column;
}

.state-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.state-row:last-child {
  border-bottom: 0;
}

.state-row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}

.state-row dd {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  min-width: 0;
}

.state-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-deep);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--orange-deep);
  background-color: var(--paper-soft);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
  background-color: var(--paper-soft);
}

.faq-body {
  padding: 14px 18px 16px;
}

.faq-body p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.faq-link {
  margin-top: 8px;
}

.faq-link a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange-deep);
}

.faq-link a:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
}

.entry-links .entry-link {
  padding: 0;
  background-color: transparent;
  border: 0;
  border-radius: 0;
}

.entry-links .entry-link a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 16px 18px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
}

.entry-links .entry-link a:hover {
  background-color: #fff;
  border-color: var(--line-strong);
  border-left-color: var(--orange-deep);
}

.entry-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.entry-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   10. pages · 条目校准
   -------------------------------------------------------------------------- */

.section {
  margin-top: 40px;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.issue-card {
  min-width: 0;
  padding: 18px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-sm);
}

.issue-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.issue-basis {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.issue-tip {
  margin-top: 10px;
  padding-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  border-top: 1px dashed var(--line);
}

.check-figure {
  margin: 0 0 20px;
}

.check-figure img {
  width: 100%;
  height: auto;
  max-height: 380px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.check-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.check-step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.check-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.check-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.check-action,
.check-field,
.check-result {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.check-field {
  color: var(--ink-mute);
}

.check-result {
  padding: 8px 10px;
  background-color: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}

.field-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
  color: var(--ink-soft);
}

.field-table thead th {
  background-color: var(--paper-soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.field-row:hover td,
.field-row:hover th {
  background-color: var(--paper-soft);
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.boundary-note {
  min-width: 0;
  padding: 18px 20px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius-sm);
}

.boundary-note h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.boundary-note p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.related-links {
  margin-top: 32px;
  padding: 20px 22px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-deep);
}

.related-links a:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   11. pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 72px;
}

.error-panel {
  max-width: 720px;
  padding: 32px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.error-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange-deep);
}

.error-panel h1 {
  margin-top: 10px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
}

.error-lead {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.error-links a:hover {
  color: var(--orange-deep);
  border-color: var(--orange);
  background-color: var(--orange-tint);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   12. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .hero-dispatch {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-board {
    max-width: 620px;
  }

  .genre-split-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-board-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-lanes .rank-lane:last-child {
    grid-column: 1 / -1;
  }

  .genre-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lane-def-grid,
  .rank-lane-grid,
  .pace-grid,
  .check-steps,
  .boundary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-lane-grid .rank-lane:last-child,
  .pace-grid .pace-note:last-child,
  .check-steps .check-step:last-child,
  .boundary-list .boundary-note:last-child {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .updates-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .legend-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legend-figure {
    max-width: 520px;
  }

  .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .page-hero-figure {
    max-width: 480px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .primary-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(246, 241, 231, 0.16);
  }

  .primary-nav ul.is-open {
    display: flex;
  }

  .primary-nav a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 12px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .primary-nav a.is-current {
    border-left-color: var(--orange);
    border-bottom-color: transparent;
  }

  .home-main,
  .inner-main {
    padding-bottom: 48px;
  }

  .home-main {
    padding-top: 20px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .genre-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .genre-overview .genre-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .tag-definition-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .genre-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .entry-link-grid,
  .path-steps,
  .path-section .path-steps,
  .state-columns,
  .lane-def-grid,
  .rank-lane-grid,
  .pace-grid,
  .check-steps,
  .boundary-list,
  .entry-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-lane-grid .rank-lane:last-child,
  .pace-grid .pace-note:last-child,
  .check-steps .check-step:last-child,
  .boundary-list .boundary-note:last-child {
    grid-column: auto;
  }

  .rank-lanes {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-lanes .rank-lane:last-child {
    grid-column: auto;
  }

  .issue-types {
    grid-template-columns: minmax(0, 1fr);
  }

  .issue-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-list .update-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name link"
      "chip time";
    gap: 6px 10px;
    padding: 12px 0;
  }

  .update-list .update-name {
    grid-area: name;
  }

  .update-list .genre-chip {
    grid-area: chip;
    justify-self: start;
  }

  .update-list .update-time {
    grid-area: time;
    justify-self: end;
  }

  .update-list .update-link {
    grid-area: link;
    justify-self: end;
  }

  .update-stream .update-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
  }

  .update-stream .update-name {
    grid-column: 1 / -1;
  }

  .week-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .day-cell:first-child {
    grid-column: auto;
  }

  .state-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .check-figure img {
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .error-panel {
    padding: 24px 20px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 36px;
    gap: 24px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 28px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .section-head h2,
  .lane-defs h2,
  .rank-arena h2,
  .pace-notes h2 {
    font-size: 21px;
  }

  .hero-board,
  .route-nodes,
  .update-stream,
  .week-view,
  .updates-shell .update-stream,
  .check-note {
    padding: 14px;
  }

  .legend-item {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 4px 8px;
  }

  .legend-desc {
    grid-column: 2;
  }

  .genre-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-card-figure img {
    aspect-ratio: 16 / 10;
  }

  .rank-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .rank-row .tag {
    grid-column: 2;
    justify-self: start;
  }

  .rank-arena .rank-row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .rank-arena .rank-row .status-dot {
    grid-column: 3;
  }

  .field-table th,
  .field-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .link-arrow:hover::after {
    transform: none;
  }
}
