/* ==========================================================================
   91果冻 · 小说阅读与作品目录站
   全局样式表
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础重置
   -------------------------------------------------------------------------- */
:root {
  --ink: #101820;
  --paper: #F7F3EA;
  --ink-teal: #1B3A4B;
  --amber: #F2A900;
  --jade: #1FBF8F;
  --coral: #E4572E;
  --line: #D8D2C4;
  --paper-soft: #EFE9DC;
  --paper-card: #FCFAF4;
  --ink-soft: #4A5560;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  --shell: 1180px;
  --read: 720px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-soft: 0 1px 2px rgba(16, 24, 32, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink-teal);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--coral);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 阅读区字号档位：只作用于正文容器 */
.font-small {
  font-size: 15px;
}

.font-medium {
  font-size: 16px;
}

.font-large {
  font-size: 18px;
}

/* --------------------------------------------------------------------------
   layout · 页头骨架
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--amber);
}

.header-top {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

.brand-mark {
  display: inline-block;
  color: var(--paper);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand-mark:hover {
  color: var(--amber);
}

.brand-tagline {
  color: rgba(247, 243, 234, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.font-size-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(247, 243, 234, 0.28);
  border-radius: var(--radius-sm);
}

.font-size-label {
  color: rgba(247, 243, 234, 0.7);
  font-size: 12px;
  padding-right: 4px;
}

.font-btn {
  min-width: 30px;
  min-height: 30px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: rgba(247, 243, 234, 0.78);
  font-size: 13px;
  line-height: 1;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.font-btn:hover {
  background-color: rgba(247, 243, 234, 0.14);
  color: var(--paper);
}

.font-btn.is-active {
  background-color: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(247, 243, 234, 0.34);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-size: 13px;
  white-space: nowrap;
}

.tool-link:hover {
  background-color: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* 主导航 */
.main-nav.site-nav {
  background-color: var(--ink-teal);
  border-top: 1px solid rgba(247, 243, 234, 0.12);
}

.nav-list {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  color: rgba(247, 243, 234, 0.86);
  font-size: 15px;
  border-bottom: 3px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav-list a:hover {
  background-color: rgba(247, 243, 234, 0.1);
  color: var(--paper);
}

.nav-list a.is-current {
  color: var(--amber);
  border-bottom-color: var(--amber);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(247, 243, 234, 0.34);
  border-radius: var(--radius-sm);
  background-color: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--paper);
}

/* --------------------------------------------------------------------------
   layout · 主容器与内页骨架
   -------------------------------------------------------------------------- */
.site-main {
  display: block;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
  min-width: 0;
}

/* 内页统一页面标题区 */
.page-title-section,
.page-title-area {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px 0 6px;
}

.page-title-bar {
  margin: 0 0 22px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.page-kicker {
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 4px;
}

.page-lead,
.page-task {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  max-width: var(--read);
}

.page-header {
  margin: 0 0 20px;
}

.page-title {
  color: var(--ink);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--ink-teal);
  text-decoration: underline;
  text-decoration-color: rgba(27, 58, 75, 0.35);
}

.breadcrumb a:hover {
  color: var(--coral);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumb-list a {
  color: var(--ink-teal);
  text-decoration: underline;
  text-decoration-color: rgba(27, 58, 75, 0.35);
}

.breadcrumb-list a:hover {
  color: var(--coral);
}

/* 内页两栏：默认正文在前、侧栏在后；.sidebar-left 时侧栏在前 */
.page-layout {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 40px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.page-layout.layout-shell.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

/* 侧栏位于 body / 祖先节点时的兜底布局 */
.sidebar-left .page-layout {
  grid-template-columns: 240px minmax(0, 1fr);
}

.page-content {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   components · 侧栏目录
   -------------------------------------------------------------------------- */
.page-sidebar,
.page-toc {
  position: sticky;
  top: 18px;
  align-self: start;
  min-width: 0;
  padding: 16px 16px 14px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.sidebar-title,
.toc-title,
.sidebar-toc-title {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--amber);
}

.sidebar-nav,
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav a,
.toc-link,
.toc-list a {
  display: block;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.toc-link:hover,
.toc-list a:hover {
  background-color: var(--paper-soft);
  color: var(--ink-teal);
}

.sidebar-nav a.is-active,
.toc-link.is-active,
.toc-list a.is-active {
  background-color: rgba(242, 169, 0, 0.16);
  border-left-color: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

.sidebar-progress {
  margin-top: 14px;
  height: 4px;
  background-color: var(--paper-soft);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--jade);
  transition: width 0.2s ease;
}

/* 折叠式侧栏（notes / about） */
.sidebar-toc {
  display: block;
}

.sidebar-toc-title {
  cursor: pointer;
  list-style: none;
}

.sidebar-toc-title::-webkit-details-marker {
  display: none;
}

.sidebar-toc-title::after {
  content: "▾";
  float: right;
  color: var(--ink-soft);
  font-size: 12px;
}

.sidebar-toc[open] .sidebar-toc-title::after {
  content: "▴";
}

.toc-toggle {
  display: none;
  width: 100%;
  min-height: 40px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--paper-soft);
  color: var(--ink-teal);
  font-size: 14px;
  text-align: left;
}

.toc-toggle::after {
  content: "▾";
  float: right;
}

.toc-toggle[aria-expanded="true"]::after {
  content: "▴";
}

/* --------------------------------------------------------------------------
   components · 状态徽标
   -------------------------------------------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 1px 8px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
}

.status-active,
.status-ongoing,
.status-serial {
  background-color: rgba(31, 191, 143, 0.16);
  color: #0F7A5A;
  border: 1px solid rgba(31, 191, 143, 0.5);
}

.status-archived,
.status-archive,
.status-closed {
  background-color: rgba(27, 58, 75, 0.1);
  color: var(--ink-teal);
  border: 1px solid rgba(27, 58, 75, 0.32);
}

.status-pending {
  background-color: rgba(228, 87, 46, 0.12);
  color: #A83A18;
  border: 1px solid rgba(228, 87, 46, 0.45);
}

.badge,
.badge-genre,
.type-badge,
.genre-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 9px;
  border-radius: 3px;
  background-color: rgba(27, 58, 75, 0.08);
  border: 1px solid rgba(27, 58, 75, 0.24);
  color: var(--ink-teal);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   components · 图片容器
   -------------------------------------------------------------------------- */
.hero-figure,
.section-figure,
.content-figure,
.section-media,
.guide-figure,
.media-figure,
.page-hero-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper-soft);
}

.hero-figure img,
.section-figure img,
.content-figure img,
.section-media img,
.guide-figure img,
.media-figure img,
.page-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-figure figcaption,
.section-figure figcaption,
.content-figure figcaption,
.section-media figcaption,
.guide-figure figcaption,
.media-caption,
.page-hero-media figcaption {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background-color: var(--paper-card);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   components · 按钮与行内链接
   -------------------------------------------------------------------------- */
.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: 700;
  line-height: 1.3;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.btn-primary:hover {
  background-color: #FFC02E;
  border-color: #FFC02E;
  color: var(--ink);
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--ink-teal);
  color: var(--ink-teal);
}

.btn-ghost:hover {
  background-color: var(--ink-teal);
  color: var(--paper);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-teal);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: rgba(27, 58, 75, 0.4);
  min-height: 28px;
}

.inline-link::after {
  content: "›";
  font-size: 16px;
  line-height: 1;
}

.inline-link:hover {
  color: var(--coral);
  text-decoration-color: rgba(228, 87, 46, 0.5);
}

/* --------------------------------------------------------------------------
   layout · 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--ink);
  color: rgba(247, 243, 234, 0.8);
  border-top: 3px solid var(--amber);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 24px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.footer-title {
  color: var(--paper);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(247, 243, 234, 0.76);
  max-width: 560px;
}

.footer-copy {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(247, 243, 234, 0.5);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: rgba(247, 243, 234, 0.82);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--amber);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main .section {
  padding: 40px 0 0;
}

.section-head {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.section-desc {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  max-width: 760px;
}

/* 首屏：时间归档 */
.hero-archive {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
  padding: 36px 0 8px;
  align-items: start;
}

.hero-left {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-left: 4px solid var(--amber);
  background-color: var(--paper-soft);
  color: var(--ink-teal);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.hero-left h1 {
  color: var(--ink);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero-lead {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
  max-width: var(--read);
}

.hero-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 14px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
}

.hero-status-text {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-figure {
  margin-top: 24px;
}

.hero-figure img {
  aspect-ratio: 16 / 8;
}

/* 首屏右侧归档 */
.hero-right {
  min-width: 0;
  padding: 18px 18px 14px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink-teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-right-title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.archive-list {
  display: flex;
  flex-direction: column;
}

.archive-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.archive-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.archive-item a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  align-self: center;
  text-decoration: underline;
  text-decoration-color: rgba(16, 24, 32, 0.24);
}

.archive-item a:hover {
  color: var(--coral);
}

.archive-note {
  grid-column: 2;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

/* 信息架构总览 */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.arch-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 16px 18px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.arch-num {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.arch-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.arch-name a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(16, 24, 32, 0.22);
}

.arch-name a:hover {
  color: var(--coral);
}

.arch-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* 精选作品目录行式列表 */
.section-figure {
  margin-bottom: 20px;
}

.section-figure img {
  aspect-ratio: 21 / 7;
}

.catalog-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.catalog-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 132px;
  gap: 16px;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.16s ease;
}

.catalog-row:hover {
  background-color: var(--paper-card);
}

.row-index {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.row-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-teal);
  line-height: 1;
}

.row-summary {
  min-width: 0;
}

.row-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 3px;
}

.row-title a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(16, 24, 32, 0.22);
}

.row-title a:hover {
  color: var(--coral);
}

.row-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.row-entry {
  min-width: 0;
  text-align: right;
}

.row-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--ink-teal);
  border-radius: var(--radius-sm);
  color: var(--ink-teal);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.row-link:hover {
  background-color: var(--ink-teal);
  color: var(--paper);
}

.section-more {
  margin-top: 16px;
}

.section-more a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  background-color: var(--ink-teal);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.section-more a:hover {
  background-color: var(--ink);
  color: var(--amber);
}

/* 类型索引赛程表 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper-card);
}

.genre-table {
  min-width: 640px;
  font-size: 14px;
  line-height: 1.6;
}

.genre-table thead th {
  background-color: var(--ink-teal);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
}

.genre-table tbody th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background-color: rgba(216, 210, 196, 0.18);
}

.genre-table tbody td {
  padding: 12px 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.genre-table tbody tr:last-child th,
.genre-table tbody tr:last-child td {
  border-bottom: 0;
}

.genre-table tbody tr:hover td,
.genre-table tbody tr:hover th {
  background-color: rgba(242, 169, 0, 0.08);
}

.genre-table td a {
  color: var(--ink-teal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(27, 58, 75, 0.4);
}

.genre-table td a:hover {
  color: var(--coral);
}

.genre-table .genre-tag {
  font-size: 12px;
}

/* 连载动态时间轴（首页） */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 22px;
  border-left: 2px solid var(--line);
}

.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0 18px;
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--paper);
  border: 3px solid var(--ink-teal);
}

.timeline-stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 26px;
  padding: 1px 10px;
  background-color: var(--ink-teal);
  border-radius: 3px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.timeline-body {
  min-width: 0;
}

.timeline-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
}

.timeline-title a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(16, 24, 32, 0.22);
}

.timeline-title a:hover {
  color: var(--coral);
}

.timeline-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* 阅读路径四步 */
.path-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: path;
}

.path-step {
  position: relative;
  min-width: 0;
  padding: 18px 16px 18px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--jade);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.path-step .step-num {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--jade);
  line-height: 1.4;
}

.path-step .step-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
  color: var(--ink);
}

.path-step .step-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* 首页问答 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 860px;
}

.faq-item {
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(242, 169, 0, 0.7);
  box-shadow: 0 0 0 1px rgba(242, 169, 0, 0.35);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-teal);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--coral);
}

.faq-question:hover {
  background-color: var(--paper-soft);
}

.faq-answer {
  padding: 0 16px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.faq-answer p {
  padding-top: 12px;
}

.faq-answer a {
  color: var(--ink-teal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(27, 58, 75, 0.4);
}

.faq-answer a:hover {
  color: var(--coral);
}

/* 首页相关链接 */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 40px;
  padding: 16px 18px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
}

.related-links-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  margin-right: 4px;
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--paper);
  color: var(--ink-teal);
  font-size: 13px;
  font-weight: 700;
}

.related-links-item:hover {
  border-color: var(--ink-teal);
  background-color: var(--ink-teal);
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   pages · 作品目录 catalog
   -------------------------------------------------------------------------- */
.content-section {
  margin-bottom: 34px;
  min-width: 0;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-title {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.content-section p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 12px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-figure {
  margin: 0 0 16px;
}

.content-figure img {
  aspect-ratio: 21 / 7;
}

.anchor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.anchor-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-teal);
  font-size: 14px;
  font-weight: 700;
}

.anchor-tag:hover {
  background-color: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.catalog-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper-card);
}

.catalog-table {
  min-width: 700px;
  font-size: 14px;
  line-height: 1.6;
}

.catalog-table caption {
  padding: 10px 14px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.catalog-table thead th {
  background-color: var(--ink-teal);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
}

.catalog-table tbody td {
  padding: 12px 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.catalog-table tbody tr:last-child td {
  border-bottom: 0;
}

.catalog-table tbody tr:hover td {
  background-color: rgba(242, 169, 0, 0.07);
}

.catalog-table .cell-index {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-teal);
  white-space: nowrap;
}

.catalog-group-row td {
  background-color: var(--paper-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

.cell-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 200px;
}

.work-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.work-summary {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.chapter-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--ink-teal);
  border-radius: 3px;
  color: var(--ink-teal);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.chapter-link:hover {
  background-color: var(--ink-teal);
  color: var(--paper);
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: order;
}

.order-item {
  position: relative;
  padding: 14px 16px 14px 46px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--jade);
  border-radius: var(--radius-sm);
  counter-increment: order;
}

.order-item::before {
  content: counter(order, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 15px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--jade);
  line-height: 1.4;
}

.order-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
}

.order-item p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.75;
}

/* 内页相关链接网格：4 项 2 列 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius-sm);
}

.related-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: rgba(16, 24, 32, 0.24);
}

.related-link:hover {
  color: var(--coral);
}

.related-card p {
  margin-top: 4px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 连载动态 serial
   -------------------------------------------------------------------------- */
.section-lead {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
  max-width: var(--read);
}

.section-media {
  margin: 0 0 16px;
}

.section-media img {
  aspect-ratio: 21 / 7;
}

.status-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 12px 16px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--jade);
  border-radius: var(--radius-sm);
}

.status-text {
  flex: 1 1 220px;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

/* 连载页时间轴：节点两栏标签 + 正文 */
.serial-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 22px;
  border-left: 2px solid var(--line);
}

.serial-timeline .timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0 18px;
}

.serial-timeline .timeline-node::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--paper);
  border: 3px solid var(--jade);
}

.node-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.node-stage {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.node-body {
  min-width: 0;
}

.node-desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper-card);
  overflow: hidden;
}

.legend-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.legend-item:last-child {
  border-bottom: 0;
}

.legend-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.archive-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink-teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.archive-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
}

.archive-summary {
  flex: 1 1 auto;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 10px;
}

.archive-card .inline-link {
  align-self: flex-start;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-item {
  padding: 12px 16px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
}

.related-desc {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.section-tail {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   pages · 类型书单 genres
   -------------------------------------------------------------------------- */
.section-intro {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
  max-width: var(--read);
}

.data-table {
  min-width: 640px;
  font-size: 14px;
  line-height: 1.6;
}

.data-table .table-caption {
  padding: 10px 14px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background-color: var(--paper-card);
}

.data-table thead th {
  background-color: var(--ink-teal);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
}

.data-table tbody th {
  padding: 12px 14px;
  text-align: left;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  background-color: rgba(216, 210, 196, 0.16);
}

.data-table tbody td {
  padding: 12px 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td,
.data-table tbody tr:hover th {
  background-color: rgba(242, 169, 0, 0.08);
}

.data-table td a {
  color: var(--ink-teal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(27, 58, 75, 0.4);
}

.data-table td a:hover {
  color: var(--coral);
}

/* 三列独立书单容器 */
.booklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.booklist-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.booklist-title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
}

.booklist-audience {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.booklist-rows {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.booklist-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(216, 210, 196, 0.7);
}

.booklist-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.booklist-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.booklist-desc {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.booklist-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--ink-teal);
  border-radius: var(--radius-sm);
  color: var(--ink-teal);
  font-size: 13px;
  font-weight: 700;
}

.booklist-entry:hover {
  background-color: var(--ink-teal);
  color: var(--paper);
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: tip;
}

.tip-item {
  position: relative;
  padding: 14px 16px 14px 48px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-sm);
  counter-increment: tip;
}

.tip-item::before {
  content: counter(tip, decimal-leading-zero);
  position: absolute;
  left: 15px;
  top: 15px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--coral);
  line-height: 1.4;
}

.tip-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
}

.tip-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* 内页链接网格：4 项 2 列 */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink-teal);
  border-radius: var(--radius-sm);
}

.link-card-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
}

.link-card-anchor {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(16, 24, 32, 0.24);
}

.link-card-anchor:hover {
  color: var(--coral);
}

.link-card-text {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 作品札记 notes
   -------------------------------------------------------------------------- */
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 26px;
  padding: 18px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-hero-text {
  min-width: 0;
}

.page-eyebrow {
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 6px;
}

.page-hero-media {
  margin: 0;
}

.page-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.notes-intro {
  margin-bottom: 30px;
  min-width: 0;
}

.notes-intro h2,
.notes-list h2,
.framework h2,
.cross-index h2 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.notes-intro p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 12px;
}

.notes-intro p:last-child {
  margin-bottom: 0;
}

.notes-list {
  margin-bottom: 30px;
  min-width: 0;
}

.notes-list .section-desc,
.framework .section-desc,
.cross-index .section-desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
  max-width: var(--read);
}

.note-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.note-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 132px;
  gap: 14px;
  align-items: start;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.16s ease;
}

.note-row:hover {
  background-color: var(--paper-card);
}

.note-row-head {
  min-width: 0;
}

.note-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.note-row-body {
  min-width: 0;
}

.note-point {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.note-row-link {
  min-width: 0;
  text-align: right;
}

.note-row-link a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--ink-teal);
  border-radius: var(--radius-sm);
  color: var(--ink-teal);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.note-row-link a:hover {
  background-color: var(--ink-teal);
  color: var(--paper);
}

.framework {
  margin-bottom: 30px;
  min-width: 0;
}

.framework-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  counter-reset: frame;
}

.framework-step {
  position: relative;
  min-width: 0;
  padding: 16px 16px 16px 48px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--jade);
  border-radius: var(--radius-sm);
  counter-increment: frame;
}

.framework-step::before {
  content: counter(frame, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 17px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--jade);
  line-height: 1.4;
}

.framework-step-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
}

.framework-step p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.cross-index {
  min-width: 0;
}

.cross-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cross-index-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
}

.cross-index-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
}

.cross-index-col p {
  flex: 1 1 auto;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 10px;
}

.cross-index-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--ink-teal);
  border-radius: var(--radius-sm);
  color: var(--ink-teal);
  font-size: 13px;
  font-weight: 700;
}

.cross-index-link:hover {
  background-color: var(--ink-teal);
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   pages · 阅读指南 reading-guide
   -------------------------------------------------------------------------- */
.guide-section {
  margin-bottom: 34px;
  min-width: 0;
}

.guide-section h2 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.guide-figure {
  margin: 0 0 22px;
}

.guide-figure img {
  aspect-ratio: 21 / 7;
}

.prep-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prep-item {
  padding: 14px 16px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--jade);
  border-radius: var(--radius-sm);
}

.prep-item h3 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
}

.prep-item p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: gstep;
}

.step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  counter-increment: gstep;
}

.step-item .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--ink-teal);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
}

.step-body p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.checkpoint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkpoint-card {
  min-width: 0;
  padding: 16px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius-sm);
}

.checkpoint-card h3 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
}

.checkpoint-q {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 4px;
}

.checkpoint-a {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.followup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.followup-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--coral);
  border-radius: var(--radius);
}

.followup-card h3 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
}

.followup-card p {
  flex: 1 1 auto;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 10px;
}

.followup-card p a {
  color: var(--ink-teal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(27, 58, 75, 0.4);
}

.followup-card p a:hover {
  color: var(--coral);
}

.followup-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--ink-teal);
  border-radius: var(--radius-sm);
  color: var(--ink-teal);
  font-size: 13px;
  font-weight: 700;
}

.followup-link:hover {
  background-color: var(--ink-teal);
  color: var(--paper);
}

.guide-section .related-links {
  margin-top: 0;
}

/* 指南页相关页面 */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-teal);
  border-radius: var(--radius-sm);
  color: var(--ink-teal);
  font-size: 14px;
  font-weight: 700;
}

.related-list a:hover {
  background-color: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages · 使用说明 about
   -------------------------------------------------------------------------- */
.media-figure {
  margin: 0 0 16px;
}

.media-figure img {
  aspect-ratio: 21 / 7;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: rule;
}

.rule-item {
  position: relative;
  padding: 14px 16px 14px 48px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-teal);
  border-radius: var(--radius-sm);
  counter-increment: rule;
}

.rule-item::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 15px;
  top: 15px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-teal);
  line-height: 1.4;
}

.rule-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
}

.rule-text {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.spec-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper-card);
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-term {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.spec-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.nav-table {
  min-width: 620px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56vh;
  padding: 48px 24px 64px;
}

.error-panel {
  width: 100%;
  max-width: 620px;
  padding: 32px 28px;
  background-color: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--amber);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--coral);
  margin-bottom: 10px;
}

.error-title {
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.error-text {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink-teal);
  border-radius: var(--radius-sm);
  color: var(--ink-teal);
  font-size: 15px;
  font-weight: 700;
}

.error-btn:hover {
  background-color: var(--ink-teal);
  color: var(--paper);
}

.error-btn-primary {
  background-color: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.error-btn-primary:hover {
  background-color: #FFC02E;
  border-color: #FFC02E;
  color: var(--ink);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-teal);
  font-size: 13px;
  font-weight: 700;
}

.error-links a:hover {
  border-color: var(--ink-teal);
  color: var(--coral);
}

/* --------------------------------------------------------------------------
   responsive · 平板 ≤1024px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-layout,
  .page-layout.sidebar-left,
  .page-layout.layout-shell.sidebar-left,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* 移动/平板：侧栏退到正文之后，保证 H1 与正文在前 */
  .page-sidebar,
  .page-toc {
    position: static;
    order: 2;
    top: auto;
  }

  .page-layout > .page-content,
  .page-layout > .inner-main,
  .page-layout > .site-main {
    order: 1;
    min-width: 0;
  }

  .hero-archive {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-left h1 {
    font-size: 34px;
  }

  .arch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-row {
    grid-template-columns: 84px minmax(0, 1fr) 120px;
    gap: 12px;
  }

  .booklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booklist-column:last-child {
    grid-column: 1 / -1;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-card:last-child {
    grid-column: 1 / -1;
  }

  .followup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .followup-card:last-child {
    grid-column: 1 / -1;
  }

  .cross-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cross-index-col:last-child {
    grid-column: 1 / -1;
  }

  .note-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .note-row-link {
    grid-column: 1 / -1;
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
}

/* --------------------------------------------------------------------------
   responsive · 手机 ≤680px
   -------------------------------------------------------------------------- */
@media (max-width: 680px) {
  .header-top {
    padding: 12px 16px 10px;
    gap: 10px;
  }

  .brand-block {
    gap: 8px;
  }

  .brand-mark {
    font-size: 21px;
  }

  .brand-tagline {
    font-size: 12px;
    flex-basis: 100%;
  }

  .header-tools {
    gap: 10px;
    width: 100%;
    justify-content: space-between;
  }

  .font-btn {
    min-width: 34px;
    min-height: 34px;
  }

  .tool-link {
    min-height: 34px;
    padding: 0 10px;
  }

  /* 移动端导航：按钮显示，列表默认收起 */
  .main-nav.site-nav {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
    margin: 8px 16px;
  }

  .nav-list {
    display: none;
    width: 100%;
    padding: 0 16px 10px;
    flex-direction: column;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
    border-top: 1px solid rgba(247, 243, 234, 0.14);
  }

  .nav-list a {
    width: 100%;
    min-height: 46px;
    padding: 0 4px;
    border-bottom: 0;
  }

  .nav-list a.is-current {
    border-bottom: 0;
  }

  .home-main,
  .inner-main,
  .page-layout,
  .page-layout.sidebar-left,
  .page-layout.layout-shell.sidebar-left,
  .sidebar-left .page-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title-section,
  .page-title-area {
    padding: 20px 16px 4px;
  }

  .breadcrumb-list {
    padding: 14px 16px 0;
  }

  .page-title {
    font-size: 28px;
  }

  .hero-left h1 {
    font-size: 30px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    flex: 1 1 100%;
  }

  .hero-figure img {
    aspect-ratio: 4 / 3;
  }

  .home-main .section {
    padding-top: 32px;
  }

  .section-head h2,
  .section-title,
  .guide-section h2,
  .notes-intro h2,
  .notes-list h2,
  .framework h2,
  .cross-index h2 {
    font-size: 20px;
  }

  .arch-grid,
  .path-steps,
  .booklist-grid,
  .archive-grid,
  .followup-grid,
  .cross-index-grid,
  .checkpoint-grid,
  .framework-steps,
  .related-grid,
  .link-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .booklist-column:last-child,
  .archive-card:last-child,
  .followup-card:last-child,
  .cross-index-col:last-child {
    grid-column: auto;
  }

  .catalog-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px 4px;
  }

  .row-index {
    gap: 10px;
  }

  .row-entry {
    text-align: left;
  }

  .row-link {
    justify-content: center;
    min-height: 40px;
  }

  .timeline {
    padding-left: 18px;
  }

  .timeline-node {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 12px 0 16px;
  }

  .timeline-node::before {
    left: -26px;
    top: 18px;
  }

  .timeline-stage {
    justify-self: start;
  }

  .serial-timeline {
    padding-left: 18px;
  }

  .serial-timeline .timeline-node {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px 0 16px;
  }

  .serial-timeline .timeline-node::before {
    left: -26px;
    top: 18px;
  }

  .node-label {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .legend-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .status-banner {
    padding: 12px;
  }

  .note-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 4px;
  }

  .note-row-link {
    grid-column: auto;
  }

  .note-row-link a {
    justify-content: center;
    min-height: 38px;
  }

  .page-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .spec-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .step-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .step-item .step-num {
    width: 32px;
    height: 32px;
  }

  .order-item,
  .tip-item,
  .rule-item,
  .framework-step {
    padding: 13px 13px 13px 44px;
  }

  .order-item::before,
  .tip-item::before,
  .rule-item::before,
  .framework-step::before {
    left: 13px;
    top: 14px;
  }

  .related-links {
    padding: 14px;
  }

  .related-links-item {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
    min-height: 38px;
  }

  .footer-inner {
    padding: 26px 16px 24px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 12px;
  }

  .footer-links a {
    min-height: 40px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-title {
    font-size: 22px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-btn {
    width: 100%;
  }
}

/* 减少动态效果偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 程序验收反馈：修复网格孤项 */
@media (min-width: 769px) {
  .related-grid {
    grid-template-columns: repeat(2, 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;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
