/* ==========================================================================
   omofun动漫 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、字体、基础元素
   -------------------------------------------------------------------------- */
:root {
  --ink: #1b1b1f;
  --ink-soft: #3a3a40;
  --muted: #6b6b70;
  --line: #1b1b1f;
  --line-soft: #d8d8d2;
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --accent: #e8543f;
  --accent-ink: #ffffff;
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1120px;
  --wrap-wide: 1200px;
  --gap: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

time {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   2. layout —— 全站骨架：页头、导航、主容器、面包屑、页脚
   -------------------------------------------------------------------------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

/* 顶部事实条（仅首页） */
.fact-bar {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: #f2f2ee;
}

.fact-bar p {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
}

.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--accent);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--line);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

/* 主内容区 */
.site-main {
  display: block;
  width: 100%;
  flex: 1 1 auto;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-soft);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

/* 页面标题区 */
.page-header {
  padding: 12px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}

.page-description {
  margin-top: 12px;
  max-width: 760px;
  font-size: 16px;
  color: var(--ink-soft);
}

.page-description a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 通用内页栏目标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
}

.section-desc,
.section-intro {
  margin-top: 8px;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* 页脚 */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 28px;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
}

.footer-brand-desc {
  margin-top: 8px;
  max-width: 320px;
  font-size: 14px;
  color: var(--muted);
}

.footer-group-title {
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  display: inline-block;
  min-height: 24px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
}

.footer-copyright {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 16px 24px 24px;
  font-size: 13px;
  color: var(--muted);
}

/* 内页通用两栏布局：主内容在前，侧栏在后 */
.page-layout {
  display: grid;
  gap: 36px;
}

.layout-with-sidebar,
.fields-layout,
.layout-shell {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.layout-main {
  min-width: 0;
}

.layout-sidebar,
.layout-side {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   3. components —— 通用组件：标签、按钮、卡片、列表、侧栏、步骤、表格
   -------------------------------------------------------------------------- */

/* 标签 */
.tag,
.tag-chip,
.batch-tag,
.status,
.status-tag {
  display: inline-block;
  padding: 2px 7px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  white-space: nowrap;
}

.tag-chip {
  font-size: 12px;
  padding: 1px 6px;
}

/* 状态标签配色 */
.status-ongoing {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.status-finished {
  background: var(--ink);
  color: #f2f2ee;
}

.status-paused {
  background: var(--bg-alt);
  color: var(--muted);
  border-color: var(--line-soft);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #f2f2ee;
}

.btn-outline:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

/* 通用卡片 */
.cover-card,
.direction-card,
.pick-card,
.legend-card,
.caliber-item,
.step-card,
.rule-item,
.direction-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

/* 图片容器统一约束 */
.hero-media,
.cover-media,
.pick-cover,
.updates-figure,
.section-media,
.section-figure,
.guide-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.hero-media img,
.cover-media img,
.pick-cover img,
.updates-figure img,
.section-media img,
.section-figure img,
.guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption,
.media-caption,
.figure-caption,
.updates-figure figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}

/* 侧栏块 */
.sidebar-block,
.side-block,
.aside-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.sidebar-block + .sidebar-block,
.side-block + .side-block,
.aside-block + .aside-block {
  margin-top: 18px;
}

.sidebar-title,
.side-title,
.aside-title {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sidebar-list,
.sidebar-link-list,
.side-links,
.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-list a,
.sidebar-link-list a,
.side-links a,
.aside-link-list a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
}

.sidebar-list li:last-child a,
.sidebar-link-list li:last-child a,
.side-links li:last-child a,
.aside-link-list li:last-child a {
  border-bottom: 0;
}

.sidebar-list a:hover,
.sidebar-link-list a:hover,
.side-links a:hover,
.aside-link-list a:hover {
  color: var(--accent);
}

.side-block p,
.aside-text {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* 侧栏事实列表 */
.sidebar-fact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.sidebar-fact-list dt {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

.sidebar-fact-list dd {
  margin: 2px 0 0;
  color: var(--muted);
}

/* 通用链接列表 */
.link-list,
.backlink-list,
.related-links,
.entry-link-list,
.index-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-list a,
.backlink-list a,
.related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.link-list a:hover,
.backlink-list a:hover,
.related-links a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

/* 表格 */
.field-table {
  margin-top: 18px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table-caption {
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.field-table thead th {
  font-size: 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  width: 180px;
  font-weight: 700;
}

/* 说明块 details */
.feedback-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.feedback-item + .feedback-item {
  margin-top: 10px;
}

.feedback-summary {
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.feedback-summary::-webkit-details-marker {
  display: none;
}

.feedback-summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  font-family: var(--font-mono);
  color: var(--accent);
}

.feedback-item[open] .feedback-summary::before {
  content: "−";
}

.feedback-text {
  padding: 0 16px 14px 34px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 滚动淡入增强（不影响初始可见性） */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal {
    animation: reveal-in 0.45s ease both;
  }

  @keyframes reveal-in {
    from {
      transform: translateY(10px);
    }
    to {
      transform: translateY(0);
    }
  }
}

/* --------------------------------------------------------------------------
   4. pages —— 首页与各内页模块
   -------------------------------------------------------------------------- */

/* ---------- 4.1 首页 ---------- */
.home-main {
  display: block;
}

.section {
  padding: 48px 0;
}

.section-head {
  max-width: var(--wrap-wide);
  margin: 0 auto 26px;
  padding: 0 24px;
}

.section-head .section-desc {
  margin-top: 8px;
}

.section-foot {
  max-width: var(--wrap-wide);
  margin: 22px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.section-foot a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

/* 首屏 */
.hero {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 52px 24px 56px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.hero-title {
  margin-top: 16px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-lead {
  margin-top: 16px;
  max-width: 560px;
  font-size: 16px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.hero-fact dt {
  font-size: 13px;
  color: var(--muted);
}

.hero-fact dd {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.hero-media {
  aspect-ratio: 4 / 3;
}

/* 题材方向总览 */
.section-directions {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.direction-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.direction-name {
  font-size: 18px;
}

.direction-scope {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.direction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.direction-rep {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
}

.direction-rep a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 封面条目速览 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.cover-media {
  aspect-ratio: 3 / 4;
}

.cover-name {
  margin-top: 12px;
  font-size: 16px;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

/* 最近更新记录 */
.section-updates {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.batch-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.batch-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.batch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.batch-no {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.batch-date {
  font-size: 13px;
  color: var(--muted);
}

.batch-items {
  padding: 6px 16px 12px;
}

.batch-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.batch-item:last-child {
  border-bottom: 0;
}

.batch-name {
  font-size: 15px;
  font-weight: 700;
}

.batch-progress,
.batch-chapter {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 人气位次与字段摘要 */
.rank-fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.rank-column,
.fields-column {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.column-title {
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.column-lead {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.rank-list {
  margin-top: 10px;
}

.rank-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
}

.rank-name {
  font-size: 15px;
  font-weight: 700;
}

.rank-note {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

.field-summary {
  margin-top: 12px;
}

.field-summary-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.field-summary-item:last-child {
  border-bottom: 0;
}

.field-name {
  font-weight: 700;
  min-width: 96px;
}

.field-desc {
  color: var(--ink-soft);
  flex: 1 1 160px;
}

.column-foot {
  margin-top: 14px;
  font-size: 14px;
}

.column-foot a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 查阅路径三步指引 */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-no {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.step-body {
  min-width: 0;
}

.step-name {
  font-size: 17px;
}

.step-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.step-desc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 站内栏目索引 */
.section-index {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.column-index {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.column-index-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.column-index-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.column-index-item a {
  font-size: 15px;
  font-weight: 700;
}

.column-index-item a:hover {
  color: var(--accent);
}

.column-index-desc {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 4.2 题材分类 ---------- */
.category-overview .section-title,
.direction-picks .section-title,
.tag-glossary .section-title,
.related-directions .section-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.direction-block {
  margin-top: 20px;
  padding: 20px;
}

.direction-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.direction-range {
  font-size: 14px;
  color: var(--muted);
}

.direction-block .direction-tags {
  margin-top: 12px;
}

.direction-note {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}

.direction-picks {
  margin-top: 48px;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 20px;
}

.pick-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 4px 14px;
  padding: 14px;
}

.pick-cover {
  grid-row: 1 / span 3;
  aspect-ratio: 3 / 4;
}

.pick-title {
  font-size: 16px;
}

.pick-meta {
  font-size: 13px;
  color: var(--muted);
}

.pick-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.tag-glossary {
  margin-top: 48px;
}

.tag-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.tag-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.tag-name {
  font-weight: 700;
  font-size: 15px;
}

.tag-scope {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.related-directions {
  margin-top: 48px;
}

.related-links {
  margin-top: 18px;
}

/* ---------- 4.3 最近更新 ---------- */
.updates-overview {
  margin-bottom: 44px;
}

.updates-overview .section-title,
.update-batches .section-title,
.status-legend .section-title,
.updates-note .section-title,
.updates-backlinks .section-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.updates-figure {
  margin-top: 20px;
  aspect-ratio: 16 / 7;
}

.updates-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.updates-meta-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.updates-meta-item dt {
  font-size: 13px;
  color: var(--muted);
}

.updates-meta-item dd {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.update-batches {
  margin-bottom: 44px;
}

.update-batches .batch-block {
  margin-top: 20px;
}

.batch-title {
  font-size: 17px;
}

.update-batches .batch-list {
  padding: 6px 16px 12px;
}

.batch-order {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  min-width: 28px;
}

.batch-status {
  font-size: 13px;
  color: var(--ink-soft);
}

.status-legend {
  margin-bottom: 44px;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 20px;
}

.legend-card {
  padding: 16px;
}

.legend-name {
  font-size: 16px;
}

.legend-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.updates-note {
  margin-bottom: 44px;
}

.note-body {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.note-body p + p {
  margin-top: 12px;
}

.note-body p {
  font-size: 15px;
  color: var(--ink-soft);
}

.updates-backlinks .backlink-list {
  margin-top: 18px;
}

/* ---------- 4.4 人气位次 ---------- */
.ranking-list-section,
.ranking-rule-section,
.ranking-change-section,
.ranking-backlinks-section {
  margin-bottom: 44px;
}

.ranking-list-section .section-title,
.ranking-rule-section .section-title,
.ranking-change-section .section-title,
.ranking-backlinks-section .section-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-media {
  margin-top: 20px;
  aspect-ratio: 16 / 7;
}

.ranking-items {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.ranking-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
}

.ranking-item:last-child {
  border-bottom: 0;
}

.ranking-item .rank-no {
  font-size: 16px;
  min-width: 30px;
}

.rank-body {
  min-width: 0;
}

.rank-body .rank-name {
  display: block;
  font-size: 15px;
}

.rank-body .rank-note {
  display: block;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 20px;
}

.rule-item {
  padding: 18px;
}

.rule-name {
  font-size: 16px;
}

.rule-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.change-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.change-term {
  padding-top: 14px;
  font-weight: 700;
  font-size: 15px;
}

.change-desc {
  margin: 4px 0 14px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 14px;
}

.section-footnote {
  margin-top: 16px;
  font-size: 14px;
}

.section-footnote a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ranking-backlinks-section .link-list {
  margin-top: 18px;
}

/* ---------- 4.5 条目字段说明 ---------- */
.fields-table-section,
.fields-caliber-section,
.fields-misread-section,
.fields-entry-section {
  margin-bottom: 44px;
}

.fields-table-section .section-title,
.fields-caliber-section .section-title,
.fields-misread-section .section-title,
.fields-entry-section .section-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.fields-figure {
  margin-top: 20px;
  aspect-ratio: 16 / 7;
}

.caliber-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 20px;
}

.caliber-item {
  padding: 18px;
}

.caliber-title {
  font-size: 16px;
}

.caliber-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.misread-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.misread-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.misread-wrong {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.misread-wrong::before {
  content: "误读 ";
  font-size: 13px;
  color: var(--accent);
}

.misread-right {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-soft);
}

.misread-right::before {
  content: "正确 ";
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.entry-link-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.entry-link-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.entry-link-item a {
  font-size: 15px;
  font-weight: 700;
}

.entry-note {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 4.6 查阅指引 ---------- */
.sidebar-left .page-layout {
  grid-template-columns: 240px minmax(0, 1fr);
}

.page-aside {
  min-width: 0;
}

.guide-steps,
.guide-tips,
.guide-feedback,
.guide-index {
  margin-bottom: 44px;
}

.guide-steps .section-title,
.guide-tips .section-title,
.guide-feedback .section-title,
.guide-index .section-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 20px;
}

.step-card {
  padding: 18px;
}

.step-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.step-title {
  margin-top: 6px;
  font-size: 17px;
}

.step-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.step-card .step-list {
  display: block;
  margin-top: 10px;
  padding: 0;
}

.step-card .step-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 0;
}

.step-card .step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.guide-figure {
  margin: 0 0 44px;
  aspect-ratio: 16 / 7;
}

.tips-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 20px;
}

.tips-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tips-heading {
  font-size: 16px;
}

.tips-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.feedback-list {
  margin-top: 20px;
}

.guide-index .index-link-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.index-link-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.index-link-item a {
  font-size: 15px;
  font-weight: 700;
}

.index-link-note {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 4.7 404 ---------- */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.error-block {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.error-block h1 {
  margin-top: 14px;
  font-size: 32px;
}

.error-lead {
  margin-top: 14px;
  max-width: 620px;
  color: var(--ink-soft);
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 20px;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.error-home-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.error-paths,
.error-note {
  margin-bottom: 40px;
}

.error-paths h2,
.error-note h2 {
  font-size: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.error-path-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.error-path-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.error-path-list a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

.error-note p {
  margin-top: 14px;
  max-width: 720px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   5. responsive —— 断点 1024 / 768 / 480
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .direction-grid,
  .cover-grid,
  .legend-grid,
  .column-index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line-soft);
    border-left: 3px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line-soft);
    border-left-color: var(--accent);
    font-weight: 700;
  }

  .fact-bar p {
    padding: 8px 18px;
  }

  .inner-main,
  .error-main {
    padding: 0 18px 48px;
  }

  .page-header {
    padding: 10px 0 20px;
    margin-bottom: 26px;
  }

  .page-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 19px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 18px 40px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-media {
    aspect-ratio: 16 / 9;
  }

  .section {
    padding: 36px 0;
  }

  .section-head,
  .section-foot,
  .direction-grid,
  .cover-grid,
  .batch-list,
  .rank-fields-layout,
  .step-list,
  .column-index {
    padding-left: 18px;
    padding-right: 18px;
  }

  .direction-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .rank-fields-layout,
  .step-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .column-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-with-sidebar,
  .fields-layout,
  .layout-shell,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .sidebar-left .page-aside {
    order: 2;
  }

  .pick-grid,
  .rule-list,
  .caliber-list,
  .steps-grid,
  .tips-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .updates-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 30px 18px 20px;
  }

  .footer-copyright {
    padding: 14px 18px 22px;
  }

  .error-code {
    font-size: 38px;
  }

  .error-block h1 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .brand-name {
    font-size: 17px;
  }

  .hero-title {
    font-size: 24px;
  }

  .page-title {
    font-size: 22px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .column-index-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .updates-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .pick-card {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .rank-row,
  .batch-item,
  .field-summary-item,
  .entry-link-item,
  .index-link-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .rank-note,
  .batch-progress,
  .batch-chapter {
    margin-left: 0;
    text-align: left;
  }

  .field-name {
    min-width: 0;
  }
}
