/* ==========================================================================
   漫蛙漫画 · 全站样式表
   数字出版风：浅灰白底、墨绿主色、暖橙点缀，克制的圆角与偏高信息密度
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base — 变量、重置、排版基座
   -------------------------------------------------------------------------- */

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-soft: #eef1ee;
  --brand: #1f4d3f;
  --brand-dark: #16362d;
  --brand-soft: #e4ece8;
  --accent: #c9691f;
  --accent-soft: #f7e9dd;
  --text: #23262a;
  --text-muted: #5d6469;
  --line: #d9ded9;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(31, 77, 63, .06), 0 6px 18px rgba(31, 77, 63, .05);
  --wrap: 1120px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--surface-soft);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 .5em;
  color: var(--brand-dark);
  font-weight: 700;
  line-height: 1.35;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

h4 {
  font-size: 15px;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

time {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.visually-plain {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2. Layout — 全站骨架：页头、主导航、主容器、面包屑、页标题、页脚
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 245, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 14px;
  color: var(--brand-dark);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  border-left: 4px solid var(--accent);
  line-height: 1.2;
}

.brand:hover {
  color: var(--brand);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14.5px;
  white-space: nowrap;
}

.nav-list a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.nav-list a.is-current {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--brand-dark);
}

.nav-toggle::before {
  top: 16px;
}

.nav-toggle::after {
  bottom: 16px;
}

.site-main {
  display: block;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.home-main {
  padding-top: 24px;
}

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.breadcrumb a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--brand-dark);
  font-weight: 600;
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--brand-dark);
}

.page-description {
  max-width: 780px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.85;
}

/* 页脚 */
.site-footer {
  margin-top: 40px;
  background: var(--brand-dark);
  color: #dfe7e2;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 36px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 26px;
}

.footer-logo {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.footer-desc {
  margin: 0;
  max-width: 340px;
  color: #a9bab2;
  font-size: 13.5px;
  line-height: 1.85;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group a {
  color: #a9bab2;
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-group a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
  padding: 16px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #8fa39a;
  font-size: 12.5px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   3. Components — 通用组件：按钮、标签、区块头、卡片、状态、表格
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--brand-dark);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.tag:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.section-desc {
  margin: 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.section-more {
  margin: 16px 0 0;
  font-size: 13.5px;
}

.section-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand-dark);
}

.section-more a::after {
  content: "→";
  color: var(--accent);
}

.section-more a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.column-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-soft);
  font-size: 16px;
  color: var(--brand-dark);
}

.column-more {
  margin: 14px 0 0;
  font-size: 13.5px;
}

.column-more a {
  color: var(--brand);
  border-bottom: 1px dashed var(--line);
}

.column-more a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 状态标签：题材页、更新页、榜单页共用语义，父级限定作用域 */
.work-status,
.update-status,
.tag-status {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: nowrap;
}

.status-ongoing,
.is-ongoing {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.status-finished,
.is-finished {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-paused {
  background: var(--surface-soft);
  color: var(--text-muted);
}

/* 字段说明表：题材总览表与阅读说明表共用 */
.genre-table,
.field-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.genre-table th,
.genre-table td,
.field-table th,
.field-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.genre-table thead th,
.field-table thead th {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 13.5px;
}

.genre-table tbody tr:last-child td,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.genre-table tbody tr:hover,
.field-table tbody tr:hover {
  background: #fbfcfb;
}

.genre-no {
  width: 88px;
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   4. Pages — 首页
   -------------------------------------------------------------------------- */

/* 4.1 首屏题材操作面 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.hero-title {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.3;
}

.hero-desc {
  margin: 0 0 18px;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  position: relative;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
}

.hero-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.hero-issue {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(22, 54, 45, .86);
  border-radius: var(--radius-sm);
  color: #eef3f0;
}

.issue-tag {
  font-size: 12px;
  color: #f0b789;
  font-weight: 600;
}

.issue-text {
  font-size: 13.5px;
  line-height: 1.5;
}

/* 4.2 封面墙与作品条目 */
.cover-wall {
  margin-top: 44px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cover-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.cover-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

/* 三行不等高：第二行略高，形成目录刊的错落感 */
.cover-grid > .cover-card:nth-child(3n + 2) img {
  height: 240px;
}

.cover-name {
  margin: 12px 12px 6px;
  font-size: 14.5px;
  line-height: 1.5;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 12px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.cover-genre {
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.cover-status {
  color: var(--accent);
}

/* 4.3 最近更新目录 */
.updates {
  margin-top: 44px;
}

.update-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color .18s ease;
}

.update-item:last-child {
  border-bottom: 0;
}

.update-item:hover {
  background: var(--brand-soft);
}

.update-date {
  color: var(--text-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.update-name {
  color: var(--brand-dark);
  font-size: 14.5px;
  font-weight: 600;
}

.update-genre {
  color: var(--text-muted);
  font-size: 13px;
}

.update-status {
  justify-self: end;
}

/* 4.4 人气榜单与编辑专题 */
.ranking-topics {
  margin-top: 44px;
}

.ranking-topics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 28px;
  align-items: start;
}

.ranking-column,
.topics-column,
.guide-column,
.feedback-column {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rank-item:nth-child(-n + 3) .rank-no {
  background: var(--accent);
  color: #fff;
}

.rank-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.rank-genre {
  color: var(--text-muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topic-card {
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.topic-card .topic-name {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--brand-dark);
}

.topic-desc {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.topic-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13.5px;
  font-weight: 600;
}

.topic-link::after {
  content: "›";
  margin-left: 6px;
  color: var(--accent);
}

/* 4.5 阅读说明与内容反馈摘要 */
.guide-summary {
  margin-top: 44px;
}

.guide-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 28px;
  align-items: start;
}

.field-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.field-list dt {
  padding-top: 10px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
}

.field-list dd {
  margin: 2px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.feedback-column > p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.75;
}

.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* 4.6 站内栏目索引 */
.site-index {
  margin-top: 44px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.index-card a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 96px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, background-color .18s ease;
}

.index-card a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.index-name {
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 700;
}

.index-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   5. Pages — 题材分类页
   -------------------------------------------------------------------------- */

.genre-overview {
  margin-bottom: 40px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 22px;
}

.section-intro {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.85;
}

.genre-table tbody td a {
  color: var(--brand);
  border-bottom: 1px solid var(--line);
}

.genre-table tbody td a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.genre-blocks {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.genre-block {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-block-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.genre-block-head .genre-no {
  width: auto;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  font-size: 13px;
}

.genre-block-title {
  margin: 0;
  font-size: 18px;
}

.genre-block-desc {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 780px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.genre-block-media {
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
}

.genre-block-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.genre-block-media figcaption {
  padding: 8px 12px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 12.5px;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 20px;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.work-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.work-name:hover {
  color: var(--accent);
}

.work-genre {
  color: var(--text-muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.genre-notes {
  margin-top: 40px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-notes p {
  max-width: 820px;
  color: var(--text-muted);
  font-size: 14px;
}

.note-subtitle {
  margin: 20px 0 8px;
  font-size: 15.5px;
  color: var(--brand-dark);
}

.genre-notes a {
  border-bottom: 1px solid var(--line);
}

.genre-notes a:hover {
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   6. Pages — 最近更新页
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 32px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
  position: sticky;
  top: 88px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.update-list-section {
  margin-bottom: 36px;
}

.update-list-section .update-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.update-list-section .update-item {
  display: grid;
  grid-template-columns: 92px 96px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.update-list-section .update-item:hover {
  background: transparent;
}

.update-thumb {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
}

.update-thumb img {
  width: 96px;
  height: 72px;
  object-fit: cover;
}

.update-body {
  min-width: 0;
}

.update-body .update-name {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.update-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.field-notes-section {
  padding-top: 8px;
}

.field-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}

.field-note {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-note dt {
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
}

.field-note dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.notes-tail {
  margin: 0;
  font-size: 13.5px;
}

.genre-jump .aside-intro {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.genre-jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-jump-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 13px;
}

.genre-jump-list a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.aside-tail {
  margin: 16px 0 0;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   7. Pages — 人气榜单页
   -------------------------------------------------------------------------- */

.page-ranking .ranking-main {
  margin-bottom: 40px;
}

.page-ranking .ranking-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-ranking .ranking-item {
  display: grid;
  grid-template-columns: 44px 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.page-ranking .ranking-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.page-ranking .ranking-item .rank-no {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.page-ranking .ranking-item:nth-child(-n + 3) .rank-no {
  background: var(--accent);
  color: #fff;
}

.rank-cover {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
}

.rank-cover img {
  width: 132px;
  height: 176px;
  object-fit: cover;
}

.rank-body {
  min-width: 0;
}

.rank-body .rank-name {
  margin: 0 0 8px;
  font-size: 17px;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.rank-status {
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.rank-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.topic-area {
  margin-bottom: 40px;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.topic-cards .topic-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-cards .topic-card:hover {
  border-color: var(--brand);
}

.topic-cover {
  margin: 0;
  background: var(--surface-soft);
}

.topic-cover img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.topic-cards .topic-name {
  margin: 14px 16px 6px;
  font-size: 16px;
}

.topic-cards .topic-desc {
  margin: 0 16px 12px;
}

.topic-cards .topic-link {
  margin: 0 16px 16px;
  align-self: flex-start;
}

.rank-notes {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.notes-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.notes-col h3 {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--brand-soft);
  font-size: 15px;
}

.notes-col p {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   8. Pages — 阅读说明页
   -------------------------------------------------------------------------- */

.guide-section {
  margin-bottom: 40px;
}

.guide-section > h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.guide-section > p {
  max-width: 780px;
  color: var(--text-muted);
  font-size: 14px;
}

.guide-figure {
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.guide-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
}

.field-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

.field-table caption {
  padding: 10px 14px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 13px;
  text-align: left;
}

.field-table tbody th {
  width: 160px;
  background: #fbfcfb;
  color: var(--brand-dark);
  font-weight: 600;
}

.reading-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.reading-note {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reading-note h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
}

.reading-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.reading-note a {
  border-bottom: 1px solid var(--line);
}

.reading-note a:hover {
  border-color: var(--accent);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--brand-dark);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  background: var(--brand-soft);
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.index-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.index-links li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-links a {
  color: var(--brand-dark);
  font-size: 14.5px;
  font-weight: 700;
}

.index-links a:hover {
  color: var(--accent);
}

.index-links span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   9. Pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.error-hero {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.error-code {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 44px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.error-hero h1 {
  margin: 0 0 14px;
  font-size: 26px;
}

.error-desc {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.error-actions {
  margin: 0;
}

.error-links h2 {
  margin: 0 0 16px;
  font-size: 20px;
  text-align: center;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.error-link-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-link-list a {
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 700;
}

.error-link-list a:hover {
  color: var(--accent);
}

.error-link-list span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   10. Responsive — 960px / 640px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: block;
    order: 2;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 46px;
    padding: 0 12px;
    font-size: 15px;
  }

  .site-main {
    padding: 22px 18px 48px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
  }

  .hero-media img {
    height: 260px;
  }

  .cover-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .cover-card img,
  .cover-grid > .cover-card:nth-child(3n + 2) img {
    height: 190px;
  }

  .ranking-topics-grid,
  .guide-summary-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .layout-aside {
    position: static;
    top: auto;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 32px 18px 22px;
  }

  .footer-nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .footer-copy {
    padding: 14px 18px 20px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .brand {
    font-size: 17px;
  }

  .site-main {
    padding: 18px 14px 40px;
  }

  .page-title,
  .hero-title {
    font-size: 23px;
  }

  .section-title,
  .section-head h2,
  .guide-section > h2,
  .error-links h2 {
    font-size: 19px;
  }

  .hero {
    padding: 16px;
    gap: 18px;
  }

  .hero-media img {
    height: 210px;
  }

  .hero-issue {
    left: 10px;
    bottom: 10px;
    padding: 8px 10px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    flex: 1 1 140px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cover-card img,
  .cover-grid > .cover-card:nth-child(3n + 2) img {
    height: 160px;
  }

  .cover-name {
    margin: 10px 10px 4px;
    font-size: 14px;
  }

  .cover-meta {
    margin: 0 10px 12px;
    gap: 6px;
  }

  .update-item,
  .update-list-section .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 12px 0;
  }

  .update-list-section .update-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .update-thumb img {
    width: 72px;
    height: 54px;
  }

  .update-status,
  .tag-status {
    justify-self: start;
  }

  .ranking-column,
  .topics-column,
  .guide-column,
  .feedback-column,
  .genre-block,
  .genre-notes,
  .rank-notes,
  .layout-aside {
    padding: 16px;
  }

  .genre-block-media img {
    height: 160px;
  }

  .work-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-ranking .ranking-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .page-ranking .ranking-item .rank-cover {
    grid-column: 1 / -1;
  }

  .rank-cover img {
    width: 100%;
    height: 180px;
  }

  .field-table tbody th {
    width: auto;
  }

  .genre-table th,
  .genre-table td,
  .field-table th,
  .field-table td {
    padding: 9px 10px;
    font-size: 13px;
  }

  .genre-no {
    width: 62px;
  }

  .guide-figure img {
    height: 180px;
  }

  .error-main {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-hero h1 {
    font-size: 21px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
