/* ==========================================================================
   樱花动漫 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --ink: #101a2b;
  --ink-soft: #1b2940;
  --paper: #f7f5f2;
  --paper-alt: #e7e4df;
  --sakura: #e58aa8;
  --sakura-deep: #c9647f;
  --slate: #5b6b7c;
  --line: #d8d3cc;
  --line-dark: #2b3a52;
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1180px;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--sakura-deep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sakura);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.home-main {
  width: 100%;
}

.site-footer {
  background: var(--ink);
  color: #c9d2dd;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: #8d9aab;
}

/* 内页通用页面标题区 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--slate);
}

.breadcrumb a {
  color: var(--slate);
}

.breadcrumb a:hover {
  color: var(--sakura-deep);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.page-header {
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-description {
  max-width: 760px;
  font-size: 16px;
  color: var(--slate);
}

/* 两栏 / 三栏内容布局 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.layout-topic {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.layout-shell {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.layout-main {
  min-width: 0;
}

.layout-side,
.layout-aside {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   components · 页头与导航
   -------------------------------------------------------------------------- */

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 12px;
  color: #8d9aab;
}

.brand:hover .brand-name {
  color: var(--sakura);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 9px 14px;
  font-size: 15px;
  color: #c9d2dd;
  border-radius: var(--radius-sm);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.is-current {
  color: #fff;
  font-weight: 700;
  background: rgba(229, 138, 168, 0.22);
  box-shadow: inset 0 -2px 0 var(--sakura);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #dfe6ee;
}

/* --------------------------------------------------------------------------
   components · 页脚
   -------------------------------------------------------------------------- */

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #8d9aab;
  max-width: 340px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.footer-list li {
  margin-bottom: 9px;
}

.footer-list a {
  font-size: 14px;
  color: #b6c1ce;
}

.footer-list a:hover {
  color: var(--sakura);
}

/* --------------------------------------------------------------------------
   components · 通用区块标题
   -------------------------------------------------------------------------- */

.section-head {
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-lead,
.section-desc,
.section-intro {
  max-width: 780px;
  font-size: 15px;
  color: var(--slate);
}

.section-desc a,
.section-intro a,
.boundary-more a,
.guide-more a,
.rank-more a,
.shelf-more a,
.update-more a,
.scope-note a,
.status-footnote a {
  color: var(--sakura-deep);
  font-weight: 600;
  border-bottom: 1px solid rgba(201, 100, 127, 0.4);
}

.section-desc a:hover,
.section-intro a:hover,
.boundary-more a:hover,
.guide-more a:hover,
.rank-more a:hover,
.shelf-more a:hover,
.update-more a:hover,
.scope-note a:hover,
.status-footnote a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.aside-title {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 10px;
}

.aside-text {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   components · 表格与字段
   -------------------------------------------------------------------------- */

.field-table {
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-caption {
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  background: var(--paper-alt);
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}

.field-table tbody th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.field-table tbody td {
  color: var(--slate);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   components · 标签与状态小件
   -------------------------------------------------------------------------- */

.work-tag,
.entry-tag,
.record-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--sakura-deep);
  background: rgba(229, 138, 168, 0.16);
  border-radius: var(--radius-sm);
}

.work-status,
.entry-status,
.record-type {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--paper-alt);
  border-radius: var(--radius-sm);
}

.mono {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.site-notice {
  background: var(--ink-soft);
  color: #b6c1ce;
  font-size: 13px;
  text-align: center;
  padding: 8px 24px;
  border-bottom: 1px solid var(--line-dark);
}

/* 杂志目录式首屏 */
.hero-section {
  background: var(--ink);
  color: #e9edf2;
  border-bottom: 1px solid var(--line-dark);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
}

.hero-index {
  min-width: 0;
}

.hero-issue {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sakura);
  border: 1px solid rgba(229, 138, 168, 0.5);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 38px;
  color: #fff;
  margin-bottom: 16px;
}

.hero-summary {
  font-size: 16px;
  color: #b6c1ce;
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-link {
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  color: #e9edf2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.tag-link:hover {
  color: #fff;
  background: rgba(229, 138, 168, 0.28);
  border-color: rgba(229, 138, 168, 0.6);
}

.hero-figure {
  margin: 0;
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: #8d9aab;
  border-top: 1px solid var(--line-dark);
}

/* 通用首页区块间距 */
.genre-section,
.shelf-section,
.update-section,
.rank-section,
.guide-section,
.index-section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 0;
}

.index-section {
  padding-bottom: 64px;
}

/* 题材方向总览 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.genre-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.genre-name {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
}

.genre-desc {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 14px;
}

.genre-list {
  margin-top: auto;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.genre-list li {
  margin-bottom: 8px;
}

.genre-list li:last-child {
  margin-bottom: 0;
}

.genre-list a {
  font-size: 14px;
  color: var(--ink);
}

.genre-list a:hover {
  color: var(--sakura-deep);
}

/* 封面墙与作品条目 */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.work-card:hover {
  border-color: var(--sakura);
  box-shadow: 0 6px 18px rgba(16, 26, 43, 0.12);
}

.work-cover {
  margin: 0;
  background: var(--paper-alt);
}

.work-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.work-name {
  font-size: 16px;
  color: var(--ink);
  margin: 14px 16px 8px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 16px 16px;
}

.shelf-more,
.update-more,
.rank-more,
.guide-more,
.boundary-more {
  margin-top: 20px;
  font-size: 15px;
}

/* 最近更新记录 */
.update-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 130px 110px;
  gap: 16px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.update-row:last-child {
  border-bottom: none;
}

.update-row:nth-child(even) {
  background: #fbfaf8;
}

.update-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
}

.update-name {
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.update-genre {
  color: var(--slate);
}

.update-type {
  justify-self: start;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--sakura-deep);
  background: rgba(229, 138, 168, 0.16);
  border-radius: var(--radius-sm);
}

/* 人气榜单与编辑选题 */
.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.rank-main {
  min-width: 0;
}

.rank-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 130px;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: none;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--sakura-deep);
}

.rank-row:nth-child(1) .rank-no,
.rank-row:nth-child(2) .rank-no,
.rank-row:nth-child(3) .rank-no {
  color: var(--sakura);
}

.rank-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.rank-genre {
  font-size: 13px;
  color: var(--slate);
  justify-self: start;
}

.rank-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}

.topic-list {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.topic-list li {
  margin-bottom: 10px;
}

.topic-list li:last-child {
  margin-bottom: 0;
}

.topic-list a {
  font-size: 14px;
  color: var(--ink);
}

.topic-list a:hover {
  color: var(--sakura-deep);
}

/* 阅读说明与收录边界摘要 */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.guide-main {
  min-width: 0;
}

.guide-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}

.boundary-list {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--slate);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--sakura);
  border-radius: 50%;
}

.boundary-list li:last-child {
  margin-bottom: 0;
}

/* 站内栏目索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-item {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.index-item:hover {
  border-color: var(--sakura);
  background: #fffdfd;
}

.index-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.index-desc {
  display: block;
  font-size: 13px;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */

.section-topic-index .topic-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.topic-index-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.topic-index-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.topic-index-name a {
  color: var(--ink);
}

.topic-index-name a:hover {
  color: var(--sakura-deep);
}

.topic-index-range {
  font-size: 13px;
  color: var(--slate);
}

.topic-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  min-width: 0;
}

.topic-block:last-child {
  margin-bottom: 0;
}

.topic-block-head {
  margin-bottom: 16px;
}

.topic-block-name {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 6px;
}

.topic-block-def {
  font-size: 14px;
  color: var(--slate);
}

.topic-figure {
  margin: 0 0 18px;
  background: var(--paper-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.topic-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--slate);
  background: #fff;
  border-top: 1px solid var(--line);
}

.topic-entry-list {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.topic-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.topic-entry:last-child {
  border-bottom: none;
}

.entry-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  min-width: 140px;
}

.entry-note {
  flex: 1 1 200px;
  font-size: 13px;
  color: var(--slate);
}

.section-topic-boundary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.boundary-name {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.boundary-text {
  font-size: 13px;
  color: var(--slate);
}

.section-topic-boundary .boundary-list li {
  padding-left: 0;
  margin-bottom: 14px;
}

.section-topic-boundary .boundary-list li::before {
  display: none;
}

.section-topic-boundary .boundary-list li:last-child {
  margin-bottom: 0;
}

.section-related {
  margin-top: 40px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.related-item {
  min-width: 0;
}

.related-item a {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.16s ease;
}

.related-item a:hover {
  border-color: var(--sakura);
  color: var(--sakura-deep);
}

/* --------------------------------------------------------------------------
   pages · 更新记录
   -------------------------------------------------------------------------- */

.layout-shell > section {
  margin-bottom: 40px;
}

.layout-shell > section:last-child {
  margin-bottom: 0;
}

.record-fields .field-table {
  margin-top: 16px;
}

.record-list {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.record-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.record-item:last-child {
  border-bottom: none;
}

.record-item:nth-child(even) {
  background: #fbfaf8;
}

.record-thumb {
  margin: 0;
  background: var(--paper-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.record-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.record-body {
  min-width: 0;
}

.record-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 4px;
}

.record-name {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.record-note {
  font-size: 14px;
  color: var(--slate);
}

.status-list {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.status-entry {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.status-entry:last-child {
  border-bottom: none;
}

.status-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.status-desc {
  margin: 0;
  font-size: 14px;
  color: var(--slate);
}

.status-footnote {
  margin-top: 18px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   pages · 人气榜单
   -------------------------------------------------------------------------- */

.section-rank-rule {
  margin-bottom: 40px;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.rule-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.rule-name {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}

.rule-text {
  font-size: 14px;
  color: var(--slate);
}

.section-rank-list {
  margin-bottom: 0;
}

.section-rank-list .rank-list {
  margin-top: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 46px 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-item:nth-child(even) {
  background: #fbfaf8;
}

.rank-thumb {
  margin: 0;
  background: var(--paper-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.rank-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rank-body {
  min-width: 0;
}

.rank-body .rank-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.rank-body .rank-genre {
  font-size: 13px;
  color: var(--slate);
}

.rank-body .rank-meta {
  font-size: 13px;
  color: var(--slate);
  margin-top: 4px;
}

.rank-body .rank-note {
  font-size: 13px;
  color: var(--slate);
  margin-top: 6px;
}

.section-pick .pick-figure {
  margin: 16px 0 20px;
  background: var(--paper-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.section-pick .pick-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pick-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--slate);
  background: #fff;
  border-top: 1px solid var(--line);
}

.pick-list {
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

.pick-item {
  margin-bottom: 16px;
}

.pick-item:last-child {
  margin-bottom: 0;
}

.pick-name {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}

.pick-text {
  font-size: 14px;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   pages · 阅读说明
   -------------------------------------------------------------------------- */

.page-figure {
  margin: 0 0 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.page-figure figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--slate);
  border-top: 1px solid var(--line);
}

.section-faq {
  margin-bottom: 48px;
}

.faq-group {
  margin-top: 24px;
}

.faq-group-title {
  font-size: 17px;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  padding: 14px 44px 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--sakura-deep);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 14px 18px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--slate);
}

.section-scope {
  margin-bottom: 48px;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.scope-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.scope-item-title {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}

.scope-item p {
  font-size: 14px;
  color: var(--slate);
}

.scope-note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--slate);
}

.scope-note a {
  margin-right: 12px;
}

.section-feedback {
  margin-bottom: 8px;
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  counter-reset: feedback;
}

.feedback-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
  counter-increment: feedback;
}

.feedback-step-title {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}

.feedback-step-title::before {
  content: counter(feedback) ". ";
  color: var(--sakura-deep);
  font-family: var(--font-mono);
}

.feedback-step p {
  font-size: 14px;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 32px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  color: var(--sakura);
  margin-bottom: 16px;
}

.error-title {
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 14px;
}

.error-text {
  font-size: 15px;
  color: var(--slate);
  margin-bottom: 10px;
  max-width: 680px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--sakura-deep);
  border-color: var(--sakura-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--sakura);
  color: var(--sakura-deep);
}

.error-hint {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.error-hint-title {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 14px;
}

.error-hint-list li {
  font-size: 14px;
  color: var(--slate);
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.error-hint-list li:last-child {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    padding: 0 18px;
    min-height: 62px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 14px;
    border-top: 1px solid var(--line-dark);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
    font-size: 16px;
  }

  .inner-main {
    padding: 0 18px 48px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 34px 18px 40px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 9;
  }

  .genre-section,
  .shelf-section,
  .update-section,
  .rank-section,
  .guide-section,
  .index-section {
    padding: 40px 18px 0;
  }

  .index-section {
    padding-bottom: 48px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .rank-layout,
  .guide-layout,
  .page-layout,
  .layout-topic {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-topic-index .topic-index-grid,
  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rule-grid,
  .feedback-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: 40px 18px 24px;
  }

  .footer-bottom {
    padding: 16px 18px 24px;
  }

  .footer-desc {
    max-width: none;
  }

  .page-title {
    font-size: 28px;
  }

  .error-panel {
    padding: 30px 24px;
  }

  .error-code {
    font-size: 48px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-notice {
    font-size: 12px;
    padding: 7px 16px;
  }

  .header-inner {
    padding: 0 14px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .inner-main {
    padding: 0 14px 40px;
  }

  .hero-inner {
    padding: 28px 14px 32px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-summary {
    font-size: 15px;
  }

  .genre-section,
  .shelf-section,
  .update-section,
  .rank-section,
  .guide-section,
  .index-section {
    padding: 32px 14px 0;
  }

  .index-section {
    padding-bottom: 40px;
  }

  .section-title {
    font-size: 20px;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .work-name {
    font-size: 14px;
    margin: 10px 12px 6px;
  }

  .work-meta {
    margin: 0 12px 12px;
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 14px;
  }

  .update-type {
    justify-self: start;
  }

  .rank-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
  }

  .rank-genre {
    grid-column: 2;
  }

  .rank-aside,
  .guide-aside {
    padding: 18px;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .index-item {
    padding: 14px;
  }

  .topic-block {
    padding: 18px;
  }

  .topic-index-grid,
  .section-topic-index .topic-index-grid,
  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .status-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px;
  }

  .rule-grid,
  .feedback-steps,
  .scope-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-item {
    grid-template-columns: 34px 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
  }

  .page-figure img {
    aspect-ratio: 16 / 9;
  }

  .faq-question {
    padding: 13px 40px 13px 14px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 12px 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 14px 20px;
  }

  .footer-bottom {
    padding: 14px 14px 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    padding: 14px 0 22px;
    margin-bottom: 28px;
  }

  .error-main {
    padding: 36px 14px 48px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-code {
    font-size: 40px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-hint {
    padding: 22px 18px;
  }

  .field-table th,
  .field-table td {
    padding: 10px 12px;
  }

  .field-table tbody th {
    white-space: normal;
  }
}
