/* ==========================================================================
   腐漫画网 · 整站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg: #f5f4f1;
  --surface: #ffffff;
  --ink: #232323;
  --ink-soft: #6b6b6b;
  --line: #dcd9d3;
  --line-strong: #c6c2ba;
  --accent: #7a5c3e;
  --accent-hover: #4a3826;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1180px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

strong {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.brand:hover {
  color: var(--accent-hover);
}

.brand-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle::before {
  content: "☰";
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  min-height: 44px;
  line-height: 28px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  color: var(--accent-hover);
  background: #eceae5;
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 700;
  background: #ece7e0;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px var(--gutter) 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent-hover);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  max-width: 760px;
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-description {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}

.main-content,
.content-col,
.content-main {
  min-width: 0;
}

.sidebar,
.related-sidebar,
.related-aside,
.content-aside {
  min-width: 0;
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--gutter) 32px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px 28px;
}

.footer-about {
  max-width: 340px;
}

.footer-brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-about p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.footer-group h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  display: inline-block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-group a:hover {
  color: var(--accent-hover);
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */

.section,
.module,
.guide-section {
  margin-bottom: 44px;
}

.section h2,
.module h2,
.guide-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-lead,
.module-intro,
.section-intro,
.section-note {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 22px;
  max-width: 760px;
}

.visually-plain {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.section-head {
  max-width: var(--shell);
  margin: 0 auto 26px;
  padding: 0 var(--gutter);
}

.section-head h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.section-head p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 760px;
}

/* 面包屑与页标题区在侧栏页保持一致间距 */
.related-aside h2,
.related-sidebar h2,
.content-aside h2,
.aside-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.aside-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}

.aside-nav ul,
.related-nav ul,
.aside-links,
.aside-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aside-nav li,
.related-nav li,
.aside-links li,
.aside-list li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.aside-nav li:last-child,
.related-nav li:last-child,
.aside-links li:last-child,
.aside-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.aside-nav a,
.related-nav a,
.aside-links a,
.aside-list a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.aside-nav a:hover,
.related-nav a:hover,
.aside-links a:hover,
.aside-list a:hover {
  color: var(--accent-hover);
}

.aside-nav p,
.related-nav span,
.aside-list p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.aside-figure,
.field-figure {
  margin-top: 20px;
}

.aside-figure img,
.field-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.aside-figure figcaption,
.field-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 封面条目卡 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cover-card {
  min-width: 0;
}

.cover-card a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
  height: 100%;
}

.cover-card a:hover {
  border-color: var(--line-strong);
  color: var(--accent-hover);
}

.cover-card img,
.entry-card img,
.entry-thumb img,
.rank-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #e8e5df;
}

.cover-title,
.entry-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover-tag,
.entry-genre,
.entry-meta,
.entry-update {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.cover-field {
  font-size: 12px;
  color: var(--accent);
}

/* 更新批次块（首页 / 更新记录页共用） */
.update-batch-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.update-batch {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.update-batch:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.batch-id {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.batch-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.batch-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.batch-items li {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}

.batch-items a {
  color: var(--ink);
}

.batch-items a:hover {
  color: var(--accent-hover);
}

.column-more,
.module-more,
.path-note {
  margin-top: 18px;
  font-size: 14px;
}

/* 位次清单（首页与位次页共用行结构，父级限定作用域） */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.rank-tag {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* 字段口径说明块 */
.field-summary,
.field-notes,
.field-list {
  font-size: 14px;
}

.field-summary dt,
.field-notes dt,
.field-list dt {
  font-weight: 700;
  color: var(--ink);
  margin-top: 14px;
}

.field-summary dt:first-child,
.field-notes dt:first-child,
.field-list dt:first-child {
  margin-top: 0;
}

.field-summary dd,
.field-notes dd,
.field-list dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* 查阅路径步骤条 */
.path-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.path-step {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-no,
.step-index {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.path-step h3,
.step-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.path-step p,
.step-action,
.step-result {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.step-link {
  margin-top: 10px;
  font-size: 14px;
}

/* 反馈说明块 */
.feedback-block,
.feedback-need {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-block h3,
.feedback-need h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feedback-block p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.feedback-link {
  margin-top: 12px;
  font-size: 14px;
}

/* FAQ 折叠项 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
}

.faq-item summary {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  float: right;
  color: var(--ink-soft);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-item p {
  padding: 0 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* 字段对照表 */
.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.field-table caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  padding-bottom: 10px;
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  background: #ece9e4;
  font-weight: 700;
  color: var(--ink);
}

.field-table tbody th {
  font-weight: 700;
  color: var(--ink);
  width: 22%;
}

.field-table tbody td {
  color: var(--ink-soft);
}

/* 延伸入口链接列表 */
.entry-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry-links li {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

/* 条目列表行（更新记录页） */
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.entry-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-thumb {
  width: 84px;
}

.entry-thumb img {
  aspect-ratio: 3 / 4;
}

.entry-body {
  min-width: 0;
}

.entry-body .entry-title {
  font-size: 16px;
  margin-bottom: 6px;
  -webkit-line-clamp: 2;
}

.entry-body p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.fact-bar {
  background: #ece9e4;
  border-bottom: 1px solid var(--line);
}

.fact-bar p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 9px var(--gutter);
  font-size: 13px;
  color: var(--ink-soft);
}

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px var(--gutter) 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 22px;
  max-width: 520px;
}

.hero-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-entry a {
  display: inline-block;
  padding: 10px 18px;
  min-height: 44px;
  line-height: 24px;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.hero-entry a:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
}

.hero-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.hero-facts dt {
  color: var(--ink-soft);
}

.hero-facts dd {
  color: var(--ink);
}

.hero-visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.hero-genre-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero-genre-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-genre-list li {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.genre-overview {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.genre-grid {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.genre-card {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.genre-scope {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 12px;
}

.genre-sample {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.home-columns {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.columns-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.column-cover,
.column-updates,
.column-rank,
.column-fields {
  min-width: 0;
}

.column-cover h3,
.column-updates h3,
.column-rank h3,
.column-fields h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.column-note {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}

.path-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.path-section .path-steps,
.path-section .feedback-block {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.path-section .feedback-block {
  margin-top: 26px;
  padding: 20px var(--gutter);
}

.site-index {
  padding: 48px 0 56px;
}

.index-columns {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.index-column {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-column h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.index-column h3 a {
  color: var(--ink);
}

.index-column h3 a:hover {
  color: var(--accent-hover);
}

.index-column p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */

.genre-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

.genre-direction {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-direction h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.genre-represent {
  font-size: 14px;
  color: var(--accent);
  line-height: 1.7;
}

.genre-block {
  margin-bottom: 32px;
}

.genre-block h3 {
  font-size: 17px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.entry-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-card:hover {
  border-color: var(--line-strong);
}

.entry-card a {
  color: var(--ink);
}

.entry-card a:hover {
  color: var(--accent-hover);
}

.entry-cover {
  display: block;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag,
.tag-state {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: #ece9e4;
  border-radius: var(--radius-sm);
}

.tag-state {
  color: var(--accent);
  background: #f0e9e1;
}

/* --------------------------------------------------------------------------
   pages · 更新记录
   -------------------------------------------------------------------------- */

.batch-block {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.batch-block h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.batch-block .batch-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  margin-bottom: 0;
}

.batch-block .batch-meta dt {
  font-size: 13px;
  color: var(--ink-soft);
}

.batch-block .batch-meta dd {
  font-size: 13px;
  color: var(--ink);
}

.batch-banner {
  margin-top: 16px;
}

.batch-banner img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   pages · 人气位次
   -------------------------------------------------------------------------- */

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 40px 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ranking-row .rank-no {
  font-size: 17px;
}

.rank-thumb {
  width: 72px;
}

.rank-body {
  min-width: 0;
}

.rank-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.rank-meta {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.rank-field {
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

.rank-scope {
  margin-bottom: 40px;
}

.rank-scope h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.rank-scope p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 760px;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-list li {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.scope-list strong {
  color: var(--ink);
}

.field-digest h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.field-digest > p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   pages · 查阅指引
   -------------------------------------------------------------------------- */

.field-section .field-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}

.field-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-item dt {
  font-size: 15px;
  margin-top: 0;
}

.field-item dd {
  font-size: 14px;
  line-height: 1.85;
}

.field-mean {
  display: block;
  color: var(--ink-soft);
}

.field-sample {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.feedback-type {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-type h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.feedback-type p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.feedback-need ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.feedback-need li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.feedback-need li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

.feedback-entry {
  margin-top: 16px;
  font-size: 14px;
}

.feedback-entry a + a {
  margin-left: 18px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px var(--gutter) 88px;
}

.error-panel {
  max-width: 620px;
}

.error-code {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 30px;
  margin-bottom: 14px;
}

.error-lead {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 26px;
}

.error-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.error-paths a {
  display: block;
  padding: 14px 16px;
  min-height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
}

.error-paths a:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.error-home-link {
  display: inline-block;
  padding: 12px 22px;
  min-height: 44px;
  line-height: 24px;
  font-size: 15px;
  color: var(--surface);
  background: var(--accent);
  border-radius: var(--radius-sm);
}

.error-home-link:hover {
  color: var(--surface);
  background: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 6px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 8px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-inner,
  .columns-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero-title {
    font-size: 30px;
  }

  .page-title {
    font-size: 26px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 12px var(--gutter);
    gap: 12px;
  }

  .brand {
    font-size: 19px;
  }

  .inner-main {
    padding: 20px var(--gutter) 44px;
  }

  .hero-inner {
    padding: 32px var(--gutter) 36px;
  }

  .hero-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 23px;
  }

  .section-head h2,
  .section h2,
  .module h2,
  .guide-section h2 {
    font-size: 19px;
  }

  .hero-genre-list ul,
  .genre-grid,
  .genre-overview-grid,
  .index-columns,
  .entry-grid,
  .cover-grid,
  .feedback-grid,
  .error-paths,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .ranking-row {
    grid-template-columns: 32px 60px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-thumb {
    width: 60px;
  }

  .ranking-row .rank-field {
    grid-column: 2 / -1;
    white-space: normal;
  }

  .entry-row {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }

  .entry-thumb {
    width: 68px;
  }

  .field-table th,
  .field-table td {
    padding: 10px 10px;
  }

  .field-table thead {
    display: none;
  }

  .field-table tbody th {
    width: auto;
  }

  .field-table tbody tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .field-table tbody th,
  .field-table tbody td {
    display: block;
    border-bottom: 0;
    padding: 2px 0;
  }

  .error-main {
    padding: 48px var(--gutter) 64px;
  }

  .feedback-entry a + a {
    margin-left: 0;
    display: block;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
