/* ==========================================================================
   女神动漫最新版 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --canvas: #F3F4F5;
  --paper: #FFFFFF;
  --ink: #1C2124;
  --ink-soft: #616A70;
  --line: #DCE0E3;
  --teal: #2E6A71;
  --vermilion: #B2523A;
  --dark-bar: #23282B;
  --mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --radius: 6px;
  --shell: 1180px;
  --reading: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

h4 {
  font-size: 15px;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--vermilion);
}

a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

th,
td {
  text-align: left;
  vertical-align: top;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* 等宽数字与编号 */
.mono,
.archive-no,
.year,
.year-no,
.year-chip,
.step-no,
.rule-no,
.month-label,
.meta-value.mono,
.meta-item .mono {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-main {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
}

.primary-nav.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.primary-nav.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.primary-nav.site-nav a:hover,
.primary-nav.site-nav a:focus-visible {
  color: var(--ink);
}

.primary-nav.site-nav a.is-current {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.action-btn:hover,
.action-btn:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.mobile-drawer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer ul {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 16px 14px;
}

.mobile-drawer li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}

.mobile-drawer li:last-child a {
  border-bottom: 0;
}

.mobile-drawer li a.is-current {
  color: var(--teal);
  font-weight: 700;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* 内页统一容器 */
.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 内页标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.page-head {
  max-width: var(--reading);
  margin-bottom: 32px;
}

.page-lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* 元数据行 */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.meta-label {
  color: var(--ink-soft);
}

.meta-value {
  color: var(--ink);
}

/* 页脚 */
.site-footer {
  margin-top: 48px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-top {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 32px 48px;
  align-items: start;
}

.footer-brand .brand-main {
  font-size: 16px;
}

.footer-tagline {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-group dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-group dd {
  margin: 0 0 6px;
}

.footer-group dd:last-child {
  margin-bottom: 0;
}

.footer-group a {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-group a:hover {
  color: var(--teal);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-caliber {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 78ch;
}

.back-top {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.back-top:hover {
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */

.text-link {
  display: inline-block;
  font-size: 13px;
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--vermilion);
  border-bottom-color: var(--vermilion);
}

.section-lead {
  max-width: 72ch;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 6px 0 20px;
}

.section-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 6px 0 20px;
  max-width: 72ch;
}

/* 状态胶囊 */
.status-chip {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  color: var(--ink-soft);
  background: var(--canvas);
}

.status-chip.status-ongoing {
  color: var(--teal);
  border-color: rgba(46, 106, 113, 0.4);
  background: rgba(46, 106, 113, 0.08);
}

.status-chip.status-done {
  color: var(--ink-soft);
  border-color: var(--line);
  background: var(--canvas);
}

.status-chip.status-pending {
  color: var(--vermilion);
  border-color: rgba(178, 82, 58, 0.4);
  background: rgba(178, 82, 58, 0.07);
}

/* 状态表内胶囊变体 */
.status-table .status-chip {
  font-size: 12px;
}

.status-table .chip-serial {
  color: var(--teal);
  border-color: rgba(46, 106, 113, 0.4);
  background: rgba(46, 106, 113, 0.08);
}

.status-table .chip-done {
  color: var(--ink-soft);
  border-color: var(--line);
  background: var(--canvas);
}

.status-table .chip-pending {
  color: var(--vermilion);
  border-color: rgba(178, 82, 58, 0.4);
  background: rgba(178, 82, 58, 0.07);
}

.status-table .chip-adjust {
  color: var(--vermilion);
  border-color: rgba(178, 82, 58, 0.3);
  background: transparent;
}

/* 摘要卡 */
.summary-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 18px;
}

.summary-card h2 {
  font-size: 17px;
  margin-bottom: 10px;
}

.summary-card p {
  font-size: 14px;
  color: var(--ink);
}

.summary-lead {
  margin-bottom: 12px;
}

.summary-line {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.summary-line:last-child {
  margin-bottom: 0;
}

.summary-key {
  display: inline-block;
  margin-right: 8px;
  font-weight: 700;
  color: var(--ink);
}

.summary-conclusion {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 12px;
}

.summary-rows {
  display: grid;
  gap: 8px;
}

.summary-row {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

/* 提示条 */
.notice-bar,
.tip-bar {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--vermilion);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.tip-bar a {
  color: var(--teal);
}

/* 横向链接区 */
.cross-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.cross-link {
  display: block;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.cross-link:hover,
.cross-link:focus-visible {
  border-color: var(--teal);
  color: var(--ink);
}

.cross-title,
.cross-link-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 4px;
}

.cross-link:hover .cross-title,
.cross-link:hover .cross-link-title {
  color: var(--vermilion);
}

.cross-desc,
.cross-link-desc {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.cross-link-block {
  display: block;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.cross-link-block:hover,
.cross-link-block:focus-visible {
  border-color: var(--teal);
  color: var(--ink);
}

/* 相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.related-links-label {
  color: var(--ink-soft);
}

.related-links-item {
  color: var(--teal);
}

/* 表格通用 */
.genre-table,
.status-table,
.entry-table table,
.compare-table,
.order-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.genre-table th,
.genre-table td,
.status-table th,
.status-table td,
.entry-table th,
.entry-table td,
.compare-table th,
.compare-table td,
.order-table th,
.order-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.genre-table thead th,
.status-table thead th,
.entry-table thead th,
.compare-table thead th,
.order-table thead th {
  background: var(--canvas);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}

.genre-table tbody tr:last-child th,
.genre-table tbody tr:last-child td,
.status-table tbody tr:last-child td,
.entry-table tbody tr:last-child td,
.compare-table tbody tr:last-child td,
.order-table tbody tr:last-child td {
  border-bottom: 0;
}

.genre-table tbody th,
.order-table tbody th {
  font-weight: 700;
  color: var(--ink);
}

.genre-table tbody tr:hover,
.entry-table tbody tr:hover,
.compare-table tbody tr:hover,
.order-table tbody tr:hover {
  background: #FAFBFB;
}

/* 折叠问答 */
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.faq-item summary {
  padding: 14px 42px 14px 18px;
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}

.faq-item summary:hover {
  color: var(--teal);
}

.faq-body {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.faq-body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* 图片容器通用约束 */
.hero-visual,
.cover-figure,
.genre-figure,
.catalog-visual,
.archive-figure,
.guide-visual,
.standards-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--canvas);
}

.hero-visual img,
.cover-figure img,
.genre-figure img,
.catalog-visual img,
.archive-figure img,
.guide-visual img,
.standards-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 跳转链接（可访问性） */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 8px 14px;
  background: var(--dark-bar);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.hero-text h1 {
  font-size: 36px;
  line-height: 1.32;
  margin-bottom: 14px;
}

.hero-text .lead {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 24px;
}

.browse-entries {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.browse-item {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.browse-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.browse-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  line-height: 1.7;
}

.hero-text .meta-row {
  margin-top: 4px;
}

.hero-visual {
  border: 1px solid var(--line);
  background: var(--paper);
}

.hero-visual img {
  aspect-ratio: 3 / 4;
}

.hero-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

.hero-caption .archive-no {
  color: var(--teal);
  font-size: 12px;
}

.caption-text {
  line-height: 1.6;
}

/* 速览条 */
.batch-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.meta-cell {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.meta-cell:last-child {
  border-right: 0;
}

.cell-title {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-bottom: 6px;
}

.cell-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* 双栏主区 */
.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.main-column {
  min-width: 0;
}

.main-column h2 {
  margin-bottom: 4px;
}

.entry-list {
  border-top: 1px solid var(--line);
}

.entry-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.entry-row .archive-no {
  font-size: 13px;
  color: var(--teal);
}

.entry-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}

.entry-name:hover {
  color: var(--teal);
}

.genre-tag {
  font-size: 12px;
  color: var(--ink-soft);
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.entry-row .year {
  font-size: 13px;
  color: var(--ink-soft);
}

/* 侧栏 */
.side-column {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.side-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.side-block h2 {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.side-list li {
  border-bottom: 1px dashed var(--line);
}

.side-list li:last-child {
  border-bottom: 0;
}

.side-list a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink);
}

.side-list a:hover {
  color: var(--teal);
}

.side-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--vermilion);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.side-note h3 {
  font-size: 14px;
  margin-bottom: 8px;
}

.side-note p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

/* 代表作品档案卡 */
.featured {
  margin-bottom: 48px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cover-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.cover-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.cover-figure {
  position: relative;
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
}

.cover-figure .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  background: rgba(35, 40, 43, 0.82);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
}

.cover-card:hover .badge {
  text-decoration: underline;
}

.cover-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.cover-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* 题材谱系预览 */
.genre-preview {
  margin-bottom: 48px;
}

.genre-table thead th:first-child,
.genre-table tbody th {
  width: 18%;
}

.genre-table tbody th a {
  color: var(--ink);
}

.genre-table tbody th a:hover {
  color: var(--teal);
}

/* 更新年表预览 */
.year-preview {
  margin-bottom: 48px;
}

.year-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.year-row:first-of-type {
  border-top: 1px solid var(--line);
}

.year-no {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
}

.year-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* 阅读误区摘要 */
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.note-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--vermilion);
  border-radius: var(--radius);
  padding: 18px;
}

.note-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.note-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   pages · 内页通用结构
   -------------------------------------------------------------------------- */

/* 作品档案 */
.catalog-visual {
  border: 1px solid var(--line);
  margin: 0 0 32px;
}

.catalog-visual img {
  aspect-ratio: 16 / 9;
}

.catalog-visual figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 12px;
  color: var(--ink-soft);
}

.intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}

.status-table caption {
  padding: 12px 14px 10px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.entry-table {
  margin-bottom: 40px;
}

.entry-table h2 {
  margin-bottom: 4px;
}

.entry-table > p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 72ch;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.entry-table table {
  min-width: 720px;
}

.entry-table td.mono {
  font-size: 13px;
  color: var(--teal);
  white-space: nowrap;
}

.entry-table td.entry-name {
  font-weight: 700;
  color: var(--ink);
}

.entry-table td .status-chip {
  font-size: 12px;
}

.supplement {
  max-width: var(--reading);
  margin-bottom: 8px;
}

.supplement h2 {
  margin-bottom: 12px;
}

.supplement p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 题材谱系 */
.genre-intro {
  margin-bottom: 36px;
}

.genre-list {
  margin-bottom: 40px;
}

.genre-list > h2 {
  margin-bottom: 4px;
}

.genre-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}

.genre-def {
  min-width: 0;
}

.genre-def h3 {
  font-size: 18px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.genre-figure {
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.genre-figure img {
  aspect-ratio: 16 / 9;
}

.genre-figure figcaption {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--canvas);
}

.genre-facts {
  display: grid;
  gap: 6px;
}

.genre-facts dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  margin-top: 6px;
}

.genre-facts dt:first-child {
  margin-top: 0;
}

.genre-facts dd {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.genre-picks {
  min-width: 0;
  padding: 16px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-self: start;
}

.genre-picks h4 {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.genre-picks li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.genre-picks li:last-child {
  border-bottom: 0;
}

.genre-picks li a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.genre-picks li a:hover {
  color: var(--teal);
}

.genre-picks .archive-no {
  font-size: 12px;
  color: var(--ink-soft);
}

.compare {
  margin-bottom: 40px;
}

.compare-table td a {
  color: var(--teal);
}

.picks {
  margin-bottom: 8px;
}

.pick-list {
  display: grid;
  gap: 12px;
  counter-reset: pick;
}

.pick-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pick-list p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* 更新年表 */
.year-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.archive-figure {
  border: 1px solid var(--line);
  background: var(--paper);
}

.archive-figure img {
  aspect-ratio: 4 / 3;
}

.figure-cap {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.year-jump {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.year-jump-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-right: 4px;
}

.year-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  background: var(--canvas);
}

.year-chip:hover,
.year-chip:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.year-block {
  margin-bottom: 36px;
  scroll-margin-top: 120px;
}

.year-block h2 {
  font-size: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
  margin-bottom: 8px;
}

.year-block > .year-note {
  margin-bottom: 18px;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.month-cell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.month-label {
  display: inline-block;
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 8px;
}

.month-summary {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 10px;
}

.change-list {
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.change-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 4px;
}

.change-list li:last-child {
  margin-bottom: 0;
}

.change-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
}

.caliber {
  max-width: var(--reading);
  margin-bottom: 8px;
}

.caliber h2 {
  margin-bottom: 12px;
}

.caliber > p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 追更入门 */
.step-section {
  margin-bottom: 32px;
}

.step-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.step-no {
  display: inline-block;
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 10px;
}

.step-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.step-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

.step-item p:last-child {
  margin-bottom: 0;
}

.step-item p a {
  color: var(--teal);
  border-bottom: 1px solid rgba(46, 106, 113, 0.35);
}

.step-item p a:hover {
  color: var(--vermilion);
  border-bottom-color: var(--vermilion);
}

.guide-visual {
  border: 1px solid var(--line);
  margin: 0 0 36px;
  background: var(--paper);
}

.guide-visual img {
  aspect-ratio: 16 / 9;
}

.guide-visual figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

.order-table-section {
  margin-bottom: 36px;
}

.order-table caption {
  padding: 12px 14px 10px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.faq-section {
  margin-bottom: 8px;
}

/* 收录与边界 */
.page-head-with-toc {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: start;
}

.page-head-text {
  max-width: var(--reading);
  min-width: 0;
}

.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.toc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.toc li {
  border-bottom: 1px dashed var(--line);
}

.toc li:last-child {
  border-bottom: 0;
}

.toc a {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.toc a:hover {
  color: var(--teal);
}

.scope-split {
  margin-bottom: 40px;
  scroll-margin-top: 88px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scope-in,
.scope-out {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.scope-in {
  border-top: 3px solid var(--teal);
}

.scope-out {
  border-top: 3px solid var(--vermilion);
}

.scope-in h3,
.scope-out h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.scope-in li,
.scope-out li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 8px;
}

.scope-in li:last-child,
.scope-out li:last-child {
  margin-bottom: 0;
}

.scope-in li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.scope-out li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--vermilion);
}

.rules {
  margin-bottom: 40px;
  scroll-margin-top: 88px;
}

.rule-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}

.rule-item h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.rule-no {
  display: inline-block;
  margin-right: 10px;
  font-size: 13px;
  color: var(--teal);
}

.rule-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 10px;
}

.rule-item p:last-child {
  margin-bottom: 0;
}

.notice {
  margin-bottom: 40px;
  scroll-margin-top: 88px;
}

.notice-list {
  display: grid;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.notice-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-item dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.notice-item dd {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.correction {
  max-width: var(--reading);
  margin-bottom: 40px;
  scroll-margin-top: 88px;
}

.correction h2 {
  margin-bottom: 12px;
}

.correction > p {
  font-size: 14px;
  color: var(--ink-soft);
}

.standards-visual {
  margin-bottom: 8px;
}

.standards-figure {
  border: 1px solid var(--line);
  background: var(--paper);
  max-width: var(--reading);
}

.standards-figure img {
  aspect-ratio: 16 / 9;
}

.standards-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

/* 404 */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.error-panel {
  max-width: 640px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--vermilion);
}

.error-code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--vermilion);
  margin-bottom: 10px;
}

.error-title {
  font-size: 30px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-actions .action-btn {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
  border-color: var(--teal);
  color: var(--teal);
}

.error-actions .action-btn:hover {
  background: var(--teal);
  color: #fff;
}

.error-hints {
  max-width: 640px;
  margin-top: 32px;
}

.error-hints h2 {
  font-size: 17px;
  margin-bottom: 12px;
}

.error-links {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.error-links li a {
  display: block;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
}

.error-links li a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.error-note {
  font-size: 13px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    gap: 16px;
  }

  .primary-nav.site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-visual {
    max-width: 420px;
  }

  .content-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .side-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }

  .intro-split {
    grid-template-columns: 1fr;
  }

  .genre-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .year-summary {
    grid-template-columns: 1fr;
  }

  .archive-figure {
    max-width: 480px;
  }

  .step-flow {
    grid-template-columns: 1fr;
  }

  .page-head-with-toc {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
  }

  .toc li {
    border-bottom: 0;
  }

  .toc a {
    padding: 6px 0;
  }

  .scope-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
    height: 60px;
    gap: 10px;
  }

  .brand-main {
    font-size: 15px;
  }

  .brand-sub {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .action-btn {
    min-height: 40px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .home-main {
    padding: 24px 16px 48px;
  }

  .inner-main {
    padding: 20px 16px 48px;
  }

  .page-title {
    font-size: 22px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-text .lead {
    font-size: 14px;
  }

  .hero-visual {
    max-width: none;
  }

  .batch-bar {
    grid-template-columns: 1fr;
  }

  .meta-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .meta-cell:last-child {
    border-bottom: 0;
  }

  .entry-row {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "no name"
      "tags meta";
    gap: 6px 10px;
    padding: 12px 2px;
  }

  .entry-row .archive-no {
    grid-area: no;
  }

  .entry-row .entry-name {
    grid-area: name;
  }

  .entry-row .genre-tag {
    grid-area: tags;
    justify-self: start;
  }

  .entry-row .year {
    grid-area: meta;
    justify-self: end;
    align-self: center;
  }

  .entry-row .status-chip {
    grid-area: meta;
    justify-self: end;
    align-self: center;
    margin-right: 56px;
  }

  .side-column {
    grid-template-columns: 1fr;
  }

  .cover-grid {
    grid-template-columns: 1fr;
  }

  .cover-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-areas:
      "cover title"
      "cover note";
    gap: 4px 14px;
    align-items: start;
  }

  .cover-figure {
    grid-area: cover;
    margin-bottom: 0;
  }

  .cover-card h3 {
    grid-area: title;
    margin-bottom: 0;
  }

  .cover-note {
    grid-area: note;
  }

  .year-row {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "no note"
      "no link";
    gap: 4px 14px;
    align-items: start;
  }

  .year-row .year-no {
    grid-area: no;
  }

  .year-row .year-note {
    grid-area: note;
  }

  .year-row .text-link {
    grid-area: link;
    justify-self: start;
  }

  .genre-table,
  .compare-table,
  .order-table,
  .status-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .genre-table thead th,
  .genre-table tbody th,
  .compare-table thead th,
  .order-table thead th,
  .status-table thead th {
    white-space: nowrap;
  }

  .genre-table tbody th {
    width: auto;
  }

  .pick-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .month-grid {
    grid-template-columns: 1fr;
  }

  .year-jump {
    top: 60px;
    padding: 10px 12px;
    gap: 8px;
  }

  .year-chip {
    min-width: 58px;
    min-height: 34px;
  }

  .year-block h2 {
    font-size: 20px;
  }

  .footer-top {
    padding: 28px 16px 22px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    padding: 14px 16px 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .error-main {
    padding: 40px 16px 56px;
  }

  .error-panel {
    padding: 22px;
  }

  .error-title {
    font-size: 22px;
  }

  .cross-links {
    grid-template-columns: 1fr;
  }

  .summary-card {
    padding: 16px;
  }

  .rule-item,
  .scope-in,
  .scope-out,
  .notice-item {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .cover-card:hover {
    transform: none;
  }
}
