/* ==========================================================================
   女神漫画官网 · js3hang.com
   纸本图鉴气质：米色纸底 / 墨绿主色 / 槐黄点缀
   分组：base · layout · components · pages · responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base — 变量、重置、排版、通用元素
   -------------------------------------------------------------------------- */

:root {
  --paper: #f7f2e7;
  --card: #fffdf6;
  --ink-green: #23483a;
  --ink-green-deep: #1a372c;
  --locust: #d9a13b;
  --text: #22201c;
  --muted: #64746b;
  --line: #ded3bd;
  --hint-bg: #f0e6cf;

  --font-sans: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, "Courier New", monospace;

  --radius: 3px;
  --radius-lg: 6px;
  --shadow-soft: 0 1px 0 rgba(35, 72, 58, 0.04), 0 2px 6px rgba(35, 72, 58, 0.05);

  --measure: 1120px;
  --gutter: 24px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink-green);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

a:hover {
  color: var(--ink-green-deep);
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  color: var(--ink-green);
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.35;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

strong {
  color: var(--ink-green);
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--locust);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink-green);
  color: #fff;
  border-radius: var(--radius);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   2. layout — 页头、主导航、移动抽屉、主容器、页脚骨架
   -------------------------------------------------------------------------- */

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--measure);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink-green);
  font-weight: 700;
}

.brand-mark {
  display: inline-block;
  width: 14px;
  height: 22px;
  background: var(--ink-green);
  border-radius: 2px;
  box-shadow: inset 0 -6px 0 var(--locust);
}

.brand-name {
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand:hover .brand-name {
  color: var(--ink-green-deep);
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--hint-bg);
  color: var(--ink-green);
}

.main-nav a.is-current {
  color: var(--ink-green);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--locust);
}

.header-side-link {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink-green);
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

.header-side-link:hover {
  border-color: var(--ink-green);
  background: var(--hint-bg);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-green);
  border-radius: 1px;
}

/* 移动抽屉 */
.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 60;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 18px var(--gutter) 26px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(35, 72, 58, 0.12);
}

.mobile-drawer[hidden] {
  display: none;
}

.drawer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-nav a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.drawer-nav a:hover,
.drawer-nav a.is-current {
  background: var(--hint-bg);
  color: var(--ink-green);
  font-weight: 700;
}

.drawer-roles {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.drawer-roles-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.drawer-roles ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.drawer-roles a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-green);
  font-size: 14px;
  line-height: 1.5;
}

/* 主容器 */
.site-main {
  display: block;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.home-main {
  padding-bottom: 0;
}

.inner-main {
  padding-top: 20px;
  padding-bottom: 56px;
}

/* 内页布局骨架：默认主内容在前、aside 在后；.sidebar-left 才让侧栏在前 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: start;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

.page-layout.sidebar-left {
  grid-template-columns: 220px minmax(0, 1fr);
}

/* 当 .page-layout 直接位于 .inner-main 内部时去掉重复内边距 */
.inner-main > .page-layout {
  padding-left: 0;
  padding-right: 0;
}

.page-content,
.content-main,
.column-main {
  min-width: 0;
}

/* 页脚 */
.site-footer {
  margin-top: 48px;
  background: var(--ink-green);
  color: #e6ece7;
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.2fr);
  gap: 40px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 40px var(--gutter) 28px;
}

.footer-brand-name {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.footer-brand-desc {
  margin: 0;
  color: #c3d0c8;
  font-size: 13px;
  line-height: 1.7;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  margin: 0 0 10px;
  color: var(--locust);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group a {
  color: #d5dfd8;
  font-size: 13px;
  line-height: 1.6;
}

.footer-group a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 16px var(--gutter);
  color: #a9b8af;
  font-size: 12px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. components — 面包屑、页标题区、栏目目录、页内目录、表格、折叠、链接
   -------------------------------------------------------------------------- */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--ink-green);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text);
}

/* 页面标题区 */
.page-header {
  margin: 0 0 20px;
}

.page-title {
  margin: 0;
  color: var(--ink-green);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}

.page-title-block {
  margin: 0 0 26px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--locust);
  border-radius: var(--radius);
}

.page-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.page-lead {
  margin: 0 0 10px;
  max-width: 42em;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.page-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.meta-label {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 6px;
  background: var(--hint-bg);
  border-radius: 2px;
  color: var(--ink-green);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* 阅读路线页顶部标题带 */
.page-heading {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 8px var(--gutter) 0;
}

.page-heading-desc {
  margin: 0 0 6px;
  max-width: 42em;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.page-heading-mark {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* 阅读说明页顶部标题带 */
.page-head {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 8px var(--gutter) 20px;
}

.page-head-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.page-head-desc {
  margin: 0 0 8px;
  max-width: 42em;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.page-head-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* 术语释义页 / 阅读帮助页标题带 */
.page-title-desc {
  margin: 0 0 8px;
  max-width: 42em;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.page-title-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* 侧栏：栏目目录 */
.side-nav,
.column-nav {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  min-width: 0;
  padding: 14px 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-nav-title,
.column-nav-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.side-nav-list ul,
.side-nav > ul,
.column-nav > ul,
.column-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-nav a,
.column-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.side-nav a:hover,
.column-nav a:hover {
  background: var(--hint-bg);
  color: var(--ink-green);
}

.side-nav a.is-current,
.column-nav a.is-current {
  background: var(--hint-bg);
  color: var(--ink-green);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--locust);
}

.side-nav-sub {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.side-nav-sub a {
  font-size: 13px;
  color: var(--muted);
}

.side-nav > .side-nav-title + ul {
  margin-bottom: 0;
}

/* 阅读说明页侧栏折叠按钮 */
.column-nav-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-green);
  font-size: 14px;
}

/* 页内目录 */
.page-toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  min-width: 0;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-toc-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.page-toc ul,
.page-toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-toc a {
  display: block;
  padding: 6px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.page-toc a:hover {
  background: var(--hint-bg);
  border-left-color: var(--locust);
  color: var(--ink-green);
}

/* 通用表格 */
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.schedule-table,
.data-table,
.mark-table {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.table-wrap > .schedule-table {
  border: 0;
  border-radius: 0;
}

.schedule-table caption,
.data-table caption,
.mark-table caption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.schedule-table th,
.schedule-table td,
.data-table th,
.data-table td,
.mark-table th,
.mark-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.schedule-table thead th,
.data-table thead th,
.mark-table thead th {
  background: var(--hint-bg);
  color: var(--ink-green);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.schedule-table tbody tr:last-child th,
.schedule-table tbody tr:last-child td,
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.mark-table tbody tr:last-child th,
.mark-table tbody tr:last-child td {
  border-bottom: 0;
}

.schedule-table tbody tr:hover,
.data-table tbody tr:hover,
.mark-table tbody tr:hover {
  background: rgba(240, 230, 207, 0.4);
}

.schedule-table tbody th {
  color: var(--ink-green);
  font-weight: 700;
  white-space: nowrap;
}

/* 批次标记 */
.batch {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.batch-single {
  background: var(--hint-bg);
  color: var(--ink-green);
}

.batch-merge {
  background: #e6efe9;
  color: var(--ink-green-deep);
}

.batch-pause {
  background: #f3e3d6;
  color: #8a4a1f;
}

/* 折叠条目 */
.accordion-group,
.help-list,
.help-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item,
.help-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.accordion-item summary,
.help-item summary {
  position: relative;
  min-height: 44px;
  padding: 12px 40px 12px 16px;
  color: var(--ink-green);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.accordion-item summary::-webkit-details-marker,
.help-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after,
.help-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--locust);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
}

.accordion-item[open] summary::after,
.help-item[open] summary::after {
  content: "−";
}

.accordion-item summary:hover,
.help-item summary:hover {
  background: var(--hint-bg);
}

.accordion-item > p,
.help-item > p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.accordion-item > p a,
.help-item > p a {
  color: var(--ink-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 段落脚注链接 */
.section-foot-link {
  margin: 16px 0 0;
  font-size: 14px;
}

.section-foot-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-green);
  font-weight: 700;
}

.section-foot-link a::after {
  content: "→";
  color: var(--locust);
}

.section-foot-link a:hover {
  background: var(--hint-bg);
  border-color: var(--ink-green);
}

/* 章节内通用小标题 / 说明 */
.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.section-note {
  margin: 0;
  max-width: 44em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-intro,
.section-lead {
  margin: 0 0 18px;
  max-width: 44em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.section-note a {
  color: var(--ink-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section-tail {
  margin: 18px 0 0;
  font-size: 14px;
}

.section-tail a {
  color: var(--ink-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 内页跳转链接组 */
.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.next-links a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-green);
  font-size: 14px;
  line-height: 1.5;
}

.next-links a:hover {
  background: var(--hint-bg);
  border-color: var(--ink-green);
}

/* 通用内容配图 */
.content-figure,
.section-figure,
.genre-figure,
.guide-figure,
.terms-figure,
.self-check-media {
  margin: 0 0 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.content-figure img,
.section-figure img,
.genre-figure img,
.guide-figure img,
.terms-figure img,
.self-check-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--hint-bg);
}

.content-figure figcaption,
.section-figure figcaption,
.genre-figure figcaption,
.guide-figure figcaption,
.terms-figure figcaption,
.self-check-media figcaption {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   4. pages — 首页与各内页业务模块
   -------------------------------------------------------------------------- */

/* ===== 首页 ===== */

/* 读者角色快捷入口带 */
.role-band {
  padding: 20px 0 8px;
}

.section-inner {
  width: 100%;
}

.role-band-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.role-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.role-item {
  min-width: 0;
}

.role-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.role-link:hover {
  background: var(--hint-bg);
  border-left-color: var(--locust);
}

.role-name {
  color: var(--ink-green);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.role-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* 首屏双栏 */
.hero {
  padding: 20px 0 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-media {
  min-width: 0;
}

.hero-figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--hint-bg);
}

.hero-figure figcaption {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 10px;
  background: var(--hint-bg);
  border-radius: 2px;
  color: var(--ink-green);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero-text h1 {
  margin: 0 0 12px;
  color: var(--ink-green);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}

.hero-lead {
  margin: 0 0 18px;
  max-width: 34em;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.hero-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--ink-green);
  border: 1px solid var(--ink-green);
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.entry-link .entry-label {
  color: #fff;
}

.entry-link .entry-note {
  color: #c3d0c8;
  font-size: 12px;
  font-weight: 400;
}

.entry-link:hover {
  background: var(--ink-green-deep);
  border-color: var(--ink-green-deep);
  color: #fff;
}

.hero-entry li:nth-child(2) .entry-link {
  background: var(--card);
  color: var(--ink-green);
  border-color: var(--line);
}

.hero-entry li:nth-child(2) .entry-link .entry-label {
  color: var(--ink-green);
}

.hero-entry li:nth-child(2) .entry-link .entry-note {
  color: var(--muted);
}

.hero-entry li:nth-child(2) .entry-link:hover {
  background: var(--hint-bg);
  border-color: var(--ink-green);
}

.hero-entry li:nth-child(3) .entry-link {
  background: var(--locust);
  border-color: var(--locust);
  color: #2a1e05;
}

.hero-entry li:nth-child(3) .entry-link .entry-label {
  color: #2a1e05;
}

.hero-entry li:nth-child(3) .entry-link .entry-note {
  color: #4a370f;
}

.hero-entry li:nth-child(3) .entry-link:hover {
  background: #c48f2f;
  border-color: #c48f2f;
}

/* 题材索引三栏带 */
.genre-band {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.genre-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.genre-col {
  min-width: 0;
  padding: 16px 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-head {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 12px;
  padding: 0;
}

.genre-head h3 {
  grid-column: 2;
  margin: 0 0 4px;
  color: var(--ink-green);
  font-size: 17px;
}

.genre-head p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.genre-col .genre-head {
  grid-template-columns: 4px minmax(0, 1fr);
}

.genre-col .genre-head::before {
  content: "";
  display: block;
  grid-row: 1 / span 2;
  width: 4px;
  align-self: stretch;
  background: var(--locust);
  border-radius: 1px;
}

.genre-head-daily::before {
  background: var(--ink-green) !important;
}

.genre-head-fantasy::before {
  background: #7a5ea8 !important;
}

.genre-head-story::before {
  background: var(--locust) !important;
}

.genre-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.genre-list a {
  display: block;
  min-height: 44px;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.genre-list a:hover {
  background: var(--hint-bg);
  border-left-color: var(--locust);
  color: var(--ink-green);
}

.genre-band > .section-inner > .genre-figure {
  margin-top: 20px;
}

/* 连载日程预览 */
.schedule-preview {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.cell-day {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-green);
  white-space: nowrap;
}

.cell-batch {
  white-space: nowrap;
}

/* 阅读路线四格 */
.route-band {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.route-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.route-card:hover {
  border-color: var(--ink-green);
  box-shadow: var(--shadow-soft);
}

.route-card h3 {
  margin: 0 0 8px;
  color: var(--ink-green);
  font-size: 16px;
  line-height: 1.4;
}

.route-start {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.route-nodes {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.route-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: auto;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-green);
  font-size: 13px;
  font-weight: 700;
}

.route-link::after {
  content: "→";
  color: var(--locust);
}

.route-link:hover {
  background: var(--hint-bg);
  border-color: var(--ink-green);
}

/* 文档式三栏说明区 */
.doc-band {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.doc-columns {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: start;
}

.doc-toc {
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.doc-toc-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.doc-toc ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-toc a {
  display: block;
  min-height: 36px;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.doc-toc a:hover {
  background: var(--hint-bg);
  border-left-color: var(--locust);
  color: var(--ink-green);
}

.doc-body {
  min-width: 0;
}

.doc-body h3 {
  margin: 0 0 10px;
  color: var(--ink-green);
  font-size: 18px;
}

.doc-body p {
  max-width: 42em;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.doc-body-link {
  margin: 0;
}

.doc-body-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-green);
  font-size: 14px;
  font-weight: 700;
}

.doc-body-link a::after {
  content: "→";
  color: var(--locust);
}

.doc-body-link a:hover {
  background: var(--hint-bg);
  border-color: var(--ink-green);
}

.doc-terms {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.term-bubble {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.term-trigger {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  background: var(--hint-bg);
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-green);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.term-trigger:hover {
  background: #e7dabb;
}

.term-panel {
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.term-panel[hidden] {
  display: none;
}

.term-panel a {
  color: var(--ink-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 阅读帮助与内容提示摘要 */
.help-band {
  padding: 32px 0 8px;
  border-top: 1px solid var(--line);
}

/* ===== 作品索引页 ===== */
.genre-list > .genre-group {
  margin: 0 0 30px;
}

.genre-group {
  min-width: 0;
}

.genre-group > .genre-head {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 0 0 12px;
}

.genre-bar {
  display: block;
  width: 4px;
  background: var(--locust);
  border-radius: 1px;
}

.genre-group > .genre-head h3 {
  grid-column: 2;
  margin: 0 0 4px;
  color: var(--ink-green);
  font-size: 19px;
  line-height: 1.35;
}

.genre-note {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work-item {
  min-width: 0;
}

.work-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 44px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.work-link:hover {
  background: var(--hint-bg);
  border-left-color: var(--locust);
}

.work-no {
  grid-row: 1 / span 2;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.work-name {
  grid-column: 2;
  color: var(--ink-green);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.work-note {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.work-tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.work-status {
  grid-column: 2;
  display: inline-block;
  justify-self: start;
  margin-top: 4px;
  padding: 1px 8px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.status-serial {
  background: var(--hint-bg);
  color: var(--ink-green);
}

.status-merge {
  background: #e6efe9;
  color: var(--ink-green-deep);
}

.status-pause {
  background: #f3e3d6;
  color: #8a4a1f;
}

/* 作品条目字段说明表 */
.field-table {
  margin-top: 8px;
}

.field-table .data-table th[scope="row"] {
  width: 34%;
  color: var(--ink-green);
  font-weight: 700;
}

/* 题材差异对照 */
.genre-compare {
  margin-top: 34px;
  padding: 18px 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-compare h2 {
  margin: 0 0 8px;
}

.genre-compare p {
  max-width: 42em;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.75;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}

.compare-item {
  padding: 10px 14px;
  background: var(--paper);
  border-left: 3px solid var(--locust);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  line-height: 1.7;
}

/* ===== 连载日程页 ===== */
.content-section {
  margin: 0 0 34px;
}

.content-section h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.schedule-section .schedule-table {
  margin-top: 4px;
}

.table-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.rhythm-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: rhythm;
}

.rhythm-item {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: rhythm;
}

.rhythm-item::before {
  content: counter(rhythm, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--locust);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.rhythm-item h3 {
  margin: 0 0 6px;
  color: var(--ink-green);
  font-size: 16px;
  line-height: 1.5;
}

.rhythm-item p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.exception-section .accordion-item summary {
  font-size: 14px;
}

.next-step-section p {
  max-width: 42em;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
}

/* ===== 阅读路线页 ===== */
.route-roles,
.route-compare,
.route-adjust,
.route-next {
  margin: 0 0 32px;
}

.route-roles h2,
.route-compare h2,
.route-adjust h2,
.route-next h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.route-roles > p,
.route-compare > p,
.route-adjust > p,
.route-next > p {
  max-width: 42em;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
}

.role-jump {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.role-jump a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--locust);
  border-radius: var(--radius);
  color: var(--ink-green);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.role-jump a:hover {
  background: var(--hint-bg);
  border-left-color: var(--ink-green);
}

.route-table th[scope="row"] {
  color: var(--ink-green);
  font-weight: 700;
  white-space: nowrap;
}

.route-detail {
  margin: 0 0 32px;
  padding: 18px 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.route-detail h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.route-lead {
  max-width: 42em;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.node-chain {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: node;
}

.node-chain li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px dashed var(--line);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  counter-increment: node;
}

.node-chain li:last-child {
  border-bottom: 0;
}

.node-chain li::before {
  content: counter(node);
  position: absolute;
  left: 0;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--hint-bg);
  border-radius: 50%;
  color: var(--ink-green);
  font-family: var(--font-mono);
  font-size: 12px;
}

.node-chain strong {
  color: var(--ink-green);
}

.route-end {
  margin: 0;
  font-size: 14px;
}

.route-end a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-green);
  font-weight: 700;
}

.route-end a::after {
  content: "→";
  color: var(--locust);
}

.route-end a:hover {
  background: var(--hint-bg);
  border-color: var(--ink-green);
}

.adjust-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adjust-list li {
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--locust);
  border-radius: var(--radius);
}

.adjust-list h3 {
  margin: 0 0 6px;
  color: var(--ink-green);
  font-size: 15px;
  line-height: 1.5;
}

.adjust-list p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== 阅读说明页 ===== */
.guide-flow,
.guide-marks,
.guide-setup {
  margin: 0 0 32px;
}

.guide-flow h2,
.guide-marks h2,
.guide-setup h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 14px 16px 14px 56px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.step-num {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--ink-green);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.step-item h3 {
  margin: 0 0 6px;
  color: var(--ink-green);
  font-size: 16px;
  line-height: 1.5;
}

.step-item p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.step-item .guide-figure {
  margin: 12px 0 0;
}

.mark-table {
  margin: 0 0 12px;
}

.mark-table td:first-child {
  color: var(--ink-green);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mark-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.mark-note a {
  color: var(--ink-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.setup-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.setup-item {
  position: relative;
  min-width: 0;
  padding: 14px 16px 14px 46px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.setup-check {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--hint-bg);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.setup-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--ink-green);
  border-bottom: 2px solid var(--ink-green);
  transform: rotate(42deg);
}

.setup-item h3 {
  margin: 0 0 4px;
  color: var(--ink-green);
  font-size: 15px;
  line-height: 1.5;
}

.setup-item p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.guide-tail {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-tail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-green);
  font-size: 14px;
  font-weight: 700;
}

.guide-tail a:hover {
  background: var(--hint-bg);
  border-color: var(--ink-green);
}

/* ===== 术语释义页 ===== */
.terms-figure {
  margin: 0 0 20px;
}

.lead {
  max-width: 42em;
  margin: 0 0 26px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.terms-group {
  margin: 0 0 32px;
}

.terms-group h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.terms-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 12px;
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.terms-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.terms-item:last-child {
  border-bottom: 0;
}

.terms-item dt {
  margin: 0 0 4px;
  color: var(--ink-green);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.terms-item dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.terms-item dd a {
  color: var(--ink-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-list-single {
  margin-top: 12px;
}

.terms-related {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.terms-related h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.terms-related p {
  max-width: 42em;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-green);
  font-size: 14px;
  font-weight: 700;
}

.related-links a:hover {
  background: var(--hint-bg);
  border-color: var(--ink-green);
}

/* ===== 阅读帮助页 ===== */
.help-groups {
  margin: 0 0 34px;
}

.help-groups h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.help-group {
  margin: 0 0 20px;
}

.help-group:last-child {
  margin-bottom: 0;
}

.group-head {
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}

.group-head h3 {
  margin: 0 0 4px;
  color: var(--ink-green);
  font-size: 17px;
  line-height: 1.4;
}

.group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.self-check {
  margin: 0 0 34px;
}

.self-check h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.self-check-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: check;
}

.self-check-steps li {
  position: relative;
  padding: 12px 16px 12px 52px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: check;
}

.self-check-steps li::before {
  content: counter(check, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 12px;
  color: var(--locust);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.self-check-steps h3 {
  margin: 0 0 4px;
  color: var(--ink-green);
  font-size: 15px;
  line-height: 1.5;
}

.self-check-steps p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.notice-feedback {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--locust);
  border-radius: var(--radius);
}

.notice-feedback h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.notice-feedback p {
  max-width: 42em;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
}

.notice-feedback p:last-child {
  margin-bottom: 0;
}

/* ===== 404 页 ===== */
.error-main {
  padding-top: 32px;
  padding-bottom: 56px;
}

.error-block {
  max-width: 640px;
  margin: 0 0 30px;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--locust);
  border-radius: var(--radius);
}

.error-code {
  margin: 0 0 6px;
  color: var(--locust);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.error-block h1 {
  margin: 0 0 10px;
  color: var(--ink-green);
  font-size: 30px;
  line-height: 1.3;
}

.error-lead {
  max-width: 34em;
  margin: 0 0 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--ink-green);
  border: 1px solid var(--ink-green);
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.error-home-link:hover {
  background: var(--ink-green-deep);
  border-color: var(--ink-green-deep);
  color: #fff;
}

.error-side-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-green);
  font-size: 14px;
  font-weight: 700;
}

.error-side-link:hover {
  background: var(--hint-bg);
  border-color: var(--ink-green);
}

.error-hints {
  max-width: 640px;
}

.error-hints h2 {
  margin: 0 0 12px;
  font-size: 19px;
}

.error-hint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.error-hint-list a {
  display: block;
  min-height: 44px;
  padding: 11px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-green);
  font-size: 14px;
  line-height: 1.5;
}

.error-hint-list a:hover {
  background: var(--hint-bg);
  border-left-color: var(--locust);
}

/* --------------------------------------------------------------------------
   5. responsive — 1080 / 860 / 620 三档断点
   -------------------------------------------------------------------------- */

/* 1080px：导航与多栏收紧 */
@media (max-width: 1080px) {
  :root {
    --gutter: 20px;
  }

  .header-inner {
    gap: 16px;
  }

  .main-nav a {
    padding: 6px 8px;
    font-size: 13px;
  }

  .header-side-link {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  .hero-inner {
    gap: 24px;
  }

  .genre-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-columns {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
  }

  .doc-terms {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .doc-terms .term-bubble {
    flex: 1 1 240px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 24px;
  }

  .page-layout.sidebar-left {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .role-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .role-jump {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 860px：内页侧栏折叠到正文之上，正文单列 */
@media (max-width: 860px) {
  .site-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-left: 0;
    padding-right: 0;
  }

  /* 侧栏退化为正文上方的可折叠面板，H1 与核心内容优先 */
  .page-layout > .column-nav,
  .page-layout > .side-nav {
    position: static;
    top: auto;
    order: 2;
    padding: 12px 14px;
  }

  .page-layout > .page-content,
  .page-layout > .content-main,
  .page-layout > .column-main,
  .page-layout > .inner-main {
    order: 1;
  }

  .page-layout > .page-toc {
    position: static;
    top: auto;
    order: 3;
  }

  .inner-main > .page-layout > .column-nav,
  .inner-main > .page-layout > .side-nav {
    order: 2;
  }

  .inner-main > .page-layout > .page-content,
  .inner-main > .page-layout > .content-main,
  .inner-main > .page-layout > .column-main {
    order: 1;
  }

  .column-nav-toggle {
    display: block;
  }

  .page-layout > .column-nav > ul,
  .page-layout > .column-nav > .column-nav-list,
  .page-layout > .side-nav > ul {
    margin-top: 10px;
  }

  /* 首页模块在平板下调整列数 */
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-media {
    order: 2;
  }

  .hero-text {
    order: 1;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .role-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-terms {
    flex-direction: column;
  }

  .setup-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .terms-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

/* 620px：手机单列，触控目标 ≥44px */
@media (max-width: 620px) {
  :root {
    --gutter: 14px;
    --header-h: 60px;
  }

  body.site-body {
    font-size: 15px;
  }

  h1,
  .page-title,
  .hero-text h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 19px;
  }

  h3 {
    font-size: 16px;
  }

  .header-inner {
    gap: 10px;
    padding: 0 var(--gutter);
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-mark {
    width: 12px;
    height: 20px;
  }

  .site-main {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .inner-main {
    padding-top: 14px;
    padding-bottom: 40px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-title-block {
    padding: 14px 14px;
  }

  .page-lead,
  .page-heading-desc,
  .page-head-desc,
  .page-title-desc {
    font-size: 14px;
  }

  /* 首页模块单列 */
  .role-band {
    padding: 14px 0 6px;
  }

  .role-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .hero {
    padding: 14px 0 24px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-entry {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-link {
    justify-content: space-between;
    width: 100%;
  }

  .genre-band,
  .schedule-preview,
  .route-band,
  .doc-band,
  .help-band {
    padding: 22px 0;
  }

  .genre-columns {
    gap: 10px;
  }

  .genre-col {
    padding: 14px;
  }

  .route-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .doc-columns {
    gap: 16px;
  }

  .doc-body p {
    font-size: 14px;
  }

  .role-jump {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-jump a {
    font-size: 13px;
    padding: 10px 8px;
  }

  /* 表格转为堆叠展示，避免横向溢出 */
  .table-wrap {
    overflow-x: auto;
  }

  .schedule-table,
  .data-table,
  .mark-table {
    font-size: 13px;
  }

  .schedule-table th,
  .schedule-table td,
  .data-table th,
  .data-table td,
  .mark-table th,
  .mark-table td {
    padding: 8px 10px;
  }

  /* 作品条目：编号与内容上下排列 */
  .work-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px;
  }

  .work-no {
    grid-row: auto;
    grid-column: 1;
    font-size: 12px;
  }

  .work-name,
  .work-note,
  .work-tags,
  .work-status {
    grid-column: 1;
  }

  .work-status {
    justify-self: start;
  }

  /* 步骤与节点保持可读宽度 */
  .step-item {
    padding: 14px 14px 14px 50px;
  }

  .step-num {
    left: 12px;
    top: 12px;
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .rhythm-item {
    padding: 14px 14px 14px 44px;
  }

  .rhythm-item::before {
    left: 12px;
    top: 14px;
  }

  .self-check-steps li {
    padding: 12px 14px 12px 44px;
  }

  .self-check-steps li::before {
    left: 12px;
    top: 12px;
  }

  .setup-item {
    padding: 14px 14px 14px 44px;
  }

  .setup-check {
    left: 12px;
    top: 14px;
  }

  .accordion-item summary,
  .help-item summary {
    padding: 12px 36px 12px 14px;
    font-size: 14px;
  }

  .accordion-item > p,
  .help-item > p {
    padding: 0 14px 12px;
    font-size: 13px;
  }

  .node-chain li {
    padding: 10px 0 10px 30px;
    font-size: 13px;
  }

  .node-chain li::before {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .terms-item dt {
    font-size: 14px;
  }

  .terms-item dd {
    font-size: 13px;
  }

  .compare-item {
    font-size: 13px;
  }

  .next-links,
  .related-links,
  .guide-tail {
    flex-direction: column;
    align-items: stretch;
  }

  .next-links a,
  .related-links a,
  .guide-tail a {
    justify-content: center;
    text-align: center;
  }

  .error-block {
    padding: 22px 18px;
  }

  .error-block h1 {
    font-size: 24px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-home-link,
  .error-side-link {
    justify-content: center;
  }

  /* 页脚单列 */
  .footer-inner {
    padding: 28px var(--gutter) 20px;
    gap: 22px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .footer-group a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 4px 0;
  }

  .footer-bottom p {
    padding: 14px var(--gutter);
  }

  .drawer-roles ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
