/* ==========================================================================
   喵趣漫画 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-text: #2f3742;
  --color-text-muted: #6b7480;
  --color-primary: #3b5bdb;
  --color-primary-dark: #2f49b0;
  --color-line: #f0f2f7;
  --color-line-strong: #e2e6ee;
  --color-accent: #e8873a;
  --color-positive: #2b8a5b;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-card: 0 1px 2px rgba(47, 55, 66, 0.06);
  --shadow-float: 0 4px 14px rgba(47, 55, 66, 0.1);
  --shell-width: 1120px;
  --body-width: 720px;
  --font-stack: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-stack);
  font-size: 15px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

time,
.rank-no,
.update-date,
.update-progress {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line-strong);
}

.header-inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  color: var(--color-text);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--color-text);
  text-decoration: none;
}

.brand-mark {
  font-size: 19px;
  font-weight: 600;
  color: var(--color-text);
}

.brand-slogan {
  font-size: 13px;
  color: var(--color-text-muted);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li > a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible {
  color: var(--color-text);
  background: var(--color-line);
  text-decoration: none;
}

.nav-list > li > a.is-current {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(59, 91, 219, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-md);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  padding-bottom: 56px;
}

.inner-main {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-line-strong);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 36px 24px 28px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
}

.footer-title {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--color-primary);
}

.footer-note {
  margin: 20px 0 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: var(--body-width);
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   layout · 内页骨架
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: var(--color-line-strong);
}

.breadcrumb-current {
  color: var(--color-text);
}

.page-header {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-line-strong);
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.page-description {
  max-width: var(--body-width);
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.page-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 220px minmax(0, 1fr);
}

.page-body,
.layout-content,
.content-column,
.content-main,
.content-shell {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   components · 通用
   -------------------------------------------------------------------------- */

.section {
  margin-bottom: 44px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-desc,
.section-lead,
.section-intro {
  max-width: var(--body-width);
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.subsection-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-more {
  margin-top: 14px;
  font-size: 14px;
}

.text-link {
  color: var(--color-primary);
  font-size: 14px;
}

.section-foot {
  margin-top: 16px;
  font-size: 14px;
}

.section-foot a {
  margin-right: 16px;
}

/* 侧栏 / 索引 */

.page-aside,
.layout-aside,
.sidebar,
.side-index {
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.aside-title,
.sidebar-title,
.side-index-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.aside-list,
.sidebar-list,
.side-index-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-list a,
.sidebar-list a,
.side-index-list a {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.aside-list a:hover,
.aside-list a:focus-visible,
.sidebar-list a:hover,
.sidebar-list a:focus-visible,
.side-index-list a:hover,
.side-index-list a:focus-visible {
  background: var(--color-line);
  color: var(--color-primary);
  text-decoration: none;
}

.aside-toggle,
.sidebar-toggle,
.side-index-toggle {
  display: none;
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  text-align: left;
  color: var(--color-text);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

/* 主题目录 */

.topic-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 28px;
}

.toc-title,
.topic-toc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.toc-list,
.topic-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.toc-list a,
.topic-toc-list a {
  font-size: 14px;
  color: var(--color-primary);
}

/* 面包屑下方的相关链接条 */

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line-strong);
  font-size: 14px;
}

.related-links-label {
  color: var(--color-text-muted);
  font-size: 13px;
}

/* 字段表格 */

.field-table {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14px;
}

.field-table-caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.field-table th,
.field-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

.field-table thead th {
  background: var(--color-line);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

/* 链接卡 / 路径卡 */

.path-cards,
.path-grid,
.entry-grid,
.entry-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.path-card,
.entry-card,
.entry-link {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  color: var(--color-text);
  text-decoration: none;
}

.path-card:hover,
.path-card:focus-visible,
.entry-card:hover,
.entry-card:focus-visible,
.entry-link:hover,
.entry-link:focus-visible {
  border-color: var(--color-primary);
  text-decoration: none;
}

.path-title,
.path-name,
.entry-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.path-desc,
.entry-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.entry-link-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-primary);
}

.entry-link-text {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
}

.path-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.path-note a {
  margin-right: 12px;
}

/* 回到顶部 */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  box-shadow: var(--shadow-float);
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1;
  z-index: 20;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.fact-bar {
  background: var(--color-line);
  border-bottom: 1px solid var(--color-line-strong);
}

.fact-bar-inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 8px 24px;
}

.fact-bar-inner p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line-strong);
}

.hero-inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: start;
}

.hero-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-summary {
  max-width: 520px;
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag-link {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--color-primary);
  background: rgba(59, 91, 219, 0.08);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.tag-link:hover,
.tag-link:focus-visible {
  background: rgba(59, 91, 219, 0.16);
  text-decoration: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-dark);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.hero-media {
  min-width: 0;
}

.hero-figure {
  background: var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-top: 1px solid var(--color-line-strong);
}

.cover-wall {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 24px 24px 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cover-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cover-card-link {
  display: block;
  color: var(--color-text);
  text-decoration: none;
}

.cover-card-link:hover,
.cover-card-link:focus-visible {
  text-decoration: none;
}

.cover-card-link:hover .cover-card-title,
.cover-card-link:focus-visible .cover-card-title {
  color: var(--color-primary);
  text-decoration: underline;
}

.cover-card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--color-line);
}

.cover-card-title {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px 4px;
  margin: 0;
}

.cover-card-meta {
  padding: 0 12px 12px;
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.section-genre,
.section-updates,
.section-ranking,
.section-guide,
.section-index {
  max-width: var(--shell-width);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-width: 0;
}

.genre-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.genre-scope {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.genre-list li {
  margin-bottom: 6px;
}

.genre-list a {
  font-size: 14px;
}

.update-list {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.update-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 88px 110px 80px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}

.update-list > .update-item:last-child {
  border-bottom: 0;
}

.update-date {
  font-size: 13px;
  color: var(--color-text-muted);
}

.update-name {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-name:hover,
.update-name:focus-visible {
  text-decoration: underline;
}

.update-genre {
  font-size: 13px;
  color: var(--color-text-muted);
}

.update-progress {
  font-size: 13px;
  color: var(--color-text-muted);
}

.update-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  white-space: nowrap;
}

.update-status.is-ongoing {
  color: var(--color-accent);
  background: rgba(232, 135, 58, 0.12);
}

.update-status.is-finished {
  color: var(--color-positive);
  background: rgba(43, 138, 91, 0.12);
}

.ranking-layout,
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
}

.ranking-main,
.guide-main,
.ranking-side,
.guide-side {
  min-width: 0;
}

.rank-list {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 88px 80px;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}

.rank-list > .rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
}

.rank-name {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-name:hover,
.rank-name:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

.rank-genre {
  font-size: 13px;
  color: var(--color-text-muted);
}

.rank-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  white-space: nowrap;
}

.rank-status.is-ongoing {
  color: var(--color-accent);
  background: rgba(232, 135, 58, 0.12);
}

.rank-status.is-finished {
  color: var(--color-positive);
  background: rgba(43, 138, 91, 0.12);
}

.ranking-side {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.ranking-side p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.guide-main {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.guide-side {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.guide-side p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.guide-links {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.column-index {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 8px;
}

.column-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.column-link {
  display: block;
  padding: 12px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
}

.column-link:hover,
.column-link:focus-visible {
  background: var(--color-line);
  text-decoration: none;
}

.column-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.column-link:hover .column-name,
.column-link:focus-visible .column-name {
  color: var(--color-primary);
}

.column-desc {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */

.genre-groups {
  margin-bottom: 40px;
}

.genre-groups > .section-title {
  margin-bottom: 8px;
}

.genre-groups > .section-lead {
  margin-bottom: 20px;
}

.genre-block {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}

.genre-media {
  min-width: 0;
}

.cover-figure {
  background: var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cover-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.cover-figure figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-top: 1px solid var(--color-line-strong);
}

.genre-content {
  min-width: 0;
}

.genre-content .genre-name {
  margin-bottom: 8px;
}

.genre-content .genre-scope {
  margin-bottom: 12px;
}

.genre-entries {
  margin-bottom: 12px;
}

.genre-entries li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}

.genre-entries li:last-child {
  border-bottom: 0;
}

.genre-entries a {
  font-weight: 600;
}

.genre-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.genre-diff,
.genre-path {
  margin-bottom: 40px;
}

.genre-diff > .section-title,
.genre-path > .section-title {
  margin-bottom: 8px;
}

.genre-path > .section-lead {
  margin-bottom: 18px;
}

.diff-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.diff-col {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-width: 0;
}

.diff-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.diff-col p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages · 最近更新
   -------------------------------------------------------------------------- */

.update-list-section {
  margin-bottom: 40px;
}

.update-list-section > .section-title {
  margin-bottom: 8px;
}

.update-list-section > .section-intro {
  margin-bottom: 20px;
}

.date-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--color-line-strong);
  margin-bottom: 12px;
  scroll-margin-top: 16px;
}

.update-list-section .update-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 10px;
}

.update-thumb {
  background: var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.update-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.update-body {
  min-width: 0;
}

.update-body .update-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.update-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tag-genre {
  color: var(--color-primary);
  background: rgba(59, 91, 219, 0.08);
}

.tag-status.tag-ongoing {
  color: var(--color-accent);
  background: rgba(232, 135, 58, 0.12);
}

.tag-status.tag-completed {
  color: var(--color-positive);
  background: rgba(43, 138, 91, 0.12);
}

.tag-status.tag-paused {
  color: var(--color-text-muted);
  background: var(--color-line);
}

.update-body .update-progress {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.method-section,
.path-section {
  margin-bottom: 40px;
}

.method-section > .section-title,
.path-section > .section-title {
  margin-bottom: 8px;
}

.method-section > .section-intro,
.path-section > .section-intro {
  margin-bottom: 18px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.method-col {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-width: 0;
}

.method-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.method-col p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages · 人气榜单
   -------------------------------------------------------------------------- */

.content-column > .section {
  margin-bottom: 40px;
}

.content-column > .section > .section-title {
  margin-bottom: 8px;
}

.content-column > .section > .section-lead {
  margin-bottom: 18px;
}

.rank-media {
  background: var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.rank-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.rank-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-top: 1px solid var(--color-line-strong);
}

.rank-list .rank-item {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  padding: 14px 16px;
}

.rank-body {
  min-width: 0;
}

.rank-body .rank-name {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.rank-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.rank-progress {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 4px 0 0;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.note-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-width: 0;
}

.note-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.note-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.howto-list {
  display: grid;
  gap: 12px;
}

.howto-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  min-width: 0;
}

.howto-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.howto-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages · 阅读说明
   -------------------------------------------------------------------------- */

.guide-section {
  margin-bottom: 40px;
}

.guide-section > .section-title {
  margin-bottom: 8px;
}

.guide-section > .section-lead {
  margin-bottom: 18px;
}

.guide-figure {
  background: var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.guide-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-top: 1px solid var(--color-line-strong);
}

.step-list {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.step-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 14px 16px 14px 52px;
  position: relative;
  min-width: 0;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(59, 91, 219, 0.1);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 0 16px;
  margin-bottom: 10px;
}

.faq-question {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  float: right;
  color: var(--color-text-muted);
  font-weight: 400;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 14px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages · 内容反馈
   -------------------------------------------------------------------------- */

.feedback-types {
  margin-bottom: 40px;
}

.feedback-types > .section-title {
  margin-bottom: 8px;
}

.feedback-types > .section-lead {
  margin-bottom: 18px;
}

.type-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.type-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  min-width: 0;
}

.type-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.type-card-scope {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.type-card-body {
  border-top: 1px solid var(--color-line);
  padding-top: 12px;
}

.type-card-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.type-card-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.type-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}

.type-card-body p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.type-card-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.feedback-figure {
  background: var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.feedback-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.feedback-figure-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-top: 1px solid var(--color-line-strong);
}

.prepare-section,
.after-section {
  margin-bottom: 40px;
}

.prepare-section > .section-title,
.after-section > .section-title {
  margin-bottom: 8px;
}

.prepare-section > .section-lead,
.after-section > .section-lead {
  margin-bottom: 18px;
}

.prepare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.prepare-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-width: 0;
}

.prepare-item-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.prepare-item-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.after-text {
  max-width: var(--body-width);
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.error-panel {
  width: 100%;
  max-width: 560px;
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
}

.error-code {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.error-panel h1 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.error-action-primary {
  display: inline-block;
  padding: 9px 16px;
  font-size: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line-strong);
  color: var(--color-text);
  text-decoration: none;
}

.error-action-primary:hover,
.error-action-primary:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.error-hint {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.error-hint a {
  margin-right: 12px;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {

  .header-inner {
    gap: 12px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-bottom: 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li > a {
    padding: 12px 10px;
    font-size: 15px;
  }

  .fact-bar-inner,
  .hero-inner,
  .cover-wall,
  .section-genre,
  .section-updates,
  .section-ranking,
  .section-guide,
  .section-index,
  .inner-main,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .cover-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-layout,
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .column-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-aside,
  .layout-aside,
  .sidebar,
  .side-index {
    order: 2;
  }

  .page-body,
  .layout-content,
  .content-column,
  .content-main,
  .content-shell {
    order: 1;
  }

  .aside-toggle,
  .sidebar-toggle,
  .side-index-toggle {
    display: block;
  }

  .aside-list,
  .sidebar-list,
  .side-index-list {
    display: none;
  }

  .aside-list.is-open,
  .sidebar-list.is-open,
  .side-index-list.is-open {
    display: flex;
  }

  .genre-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .cover-figure img {
    height: 180px;
  }

  .diff-columns,
  .note-grid,
  .type-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  body {
    font-size: 14px;
  }

  .brand-slogan {
    display: none;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-inner {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .hero-figure img {
    height: 180px;
  }

  .cover-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 16px;
  }

  .cover-card-img {
    height: 120px;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .diff-columns,
  .note-grid,
  .type-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .column-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-list {
    border-radius: var(--radius-md);
  }

  .update-list > .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 14px;
  }

  .update-list > .update-item .update-name {
    white-space: normal;
  }

  .update-list > .update-item .update-status {
    justify-self: start;
  }

  .rank-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 14px;
  }

  .rank-list .rank-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .update-list-section .update-item {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }

  .update-thumb img {
    height: 100px;
  }

  .field-table {
    font-size: 13px;
  }

  .field-table th,
  .field-table td {
    padding: 8px 10px;
  }

  .field-table tbody th {
    white-space: normal;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}
