/* ==========================================================================
   yy漫画 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 基础重置与设计变量
   -------------------------------------------------------------------------- */
:root {
  --ink: #1b2a4a;
  --ink-soft: #35456b;
  --accent: #e8763a;
  --accent-deep: #c95c26;
  --paper: #f7f5f2;
  --card: #ffffff;
  --muted: #6b7280;
  --line: #e2ddd6;
  --line-strong: #cfc7bc;
  --green: #2f855a;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-1: 0 1px 2px rgba(27, 42, 74, 0.06);
  --shadow-2: 0 6px 18px rgba(27, 42, 74, 0.12);
  --wrap: 1120px;
  --gap: 24px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

h4 {
  font-size: 15px;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-deep);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* --------------------------------------------------------------------------
   layout · 骨架：页头 / 导航 / 主容器 / 面包屑 / 页脚
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background-color: var(--ink);
  box-shadow: inset -7px -7px 0 0 var(--accent);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.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-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-deep);
  background-color: #fbf3ee;
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--card);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.home-main {
  display: block;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--muted);
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent-deep);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.page-header {
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-description {
  max-width: 760px;
  font-size: 15px;
  color: var(--muted);
}

.site-footer {
  background-color: var(--ink);
  color: #d7dce8;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  color: #a9b3c8;
  max-width: 320px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  color: #a9b3c8;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #8e9ab3;
}

.footer-copy {
  color: #8e9ab3;
}

/* --------------------------------------------------------------------------
   components · 通用元件：标题组 / 按钮 / 标签 / 表格 / 卡片 / 步骤
   -------------------------------------------------------------------------- */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 0;
}

.section-head {
  margin-bottom: 22px;
  max-width: 820px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc,
.section-lead {
  font-size: 14px;
  color: var(--muted);
  max-width: 820px;
}

.section-lead {
  margin-bottom: 22px;
}

.section-foot {
  margin-top: 20px;
  font-size: 14px;
}

.section-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent-deep);
  font-weight: 700;
}

.section-foot a:hover,
.section-foot a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.section-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.section-note a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent-deep);
}

.section-note a:hover,
.section-note a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-deep);
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.7;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background-color: #fbfaf8;
  white-space: nowrap;
}

.tag-genre {
  color: var(--ink-soft);
  border-color: #d8d2c8;
  background-color: #f4f1ec;
}

.tag-status,
.tag-state {
  color: var(--green);
  border-color: #bfdcc9;
  background-color: #eef7f1;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table,
.field-table,
.spec-table {
  width: 100%;
  font-size: 14px;
  background-color: var(--card);
}

.data-table caption,
.field-table caption,
.spec-caption,
.table-caption,
.field-table-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 10px;
  font-size: 13px;
  color: var(--muted);
}

.data-table th,
.data-table td,
.field-table th,
.field-table td,
.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table thead th,
.field-table thead th,
.spec-table thead th {
  background-color: #f2efe9;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.data-table tbody th,
.field-table tbody th,
.spec-table tbody th {
  font-weight: 700;
  color: var(--ink);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.cell-name {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* 封面条目卡：首页 / 位次页共用网格 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.cover-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-card:hover,
.cover-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.cover-link {
  display: block;
  color: inherit;
}

.cover-link:hover,
.cover-link:focus-visible {
  color: inherit;
}

.cover-media,
.cover-figure {
  aspect-ratio: 3 / 4;
  background-color: #ece8e1;
  overflow: hidden;
}

.cover-media img,
.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-body {
  padding: 12px 14px 14px;
}

.cover-name,
.cover-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cover-title {
  padding: 12px 14px 0;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}

.cover-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* 内页代表条目卡（题材分类页） */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.entry-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-card:hover,
.entry-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.entry-cover {
  aspect-ratio: 3 / 4;
  background-color: #ece8e1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
}

.entry-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}

.group-title {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 14px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

/* 步骤条：首页与查阅指引共用容器，内部按父级限定作用域 */
.step-list {
  display: grid;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-1);
}

.step-no,
.step-index {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.step-body {
  min-width: 0;
  flex: 1 1 auto;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.step-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--accent-deep);
  font-weight: 700;
}

.step-link:hover,
.step-link:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.step-figure {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #ece8e1;
}

.step-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.step-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  background-color: var(--card);
}

/* 字段口径说明表共用容器 */
.field-table,
.spec-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* FAQ 折叠 */
.faq-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding-right: 42px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--accent-deep);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.top-fact-bar {
  background-color: var(--ink);
  color: #d7dce8;
}

.top-fact-bar p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  line-height: 1.7;
}

.hero-section {
  background-color: #f0ece5;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-deep);
  background-color: #fbe7dc;
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-summary {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-points {
  display: grid;
  gap: 8px;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--accent);
}

.hero-media {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.genre-table tbody th {
  width: 22%;
}

.cover-wall .cover-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 首页更新批次折叠列表 */
.batch-list {
  display: grid;
  gap: 12px;
}

.batch-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.batch-details {
  width: 100%;
}

.batch-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  min-height: 52px;
  font-size: 14px;
}

.batch-summary:hover,
.batch-summary:focus-visible {
  background-color: #fbfaf8;
}

.batch-no {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.batch-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.batch-entries {
  padding: 4px 18px 16px;
  border-top: 1px solid var(--line);
}

.batch-entries li {
  position: relative;
  padding: 8px 0 8px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

.batch-entries li:last-child {
  border-bottom: 0;
}

.batch-entries li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* 首页人气位次参考：两列 */
.rank-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.rank-column {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-1);
}

.column-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rank-column .rank-list {
  display: grid;
  gap: 2px;
}

.rank-column .rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-column .rank-item:last-child {
  border-bottom: 0;
}

.rank-column .rank-no {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
}

.rank-column .rank-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-column .rank-genre {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.column-foot {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* 首页查阅路径三步 */
.guide-steps .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-steps .step-item {
  flex-direction: column;
  gap: 12px;
}

/* 首页站内栏目索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-item {
  min-width: 0;
}

.index-link {
  display: block;
  height: 100%;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.index-link:hover,
.index-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--accent);
  color: inherit;
}

.index-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.index-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 内页：题材分类
   -------------------------------------------------------------------------- */
.genre-compare {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 0 8px;
}

.genre-compare .data-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.genre-picks {
  margin-top: 36px;
}

.genre-picks .entry-grid {
  margin-bottom: 8px;
}

.genre-fields {
  margin-top: 36px;
}

.genre-fields .field-table {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   pages · 内页：更新记录
   -------------------------------------------------------------------------- */
.updates-batches .batch-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.batch-head {
  margin: 0;
}

.batch-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
}

.batch-toggle:hover,
.batch-toggle:focus-visible {
  background-color: #fbfaf8;
}

.batch-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.batch-name {
  font-size: 14px;
  color: var(--ink-soft);
}

.batch-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.batch-panel {
  border-top: 1px solid var(--line);
  padding: 6px 18px 14px;
}

.batch-panel[hidden] {
  display: none;
}

.batch-entry-list {
  display: grid;
}

.batch-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 96px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.batch-entry:last-child {
  border-bottom: 0;
}

.entry-title {
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-genre {
  font-size: 13px;
  color: var(--muted);
}

.entry-state {
  justify-self: start;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #bfdcc9;
  background-color: #eef7f1;
  color: var(--green);
  white-space: nowrap;
}

.state-updated,
.state-published,
.state-ongoing,
.state-finished {
  color: var(--green);
}

.updates-fields {
  margin-top: 36px;
}

.updates-gallery {
  margin-top: 36px;
}

.updates-gallery .cover-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.updates-gallery .cover-card {
  padding-bottom: 14px;
}

.updates-gallery .cover-meta {
  padding: 0 14px;
}

.updates-gallery .cover-genre {
  font-size: 12px;
  color: var(--muted);
}

.updates-gallery .cover-state {
  font-size: 12px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   pages · 内页：人气位次
   -------------------------------------------------------------------------- */
.ranking-section .rank-list {
  display: grid;
  gap: 10px;
}

.ranking-section .rank-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-1);
}

.ranking-section .rank-no {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.4;
}

.rank-body {
  min-width: 0;
}

.rank-body .rank-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.rank-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

.rank-method-section {
  margin-top: 36px;
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.method-col {
  min-width: 0;
}

.subsection-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.method-col-fields .spec-table {
  margin-top: 0;
}

.rule-list {
  display: grid;
  gap: 12px;
}

.rule-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.rule-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.rule-text {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

.rank-cover-section {
  margin-top: 36px;
}

.rank-cover-section .cover-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rank-cover-section .cover-name {
  padding: 12px 14px 0;
  margin-bottom: 6px;
}

.rank-cover-section .cover-meta {
  padding: 0 14px 14px;
}

/* --------------------------------------------------------------------------
   pages · 内页：查阅指引
   -------------------------------------------------------------------------- */
.guide-steps .step-item .step-body p a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: underline;
}

.guide-steps .step-item .step-body p a:hover,
.guide-steps .step-item .step-body p a:focus-visible {
  color: var(--ink);
}

.field-guide {
  margin-top: 36px;
}

.feedback-guide {
  margin-top: 36px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.feedback-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-1);
}

.feedback-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feedback-card p {
  font-size: 14px;
  color: var(--ink-soft);
}

.feedback-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.guide-faq {
  margin-top: 36px;
}

.guide-links {
  margin-top: 36px;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  min-width: 0;
}

.link-card a {
  display: block;
  height: 100%;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-card a:hover,
.link-card a:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--accent);
  color: inherit;
}

.link-card-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.link-card-desc {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 24px 72px;
  width: 100%;
}

.error-panel {
  max-width: 640px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 10px;
}

.error-text {
  font-size: 15px;
  color: var(--muted);
  margin: 12px 0 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.error-links {
  display: grid;
  gap: 10px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-soft);
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* --------------------------------------------------------------------------
   responsive · 平板与手机
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cover-grid,
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .updates-gallery .cover-grid,
  .rank-cover-section .cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .link-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .hero-inner {
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 18px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 0 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    border-bottom: 0;
    border-left: 3px solid transparent;
    padding: 0 12px;
  }

  .nav-link.is-current {
    border-left-color: var(--accent);
    border-bottom-color: transparent;
    background-color: #fbf3ee;
  }

  .top-fact-bar p {
    padding: 8px 18px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 18px 36px;
    gap: 24px;
  }

  .hero-title,
  .page-title,
  h1 {
    font-size: 26px;
  }

  .section {
    padding: 34px 18px 0;
  }

  .inner-main {
    padding: 18px 18px 44px;
  }

  .page-header {
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .cover-grid,
  .card-grid,
  .updates-gallery .cover-grid,
  .rank-cover-section .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .genre-compare,
  .genre-picks,
  .genre-fields,
  .updates-fields,
  .updates-gallery,
  .rank-method-section,
  .rank-cover-section,
  .field-guide,
  .feedback-guide,
  .guide-faq,
  .guide-links {
    margin-top: 28px;
  }

  .rank-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .guide-steps .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .method-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .link-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-entry {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 6px;
  }

  .batch-entry .entry-title {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .batch-count {
    margin-left: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 18px 20px;
  }

  .footer-bottom {
    padding: 14px 18px 24px;
    flex-direction: column;
  }

  .error-main {
    padding: 44px 18px 56px;
  }

  .error-code {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .hero-title,
  .page-title,
  h1 {
    font-size: 23px;
  }

  h2,
  .section-title {
    font-size: 19px;
  }

  .cover-grid,
  .card-grid,
  .updates-gallery .cover-grid,
  .rank-cover-section .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-item {
    padding: 16px;
    gap: 12px;
  }

  .data-table th,
  .data-table td,
  .field-table th,
  .field-table td,
  .spec-table th,
  .spec-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .ranking-section .rank-item {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 12px 14px;
    gap: 10px;
  }

  .ranking-section .rank-no {
    font-size: 16px;
  }
}
