/* ==========================================================================
   91漫画永久免费观看下载 — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --c-bg: #F7F4EE;
  --c-paper: #FFFFFF;
  --c-ink: #1C2321;
  --c-ink-soft: #4A524F;
  --c-ink-mute: #6E7672;
  --c-primary: #1F6F78;
  --c-primary-deep: #16545B;
  --c-accent: #E2653A;
  --c-accent-deep: #B44A24;
  --c-line: #D8D2C4;
  --c-line-soft: #E8E2D6;
  --c-tint-cyan: #E3EFEF;
  --c-tint-orange: #F8E8E0;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1180px;
  --reading: 760px;
  --table-wide: 1040px;
  --shadow-soft: 0 1px 2px rgba(28, 35, 33, 0.06);
  --shadow-card: 0 2px 8px rgba(28, 35, 33, 0.07);
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--c-primary-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-ink-mute);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

strong {
  font-weight: 600;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --------------------------------------------------------------------------
   layout — 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--c-ink);
  padding: 10px 0;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--c-ink);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-ink-mute);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--c-ink);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-link:hover {
  color: var(--c-primary);
  border-bottom-color: var(--c-line);
}

.nav-link.is-current {
  color: var(--c-primary);
  font-weight: 600;
  border-bottom-color: var(--c-primary);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-paper);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-ink);
  border-radius: 1px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-ink-mute);
  padding: 20px 0 0;
}

.breadcrumb a {
  color: var(--c-ink-mute);
}

.breadcrumb a:hover {
  color: var(--c-primary);
}

.breadcrumb-sep {
  color: var(--c-line);
}

.breadcrumb-current {
  color: var(--c-ink-soft);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 页面标题区 */
.page-header {
  padding: 14px 0 22px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 32px;
}

.page-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-ink);
}

/* 页脚 */
.site-footer {
  flex: 0 0 auto;
  background: var(--c-paper);
  border-top: 1px solid var(--c-line);
  margin-top: 32px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-mute);
  max-width: 340px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  font-size: 14px;
  color: var(--c-ink-soft);
}

.footer-group a:hover {
  color: var(--c-primary);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--c-line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-note,
.footer-copy {
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-ink-mute);
}

/* --------------------------------------------------------------------------
   layout — 内页双栏
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.page-layout .catalog-main,
.page-layout .progress-main {
  min-width: 0;
}

.page-layout .catalog-aside,
.page-layout .progress-aside {
  min-width: 0;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar-left .genre-aside {
  order: 0;
}

.sidebar-left .genre-main {
  order: 1;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   components — 通用组件
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--c-primary);
  color: #FFFFFF;
  border-color: var(--c-primary);
}

.btn-primary:hover {
  background: var(--c-primary-deep);
  border-color: var(--c-primary-deep);
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}

.btn-ghost:hover {
  color: var(--c-primary);
  border-color: var(--c-primary);
}

/* 区块标题 */
.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  max-width: 760px;
}

.section-title {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-intro,
.section-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  max-width: var(--reading);
  margin-bottom: 22px;
}

.inline-link {
  color: var(--c-primary);
  border-bottom: 1px solid var(--c-tint-cyan);
}

.inline-link:hover {
  border-bottom-color: var(--c-primary);
}

/* 内页标题区（非 page-header 的补充说明区） */
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: center;
  padding: 4px 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}

.page-hero-copy,
.page-hero-inner {
  min-width: 0;
}

.page-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-accent);
  margin-bottom: 10px;
}

.page-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-ink-soft);
  max-width: var(--reading);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-ink-mute);
}

.page-meta li {
  position: relative;
  padding-left: 12px;
}

.page-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-line);
}

.meta-item {
  font-size: 13px;
  color: var(--c-ink-mute);
}

.page-hero-media,
.page-hero-figure {
  min-width: 0;
}

.page-hero-media img,
.page-hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background: var(--c-tint-cyan);
}

.page-hero-media figcaption,
.page-hero-figure figcaption {
  margin-top: 8px;
}

/* 独立 figure */
.path-figure,
.field-figure,
.genre-figure {
  margin: 0 0 32px;
}

.path-figure img,
.field-figure img,
.genre-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background: var(--c-tint-cyan);
}

.path-figure figcaption,
.field-figure figcaption,
.genre-figure figcaption {
  margin-top: 8px;
}

/* 状态标记 */
.status,
.status-badge,
.entry-status,
.cover-status,
.pulse-status,
.progress-summary-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  border-radius: 999px;
  white-space: nowrap;
}

.status-ongoing {
  color: var(--c-primary-deep);
  background: var(--c-tint-cyan);
}

.status-rest {
  color: var(--c-accent-deep);
  background: var(--c-tint-orange);
}

.status-complete {
  color: #4A524F;
  background: #EDEAE2;
}

.status-check {
  color: var(--c-ink-soft);
  background: #EFEFEA;
  border: 1px dashed var(--c-line);
}

.status-done {
  color: var(--c-ink-soft);
  background: #EFEFEA;
}

/* 表格 */
.data-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--c-ink-mute);
  padding: 0 0 10px;
}

.data-table thead th {
  background: var(--c-tint-cyan);
  color: var(--c-ink);
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}

.data-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--c-ink);
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-line-soft);
  background: #FBFAF6;
}

.data-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-line-soft);
  color: var(--c-ink-soft);
  vertical-align: top;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap,
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-caption {
  text-align: left;
  font-size: 13px;
  color: var(--c-ink-mute);
  padding-bottom: 10px;
}

/* 侧栏通用 */
.aside-block {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.aside-block + .aside-block {
  margin-top: 20px;
}

.aside-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.aside-note-list,
.aside-list,
.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-ink-soft);
}

.aside-note-list li,
.aside-list li {
  padding-left: 12px;
  position: relative;
}

.aside-note-list li::before,
.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-accent);
}

.aside-list strong {
  display: block;
  color: var(--c-ink);
  margin-bottom: 2px;
}

.aside-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--c-primary);
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px;
  align-items: center;
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--c-line);
}

.hero-image {
  min-width: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background: var(--c-tint-cyan);
}

.hero-figure figcaption {
  margin-top: 10px;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-accent);
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-ink-soft);
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.genre-tagband {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.genre-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--c-ink-soft);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-paper);
}

.genre-tag:hover {
  color: var(--c-accent-deep);
  border-color: var(--c-accent);
  background: var(--c-tint-orange);
}

.hero-series {
  border-top: 1px solid var(--c-line-soft);
  padding-top: 16px;
}

.hero-series-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-mute);
  margin-bottom: 8px;
}

.series-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
}

.series-list a {
  color: var(--c-primary);
  border-bottom: 1px solid transparent;
}

.series-list a:hover {
  border-bottom-color: var(--c-primary);
}

/* 更新脉序 */
.update-pulse {
  padding: 44px 0;
  border-bottom: 1px solid var(--c-line);
}

.pulse-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.pulse-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--c-line-soft);
  align-items: start;
}

.pulse-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-mute);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.pulse-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  min-width: 0;
}

.pulse-title-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink);
}

.pulse-title-link:hover {
  color: var(--c-primary);
}

.pulse-chapter {
  font-size: 13px;
  color: var(--c-ink-mute);
}

/* 封面墙 */
.cover-wall {
  padding: 44px 0;
  border-bottom: 1px solid var(--c-line);
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.cover-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.cover-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-card);
}

.cover-link {
  display: block;
  color: var(--c-ink);
}

.cover-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--c-tint-cyan);
}

.cover-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  padding: 12px 14px 0;
}

.cover-link:hover .cover-title {
  color: var(--c-primary);
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 14px;
  margin-top: auto;
}

.cover-genre {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-accent-deep);
  background: var(--c-tint-orange);
  border-radius: 999px;
}

/* 题材图谱入口 */
.genre-entry {
  padding: 44px 0;
  border-bottom: 1px solid var(--c-line);
}

.genre-entry-list {
  border-top: 1px solid var(--c-line-soft);
}

.genre-entry-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 130px;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line-soft);
}

.genre-entry-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
}

.genre-entry-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  min-width: 0;
}

.genre-entry-link {
  justify-self: end;
  font-size: 14px;
  color: var(--c-primary);
  border-bottom: 1px solid transparent;
}

.genre-entry-link:hover {
  border-bottom-color: var(--c-primary);
}

/* 连载进度摘要 */
.progress-summary {
  padding: 44px 0;
  border-bottom: 1px solid var(--c-line);
}

.progress-summary-list {
  border-top: 1px solid var(--c-line-soft);
}

.progress-summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 110px 110px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line-soft);
}

.progress-summary-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink);
  min-width: 0;
}

.progress-summary-link:hover {
  color: var(--c-primary);
}

.progress-summary-chapter {
  font-size: 13px;
  color: var(--c-ink-mute);
}

.progress-summary-date {
  font-size: 13px;
  color: var(--c-ink-mute);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.progress-summary-note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  padding: 14px 16px;
  background: var(--c-tint-cyan);
  border-radius: var(--radius);
}

/* 榜单摘录 */
.ranking {
  padding: 44px 0;
  border-bottom: 1px solid var(--c-line);
}

.ranking-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.ranking-popular,
.ranking-follow {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.ranking-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line-soft);
}

.ranking-list {
  counter-reset: rank;
  display: flex;
  flex-direction: column;
}

.ranking-list li {
  counter-increment: rank;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--c-line-soft);
}

.ranking-list li:last-child {
  border-bottom: 0;
}

.ranking-list li::before {
  content: counter(rank);
  flex: 0 0 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-mute);
  font-variant-numeric: tabular-nums;
}

.ranking-list a {
  font-size: 14px;
  color: var(--c-ink);
  min-width: 0;
  flex: 1 1 auto;
}

.ranking-list a:hover {
  color: var(--c-primary);
}

.ranking-tag {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.7;
  padding: 0 8px;
  color: var(--c-accent-deep);
  background: var(--c-tint-orange);
  border-radius: 999px;
}

/* 阅读路径入口 */
.path-entry {
  padding: 44px 0;
  border-bottom: 1px solid var(--c-line);
}

.path-entry-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}

.path-entry-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.path-entry-row {
  padding: 18px 0;
  border-top: 1px solid var(--c-line-soft);
  transition: background-color 0.18s ease;
}

.path-entry-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.path-entry-row:hover {
  background: #FBFAF6;
}

.path-entry-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.path-entry-scene {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin-bottom: 4px;
}

.path-entry-steps {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-mute);
  margin-bottom: 8px;
}

.path-entry-link {
  font-size: 14px;
  color: var(--c-primary);
  border-bottom: 1px solid transparent;
}

.path-entry-link:hover {
  border-bottom-color: var(--c-primary);
}

.path-entry-figure {
  min-width: 0;
}

.path-entry-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background: var(--c-tint-cyan);
}

.path-entry-figure figcaption {
  margin-top: 8px;
}

/* 内容说明入口 */
.notes-entry {
  padding: 44px 0 0;
}

.notes-entry-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.notes-entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.notes-entry-list li {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.notes-entry-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink);
}

.notes-entry-link:hover {
  color: var(--c-primary);
}

.notes-entry-note {
  font-size: 13px;
  line-height: 1.75;
  color: var(--c-ink-mute);
  padding: 14px 16px;
  border-left: 3px solid var(--c-accent);
  background: var(--c-tint-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* --------------------------------------------------------------------------
   pages — 漫画索引
   -------------------------------------------------------------------------- */

.index-anchor-bar {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 28px;
}

.index-anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.index-anchor-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--c-ink-soft);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #FBFAF6;
}

.index-anchor-list a:hover {
  color: var(--c-accent-deep);
  border-color: var(--c-accent);
  background: var(--c-tint-orange);
}

.catalog-group {
  margin-bottom: 34px;
  scroll-margin-top: 88px;
}

.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-line);
  margin-bottom: 6px;
}

.group-head h2 {
  font-size: 22px;
  font-weight: 600;
}

.group-scope {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-mute);
  flex: 1 1 240px;
}

.entry-list {
  display: flex;
  flex-direction: column;
}

.entry-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line-soft);
}

.entry-item:last-child {
  border-bottom: 0;
}

.entry-body {
  min-width: 0;
}

.entry-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.entry-body h3 a {
  color: var(--c-ink);
}

.entry-body h3 a:hover {
  color: var(--c-primary);
}

.entry-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin-bottom: 6px;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-accent-deep);
  background: var(--c-tint-orange);
  border-radius: 999px;
}

.entry-status {
  justify-self: end;
  margin-top: 2px;
}

.status-note-section {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 8px;
}

.status-note-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.status-note-lead {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  margin-bottom: 14px;
}

.status-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  min-width: 0;
}

.catalog-aside {
  position: sticky;
  top: 88px;
}

/* --------------------------------------------------------------------------
   pages — 题材图谱
   -------------------------------------------------------------------------- */

.genre-aside {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 88px;
}

.genre-aside .aside-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.aside-intro {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-mute);
  margin-bottom: 14px;
}

.genre-anchor-nav {
  margin-bottom: 14px;
}

.genre-anchor-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.genre-anchor-list a {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--c-ink-soft);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
}

.genre-anchor-list a:hover {
  color: var(--c-primary);
  background: var(--c-tint-cyan);
  border-left-color: var(--c-primary);
}

.genre-anchor-name {
  display: block;
  font-weight: 500;
}

.genre-anchor-hint {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-ink-mute);
}

.aside-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-ink-mute);
  padding-top: 12px;
  border-top: 1px solid var(--c-line-soft);
}

.page-head {
  padding: 4px 0 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}

.genre-main {
  min-width: 0;
}

.genre-section {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--c-line);
  scroll-margin-top: 88px;
}

.genre-section-head {
  margin-bottom: 16px;
}

.genre-index {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-accent);
  margin-bottom: 6px;
}

.genre-section-head h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-bottom: 16px;
}

.genre-block {
  background: #FBFAF6;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
}

.genre-block h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary-deep);
  margin-bottom: 6px;
}

.genre-block p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
}

.genre-section .genre-entry {
  padding: 0;
  border: 0;
  font-size: 14px;
}

.genre-section .genre-entry a {
  color: var(--c-primary);
  border-bottom: 1px solid transparent;
}

.genre-section .genre-entry a:hover {
  border-bottom-color: var(--c-primary);
}

.genre-paths {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--c-line);
}

.genre-paths h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  margin-bottom: 8px;
}

.genre-paths .path-entry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.genre-paths .path-entry {
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-paper);
  box-shadow: var(--shadow-soft);
}

.genre-paths .path-entry h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.genre-paths .path-entry p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin-bottom: 8px;
}

.genre-paths .path-entry a {
  font-size: 13px;
  color: var(--c-primary);
}

.genre-summary h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  margin-bottom: 12px;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-list li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-ink-soft);
  padding-left: 16px;
  position: relative;
}

.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
}

/* --------------------------------------------------------------------------
   pages — 连载进度
   -------------------------------------------------------------------------- */

.progress-main {
  min-width: 0;
}

.section {
  margin-bottom: 32px;
}

.progress-table-section .section-head,
.status-legend-section .section-head,
.change-log-section .section-head {
  margin-bottom: 16px;
}

.progress-table {
  font-size: 14px;
}

.progress-table tbody th {
  white-space: nowrap;
}

.progress-table tbody td:nth-child(3) {
  white-space: nowrap;
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.legend-list .legend-item {
  align-items: flex-start;
  background: #FBFAF6;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.legend-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  min-width: 0;
}

.change-log-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-line-soft);
}

.change-log-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line-soft);
}

.change-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-mute);
  font-variant-numeric: tabular-nums;
}

.change-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  min-width: 0;
}

.progress-aside {
  position: sticky;
  top: 88px;
}

/* --------------------------------------------------------------------------
   pages — 阅读路径
   -------------------------------------------------------------------------- */

.path-overview {
  margin-bottom: 40px;
}

.path-overview h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  margin-bottom: 8px;
}

.overview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.overview-item {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.overview-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.overview-audience {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  margin-bottom: 8px;
}

.overview-start {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-mute);
}

.overview-start a {
  color: var(--c-primary);
}

.path-steps {
  margin-bottom: 40px;
}

.path-steps h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  margin-bottom: 8px;
}

.path-block {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 20px;
  box-shadow: var(--shadow-soft);
}

.path-block h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.path-block-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  margin-bottom: 16px;
  max-width: var(--reading);
}

.step-list {
  counter-reset: pathstep;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  counter-increment: pathstep;
  position: relative;
  padding: 12px 16px 12px 52px;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius);
  background: #FBFAF6;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.step-item:hover {
  background: var(--c-tint-cyan);
  border-color: var(--c-primary);
}

.step-item::before {
  content: counter(pathstep);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary-deep);
  background: var(--c-tint-cyan);
  border-radius: 50%;
}

.step-action {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--c-ink);
  margin-bottom: 2px;
}

.step-source {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-mute);
}

.step-source a {
  color: var(--c-primary);
}

.step-check {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-mute);
  margin-top: 2px;
}

.path-notes {
  margin-bottom: 40px;
}

.path-notes h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  margin-bottom: 8px;
}

.notes-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 18px;
}

.notes-item {
  border-left: 3px solid var(--c-accent);
  background: var(--c-tint-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  min-width: 0;
}

.notes-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.notes-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
}

.related-links {
  padding-top: 8px;
}

.related-links h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  margin-bottom: 12px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-item {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.related-item a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink);
}

.related-item a:hover {
  color: var(--c-primary);
}

/* --------------------------------------------------------------------------
   pages — 条目字段
   -------------------------------------------------------------------------- */

.field-hero {
  display: block;
  border-bottom: 0;
  padding-bottom: 20px;
  margin-bottom: 0;
}

.field-figure {
  max-width: var(--table-wide);
}

.field-figure img {
  aspect-ratio: 16 / 6;
}

.field-table-section,
.field-order-section,
.field-example-section,
.field-links-section {
  max-width: var(--table-wide);
  margin-bottom: 40px;
}

.field-table-section .section-title,
.field-order-section .section-title,
.field-example-section .section-title,
.field-links-section .section-title {
  margin-bottom: 8px;
}

.field-table {
  font-size: 14px;
}

.field-table thead th {
  white-space: nowrap;
}

.field-table tbody th {
  white-space: nowrap;
  width: 120px;
}

.order-list {
  counter-reset: order;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item {
  counter-increment: order;
  position: relative;
  padding: 14px 18px 14px 56px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.order-item::before {
  content: counter(order);
  position: absolute;
  left: 18px;
  top: 14px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary-deep);
  background: var(--c-tint-cyan);
  border-radius: 50%;
}

.order-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.order-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.example-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.example-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.example-line {
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-primary-deep);
  background: var(--c-tint-cyan);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.example-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease;
  min-width: 0;
}

.link-card:hover {
  border-color: var(--c-primary);
}

.link-card a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  min-height: 56px;
}

.link-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
}

.link-card a:hover .link-card-title {
  color: var(--c-primary);
}

.link-card-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-mute);
}

/* --------------------------------------------------------------------------
   pages — 内容说明
   -------------------------------------------------------------------------- */

.content-shell {
  max-width: var(--reading);
}

.notes-section {
  margin-bottom: 40px;
}

.notes-section .section-title {
  margin-bottom: 8px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.boundary-item {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-soft);
}

.boundary-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.boundary-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

.correction-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.correction-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-soft);
}

.step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary-deep);
  background: var(--c-tint-cyan);
  border-radius: 50%;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-soft);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  text-align: left;
  background: transparent;
  transition: background-color 0.18s ease;
}

.faq-question:hover {
  background: #FBFAF6;
}

.faq-question-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--c-ink);
  min-width: 0;
}

.faq-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--c-primary);
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 18px 16px;
  border-top: 1px solid var(--c-line-soft);
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-ink-soft);
  padding-top: 12px;
}

.content-shell .related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 0;
}

.content-shell .related-links h2 {
  margin-bottom: 4px;
}

.related-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease;
}

.related-link:hover {
  border-color: var(--c-primary);
}

.related-link-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
}

.related-link:hover .related-link-title {
  color: var(--c-primary);
}

.related-link-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-mute);
}

/* 跳转链接（可访问性） */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  font-size: 14px;
  color: #FFFFFF;
  background: var(--c-primary);
  border-radius: var(--radius);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: flex;
  justify-content: center;
}

.error-panel {
  max-width: 620px;
  width: 100%;
  text-align: left;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.error-code {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-primary);
  margin-bottom: 12px;
}

.error-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-ink-soft);
  margin-bottom: 8px;
}

.error-hint {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink-mute);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.error-links {
  border-top: 1px solid var(--c-line-soft);
  padding-top: 20px;
}

.error-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.error-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: var(--c-primary);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero {
    gap: 32px;
  }

  .cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }

  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .path-entry-body {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }

  .page-hero {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }
}

@media (max-width: 960px) {
  .header-inner {
    padding: 0 20px;
    min-height: 60px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
    order: 3;
    border-top: 1px solid var(--c-line-soft);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    min-height: 44px;
    padding: 0 8px;
    border-bottom: 1px solid var(--c-line-soft);
    border-radius: 0;
  }

  .nav-link.is-current {
    border-bottom-color: var(--c-line-soft);
    background: var(--c-tint-cyan);
  }

  .inner-main,
  .home-main {
    padding: 0 20px 56px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 0 36px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .pulse-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .genre-entry-row {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 6px 16px;
    align-items: start;
  }

  .genre-entry-link {
    grid-column: 2;
    justify-self: start;
  }

  .progress-summary-item {
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 4px 16px;
  }

  .progress-summary-status {
    justify-self: start;
  }

  .progress-summary-date {
    text-align: left;
  }

  .ranking-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .path-entry-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .path-entry-figure {
    order: 2;
  }

  .notes-entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    display: block;
  }

  .catalog-aside,
  .progress-aside,
  .genre-aside {
    position: static;
    margin-top: 28px;
  }

  .sidebar-left .genre-main {
    order: 0;
  }

  .sidebar-left .genre-aside {
    order: 1;
  }

  .page-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .page-hero-media img,
  .page-hero-figure img {
    aspect-ratio: 16 / 9;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 20px 24px;
  }

  .footer-bottom {
    padding: 14px 20px 24px;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .genre-paths .path-entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .notes-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .example-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .link-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .legend-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .status-legend {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .inner-main,
  .home-main {
    padding: 0 16px 48px;
  }

  .breadcrumb {
    padding-top: 14px;
    font-size: 12px;
  }

  .page-header {
    padding: 10px 0 16px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.28;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 7.4vw, 34px);
    line-height: 1.28;
  }

  .hero-lead,
  .page-lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions .btn,
  .error-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cover-title {
    font-size: 14px;
    padding: 10px 10px 0;
  }

  .cover-meta {
    padding: 8px 10px 12px;
    gap: 4px;
  }

  .cover-genre,
  .cover-status {
    font-size: 11px;
  }

  .genre-entry-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px 0;
  }

  .genre-entry-link {
    grid-column: 1;
  }

  .progress-summary-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 12px 0;
  }

  .progress-summary-status {
    justify-self: start;
  }

  .pulse-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 0;
  }

  .pulse-body {
    gap: 4px 10px;
  }

  .ranking-popular,
  .ranking-follow {
    padding: 16px;
  }

  .ranking-list li {
    padding: 8px 0;
  }

  .ranking-list a {
    font-size: 13px;
  }

  .path-entry-row {
    padding: 14px 0;
  }

  .path-entry-name {
    font-size: 16px;
  }

  .notes-entry-link {
    min-height: 52px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .entry-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .entry-status {
    justify-self: start;
    margin-top: 0;
  }

  .index-anchor-bar {
    padding: 10px 12px;
  }

  .index-anchor-list a {
    font-size: 12px;
    padding: 0 10px;
  }

  .group-head h2 {
    font-size: 19px;
  }

  .group-scope {
    flex-basis: 100%;
  }

  .status-note-section {
    padding: 16px;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td {
    padding: 9px 10px;
  }

  .progress-table {
    min-width: 560px;
  }

  .field-table {
    min-width: 620px;
  }

  .change-log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .path-block {
    padding: 16px;
  }

  .path-block h3 {
    font-size: 18px;
  }

  .step-item {
    padding: 12px 12px 12px 46px;
  }

  .step-item::before {
    left: 12px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .boundary-item {
    padding: 14px 16px;
  }

  .correction-step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 16px;
  }

  .step-index {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .faq-question {
    padding: 12px 14px;
    gap: 12px;
  }

  .faq-question-text {
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 14px 14px;
  }

  .related-link {
    padding: 12px 14px;
  }

  .link-card a {
    padding: 14px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .error-main {
    padding: 40px 16px 56px;
  }

  .error-panel {
    padding: 24px 20px;
  }

  .error-code {
    font-size: 44px;
  }

  .section-head h2,
  .section-title,
  .path-overview h2,
  .path-steps h2,
  .path-notes h2,
  .related-links h2,
  .genre-paths h2,
  .genre-summary h2 {
    font-size: 22px;
  }

  .genre-section-head h2 {
    font-size: 20px;
  }

  .aside-block,
  .genre-aside {
    padding: 16px;
  }
}

@media (max-width: 380px) {
  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn,
  .error-actions .btn {
    min-width: 100%;
  }
}
