/* ==========================================================================
   羞羞漫画 wxrgy.cn — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base — 变量与基础重置
   -------------------------------------------------------------------------- */

:root {
  --paper: #f7f6f2;
  --paper-raised: #fffefb;
  --ink: #16233a;
  --ink-body: #2c3648;
  --ink-soft: #5b6474;
  --ink-faint: #7c8494;
  --line: #dcd8ce;
  --line-strong: #c6c0b2;
  --accent: #16233a;
  --accent-soft: #eceae3;
  --status-ongoing: #2f7d5a;
  --status-paused: #b07a1e;
  --status-finished: #5b6474;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1120px;
  --prose: 760px;
  --gap: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout — 站点骨架：页头 / 主导航 / 主容器 / 页脚
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  padding: 14px 0;
}

.brand::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  background-color: var(--status-paused);
  border-radius: 1px;
  vertical-align: 2px;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-block;
  padding: 10px 12px;
  font-size: 14.5px;
  color: var(--ink-body);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover {
  background-color: var(--accent-soft);
  text-decoration: none;
  color: var(--ink);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 15px;
  height: 2px;
  background-color: var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 12px 0 var(--ink);
}

.site-main {
  display: block;
}

.home-main {
  padding-bottom: 8px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background-color: var(--paper);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 24px 26px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.footer-list a:hover {
  color: var(--ink);
}

.footer-about {
  margin-top: 20px;
  max-width: var(--prose);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.footer-copy {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   components — 通用区块、标题、表格、状态标记、按钮
   -------------------------------------------------------------------------- */

.section-title {
  font-size: 21px;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.section-index {
  display: inline-block;
  margin-right: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--status-paused);
  font-variant-numeric: tabular-nums;
}

.section-lead,
.section-desc {
  max-width: var(--prose);
  color: var(--ink-body);
  margin-bottom: 18px;
}

.section-note,
.section-foot,
.section-footnote {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.section-note a,
.section-foot a,
.section-footnote a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.section-note a:hover,
.section-foot a:hover,
.section-footnote a:hover {
  text-decoration: none;
  border-bottom-color: var(--ink);
}

.subsection-title {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 12px;
}

.status {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.status.status-ongoing {
  color: var(--status-ongoing);
}

.status.status-paused {
  color: var(--status-paused);
}

.status.status-finished {
  color: var(--status-finished);
}

.btn {
  display: inline-block;
  padding: 9px 18px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  text-decoration: none;
  background-color: #23334f;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  text-decoration: none;
  background-color: var(--accent-soft);
}

.data-table {
  width: 100%;
  font-size: 13.5px;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  background-color: #f0eee8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background-color: #f2f0ea;
}

.data-table caption {
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

.page-header {
  padding: 20px 0 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  line-height: 1.3;
  color: var(--ink);
}

.page-description {
  max-width: var(--prose);
  margin-top: 12px;
  color: var(--ink-body);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.meta-item {
  position: relative;
  padding-left: 12px;
}

.meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  background-color: var(--status-paused);
  border-radius: 1px;
}

.section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head .section-title {
  margin-bottom: 8px;
}

.two-column,
.field-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.column {
  min-width: 0;
}

.column-title {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.field-list li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.field-list li:last-child {
  border-bottom: 0;
}

.field-list strong {
  color: var(--ink);
  margin-right: 6px;
}

.field-list dt {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  margin-top: 10px;
}

.field-list dt:first-child {
  margin-top: 0;
}

.field-list dd {
  font-size: 13.5px;
  color: var(--ink-body);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.field-list dd:last-child {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.hero-intro {
  min-width: 0;
  padding-top: 6px;
}

.hero-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--status-paused);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.28;
  color: var(--ink);
}

.hero-desc {
  max-width: 520px;
  margin-top: 16px;
  color: var(--ink-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-visual {
  min-width: 0;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.hero-visual img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
}

.hero-visual figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.home-stream,
.home-genres,
.home-updates,
.home-rank-collection,
.home-steps,
.home-scope,
.home-index {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 38px 24px;
  border-bottom: 1px solid var(--line);
}

.home-index {
  border-bottom: 0;
}

.stream-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.stream-covers,
.stream-updates {
  min-width: 0;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cover-card {
  min-width: 0;
}

.cover-card a {
  display: block;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  height: 100%;
}

.cover-card a:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  background-color: #f2f0ea;
}

.cover-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
}

.cover-name {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.update-mini-list {
  border-top: 1px solid var(--line);
}

.update-mini-item {
  border-bottom: 1px solid var(--line);
}

.update-mini-item a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 6px;
  font-size: 13.5px;
}

.update-mini-item a:hover {
  text-decoration: none;
  background-color: var(--accent-soft);
}

.item-name {
  font-weight: 700;
  color: var(--ink);
}

.item-genre {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.item-progress {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.stream-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.stream-note a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.stream-note a:hover {
  text-decoration: none;
  border-bottom-color: var(--ink);
}

.genre-table .col-no {
  width: 64px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.genre-table .col-name {
  width: 110px;
  font-weight: 700;
  color: var(--ink);
}

.status-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.status-group {
  min-width: 0;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.group-title {
  font-size: 15px;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.group-ongoing .group-title {
  border-bottom-color: var(--status-ongoing);
}

.group-paused .group-title {
  border-bottom-color: var(--status-paused);
}

.group-completed .group-title {
  border-bottom-color: var(--status-finished);
}

.group-item {
  border-bottom: 1px dashed var(--line);
}

.group-item:last-child {
  border-bottom: 0;
}

.group-item a {
  display: block;
  padding: 8px 4px;
  font-size: 13.5px;
  color: var(--ink-body);
}

.group-item a:hover {
  text-decoration: none;
  background-color: var(--accent-soft);
  color: var(--ink);
}

.rank-collection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.rank-column,
.collection-column {
  min-width: 0;
}

.rank-list {
  border-top: 1px solid var(--line);
}

.rank-item {
  border-bottom: 1px solid var(--line);
}

.rank-item a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 6px;
  font-size: 14px;
}

.rank-item a:hover {
  text-decoration: none;
  background-color: var(--accent-soft);
}

.rank-no {
  flex: 0 0 auto;
  min-width: 26px;
  font-size: 13px;
  font-weight: 700;
  color: var(--status-paused);
  font-variant-numeric: tabular-nums;
}

.rank-item .rank-name,
.rank-name {
  color: var(--ink);
  font-weight: 700;
}

.rank-item .item-genre {
  margin-left: auto;
}

.collection-list {
  border-top: 1px solid var(--line);
}

.collection-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.collection-item a {
  display: block;
}

.collection-item a:hover {
  text-decoration: none;
}

.collection-item a:hover .collection-name {
  text-decoration: underline;
}

.collection-name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.collection-desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.column-foot {
  margin-top: 12px;
  font-size: 13px;
}

.column-foot a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.column-foot a:hover {
  text-decoration: none;
  border-bottom-color: var(--ink);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-item {
  min-width: 0;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.step-no {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--status-paused);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.step-name {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13.5px;
  color: var(--ink-body);
}

.step-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.step-link:hover {
  text-decoration: none;
  border-bottom-color: var(--ink);
}

.scope-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.scope-column {
  min-width: 0;
}

.scope-column .field-list dt {
  font-size: 14px;
}

.scope-column .field-list dd {
  font-size: 13.5px;
}

.index-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-item {
  min-width: 0;
}

.index-item a {
  display: block;
  height: 100%;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.index-item a:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  background-color: #f2f0ea;
}

.index-name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.index-desc {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   pages — 内页：题材分类
   -------------------------------------------------------------------------- */

.genre-figure {
  margin: 0 0 20px;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.genre-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
}

.genre-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.table-wrap {
  overflow-x: auto;
}

.genre-table-section .data-table {
  min-width: 720px;
}

.cell-code {
  width: 68px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cell-name {
  width: 104px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.index-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.column-index {
  min-width: 0;
}

.column-index .index-list {
  display: block;
}

.column-index .index-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.column-index .index-item:last-child {
  border-bottom: 0;
}

.column-index .index-name {
  display: inline;
  margin-bottom: 0;
  font-size: 14px;
}

.index-dirs {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.index-link {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.index-link:hover {
  text-decoration: none;
  border-bottom-color: var(--ink);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.related-label {
  font-weight: 700;
  color: var(--ink);
}

.related-links a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
}

.related-links a:hover {
  text-decoration: none;
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages — 内页：最近更新
   -------------------------------------------------------------------------- */

.section-update-groups .section-note {
  margin-top: 0;
  margin-bottom: 22px;
}

.update-group {
  margin-bottom: 26px;
  padding-bottom: 6px;
}

.update-group:last-of-type {
  margin-bottom: 0;
}

.update-group .group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.update-list {
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.update-cover {
  min-width: 0;
}

.update-cover img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
}

.update-body {
  min-width: 0;
}

.update-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.update-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.update-note {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-body);
}

.field-column {
  min-width: 0;
}

.method-list {
  border-top: 1px solid var(--line);
}

.method-item {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.method-item:last-child {
  border-bottom: 0;
}

.status-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.status-card {
  min-width: 0;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.status-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 10px;
}

.status-card-text {
  font-size: 13.5px;
  color: var(--ink-body);
}

/* --------------------------------------------------------------------------
   pages — 内页：人气榜单
   -------------------------------------------------------------------------- */

.container {
  display: block;
}

.ranking-list {
  border-top: 1px solid var(--line);
}

.ranking-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 96px 92px 92px;
  align-items: center;
  gap: 14px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
}

.ranking-item:hover {
  background-color: var(--accent-soft);
}

.ranking-item .rank-no {
  min-width: 0;
  font-size: 14px;
}

.rank-body {
  min-width: 0;
}

.rank-name {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.rank-summary {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.rank-genre {
  font-size: 13px;
  color: var(--ink-soft);
}

.rank-status {
  justify-self: start;
}

.rank-progress {
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.collection-section .collection-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.collection-media {
  min-width: 0;
}

.collection-media img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
}

.collection-body {
  min-width: 0;
}

.collection-section .collection-name {
  font-size: 15px;
}

.collection-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.collection-link:hover {
  text-decoration: none;
  border-bottom-color: var(--ink);
}

.caliber-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.caliber-col {
  min-width: 0;
}

.caliber-subtitle {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.caliber-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.caliber-list li:last-child {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages — 内页：阅读说明
   -------------------------------------------------------------------------- */

.guide-fields,
.guide-path,
.guide-anatomy,
.guide-faq,
.guide-related {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.guide-related {
  border-bottom: 0;
}

.field-col {
  min-width: 0;
}

.col-title {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.term-list dt {
  font-weight: 700;
  color: var(--ink);
  font-size: 14.5px;
  margin-top: 12px;
}

.term-list dt:first-child {
  margin-top: 0;
}

.term-list dd {
  font-size: 13.5px;
  color: var(--ink-body);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.term-list dd:last-child {
  border-bottom: 0;
}

.guide-figure {
  margin: 0 0 14px;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.guide-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
}

.guide-figure--wide img {
  height: 260px;
}

.figure-caption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.field-col--order p {
  margin-bottom: 12px;
  font-size: 14px;
}

.field-col--order p:last-child {
  margin-bottom: 0;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.path-step {
  min-width: 0;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.step-index {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--status-paused);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.path-step .step-name {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.path-step .step-desc {
  font-size: 13.5px;
  color: var(--ink-body);
}

.path-step .step-desc a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.path-step .step-desc a:hover {
  text-decoration: none;
  border-bottom-color: var(--ink);
}

.path-step .step-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.path-step .step-link:hover {
  text-decoration: none;
  border-bottom-color: var(--ink);
}

.anatomy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin-top: 6px;
}

.anatomy-item {
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.anatomy-key {
  color: var(--ink);
  margin-right: 8px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  position: relative;
  padding: 14px 40px 14px 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "展开";
  position: absolute;
  right: 4px;
  top: 15px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-soft);
}

.faq-item[open] .faq-question::after {
  content: "收起";
}

.faq-question:hover {
  background-color: var(--accent-soft);
}

.faq-answer {
  padding: 0 4px 16px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--ink-body);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.related-item {
  min-width: 0;
}

.related-item a {
  display: block;
  height: 100%;
  padding: 12px 14px;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.related-item a:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  background-color: #f2f0ea;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-block {
  max-width: 680px;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 34px 30px;
}

.error-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--status-paused);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.error-title {
  font-size: 28px;
  color: var(--ink);
}

.error-text {
  margin-top: 14px;
  color: var(--ink-body);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.error-links a {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.error-links a:hover {
  text-decoration: none;
  border-bottom-color: var(--ink);
}

/* --------------------------------------------------------------------------
   responsive — 960px 与 640px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    padding: 0 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex: 1 0 100%;
    display: block;
  }

  .nav-list {
    display: none;
    width: 100%;
    padding: 6px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: block;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-list li:last-child {
    border-bottom: 0;
  }

  .nav-link {
    display: block;
    padding: 12px 4px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
  }

  .nav-link.is-current {
    border-bottom-color: transparent;
    border-left-color: var(--ink);
    padding-left: 10px;
  }

  .inner-main {
    padding: 0 18px 44px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 30px 18px 28px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-visual img {
    height: 240px;
  }

  .home-stream,
  .home-genres,
  .home-updates,
  .home-rank-collection,
  .home-steps,
  .home-scope,
  .home-index {
    padding: 30px 18px;
  }

  .stream-layout,
  .rank-collection-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .status-groups,
  .status-columns,
  .step-list,
  .path-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ranking-item {
    grid-template-columns: 34px minmax(0, 1fr) 88px;
    row-gap: 6px;
  }

  .ranking-item .rank-status {
    grid-column: 3;
  }

  .ranking-item .rank-progress {
    grid-column: 2 / span 2;
    text-align: left;
  }

  .footer-inner {
    padding: 28px 18px 22px;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }

  .header-inner {
    padding: 0 14px;
  }

  .brand {
    font-size: 17px;
  }

  .inner-main {
    padding: 0 14px 38px;
  }

  .page-header {
    padding: 16px 0 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .section {
    padding: 26px 0;
  }

  .section-title {
    font-size: 19px;
  }

  .hero {
    padding: 24px 14px 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-visual img {
    height: 200px;
  }

  .home-stream,
  .home-genres,
  .home-updates,
  .home-rank-collection,
  .home-steps,
  .home-scope,
  .home-index {
    padding: 26px 14px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cover-card img {
    height: 132px;
  }

  .status-groups,
  .status-columns,
  .step-list,
  .path-steps,
  .two-column,
  .field-columns,
  .scope-layout,
  .index-columns,
  .caliber-columns,
  .anatomy-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .update-cover img {
    width: 76px;
    height: 76px;
  }

  .ranking-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 12px 2px;
  }

  .ranking-item .rank-genre,
  .ranking-item .rank-status,
  .ranking-item .rank-progress {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .collection-section .collection-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .collection-media img {
    width: 100%;
    height: 170px;
  }

  .genre-figure img {
    height: 180px;
  }

  .guide-figure img,
  .guide-figure--wide img {
    height: 170px;
  }

  .error-main {
    padding: 34px 14px 46px;
  }

  .error-block {
    padding: 24px 18px 22px;
  }

  .error-title {
    font-size: 22px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
