/* ============================================================
   动漫天堂 tfqnm.cn — 全站样式表
   分组：base / layout / components / pages / responsive
   ============================================================ */

/* ------------------------------------------------------------
   base
   ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #f7f6f3;
  color: #1f2b3a;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2b3a;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: #2f6f8f;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #b5543f;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #2f6f8f;
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

details > summary {
  cursor: pointer;
}

/* ------------------------------------------------------------
   layout —— 全局骨架
   ------------------------------------------------------------ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.home-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #c8d6de;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-fact-bar {
  background-color: #eef2f5;
  border-bottom: 1px solid #c8d6de;
  color: #5a6b7d;
  font-size: 13px;
  line-height: 1.6;
  padding: 8px 24px;
  text-align: center;
}

.site-footer {
  background-color: #1f2b3a;
  color: #c8d6de;
  margin-top: 40px;
  padding: 40px 0 20px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 32px;
}

.footer-copyright {
  max-width: 1160px;
  margin: 28px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid rgba(200, 214, 222, 0.25);
  font-size: 13px;
  color: #8c9aa8;
}

/* 内页两栏：主内容在前，aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 40px;
  align-items: start;
}

.layout-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.page-content {
  min-width: 0;
}

.page-aside {
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid #c8d6de;
  border-radius: 8px;
  padding: 20px;
}

/* ------------------------------------------------------------
   components —— 页头与导航
   ------------------------------------------------------------ */

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-name {
  font-size: 21px;
  font-weight: 700;
  color: #1f2b3a;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 12px;
  color: #5a6b7d;
  line-height: 1.4;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: #1f2b3a;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #2f6f8f;
  background-color: #eef2f5;
  text-decoration: none;
}

.nav-link.is-current {
  color: #2f6f8f;
  font-weight: 700;
  border-bottom-color: #2f6f8f;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  background-color: #ffffff;
  border: 1px solid #c8d6de;
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #1f2b3a;
  border-radius: 1px;
}

/* 面包屑 */
.breadcrumb {
  font-size: 13px;
  color: #5a6b7d;
  padding: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: #2f6f8f;
}

.breadcrumb-sep {
  color: #a8b6c2;
}

.breadcrumb-current {
  color: #5a6b7d;
}

/* 页面标题区 */
.page-header {
  padding: 16px 0 24px;
  border-bottom: 1px solid #c8d6de;
  margin-bottom: 32px;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  color: #1f2b3a;
  line-height: 1.3;
}

.page-description {
  margin-top: 12px;
  font-size: 16px;
  color: #38495c;
  max-width: 860px;
}

.page-meta {
  margin-top: 10px;
  font-size: 13px;
  color: #5a6b7d;
}

/* 通用区块 */
.section {
  margin-bottom: 44px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2b3a;
  padding-bottom: 10px;
  border-bottom: 2px solid #2f6f8f;
  display: inline-block;
  margin-bottom: 16px;
}

.section-lead,
.section-desc,
.section-intro {
  font-size: 15px;
  color: #5a6b7d;
  max-width: 860px;
  margin-bottom: 22px;
}

.column-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2b3a;
  margin-bottom: 6px;
}

.column-lead {
  font-size: 13px;
  color: #5a6b7d;
  margin-bottom: 14px;
}

.text-link {
  color: #2f6f8f;
  font-weight: 600;
  border-bottom: 1px solid rgba(47, 111, 143, 0.4);
}

.text-link:hover,
.text-link:focus-visible {
  color: #b5543f;
  border-bottom-color: rgba(181, 84, 63, 0.5);
  text-decoration: none;
}

/* ------------------------------------------------------------
   pages —— 首页
   ------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
  padding: 44px 0 40px;
  border-bottom: 1px solid #c8d6de;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  color: #1f2b3a;
  line-height: 1.3;
}

.hero-summary {
  font-size: 16px;
  color: #38495c;
}

.hero-entries {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.entry-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid #c8d6de;
  border-left: 3px solid #2f6f8f;
  border-radius: 6px;
  color: #1f2b3a;
}

.entry-link:hover,
.entry-link:focus-visible {
  border-left-color: #b5543f;
  background-color: #fbfaf8;
  text-decoration: none;
}

.entry-name {
  font-size: 15px;
  font-weight: 700;
  color: #1f2b3a;
}

.entry-link:hover .entry-name,
.entry-link:focus-visible .entry-name {
  color: #2f6f8f;
}

.entry-desc {
  font-size: 13px;
  color: #5a6b7d;
  line-height: 1.6;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.hero-figure {
  border: 1px solid #c8d6de;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.hero-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.hero-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: #5a6b7d;
  background-color: #ffffff;
  border-top: 1px solid #e2e9ee;
}

.hero-cover-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cover-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cover-thumb {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #c8d6de;
  background-color: #eef2f5;
}

.cover-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cover-name {
  font-size: 14px;
  font-weight: 700;
  color: #1f2b3a;
  line-height: 1.4;
}

.cover-genre {
  font-size: 12px;
  color: #5a6b7d;
}

/* 题材方向总览 */
.genre-overview {
  padding: 40px 0;
  border-bottom: 1px solid #c8d6de;
}

.genre-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.genre-column {
  padding: 18px 0 0;
  border-top: 3px solid #2f6f8f;
  min-width: 0;
}

.genre-name {
  font-size: 17px;
  font-weight: 700;
  color: #1f2b3a;
  margin-bottom: 8px;
}

.genre-scope {
  font-size: 14px;
  color: #38495c;
  margin-bottom: 10px;
}

.genre-sample {
  font-size: 13px;
  color: #5a6b7d;
  line-height: 1.7;
}

.genre-more {
  margin-top: 22px;
  font-size: 14px;
}

/* 封面条目速览 + 最近更新记录 */
.index-update {
  padding: 40px 0;
  border-bottom: 1px solid #c8d6de;
}

.index-update-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.cover-index,
.update-index {
  min-width: 0;
}

.cover-index-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e2e9ee;
}

.index-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e9ee;
}

.index-row:hover {
  background-color: #fbfaf8;
}

.index-thumb {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #c8d6de;
  background-color: #eef2f5;
}

.index-name {
  font-size: 15px;
  font-weight: 700;
  color: #1f2b3a;
  min-width: 0;
}

.index-genre {
  font-size: 13px;
  color: #5a6b7d;
  white-space: nowrap;
}

.index-flag {
  font-size: 12px;
  color: #b5543f;
  background-color: #f7ece8;
  border: 1px solid #e6cfc8;
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}

.update-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e2e9ee;
}

.update-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e9ee;
}

.update-batch {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 12px;
  color: #b5543f;
  letter-spacing: 0;
}

.update-text {
  font-size: 14px;
  color: #38495c;
  line-height: 1.7;
}

.update-more {
  margin-top: 16px;
  font-size: 14px;
}

/* 人气位次 + 字段口径 */
.rank-field {
  padding: 40px 0;
  border-bottom: 1px solid #c8d6de;
}

.rank-field-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.rank-panel,
.field-panel {
  min-width: 0;
}

.rank-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e2e9ee;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e9ee;
}

.rank-no {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 14px;
  font-weight: 700;
  color: #2f6f8f;
  text-align: right;
}

.rank-name {
  font-size: 15px;
  color: #1f2b3a;
  min-width: 0;
}

.rank-genre {
  font-size: 13px;
  color: #5a6b7d;
  white-space: nowrap;
}

.rank-more,
.field-more {
  margin-top: 16px;
  font-size: 14px;
}

.field-table {
  font-size: 14px;
  border: 1px solid #c8d6de;
  border-radius: 6px;
  overflow: hidden;
}

.field-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: #5a6b7d;
  padding: 0 0 8px;
}

.field-table thead th {
  background-color: #eef2f5;
  color: #1f2b3a;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #c8d6de;
}

.field-table tbody th,
.field-table tbody td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e9ee;
  font-weight: 400;
  color: #38495c;
}

.field-table tbody th {
  font-weight: 700;
  color: #1f2b3a;
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 查阅路径三步 + 纠错反馈 */
.path-feedback {
  padding: 40px 0;
  border-bottom: 1px solid #c8d6de;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.path-step {
  min-width: 0;
  padding: 18px 0 0;
  border-top: 3px solid #2f6f8f;
}

.step-no {
  display: inline-block;
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
  color: #b5543f;
  margin-bottom: 8px;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2b3a;
  margin-bottom: 8px;
}

.step-text {
  font-size: 14px;
  color: #38495c;
}

.step-link {
  margin-top: 10px;
  font-size: 14px;
}

.feedback-note {
  background-color: #ffffff;
  border: 1px solid #c8d6de;
  border-left: 3px solid #b5543f;
  border-radius: 6px;
  padding: 20px 22px;
}

.feedback-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2b3a;
  margin-bottom: 8px;
}

.feedback-text {
  font-size: 14px;
  color: #38495c;
}

.feedback-link {
  margin-top: 10px;
  font-size: 14px;
}

/* 站内栏目索引 */
.site-index {
  padding: 40px 0 0;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.index-cell {
  min-width: 0;
  padding: 16px 0 0;
  border-top: 2px solid #c8d6de;
}

.cell-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cell-link {
  color: #2f6f8f;
}

.cell-link:hover,
.cell-link:focus-visible {
  color: #b5543f;
}

.cell-text {
  font-size: 13px;
  color: #5a6b7d;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   pages —— 题材分类（genres）
   ------------------------------------------------------------ */

.genres-overview .genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.genre-box {
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid #c8d6de;
  border-radius: 8px;
  padding: 18px;
}

.genre-box .genre-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.genre-box .genre-scope {
  font-size: 14px;
  color: #38495c;
  margin-bottom: 10px;
}

.genre-box .genre-rep {
  font-size: 13px;
  color: #5a6b7d;
  line-height: 1.7;
}

.genre-detail-item {
  min-width: 0;
  padding: 20px 0;
  border-bottom: 1px solid #e2e9ee;
}

.genre-detail-item:last-child {
  border-bottom: 0;
}

.genre-detail-name {
  font-size: 19px;
  font-weight: 700;
  color: #1f2b3a;
  margin-bottom: 8px;
}

.genre-detail-text {
  font-size: 15px;
  color: #38495c;
  max-width: 720px;
  margin-bottom: 12px;
}

.genre-field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-field-list li {
  font-size: 13px;
  color: #2f6f8f;
  background-color: #eef2f5;
  border: 1px solid #c8d6de;
  border-radius: 4px;
  padding: 4px 10px;
}

.showcase-hero {
  border: 1px solid #c8d6de;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  margin-bottom: 24px;
}

.showcase-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.showcase-hero figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #5a6b7d;
  border-top: 1px solid #e2e9ee;
}

.showcase-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background-color: #ffffff;
  border: 1px solid #c8d6de;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}

.showcase-cover {
  min-width: 0;
}

.showcase-cover img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #c8d6de;
  background-color: #eef2f5;
}

.showcase-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase-name {
  font-size: 15px;
  font-weight: 700;
  color: #1f2b3a;
}

.showcase-genre {
  font-size: 13px;
  color: #5a6b7d;
}

.relation-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.relation-col {
  min-width: 0;
  padding: 18px 0 0;
  border-top: 3px solid #2f6f8f;
}

.relation-col-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2b3a;
  margin-bottom: 8px;
}

.relation-col p {
  font-size: 14px;
  color: #38495c;
}

.relation-note {
  margin-top: 20px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* 内页侧栏 */
.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2b3a;
  padding-bottom: 8px;
  border-bottom: 2px solid #2f6f8f;
  margin-bottom: 12px;
}

.aside-list {
  display: flex;
  flex-direction: column;
}

.aside-list li {
  border-bottom: 1px solid #e2e9ee;
}

.aside-list a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: #2f6f8f;
}

.aside-list a:hover,
.aside-list a:focus-visible {
  color: #b5543f;
}

.aside-note {
  margin-top: 14px;
  font-size: 13px;
  color: #5a6b7d;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   pages —— 最近更新（updates）
   ------------------------------------------------------------ */

.batch-status {
  margin-bottom: 44px;
}

.batch-status-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background-color: #c8d6de;
  border: 1px solid #c8d6de;
  border-radius: 8px;
  overflow: hidden;
}

.batch-cell {
  background-color: #ffffff;
  padding: 14px 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.batch-label {
  font-size: 12px;
  color: #5a6b7d;
}

.batch-value {
  font-size: 15px;
  font-weight: 700;
  color: #1f2b3a;
  word-break: break-word;
}

.batch-id .batch-value {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  color: #b5543f;
}

.batch-status-note {
  margin-top: 12px;
  font-size: 13px;
  color: #5a6b7d;
}

.batch-group {
  margin-bottom: 28px;
}

.batch-group-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2b3a;
  padding: 8px 0;
  border-bottom: 2px solid #c8d6de;
  margin-bottom: 6px;
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

.update-records .update-list {
  border-top: 0;
}

.update-records .update-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
}

.update-thumb {
  flex: 0 0 auto;
  min-width: 0;
}

.update-thumb img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #c8d6de;
  background-color: #eef2f5;
}

.update-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.update-name {
  font-size: 15px;
  font-weight: 700;
  color: #2f6f8f;
}

.update-meta {
  font-size: 13px;
  color: #5a6b7d;
  line-height: 1.7;
}

.update-field,
.update-genre {
  display: inline-block;
  font-size: 12px;
  border-radius: 4px;
  padding: 2px 8px;
  margin-right: 6px;
}

.update-genre {
  color: #2f6f8f;
  background-color: #eef2f5;
  border: 1px solid #c8d6de;
}

.update-field {
  color: #b5543f;
  background-color: #f7ece8;
  border: 1px solid #e6cfc8;
}

.notes-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.notes-col {
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid #c8d6de;
  border-radius: 8px;
  padding: 20px;
}

.notes-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2b3a;
  margin-bottom: 10px;
}

.notes-text {
  font-size: 14px;
  color: #38495c;
  margin-bottom: 12px;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notes-item {
  font-size: 14px;
  color: #38495c;
  padding-left: 14px;
  position: relative;
  line-height: 1.7;
}

.notes-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #2f6f8f;
}

.notes-key {
  font-weight: 700;
  color: #1f2b3a;
  margin-right: 6px;
}

.howto-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.howto-step {
  min-width: 0;
  padding: 18px 0 0;
  border-top: 3px solid #2f6f8f;
}

.step-index {
  display: inline-block;
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
  color: #b5543f;
  margin-bottom: 8px;
}

.step-body {
  min-width: 0;
}

.howto-foot {
  margin-top: 22px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ------------------------------------------------------------
   pages —— 人气位次（ranking）
   ------------------------------------------------------------ */

.rank-list-section .rank-list {
  border-top: 1px solid #c8d6de;
}

.rank-item {
  display: grid;
  grid-template-columns: 40px 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #e2e9ee;
  min-width: 0;
}

.rank-item:hover {
  background-color: #fbfaf8;
}

.rank-index {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 16px;
  font-weight: 700;
  color: #2f6f8f;
  text-align: right;
  padding-top: 4px;
}

.rank-cover {
  min-width: 0;
}

.rank-cover img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #c8d6de;
  background-color: #eef2f5;
}

.rank-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-body .rank-name {
  font-size: 16px;
  font-weight: 700;
  color: #1f2b3a;
}

.rank-body .rank-genre {
  font-size: 13px;
  color: #5a6b7d;
}

.rank-dims {
  font-size: 13px;
  color: #5a6b7d;
  line-height: 1.7;
}

.method-table-wrap {
  overflow-x: auto;
}

.method-table {
  font-size: 14px;
  border: 1px solid #c8d6de;
  border-radius: 6px;
  overflow: hidden;
  min-width: 520px;
}

.method-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: #5a6b7d;
  padding: 0 0 8px;
}

.method-table thead th {
  background-color: #eef2f5;
  color: #1f2b3a;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #c8d6de;
}

.method-table tbody th,
.method-table tbody td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e9ee;
  color: #38495c;
  font-weight: 400;
}

.method-table tbody th {
  font-weight: 700;
  color: #1f2b3a;
  white-space: nowrap;
}

.method-table tbody tr:last-child th,
.method-table tbody tr:last-child td {
  border-bottom: 0;
}

.rank-boundary-text {
  font-size: 15px;
  color: #38495c;
  background-color: #ffffff;
  border: 1px solid #c8d6de;
  border-left: 3px solid #b5543f;
  border-radius: 6px;
  padding: 18px 20px;
  max-width: 860px;
}

.cross-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.cross-col {
  min-width: 0;
  padding: 18px 0 0;
  border-top: 3px solid #2f6f8f;
}

.cross-subtitle {
  font-size: 17px;
  font-weight: 700;
  color: #1f2b3a;
  margin-bottom: 8px;
}

.cross-col p {
  font-size: 14px;
  color: #38495c;
  margin-bottom: 10px;
}

.cross-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cross-list li {
  font-size: 14px;
  color: #38495c;
  padding-left: 14px;
  position: relative;
  line-height: 1.7;
}

.cross-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #c8d6de;
}

.cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-size: 14px;
}

/* ranking 页底部侧栏 */
.page-ranking .page-layout {
  display: block;
  margin-top: 40px;
}

.page-ranking .page-aside {
  max-width: 100%;
}

/* ------------------------------------------------------------
   pages —— 查阅指引（guide）
   ------------------------------------------------------------ */

.field-figure {
  border: 1px solid #c8d6de;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  margin-bottom: 24px;
}

.field-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #5a6b7d;
  border-top: 1px solid #e2e9ee;
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-item {
  min-width: 0;
}

.field-details {
  background-color: #ffffff;
  border: 1px solid #c8d6de;
  border-radius: 8px;
  overflow: hidden;
}

.field-summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2b3a;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.field-summary::-webkit-details-marker {
  display: none;
}

.field-summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: #2f6f8f;
  line-height: 1;
}

.field-details[open] .field-summary::after {
  content: "−";
}

.field-details[open] .field-summary {
  border-bottom: 1px solid #e2e9ee;
  color: #2f6f8f;
}

.field-body {
  padding: 14px 18px 18px;
}

.field-body p {
  font-size: 14px;
  color: #38495c;
  line-height: 1.8;
}

.field-note {
  margin-top: 8px;
  font-size: 13px;
  color: #5a6b7d;
}

.guide-path .path-steps {
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #c8d6de;
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}

.faq-question {
  padding: 14px 44px 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2b3a;
  list-style: none;
  position: relative;
}

.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: #2f6f8f;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid #e2e9ee;
  color: #2f6f8f;
}

.faq-answer {
  padding: 14px 18px 18px;
}

.faq-answer p {
  font-size: 14px;
  color: #38495c;
  line-height: 1.8;
}

.feedback-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 24px;
}

.feedback-col {
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid #c8d6de;
  border-radius: 8px;
  padding: 20px;
}

.feedback-subtitle {
  font-size: 17px;
  font-weight: 700;
  color: #1f2b3a;
  margin-bottom: 10px;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-list li {
  font-size: 14px;
  color: #38495c;
  padding-left: 14px;
  position: relative;
  line-height: 1.7;
}

.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #2f6f8f;
}

.feedback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 14px;
}

.feedback-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.copy-link {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: #2f6f8f;
  border: 1px solid #2f6f8f;
  border-radius: 6px;
  cursor: pointer;
}

.copy-link:hover,
.copy-link:focus-visible {
  background-color: #275c77;
  border-color: #275c77;
}

.copy-status {
  font-size: 13px;
  color: #5a6b7d;
  min-height: 20px;
}

/* ------------------------------------------------------------
   pages —— 404
   ------------------------------------------------------------ */

.error-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.error-panel {
  background-color: #ffffff;
  border: 1px solid #c8d6de;
  border-radius: 8px;
  padding: 40px 32px;
  max-width: 720px;
}

.error-code {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 40px;
  font-weight: 700;
  color: #b5543f;
  line-height: 1.1;
  margin-bottom: 8px;
}

.error-title {
  font-size: 26px;
  font-weight: 700;
  color: #1f2b3a;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  color: #38495c;
  margin-bottom: 24px;
}

.error-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #2f6f8f;
  background-color: #ffffff;
  border: 1px solid #c8d6de;
  border-radius: 6px;
  text-align: center;
}

.action-link:hover,
.action-link:focus-visible {
  color: #b5543f;
  border-color: #b5543f;
  text-decoration: none;
}

.action-primary {
  color: #ffffff;
  background-color: #2f6f8f;
  border-color: #2f6f8f;
}

.action-primary:hover,
.action-primary:focus-visible {
  color: #ffffff;
  background-color: #275c77;
  border-color: #275c77;
}

/* ------------------------------------------------------------
   components —— 页脚
   ------------------------------------------------------------ */

.footer-about {
  min-width: 0;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  color: #a8b6c2;
  line-height: 1.8;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(200, 214, 222, 0.25);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  font-size: 13px;
  color: #c8d6de;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #ffffff;
}

/* ------------------------------------------------------------
   responsive
   ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .genre-columns,
  .genres-overview .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .page-layout,
  .layout-shell {
    display: block;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-aside {
    margin-top: 32px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 32px;
  }

  .index-update-columns,
  .rank-field-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .path-steps,
  .howto-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .relation-columns,
  .notes-columns,
  .cross-columns,
  .feedback-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .showcase-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-status-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 60px;
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid #e2e9ee;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 48px;
    padding: 0 8px;
    border-bottom: 1px solid #eef2f5;
    border-left: 3px solid transparent;
    border-radius: 0;
  }

  .nav-link.is-current {
    border-bottom-color: #eef2f5;
    border-left-color: #2f6f8f;
  }

  .inner-main,
  .home-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title,
  .hero-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }

  .hero-figure img {
    height: 220px;
  }

  .showcase-hero img,
  .field-figure img {
    height: 200px;
  }

  .hero-cover-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .cover-thumb {
    height: 104px;
  }

  .genre-columns,
  .genres-overview .genre-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 0 16px;
  }

  .footer-copyright {
    padding-left: 16px;
    padding-right: 16px;
  }

  .error-main {
    padding: 40px 16px 64px;
  }

  .error-panel {
    padding: 28px 20px;
  }

  .error-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-fact-bar {
    font-size: 12px;
    padding: 6px 16px;
    text-align: left;
  }

  .page-header {
    padding: 12px 0 18px;
    margin-bottom: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .section {
    margin-bottom: 36px;
  }

  .hero-cover-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-row {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "thumb name"
      "thumb genre"
      "thumb flag";
    gap: 4px 12px;
    align-items: center;
  }

  .index-thumb {
    grid-area: thumb;
    width: 48px;
    height: 62px;
  }

  .index-name {
    grid-area: name;
  }

  .index-genre {
    grid-area: genre;
  }

  .index-flag {
    grid-area: flag;
    justify-self: start;
  }

  .rank-item {
    grid-template-columns: 32px 56px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover img {
    width: 56px;
    height: 76px;
  }

  .update-records .update-row {
    gap: 12px;
  }

  .update-thumb img {
    width: 52px;
    height: 70px;
  }

  .showcase-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .showcase-cover img {
    width: 64px;
    height: 86px;
  }

  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-table,
  .method-table {
    font-size: 13px;
  }

  .field-table thead th,
  .field-table tbody th,
  .field-table tbody td,
  .method-table thead th,
  .method-table tbody th,
  .method-table tbody td {
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
