/* ==========================================================================
   新新漫画 tangxiny.cn — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base — 变量、重置、排版、通用工具
   -------------------------------------------------------------------------- */

:root {
  --paper: #f7f5f1;
  --ink: #23211e;
  --ink-soft: #6b665f;
  --line: #ddd8d0;
  --seal: #b4472e;
  --moss: #3d5a4c;
  --card: #fffdfa;
  --radius: 6px;
  --radius-sm: 4px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Consolas", "Courier New", monospace;
  --shadow-soft: 0 1px 2px rgba(35, 33, 30, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--seal);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
}

time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.visually-plain {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.mono,
.cell-code,
.batch-code,
.ranking-order,
.step-index,
.changelog-date,
.part-seg,
.genre-code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   layout — 全站骨架：body、header、nav、main、footer 容器
   -------------------------------------------------------------------------- */

.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;
}

/* 顶部事实条 */
.fact-bar {
  background-color: var(--moss);
  color: #f2efe9;
}

.fact-bar p {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  color: var(--ink);
}

.brand-mark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  color: var(--seal);
}

/* 主导航 */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--line);
}

.nav-list a.is-current {
  color: var(--seal);
  font-weight: 600;
  border-bottom-color: var(--seal);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--card);
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
}

/* 主内容 */
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  display: block;
}

.inner-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* 页脚 */
.site-footer {
  flex-shrink: 0;
  background-color: #f1eee8;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 32px 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.footer-desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.footer-group ul {
  margin-top: 12px;
}

.footer-group li + li {
  margin-top: 8px;
}

.footer-group a {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--seal);
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   components — 面包屑、页面标题区、区块标题、卡片、列表、表格、步骤
   -------------------------------------------------------------------------- */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--seal);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 */
.page-header {
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--line);
}

.page-description {
  font-size: 13px;
  color: var(--seal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-title {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.page-lead {
  margin-top: 14px;
  max-width: 780px;
  font-size: 15px;
  color: var(--ink-soft);
}

.page-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 区块标题 */
.section-head {
  margin-bottom: 22px;
}

.section-head h2,
.section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding-left: 12px;
  border-left: 3px solid var(--seal);
}

.section-note,
.section-desc,
.section-intro {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.section-title + .section-intro {
  margin-top: 8px;
}

.sub-title {
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* 通用 section 间距（内页） */
.inner-main > section {
  padding-top: 40px;
}

.inner-main > .page-header {
  padding-top: 18px;
}

/* 相关条目索引 */
.related-index {
  padding-top: 44px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.related-item a {
  display: block;
  padding: 16px 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 44px;
}

.related-item a:hover,
.related-item a:focus-visible {
  background-color: #fbf9f5;
  border-color: var(--seal);
}

.related-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.related-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* 侧栏更多入口 */
.aside-more {
  margin-top: 16px;
  font-size: 13px;
}

.aside-more a {
  color: var(--seal);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.aside-more a:hover,
.aside-more a:focus-visible {
  border-bottom-color: var(--seal);
}

/* 状态标签 */
.status-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}

.status-tag.status-active {
  color: var(--moss);
  border-color: #b9c8bf;
  background-color: #eef3ef;
}

.status-tag.status-steady {
  color: var(--ink-soft);
  background-color: #f4f1ec;
}

/* 标签（更新页） */
.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}

.tag-genre {
  color: var(--moss);
  border-color: #b9c8bf;
}

/* 表格通用 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.status-table,
.entry-table {
  min-width: 640px;
  font-size: 14px;
}

.status-table th,
.status-table td,
.entry-table th,
.entry-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.status-table thead th,
.entry-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  background-color: #f2efe9;
  border-bottom: 1px solid var(--line);
}

.status-table tbody th,
.entry-table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.status-table tbody tr:hover,
.entry-table tbody tr:hover {
  background-color: #fbf9f5;
}

/* 步骤条（共用基础） */
.step-list {
  display: grid;
  gap: 16px;
}

.step-item {
  padding: 20px 22px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  display: inline-block;
  font-size: 13px;
  color: var(--seal);
  letter-spacing: 0.08em;
}

.step-title {
  margin-top: 8px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

/* 首屏 */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: start;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--seal);
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.hero-title {
  margin-top: 14px;
  font-size: 34px;
  line-height: 1.28;
}

.hero-summary {
  margin-top: 18px;
  max-width: 560px;
  font-size: 15px;
  color: var(--ink-soft);
}

.hero-paths {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-paths a {
  display: inline-block;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 14px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hero-paths a:hover,
.hero-paths a:focus-visible {
  border-color: var(--seal);
  color: var(--seal);
  background-color: #fbf9f5;
}

.hero-figure {
  min-width: 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #ece8e1;
}

.hero-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* 首页各区块容器 */
.genre-overview,
.batch-status,
.entries-and-updates,
.ranking-and-fields,
.guide-steps,
.site-index {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 0;
}

.site-index {
  padding-bottom: 64px;
}

/* 题材方向总览 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-card {
  padding: 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.genre-card:hover {
  border-color: #cfc8bd;
}

.genre-name {
  font-size: 16px;
}

.genre-scope {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.genre-samples {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.genre-samples li + li {
  margin-top: 6px;
}

.genre-samples a {
  font-size: 13px;
  color: var(--ink);
}

.genre-samples a:hover,
.genre-samples a:focus-visible {
  color: var(--seal);
}

/* 更新批次状态条 */
.batch-status {
  padding-top: 40px;
}

.batch-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr) auto auto;
  align-items: center;
  gap: 8px 20px;
  padding: 16px 20px;
  background-color: #f1eee8;
  border: 1px solid var(--line);
  border-left: 3px solid var(--moss);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.batch-bar-label {
  font-size: 13px;
  color: var(--ink-soft);
}

.batch-bar-number {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--moss);
}

.batch-bar-scope {
  color: var(--ink-soft);
  min-width: 0;
}

.batch-bar-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.batch-bar-link {
  font-size: 13px;
  color: var(--seal);
  white-space: nowrap;
}

.batch-bar-link:hover,
.batch-bar-link:focus-visible {
  border-bottom: 1px solid var(--seal);
}

/* 左右并列区 */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.split-main {
  min-width: 0;
}

.split-aside {
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.split-main .sub-title + *,
.split-aside .sub-title + * {
  margin-top: 16px;
}

/* 封面条目网格 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.entry-card {
  min-width: 0;
}

.entry-card a {
  display: block;
  min-height: 44px;
  padding: 12px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-card a:hover,
.entry-card a:focus-visible {
  border-color: var(--seal);
  background-color: #fbf9f5;
}

.entry-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #ece8e1;
}

.entry-name {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.entry-meta {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* 最近更新记录列表 */
.update-group + .update-group {
  margin-top: 20px;
}

.update-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--seal);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.update-list {
  margin-top: 10px;
}

.update-row {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.update-row:last-child {
  border-bottom: 0;
}

.update-batch {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--moss);
}

.update-name {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.update-name a {
  color: var(--ink);
}

.update-name a:hover,
.update-name a:focus-visible {
  color: var(--seal);
}

.update-genre {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* 人气位次参考（首页） */
.ranking-and-fields .ranking-list {
  margin-top: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-order {
  font-size: 13px;
  color: var(--seal);
}

.ranking-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.ranking-genre {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* 字段口径摘要 */
.field-brief {
  margin-top: 16px;
}

.field-brief dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field-brief dd {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.field-brief dd + dt {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

/* 查阅路径三步指引（首页） */
.guide-steps .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-steps .step-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.guide-steps .step-entry {
  margin-top: 14px;
  font-size: 13px;
}

.guide-steps .step-entry a {
  color: var(--seal);
}

.guide-steps .step-entry a:hover,
.guide-steps .step-entry a:focus-visible {
  border-bottom: 1px solid var(--seal);
}

.guide-feedback {
  margin-top: 20px;
  padding: 14px 18px;
  background-color: #f1eee8;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-soft);
}

.guide-feedback a {
  color: var(--seal);
}

.guide-feedback a:hover,
.guide-feedback a:focus-visible {
  border-bottom: 1px solid var(--seal);
}

/* 站内栏目索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.index-item {
  min-width: 0;
}

.index-item a {
  display: block;
  min-height: 44px;
  padding: 14px 12px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
}

.index-item a:hover,
.index-item a:focus-visible {
  border-color: var(--seal);
  background-color: #fbf9f5;
}

.index-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.index-desc {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   pages — 题材分类
   -------------------------------------------------------------------------- */

.genre-columns .genre-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.genre-column {
  min-width: 0;
  padding: 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-column-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.genre-code {
  font-size: 12px;
  color: var(--seal);
  letter-spacing: 0.08em;
}

.genre-column-head .genre-name {
  margin-top: 6px;
}

.genre-column .genre-scope {
  margin-top: 12px;
}

.genre-cover {
  margin-top: 14px;
}

.genre-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #ece8e1;
}

.genre-cover figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.genre-entry-list {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.genre-entry-list li + li {
  margin-top: 8px;
}

.genre-entry-list a {
  font-size: 13px;
  color: var(--ink);
}

.genre-entry-list a:hover,
.genre-entry-list a:focus-visible {
  color: var(--seal);
}

/* 方向更新状态表 */
.genre-update-status .status-table {
  margin-top: 4px;
}

/* 方向间差异对照 */
.diff-list {
  display: grid;
  gap: 14px;
}

.diff-row {
  padding: 18px 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--moss);
  border-radius: var(--radius-sm);
}

.diff-name {
  font-size: 15px;
}

.diff-detail {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 16px;
}

.diff-detail dt {
  font-size: 13px;
  color: var(--ink-soft);
}

.diff-detail dd {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages — 最近更新
   -------------------------------------------------------------------------- */

.batch-list-section .batch-group + .batch-group {
  margin-top: 28px;
}

.batch-date {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--seal);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.batch-list {
  margin-top: 4px;
}

.batch-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 96px;
  gap: 20px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.batch-row:last-child {
  border-bottom: 0;
}

.batch-code {
  font-size: 13px;
  color: var(--moss);
  letter-spacing: 0.02em;
}

.batch-main {
  min-width: 0;
}

.batch-title {
  font-size: 15px;
  font-weight: 600;
}

.batch-note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.batch-thumb {
  min-width: 0;
}

.batch-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #ece8e1;
}

/* 批次编号构成说明 */
.number-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.number-part {
  min-width: 0;
  padding: 18px 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.part-seg {
  display: inline-block;
  padding: 2px 10px;
  font-size: 13px;
  color: var(--moss);
  background-color: #eef3ef;
  border: 1px solid #b9c8bf;
  border-radius: 3px;
}

.part-title {
  margin-top: 12px;
  font-size: 15px;
}

.part-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 批次内条目明细 */
.entry-table .cell-code {
  font-size: 13px;
  color: var(--moss);
  white-space: nowrap;
}

.section-foot {
  margin-top: 18px;
  font-size: 13px;
}

.section-foot a {
  color: var(--seal);
}

.section-foot a:hover,
.section-foot a:focus-visible {
  border-bottom: 1px solid var(--seal);
}

/* --------------------------------------------------------------------------
   pages — 人气位次
   -------------------------------------------------------------------------- */

.ranking-method,
.ranking-list-block,
.ranking-scope {
  padding-top: 40px;
}

.ranking-method h2,
.ranking-list-block h2,
.ranking-scope h2,
.related-index h2 {
  font-size: 18px;
  font-weight: 700;
  padding-left: 12px;
  border-left: 3px solid var(--seal);
}

.ranking-method > p,
.ranking-scope > p {
  margin-top: 14px;
  max-width: 820px;
  color: var(--ink-soft);
}

.method-facts {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.method-facts dt {
  font-size: 13px;
  color: var(--ink-soft);
}

.method-facts dd {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.ranking-list-block .section-note {
  margin-top: 10px;
}

.ranking-list-block .ranking-list {
  margin-top: 20px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-item:last-child {
  border-bottom: 0;
}

.ranking-thumb {
  min-width: 0;
}

.ranking-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #ece8e1;
}

.ranking-body {
  min-width: 0;
}

.ranking-body .ranking-name {
  font-size: 16px;
}

.ranking-body .ranking-name a {
  color: var(--ink);
}

.ranking-body .ranking-name a:hover,
.ranking-body .ranking-name a:focus-visible {
  color: var(--seal);
}

.ranking-body .ranking-genre {
  margin-top: 6px;
  font-size: 13px;
  color: var(--moss);
}

.ranking-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.scope-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background-color: var(--seal);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   pages — 条目字段说明
   -------------------------------------------------------------------------- */

.field-figure,
.field-definitions,
.field-relations,
.field-changelog {
  padding-top: 40px;
}

.field-figure-media {
  margin-top: 18px;
  padding: 14px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-figure-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #ece8e1;
}

.field-figure-media figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.field-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.field-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.field-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--seal);
}

.field-body {
  min-width: 0;
}

.field-meaning {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
}

.field-values {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.relation-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.relation-item {
  min-width: 0;
  padding: 18px 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.relation-title {
  font-size: 15px;
}

.relation-text {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.changelog-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.changelog-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.changelog-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages — 查阅指引
   -------------------------------------------------------------------------- */

.guide-figure {
  margin-bottom: 24px;
  padding: 14px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #ece8e1;
}

.guide-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.guide-steps .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-steps .step-title a {
  color: var(--ink);
}

.guide-steps .step-title a:hover,
.guide-steps .step-title a:focus-visible {
  color: var(--seal);
}

.guide-steps .step-prepare {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 问题类型路径（可展开） */
.issue-list {
  display: grid;
  gap: 12px;
}

.issue-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.issue-item[open] {
  border-color: #cfc8bd;
}

.issue-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}

.issue-summary::-webkit-details-marker {
  display: none;
}

.issue-summary:hover {
  background-color: #fbf9f5;
}

.issue-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.issue-tag {
  flex-shrink: 0;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--moss);
  background-color: #eef3ef;
  border: 1px solid #b9c8bf;
  border-radius: 3px;
  white-space: nowrap;
}

.issue-body {
  padding: 4px 20px 18px;
  border-top: 1px solid var(--line);
}

.issue-fields {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 18px;
  padding-top: 14px;
}

.issue-fields dt {
  font-size: 13px;
  color: var(--ink-soft);
}

.issue-fields dd {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
}

/* 条目纠错反馈说明 */
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feedback-card {
  min-width: 0;
  padding: 18px 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-title {
  font-size: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.feedback-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.feedback-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background-color: var(--moss);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 96px;
}

.error-panel {
  max-width: 720px;
  width: 100%;
  padding: 36px 36px 32px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--seal);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--seal);
  line-height: 1;
}

.error-panel h1 {
  margin-top: 16px;
  font-size: 24px;
}

.error-text {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 560px;
}

.error-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.error-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  text-align: center;
  background-color: #f7f5f1;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.error-actions a:hover,
.error-actions a:focus-visible {
  border-color: var(--seal);
  color: var(--seal);
  background-color: #fbf9f5;
}

.error-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   responsive — 900px / 600px 两档断点
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .header-inner {
    min-height: 60px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 34px;
  }

  .hero-title {
    font-size: 28px;
  }

  .genre-grid,
  .genre-columns .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 6px;
  }

  .batch-bar-link {
    grid-column: 1 / -1;
  }

  .split-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .split-aside {
    padding-left: 0;
    padding-top: 26px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-steps .step-list,
  .number-parts,
  .relation-list,
  .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .batch-row {
    grid-template-columns: 104px minmax(0, 1fr) 84px;
    gap: 16px;
  }

  .error-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .fact-bar p {
    padding: 8px 16px;
    font-size: 12px;
    line-height: 1.6;
  }

  .header-inner {
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 0;
  }

  .brand-sub {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 4px;
    min-height: 44px;
    font-size: 15px;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    border-bottom: 0;
    border-left-color: var(--line);
  }

  .nav-list a.is-current {
    border-bottom: 0;
    border-left-color: var(--seal);
    padding-left: 10px;
  }

  .inner-main {
    padding: 0 16px 48px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 12px;
  }

  .page-header {
    padding: 14px 0 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-lead {
    font-size: 14px;
  }

  .hero {
    padding: 28px 16px 32px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-summary {
    font-size: 14px;
  }

  .hero-paths a {
    flex: 1 1 100%;
    text-align: center;
  }

  .genre-overview,
  .batch-status,
  .entries-and-updates,
  .ranking-and-fields,
  .guide-steps,
  .site-index {
    padding-left: 16px;
    padding-right: 16px;
  }

  .genre-overview,
  .batch-status,
  .entries-and-updates,
  .ranking-and-fields,
  .guide-steps {
    padding-top: 36px;
  }

  .genre-grid,
  .genre-columns .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-bar {
    grid-template-columns: minmax(0, 1fr);
    font-size: 13px;
  }

  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .entry-card a {
    padding: 10px;
  }

  .guide-steps .step-list,
  .number-parts,
  .relation-list,
  .feedback-grid,
  .method-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-item a {
    text-align: left;
  }

  .ranking-row {
    grid-template-columns: 32px minmax(0, 1fr);
    row-gap: 4px;
  }

  .ranking-row .ranking-genre {
    grid-column: 2;
    white-space: normal;
  }

  .ranking-item {
    grid-template-columns: 36px 64px minmax(0, 1fr);
    gap: 12px;
  }

  .batch-row {
    grid-template-columns: 92px minmax(0, 1fr) 68px;
    gap: 12px;
  }

  .batch-title {
    font-size: 14px;
  }

  .field-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .changelog-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .diff-detail,
  .issue-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .diff-detail dd,
  .issue-fields dd {
    margin-bottom: 8px;
  }

  .error-main {
    padding: 48px 16px 72px;
  }

  .error-panel {
    padding: 26px 20px 24px;
  }

  .error-code {
    font-size: 32px;
  }

  .error-panel h1 {
    font-size: 20px;
  }

  .error-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    padding: 32px 16px 22px;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-bottom {
    padding: 14px 16px 24px;
  }
}

/* 动效：仅作为增强，元素默认可见 */
@media (prefers-reduced-motion: no-preference) {
  .entry-card a,
  .related-item a,
  .index-item a,
  .genre-card,
  .step-item,
  .feedback-card,
  .relation-item,
  .number-part {
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  }
}
