/* ==========================================================================
   黑料吃瓜不打烊 · xyyxbbs.com
   全站样式：档案台秩序感 · 米白纸面 / 墨蓝标题 / 琥珀强调
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版、通用元素
   -------------------------------------------------------------------------- */

:root {
  --paper: #F5F3EE;
  --ink: #1B2A41;
  --card: #FFFFFF;
  --amber: #A0570F;
  --amber-soft: #E8A045;
  --muted: #6B7280;
  --ok: #2F7A5A;
  --warn: #A6453B;
  --line: #DCD7CC;

  --font-sans: system-ui, -apple-system, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --shell: 1120px;
  --gutter: 24px;
  --col-main: 760px;
  --col-side: 300px;
  --col-gap: 40px;

  --radius: 6px;
  --radius-sm: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--amber);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .18s ease, text-decoration-thickness .18s ease;
}

a:hover,
a:focus-visible {
  color: #7E440B;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. layout —— 全站骨架：页头、导航、主容器、页脚
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--paper);
}

/* --- 页头 --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--ink);
  border-bottom: 3px solid var(--amber-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px var(--gutter);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #FFFFFF;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: #FFFFFF;
  text-decoration: none;
}

.brand-mark {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-tag {
  font-size: 13px;
  line-height: 1.4;
  color: #C9B79B;
  border-left: 1px solid #4A5A73;
  padding-left: 10px;
}

/* --- 主导航 --- */

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.nav-link {
  display: inline-block;
  padding: 9px 12px;
  font-size: 15px;
  line-height: 1.4;
  color: #E7E2D8;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #FFFFFF;
  background-color: #2A3B57;
  text-decoration: none;
}

.nav-link.is-current {
  color: #FFFFFF;
  font-weight: 700;
  background-color: #33475F;
  box-shadow: inset 0 -3px 0 0 var(--amber-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-left: auto;
  background-color: transparent;
  border: 1px solid #4A5A73;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--amber-soft);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #E7E2D8;
}

/* --- 主容器 --- */

.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px var(--gutter) 56px;
}

.home-main {
  padding-top: 0;
}

.inner-main {
  padding-top: 24px;
}

/* --- 内页统一骨架：面包屑 / 页标题区 --- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--amber);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--muted);
}

.page-header {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

/* --- 页脚 --- */

.site-footer {
  background-color: var(--ink);
  color: #D7D2C8;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px 40px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--gutter) 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #A9B2C0;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--amber-soft);
  margin-bottom: 12px;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  font-size: 14px;
  line-height: 1.6;
  color: #D7D2C8;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid #33475F;
}

.footer-bottom p {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--gutter) 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #8E99A8;
}

/* --------------------------------------------------------------------------
   3. components —— 通用组件
   -------------------------------------------------------------------------- */

/* --- 按钮 --- */

.btn {
  display: inline-block;
  padding: 11px 20px;
  font-size: 15px;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  display: inline-block;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #FFFFFF;
  background-color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #FFFFFF;
  background-color: #7E440B;
  border-color: #7E440B;
  text-decoration: none;
}

.btn-ghost {
  display: inline-block;
  padding: 11px 20px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background-color: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
  text-decoration: none;
}

/* --- 标签 --- */

.tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  background-color: #EFEBE1;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tag-clue {
  color: #7E440B;
  background-color: #F6EAD8;
  border-color: #E5CFAE;
}

.tag-batch {
  color: #2A3B57;
  background-color: #E7EBF2;
  border-color: #C9D2E0;
}

.tag-topic {
  color: #2F7A5A;
  background-color: #E5F0EA;
  border-color: #BED9CC;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* --- 表格容器 --- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
}

.table-scroll:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.table-caption {
  padding: 12px 16px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: left;
}

.table-hint {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- 数据表（内页通用） --- */

.data-table {
  min-width: 620px;
  font-size: 14px;
}

.data-table thead th {
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background-color: #EFEBE1;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 14px;
  line-height: 1.65;
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:nth-child(even) {
  background-color: #FBFAF7;
}

/* --- 正文配图 --- */

.content-figure,
.doc-figure,
.figure-block {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
  padding: 12px;
}

.content-figure img,
.doc-figure img,
.figure-block img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #EFEBE1;
}

.figure-caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- 交叉入口条 --- */

.cross-links {
  margin-top: 32px;
  padding: 18px 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber-soft);
  border-radius: var(--radius);
}

.cross-links-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.cross-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.cross-links-list a {
  font-size: 15px;
  line-height: 1.6;
}

/* --- 页内锚点目录 --- */

.toc-panel,
.page-toc,
.page-aside,
.page-sidebar,
.side-col {
  min-width: 0;
}

.toc-title,
.aside-title,
.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.toc-list,
.anchor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a,
.anchor-list a {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  padding: 3px 0 3px 10px;
  border-left: 2px solid var(--line);
}

.toc-list a:hover,
.toc-list a:focus-visible,
.anchor-list a:hover,
.anchor-list a:focus-visible {
  color: var(--amber);
  border-left-color: var(--amber);
  text-decoration: none;
}

.toc {
  min-width: 0;
}

/* --- 说明列表 --- */

.note-list {
  display: grid;
  gap: 14px;
}

.note-item {
  padding: 14px 16px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.note-item p {
  font-size: 15px;
  color: #3C4657;
}

.scope-list {
  display: grid;
  gap: 12px;
}

.scope-list li {
  padding: 12px 16px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.7;
}

.scope-list strong {
  color: var(--ink);
}

/* --- 问答组 --- */

.qa-section {
  margin-bottom: 40px;
}

.qa-group {
  margin-top: 24px;
}

.qa-group h3 {
  font-size: 17px;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--amber-soft);
}

.qa-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
  margin-bottom: 8px;
}

.qa-item summary {
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::before {
  content: "＋";
  display: inline-block;
  width: 20px;
  color: var(--amber);
  font-weight: 400;
}

.qa-item[open] summary::before {
  content: "－";
}

.qa-item summary:hover {
  color: var(--amber);
}

.qa-item summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -2px;
}

.qa-item p {
  padding: 0 16px 14px 36px;
  font-size: 15px;
  line-height: 1.75;
  color: #3C4657;
}

/* --- 状态标记 --- */

.status-tag,
.status-badge {
  display: inline-block;
  padding: 2px 9px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.status-tag.is-done,
.status-badge.status-ok {
  color: #FFFFFF;
  background-color: var(--ok);
}

.status-tag.is-todo,
.status-badge.status-warn {
  color: #FFFFFF;
  background-color: var(--warn);
}

/* --------------------------------------------------------------------------
   4. pages —— 首页与各内页业务模块
   -------------------------------------------------------------------------- */

/* === 首页 === */

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.hero-info {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 14px;
  line-height: 1.6;
  color: var(--amber);
  margin-bottom: 8px;
}

.hero-info h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: #3C4657;
  max-width: 34em;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status-cell {
  padding: 10px 12px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.status-cell .status-tag,
.status-cell .status-badge {
  margin-bottom: 6px;
}

.status-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.status-note,
.status-desc {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 2px;
}

.hero-visual {
  min-width: 0;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #EFEBE1;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-tags li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  padding: 2px 9px;
  background-color: #EFEBE1;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.content-media {
  margin: 20px 0 0;
}

.content-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #EFEBE1;
}

/* 题材分类带 */

.genre-band {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.genre-title {
  font-size: 17px;
  margin-bottom: 12px;
}

.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-list a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.genre-list a:hover,
.genre-list a:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
  text-decoration: none;
}

/* 首页主区两栏 */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--col-main)) minmax(0, var(--col-side));
  gap: var(--col-gap);
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: minmax(0, var(--col-side)) minmax(0, var(--col-main));
}

.recent-section {
  min-width: 0;
}

.recent-section h2,
.side-column h2,
.cast-preview h2,
.topic-preview h2,
.legend-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

/* 条目表 */

.entry-table {
  min-width: 640px;
  font-size: 14px;
}

.entry-table thead th {
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background-color: #EFEBE1;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.entry-table tbody td {
  padding: 12px 14px;
  line-height: 1.65;
  border-bottom: 1px solid var(--line);
}

.entry-table tbody tr:last-child td {
  border-bottom: 0;
}

.entry-table tbody tr:nth-child(even) {
  background-color: #FBFAF7;
}

.entry-table .cell-name {
  font-weight: 700;
  color: var(--ink);
  min-width: 180px;
}

.entry-table .cell-name a {
  color: var(--ink);
}

.entry-table .cell-name a:hover,
.entry-table .cell-name a:focus-visible {
  color: var(--amber);
}

/* 侧栏：榜单与提示 */

.side-column {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.rank-block,
.tip-block {
  padding: 18px 18px 16px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.rank-list {
  display: grid;
  gap: 2px;
}

.rank-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
}

.rank-name {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.rank-genre {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  white-space: nowrap;
}

.rank-link {
  grid-column: 2 / -1;
  font-size: 13px;
  line-height: 1.6;
}

.tip-list {
  display: grid;
  gap: 10px;
}

.tip-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #3C4657;
}

.tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background-color: var(--amber-soft);
  border-radius: 1px;
}

/* 角色线索速览 */

.cast-preview {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.cast-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.cast-card {
  padding: 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.cast-card .cast-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cast-work {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 10px;
}

.cast-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.cast-link {
  font-size: 14px;
  line-height: 1.6;
}

/* 专题研究入口 */

.topic-preview {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.topic-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber-soft);
  border-radius: var(--radius);
  min-width: 0;
}

.topic-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.topic-lead {
  font-size: 15px;
  line-height: 1.75;
  color: #3C4657;
  margin-bottom: 10px;
}

.topic-works {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 14px;
}

.topic-link {
  margin-top: auto;
  font-size: 14px;
  line-height: 1.6;
}

/* 档案状态图例 */

.legend-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.legend-table {
  min-width: 560px;
  font-size: 14px;
}

.legend-table thead th {
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background-color: #EFEBE1;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.legend-table tbody td {
  padding: 12px 14px;
  line-height: 1.65;
  border-bottom: 1px solid var(--line);
}

.legend-table tbody tr:last-child td {
  border-bottom: 0;
}

.legend-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* 首页相关入口 */

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 32px;
  padding: 16px 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber-soft);
  border-radius: var(--radius);
}

.related-links-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.related-links-item {
  font-size: 15px;
  line-height: 1.6;
}

/* === 内页共用：标题区、章节 === */

.content-column {
  min-width: 0;
}

.page-content {
  min-width: 0;
}

.content-col {
  min-width: 0;
}

.page-lead {
  font-size: 16px;
  line-height: 1.75;
  color: #3C4657;
  max-width: 46em;
}

.page-hero,
.page-head,
.page-title-block {
  margin-bottom: 28px;
}

.page-lede {
  font-size: 16px;
  line-height: 1.75;
  color: #3C4657;
  max-width: 46em;
}

.section-lead,
.section-intro {
  font-size: 15px;
  line-height: 1.75;
  color: #3C4657;
  margin: 8px 0 16px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-block {
  margin-bottom: 40px;
}

.section-block > h2,
.content-section > h2,
.section > h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* 作品目录：批次分组 */

.batch-group {
  margin-bottom: 36px;
  min-width: 0;
}

.batch-group h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* 角色档案：词条分组 */

.cast-section {
  margin-bottom: 40px;
}

.cast-group {
  margin-top: 24px;
  min-width: 0;
}

.group-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--amber-soft);
}

.cast-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
}

.cast-list .cast-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding: 10px 14px 0;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: 0;
}

.cast-list .cast-field {
  margin: 0;
  padding: 4px 14px;
  font-size: 14px;
  line-height: 1.65;
  color: #3C4657;
  background-color: var(--card);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.cast-list .cast-field + .cast-name {
  margin-top: 14px;
}

.cast-list .cast-field:last-of-type {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}

.cast-list .field-label {
  display: inline-block;
  min-width: 5em;
  color: var(--muted);
}

.map-section,
.figure-section {
  margin-bottom: 40px;
}

/* 专题研究文章 */

.topic-article {
  padding: 22px;
  margin-bottom: 22px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber-soft);
  border-radius: var(--radius);
  min-width: 0;
}

.topic-article h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.article-lede {
  font-size: 15px;
  line-height: 1.75;
  color: var(--amber);
  margin-bottom: 12px;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  color: #3C4657;
}

.article-refs {
  margin: 16px 0;
  padding: 14px 16px;
  background-color: #FBFAF7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-refs h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ref-list {
  display: grid;
  gap: 6px;
}

.ref-list li {
  font-size: 14px;
  line-height: 1.7;
  color: #3C4657;
}

.article-conclusion {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

/* 追更档案 / 校订反馈：内容区块 */

.content-section {
  margin-bottom: 40px;
  min-width: 0;
}

.section {
  margin-bottom: 40px;
  min-width: 0;
}

/* 校订反馈：状态总览 */

.section .status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.section .status-cell {
  padding: 14px;
}

.section .status-cell .status-name {
  margin-top: 8px;
}

.action-list {
  display: grid;
  gap: 14px;
}

.action-item {
  padding: 16px 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.action-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.action-item p {
  font-size: 15px;
  line-height: 1.75;
  color: #3C4657;
}

/* 资料来源：后续入口 */

.next-section {
  margin-bottom: 40px;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.next-links a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.next-links a:hover,
.next-links a:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
  text-decoration: none;
}

.media-section {
  margin-bottom: 40px;
}

/* 追更档案：批次对照表页的 aside 目录 */

.page-aside .anchor-list {
  gap: 8px;
}

/* === 404 === */

.error-main {
  display: block;
}

.error-block {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  max-width: 640px;
}

.error-code {
  font-size: 14px;
  line-height: 1.6;
  color: var(--amber);
  margin-bottom: 8px;
}

.error-block h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.75;
  color: #3C4657;
  margin-bottom: 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-guide h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.error-links a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.error-links a:hover,
.error-links a:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. responsive —— 1024px 与 720px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --gutter: 20px;
  }

  .hero-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0 22px;
  }

  .hero-info h1 {
    font-size: 28px;
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-layout.sidebar-left .toc-panel {
    order: -1;
  }

  .toc-panel,
  .page-toc,
  .page-aside,
  .page-sidebar,
  .side-col {
    position: static;
  }

  .toc-list,
  .anchor-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .toc-list a,
  .anchor-list a {
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    background-color: var(--card);
  }

  .toc-list a:hover,
  .toc-list a:focus-visible,
  .anchor-list a:hover,
  .anchor-list a:focus-visible {
    border-color: var(--amber);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
  }

  .section .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cast-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  .site-main {
    padding: 24px var(--gutter) 40px;
  }

  .home-main {
    padding-top: 0;
  }

  .header-inner {
    gap: 8px 12px;
    padding: 10px var(--gutter);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    min-width: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    padding: 6px;
    background-color: #22334C;
    border: 1px solid #33475F;
    border-radius: var(--radius);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 14px;
    font-size: 16px;
    min-height: 44px;
  }

  .brand-mark {
    font-size: 18px;
  }

  .brand-tag {
    display: none;
  }

  .page-title,
  .error-block h1 {
    font-size: 24px;
  }

  .hero-info h1 {
    font-size: 24px;
  }

  .hero-band {
    padding: 20px 0 18px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn,
  .btn-primary,
  .btn-ghost {
    padding: 12px 18px;
    min-height: 44px;
  }

  .genre-list a {
    padding: 9px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .recent-section h2,
  .side-column h2,
  .cast-preview h2,
  .topic-preview h2,
  .legend-section h2,
  .section-block > h2,
  .content-section > h2,
  .section > h2,
  .batch-group h2,
  .section-title,
  .error-guide h2 {
    font-size: 19px;
  }

  .topic-article h3 {
    font-size: 18px;
  }

  .table-scroll {
    border-radius: var(--radius-sm);
  }

  .entry-table,
  .data-table,
  .legend-table {
    min-width: 560px;
  }

  .cast-preview-list,
  .topic-card-grid,
  .next-links,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .section .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .rank-genre {
    grid-column: 2;
    white-space: normal;
  }

  .rank-link {
    grid-column: 2;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px var(--gutter) 24px;
  }

  .cross-links-list {
    gap: 8px 18px;
  }

  .cross-links-list a,
  .related-links-item {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .qa-item summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .qa-item p {
    padding-left: 16px;
  }
}

/* 尊重减少动效偏好 */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
