/* ==========================================================================
   奇漫屋app下载 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --paper: #F6EEDF;
  --card: #FFFDF7;
  --ink: #1F3A32;
  --accent: #C24B32;
  --caramel: #D78A3C;
  --text: #3E2C23;
  --muted: #75877D;
  --line: #F0D9A8;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(62, 44, 35, .08);
  --shadow-md: 0 3px 10px rgba(62, 44, 35, .1);
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1180px;
  --gap: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* ==========================================================================
   layout · 全站骨架（锁定）
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

/* ---- 顶部信息条 ---- */

.site-info-bar {
  background: var(--ink);
  color: #E9E1D0;
  font-size: 13px;
  line-height: 1.5;
}

.info-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.info-brand {
  font-weight: 700;
  color: #FFFDF7;
  white-space: nowrap;
}

.info-slogan {
  color: #C9D2C7;
  flex: 1 1 auto;
  min-width: 0;
}

.info-version-link,
.info-link {
  color: var(--line);
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.info-version-link:hover,
.info-link:hover,
.info-version-link:focus-visible,
.info-link:focus-visible {
  color: #FFFDF7;
  border-bottom-color: var(--caramel);
}

.site-info-brand,
.site-info-slogan {
  margin: 0;
  max-width: var(--maxw);
}

.site-info-brand {
  font-weight: 700;
  color: #FFFDF7;
}

.site-info-slogan {
  color: #C9D2C7;
}

.site-info-link {
  color: var(--line);
  border-bottom: 1px solid transparent;
}

.site-info-link:hover,
.site-info-link:focus-visible {
  color: #FFFDF7;
  border-bottom-color: var(--caramel);
}

/* ---- 页头 ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  padding: 8px 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.brand-logo:hover .brand-name,
.brand-logo:focus-visible .brand-name {
  color: var(--accent);
}

/* ---- 主导航 ---- */

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.nav-link {
  display: inline-block;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  line-height: 1.5;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--caramel);
}

.nav-link.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFDF7;
}

/* ---- 移动端导航按钮 ---- */

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background: var(--card);
  border-top: 1px solid var(--line);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  padding: 8px 16px 16px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--accent);
}

.mobile-nav-link.is-active {
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}

/* ---- 主内容 ---- */

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

/* ---- 面包屑 ---- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--caramel);
}

.breadcrumb-sep {
  color: var(--caramel);
  font-family: var(--font-mono);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* ---- 页面标题 ---- */

.page-header {
  margin-bottom: 8px;
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.28;
  margin: 0;
}

/* ---- 页脚 ---- */

.site-footer {
  background: var(--ink);
  color: #D8D2C2;
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-scope {
  font-size: 13px;
  color: #C9D2C7;
  padding-bottom: 20px;
  margin: 0 0 24px;
  border-bottom: 1px solid rgba(240, 217, 168, .25);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-group-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFDF7;
  margin: 0 0 12px;
}

.footer-link-list li + li {
  margin-top: 8px;
}

.footer-link-list a {
  display: inline-block;
  font-size: 14px;
  color: #C9D2C7;
  line-height: 1.6;
  border-bottom: 1px solid transparent;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible {
  color: var(--line);
  border-bottom-color: var(--caramel);
}

.footer-tip-list li {
  font-size: 13px;
  color: #B9C4BA;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-tip-list a {
  color: var(--line);
  border-bottom: 1px solid transparent;
}

.footer-tip-list a:hover,
.footer-tip-list a:focus-visible {
  border-bottom-color: var(--caramel);
}

.footer-copyright {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(240, 217, 168, .25);
  font-size: 13px;
  color: #A9B5AC;
}

/* ==========================================================================
   components · 通用模块
   ========================================================================== */

/* ---- 通用标题块 ---- */

.section-head,
.section-heading {
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 740px;
  margin: 0;
}

.section-lead {
  font-size: 16px;
  color: var(--text);
  max-width: 740px;
  margin: 0 0 18px;
}

.subsection-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

/* ---- 按钮 ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFDF7;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #A63B26;
  border-color: #A63B26;
  color: #FFFDF7;
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--line);
  color: var(--ink);
}

/* ---- 复制链接按钮 ---- */

.copy-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.copy-link-btn:hover,
.copy-link-btn:focus-visible {
  background: var(--line);
  color: var(--accent);
}

.copy-link-status {
  font-size: 13px;
  color: var(--muted);
}

/* ---- 内联链接 ---- */

.inline-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---- 状态标签 ---- */

.genre-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  background: var(--line);
  color: #7A4A1C;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.status-new,
.status-adjust,
.status-end {
  display: inline-block;
  padding: 1px 9px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.status-new {
  background: #E7F0E5;
  color: #2F6B3E;
}

.status-adjust {
  background: #FBEBD7;
  color: #9A5A18;
}

.status-end {
  background: #EFE7E2;
  color: #6B5648;
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

.home-main {
  display: block;
}

.home-main .section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- 首屏目录板 ---- */

.hero {
  padding: 48px 0 40px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 3px 12px;
  border: 1px solid var(--caramel);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  color: #8A5418;
  background: #FBF3E2;
}

.hero-copy .hero-eyebrow {
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-size: 40px;
  line-height: 1.24;
  margin: 0 0 16px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  max-width: 560px;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-board {
  min-width: 0;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-figure {
  margin: 0;
  border-bottom: 2px solid var(--ink);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-status-item {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero-status-item:nth-child(-n+2) {
  border-top: none;
}

.hero-status-item:nth-child(odd) {
  border-left: none;
}

.status-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.status-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

/* ---- 字母索引带 ---- */

.genre-letter-strip {
  padding: 32px 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.letter-strip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.letter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}

.letter-chip:hover,
.letter-chip:focus-visible {
  border-color: var(--accent);
  background: #FBF3E2;
  color: var(--accent);
}

.letter-mark {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--caramel);
}

.letter-name {
  font-size: 14px;
  font-weight: 600;
}

/* ---- 封面墙 ---- */

.cover-wall {
  padding: 44px 0;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.cover-card:hover,
.cover-card:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.cover-figure {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.cover-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cover-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.cover-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.cover-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.cover-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.cover-link:hover,
.cover-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---- 最近更新摘要 ---- */

.updates-summary {
  padding: 44px 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.updates-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.update-list {
  min-width: 0;
}

.update-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.update-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.update-row:last-child {
  border-bottom: none;
}

.update-no {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--caramel);
  min-width: 26px;
}

.update-name {
  flex: 1 1 160px;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.update-genre {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted);
}

.update-chapter {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.update-status {
  flex: 0 0 auto;
  margin-left: auto;
}

.update-notes,
.ranking-notes,
.version-help {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.notes-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notes-item {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  padding-left: 14px;
  position: relative;
}

.notes-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--caramel);
}

.notes-label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.notes-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.notes-more:hover,
.notes-more:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---- 人气榜单摘要 ---- */

.ranking-summary {
  padding: 44px 0;
}

.ranking-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.ranking-list-wrap {
  min-width: 0;
}

.ranking-summary .ranking-list {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.ranking-summary .ranking-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.ranking-summary .ranking-item:last-child {
  border-bottom: none;
}

.ranking-no {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--line);
  color: #7A4A1C;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.ranking-name {
  flex: 1 1 160px;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.ranking-genre {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted);
}

.ranking-reason {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

/* ---- 版本与升级摘要 ---- */

.version-summary {
  padding: 44px 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.version-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.version-fields {
  min-width: 0;
}

.version-field-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.version-field {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--caramel);
  border-radius: var(--radius-sm);
  min-width: 0;
}

.field-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.field-desc {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.help-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.help-link:hover,
.help-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- 阅读路径 ---- */

.reading-path {
  padding: 44px 0;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.path-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  min-width: 0;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #FFFDF7;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.step-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.step-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.step-link:hover,
.step-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---- 内容边界与反馈（首页） ---- */

.boundary-entry {
  padding: 44px 0 48px;
  background: var(--card);
  border-top: 1px solid var(--line);
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.boundary-block {
  min-width: 0;
  padding: 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.boundary-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  padding-left: 14px;
  position: relative;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--caramel);
}

.boundary-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.boundary-link:hover,
.boundary-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ==========================================================================
   pages · 内页公共
   ========================================================================== */

/* ---- 页面标题区（导语与操作） ---- */

.page-title {
  margin: 0;
}

.page-lead,
.page-title-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  max-width: 740px;
  margin: 10px 0 0;
}

.page-title-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.page-title-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.page-title-link:hover,
.page-title-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.page-title-main {
  min-width: 0;
}

.page-title-area {
  margin-top: 12px;
}

.page-title-area .page-lead {
  margin-top: 0;
}

.page-title-area .copy-link-btn {
  margin-top: 14px;
}

/* ---- 两栏布局 ---- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--gap);
  align-items: start;
  margin-top: 32px;
}

.page-layout.sidebar-left {
  grid-template-columns: 320px minmax(0, 1fr);
}

.page-content {
  min-width: 0;
}

/* ---- 内页通用容器 ---- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main > .container {
  padding: 0;
}

.inner-main .section-title,
.inner-main .section-head .section-title {
  margin-top: 0;
}

.inner-main section + section {
  margin-top: 40px;
}

/* ---- 内页侧栏 ---- */

.page-aside {
  min-width: 0;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 88px;
}

.aside-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.aside-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.aside-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-left: 3px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.aside-nav a:hover,
.aside-nav a:focus-visible {
  border-left-color: var(--accent);
  color: var(--accent);
  background: var(--paper);
}

.aside-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
}

.aside-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.aside-figure figcaption {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   pages · 题材索引
   ========================================================================== */

.page-genres .page-title {
  margin-bottom: 0;
}

.genre-intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.intro-col {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--caramel);
  border-radius: var(--radius-sm);
}

.intro-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.intro-col p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}

.genre-index-layout {
  margin-top: 32px;
}

.genre-letter-index {
  min-width: 0;
  position: sticky;
  top: 88px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
}

.letter-index-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.letter-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.letter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.letter-link:hover,
.letter-link:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFDF7;
}

.genre-groups {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.genre-group {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 96px;
}

.genre-group-title {
  position: sticky;
  top: 72px;
  z-index: 5;
  margin: 0;
  padding: 12px 18px;
  background: var(--line);
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  border-bottom: 2px solid var(--ink);
}

.genre-group-body {
  padding: 16px 18px 18px;
}

.genre-range {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 12px;
}

.genre-thumb {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
  max-width: 420px;
}

.genre-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.genre-thumb figcaption {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.genre-work-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-work-list li {
  min-width: 0;
}

.genre-work-list a,
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.genre-work-list a::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--caramel);
}

.genre-work-list a:hover,
.genre-work-list a:focus-visible,
.card-link:hover,
.card-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--caramel);
}

.genre-to-updates {
  margin-top: 32px;
}

.genre-to-updates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 20px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.link-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.link-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.related-links-label {
  color: var(--muted);
}

.related-links-item a {
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.related-links-item a:hover,
.related-links-item a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ==========================================================================
   pages · 更新目录
   ========================================================================== */

.status-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.status-tab-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.status-tab-link:hover,
.status-tab-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.status-tab-link.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFDF7;
}

.update-table-wrap {
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
}

.update-table-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.update-table-grid thead th {
  background: var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}

.update-table-grid tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--text);
}

.update-table-grid tbody tr:last-child td {
  border-bottom: none;
}

.update-table-grid tbody tr:hover {
  background: #FBF6EA;
}

.row-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--caramel);
}

.update-work {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.update-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 42px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-work-name {
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}

.chapter-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.status-badge {
  display: inline-block;
}

.update-notes-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.update-notes-fields,
.update-notes-tips {
  min-width: 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-item {
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.field-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-item {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  padding-left: 14px;
  position: relative;
}

.tip-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--caramel);
}

.follow-help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.follow-steps,
.follow-side {
  min-width: 0;
}

.follow-step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: follow;
}

.follow-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.step-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #FFFDF7;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.step-body {
  min-width: 0;
  flex: 1 1 auto;
}

.follow-step .step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.follow-step .step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.follow-step .step-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.follow-step .step-link:hover,
.follow-step .step-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.follow-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.help-card {
  min-width: 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--caramel);
  border-radius: var(--radius-sm);
}

.help-card-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 8px;
}

.help-card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.help-card-link:hover,
.help-card-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ==========================================================================
   pages · 人气榜单
   ========================================================================== */

.ranking-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.switch-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.switch-item:hover,
.switch-item:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.ranking-layout .ranking-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.ranking-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.ranking-row:last-child {
  border-bottom: none;
}

.rank-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--line);
  color: #7A4A1C;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.rank-cover {
  flex: 0 0 auto;
  width: 68px;
  height: 52px;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-body {
  flex: 1 1 auto;
  min-width: 0;
}

.rank-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 2px;
}

.rank-genre {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}

.rank-reason {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

.rank-link {
  flex: 0 0 auto;
  align-self: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
  white-space: nowrap;
}

.rank-link:hover,
.rank-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.ranking-aside,
.stability-aside {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note-item {
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.note-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.note-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.note-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.aside-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.aside-link:hover,
.aside-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.genre-ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.genre-board {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.genre-board-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.genre-board-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.genre-board-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.genre-board-row .rank-num {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

.genre-board-row .rank-name {
  font-size: 15px;
}

.genre-board-note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.stability-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.stability-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.stability-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.stability-row:last-child {
  border-bottom: none;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.notes-card {
  min-width: 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--caramel);
  border-radius: var(--radius-sm);
}

.notes-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.notes-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 12px;
}

.notes-card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.notes-card-link:hover,
.notes-card-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ==========================================================================
   pages · 阅读导览
   ========================================================================== */

.route-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.route-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 22px 20px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.route-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #FFFDF7;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.route-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.route-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.route-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.route-link:hover,
.route-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.guide-step-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--gap);
  align-items: start;
}

.guide-step-alt .guide-step-row {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.guide-step-alt .guide-step-media {
  order: 2;
}

.guide-step-alt .guide-step-body {
  order: 1;
}

.guide-step-media {
  margin: 0;
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.guide-step-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.guide-step-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.guide-step-body {
  min-width: 0;
  padding: 4px 0;
}

.guide-step-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  background: var(--line);
  color: #7A4A1C;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.guide-step-body h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}

.guide-step-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 14px;
}

.guide-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.guide-tips li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}

.guide-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--caramel);
}

.guide-step-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.guide-step-cta:hover,
.guide-step-cta:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFDF7;
}

.mistake-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mistake-card {
  min-width: 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
}

.mistake-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.mistake-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}

.help-exit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.help-exit-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.help-exit-card:hover,
.help-exit-card:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.help-exit-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.help-exit-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ==========================================================================
   pages · 版本与升级
   ========================================================================== */

.version-table {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.version-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr) minmax(0, 0.8fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.version-row:last-child {
  border-bottom: none;
}

.version-row-head {
  background: var(--line);
  border-bottom: 2px solid var(--ink);
}

.version-cell {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  min-width: 0;
  border-left: 1px solid var(--line);
}

.version-cell:first-child {
  border-left: none;
}

.version-row-head .version-cell {
  font-weight: 700;
  color: var(--ink);
}

.version-cell-name {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
}

.version-cell-entry a {
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.version-cell-entry a:hover,
.version-cell-entry a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.version-figure {
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  max-width: 720px;
}

.version-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.version-figure-caption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checklist-item {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.checklist-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  padding-left: 22px;
  position: relative;
}

.checklist-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--caramel);
  border-radius: 3px;
}

.checklist-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}

.checklist-text a {
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.checklist-text a:hover,
.checklist-text a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--line);
  color: #7A4A1C;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.faq-item[open] .faq-question {
  color: var(--accent);
}

.faq-item[open] .faq-question::before {
  content: "−";
  background: var(--accent);
  color: #FFFDF7;
}

.faq-answer {
  padding: 0 16px 16px 48px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

.faq-answer a {
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.faq-answer a:hover,
.faq-answer a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ==========================================================================
   pages · 内容边界与反馈
   ========================================================================== */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 20px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.summary-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.summary-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}

.summary-card-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.summary-card-link:hover,
.summary-card-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.page-policy .page-layout {
  margin-top: 32px;
}

.content-boundaries,
.feedback-paths,
.related-index {
  margin-top: 0;
}

.page-content section + section {
  margin-top: 36px;
}

.policy-item {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.policy-item:last-child {
  margin-bottom: 0;
}

.policy-item-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.policy-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--caramel);
}

.policy-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 10px;
}

.policy-item-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.policy-item-link:hover,
.policy-item-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.feedback-item {
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--caramel);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.feedback-item:last-child {
  margin-bottom: 0;
}

.feedback-item-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.feedback-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 10px;
}

.feedback-exits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.feedback-exits a {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.feedback-exits a:hover,
.feedback-exits a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.related-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.related-index-grid li {
  min-width: 0;
}

.related-index-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.related-index-grid a:hover,
.related-index-grid a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.related-index-name {
  font-size: 15px;
  font-weight: 700;
}

.related-index-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 64px;
  width: 100%;
}

.error-panel {
  max-width: 640px;
  padding: 32px 28px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  color: var(--caramel);
  margin: 0 0 8px;
  line-height: 1.1;
}

.error-panel h1 {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 20px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #FFFDF7;
  font-size: 15px;
  font-weight: 700;
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background: #A63B26;
  color: #FFFDF7;
}

.error-exits {
  margin-top: 32px;
}

.error-exits h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
}

.error-exit-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.error-exit-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.error-exit-list a:hover,
.error-exit-list a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.error-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

.error-note a {
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--caramel);
}

.error-note a:hover,
.error-note a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .page-layout.sidebar-left {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .genre-ranking-grid,
  .notes-grid,
  .mistake-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-exit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error-exit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-inner {
    gap: 12px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .mobile-nav:not([hidden]) {
    display: block;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .info-bar-inner {
    padding: 8px 16px;
    gap: 4px 12px;
    font-size: 12px;
  }

  .info-slogan {
    flex-basis: 100%;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 60px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .inner-main {
    padding: 20px 16px 44px;
  }

  .container {
    padding: 0 16px;
  }

  .inner-main > .container {
    padding: 0;
  }

  .home-main .section-inner,
  .hero-inner {
    padding: 0 16px;
  }

  .page-title {
    font-size: 26px;
    line-height: 1.32;
  }

  .page-lead,
  .page-title-lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .section-title {
    font-size: 21px;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-lead {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .hero-status-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-status-item {
    padding: 12px 14px;
  }

  .genre-letter-strip {
    padding: 24px 0;
  }

  .letter-strip-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .letter-chip {
    flex: 0 0 auto;
  }

  .cover-wall,
  .updates-summary,
  .ranking-summary,
  .version-summary,
  .reading-path,
  .boundary-entry {
    padding: 32px 0;
  }

  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .updates-summary-grid,
  .ranking-summary-grid,
  .version-summary-grid,
  .boundary-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .path-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .genre-intro-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 22px;
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
  }

  /* 手机端：标题与正文在前，辅助侧栏在后 */
  .page-layout.sidebar-left .page-aside {
    order: 2;
  }

  .page-layout.sidebar-left .page-content {
    order: 1;
  }

  /* 题材索引：字母栏转为顶部粘性横条，正文在前 */
  .genre-index-layout .genre-letter-index {
    position: sticky;
    top: 60px;
    z-index: 20;
    order: 1;
    padding: 10px 12px;
    border-width: 1px;
  }

  .genre-index-layout .genre-groups {
    order: 2;
  }

  .letter-index-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .letter-link {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .genre-group-title {
    top: 118px;
    font-size: 17px;
    padding: 10px 14px;
  }

  .genre-group-body {
    padding: 14px;
  }

  .genre-to-updates-grid,
  .update-notes-layout,
  .follow-help-layout,
  .ranking-layout,
  .stability-layout,
  .guide-step-row,
  .guide-step-alt .guide-step-row,
  .checklist,
  .summary-grid,
  .related-index-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .genre-ranking-grid,
  .notes-grid,
  .mistake-grid,
  .route-map-grid,
  .help-exit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .guide-step-alt .guide-step-media {
    order: 1;
  }

  .guide-step-alt .guide-step-body {
    order: 2;
  }

  .guide-step-body h2 {
    font-size: 21px;
  }

  /* 更新登记表：手机端转条目列表 */
  .update-table-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
  }

  .update-table-grid,
  .update-table-grid thead,
  .update-table-grid tbody,
  .update-table-grid tr,
  .update-table-grid th,
  .update-table-grid td {
    display: block;
    width: 100%;
  }

  .update-table-grid thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .update-table-grid tbody tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 12px;
  }

  .update-table-grid tbody tr:last-child {
    margin-bottom: 0;
  }

  .update-table-grid tbody td {
    padding: 4px 0;
    border-bottom: none;
    font-size: 14px;
  }

  .update-table-grid tbody td.col-work {
    padding-top: 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 6px;
  }

  .update-table-grid tbody td.col-genre::before {
    content: "题材：";
    color: var(--muted);
  }

  .update-table-grid tbody td.col-chapter::before {
    content: "章节：";
    color: var(--muted);
  }

  .update-table-grid tbody td.col-status::before {
    content: "状态：";
    color: var(--muted);
  }

  .update-table-grid tbody td.col-index {
    font-size: 13px;
    color: var(--muted);
  }

  .update-work {
    gap: 10px;
  }

  .update-thumb {
    width: 52px;
    height: 40px;
  }

  .ranking-row,
  .stability-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .rank-cover {
    width: 60px;
    height: 46px;
  }

  .rank-body {
    flex: 1 1 140px;
  }

  .rank-link {
    align-self: flex-start;
    margin-left: 44px;
  }

  .stability-row .rank-body {
    flex: 1 1 140px;
  }

  .version-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 14px;
    gap: 4px;
  }

  .version-row-head {
    display: none;
  }

  .version-cell {
    padding: 0;
    border-left: none;
  }

  .version-cell-name {
    font-size: 15px;
  }

  .faq-answer {
    padding: 12px 14px 14px;
  }

  .faq-question {
    padding: 12px 14px;
  }

  .error-main {
    padding: 36px 16px 48px;
  }

  .error-panel {
    padding: 24px 20px;
  }

  .error-code {
    font-size: 34px;
  }

  .error-panel h1 {
    font-size: 24px;
  }

  .error-exit-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    padding: 32px 16px 20px;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: 25px;
  }

  .page-title {
    font-size: 23px;
  }

  .page-title-actions {
    gap: 10px;
  }

  .copy-link-btn {
    width: 100%;
  }

  .update-row {
    gap: 6px 10px;
  }

  .update-name {
    flex: 1 1 100%;
  }

  .update-status {
    margin-left: 0;
  }

  .ranking-summary .ranking-item {
    gap: 8px 10px;
  }

  .ranking-name {
    flex: 1 1 100%;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cover-card,
  .link-card,
  .help-exit-card {
    transition: none;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
