/* ==========================================================================
   91漫画免费版 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版基线
   -------------------------------------------------------------------------- */

:root {
  --ink: #111214;
  --paper: #ffffff;
  --tint: #f4f4f5;
  --line: #d8d9dc;
  --muted: #6b6e73;
  --accent: #e4572e;
  --accent-deep: #b23a18;

  --font-sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1180px;
  --gutter: 24px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1 {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
}

h2 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
}

h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
tr:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

code {
  font-family: var(--font-mono);
  font-size: 14px;
}

.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;
}

/* 等宽数字：章回号、日期、序号、表格数字 */
.num,
.num-col,
.cell-mark,
.cell-date,
.cell-num,
.timeline-date time,
.meta-value,
.guide-num,
.step-num,
.error-code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   2. layout —— 骨架：页头、导航、主容器、面包屑、标题区、页脚
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- 页头 ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid #24262a;
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.brand:hover {
  color: var(--paper);
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.site-nav a {
  display: inline-block;
  padding: 20px 0;
  color: #d6d7da;
  font-size: 15px;
  line-height: 1.2;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--paper);
  text-decoration: none;
  border-bottom-color: #4a4c50;
}

.site-nav a.is-current {
  color: var(--paper);
  border-bottom-color: var(--accent);
}

.header-note {
  flex: 0 0 auto;
  color: #9a9da2;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

/* ---- 汉堡按钮 ---- */

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #3a3c40;
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
}

/* ---- 移动端抽屉 ---- */

.mobile-nav {
  background: #17181b;
  border-top: 1px solid #2a2c30;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px var(--gutter) 4px;
}

.mobile-nav li + li {
  border-top: 1px solid #2a2c30;
}

.mobile-nav a {
  display: block;
  padding: 14px 2px;
  min-height: 44px;
  color: #d6d7da;
  font-size: 16px;
}

.mobile-nav a:hover {
  color: var(--paper);
  text-decoration: none;
}

.mobile-nav a.is-current {
  color: var(--paper);
  box-shadow: inset 3px 0 0 var(--accent);
  padding-left: 12px;
}

.mobile-nav-note {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px var(--gutter) 18px;
  color: #9a9da2;
  font-size: 13px;
}

/* ---- 主内容 ---- */

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}

.home-main {
  width: 100%;
}

/* ---- 面包屑 ---- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent-deep);
}

.breadcrumb-sep {
  color: #b9babd;
}

.breadcrumb-current {
  color: var(--ink);
}

/* ---- 内页标题区 ---- */

.page-header {
  display: flex;
  align-items: flex-end;
  min-height: 132px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

section.page-title {
  padding: 18px 0 0;
}

.page-lead {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.75;
  color: #33353a;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.meta-label {
  color: var(--muted);
}

.meta-value {
  color: var(--ink);
}

.meta-sep {
  color: #b9babd;
  padding: 0 4px;
}

/* ---- 页脚 ---- */

.site-footer {
  margin-top: 56px;
  background: var(--ink);
  color: #c9cace;
  font-size: 14px;
  line-height: 1.7;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px var(--gutter) 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  color: var(--paper);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-desc {
  margin-top: 10px;
  max-width: 300px;
  color: #9a9da2;
  font-size: 13px;
  line-height: 1.7;
}

.footer-group {
  min-width: 0;
}

.footer-group h2 {
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 8px;
  border-bottom: 1px solid #2e3034;
}

.footer-group-note {
  margin: 10px 0 12px;
  color: #8b8e93;
  font-size: 12px;
  line-height: 1.65;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-group a {
  display: inline-block;
  padding: 5px 0;
  color: #c9cace;
  font-size: 14px;
}

.footer-group a:hover {
  color: var(--paper);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--gutter) 32px;
  border-top: 1px solid #2e3034;
  color: #8b8e93;
  font-size: 12px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   3. components —— 通用组件：按钮、表格、区块头、标签、状态、列表、折叠
   -------------------------------------------------------------------------- */

/* ---- 按钮 ---- */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--paper);
  text-decoration: none;
}

.btn-ghost {
  background: var(--paper);
  color: var(--accent-deep);
  border: 1px solid var(--accent-deep);
}

.btn-ghost:hover {
  background: #fdf1ed;
  color: var(--accent-deep);
  text-decoration: none;
}

/* ---- 区块头 ---- */

.section-head {
  max-width: var(--shell);
  margin: 0 auto;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
}

.section-head h2 {
  flex: 0 0 auto;
}

.section-sub {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.section-lead {
  max-width: 760px;
  margin: 10px 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: #3a3c41;
}

/* ---- 表格 ---- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dir-table,
.data-table {
  min-width: 560px;
  font-size: 15px;
  line-height: 1.6;
}

.dir-table caption,
.data-table caption {
  text-align: left;
}

.dir-table thead th,
.data-table thead th {
  background: var(--tint);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.dir-table tbody td,
.data-table tbody td,
.data-table tbody th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
}

.dir-table tbody tr:last-child td,
.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th {
  border-bottom: 0;
}

.dir-table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.dir-table tbody tr:hover,
.data-table tbody tr:hover {
  background: #fdf3ef;
  box-shadow: inset 3px 0 0 var(--accent);
}

.dir-table tbody tr:focus-visible,
.data-table tbody tr:focus-visible {
  outline-offset: -2px;
}

.dir-table .num,
.data-table .num,
.data-table .num-col {
  text-align: right;
  white-space: nowrap;
}

.data-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.dir-table td img {
  width: 40px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
}

/* ---- 结论条 / 限制说明 ---- */

.table-conclusion,
.week-summary-text p {
  font-size: 15px;
  line-height: 1.75;
  color: #33353a;
}

.limit-note,
.table-note,
.table-limit,
.order-note,
.rule-note,
.section-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.limit-note a,
.table-note a,
.order-note a,
.rule-note a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- 状态与标记 ---- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.status-ongoing .status-dot {
  background: var(--accent);
}

.status-finished .status-dot {
  background: #4b4d52;
}

.status-paused .status-dot {
  background: #b9babd;
}

.mark-code {
  display: inline-block;
  padding: 1px 6px;
  margin-right: 4px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

/* ---- 有序步骤（题材归类 / 反馈流程） ---- */

.step-list {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-list > li {
  position: relative;
  padding: 12px 16px 12px 46px;
  background: var(--tint);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.7;
}

.step-list > li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-deep);
}

.step-title {
  font-weight: 600;
  color: var(--ink);
}

/* ---- 相关入口条 ---- */

.related-links {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.related-links h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.related-links ul,
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.related-links a,
.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.3;
  background: var(--paper);
}

.related-links a:hover,
.related-list a:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  text-decoration: none;
}

/* ---- 折叠问答 ---- */

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 18px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent-deep);
  text-align: center;
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 12px 16px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: #33353a;
}

/* --------------------------------------------------------------------------
   4. pages —— 首页与各内页业务模块
   -------------------------------------------------------------------------- */

/* ============ 首页 ============ */

/* ---- 首屏 ---- */

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px var(--gutter) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-text h1 {
  max-width: 15em;
}

.hero-lead {
  margin-top: 14px;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: #3a3c41;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.genre-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.3;
  color: #33353a;
  background: var(--paper);
}

.genre-tags a:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  text-decoration: none;
}

.hero-figure {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* ---- 首页通用区块外壳 ---- */

.home-main > section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px var(--gutter) 0;
}

.home-main > section:last-of-type {
  padding-bottom: 8px;
}

/* ---- 本周更新结论与更新表 ---- */

.update-brief .table-wrap {
  margin-top: 18px;
}

/* ---- 六类题材范围索引 ---- */

.genre-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.genre-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px 18px 16px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 88px;
}

.genre-block h3 {
  font-size: 17px;
  color: var(--ink);
}

.genre-cover {
  font-size: 14px;
  line-height: 1.75;
  color: #33353a;
}

.genre-mix {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.genre-block a {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
}

.genre-block a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- 封面墙 ---- */

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover {
  border-color: #c2c3c7;
  box-shadow: inset 3px 0 0 var(--accent);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  background: var(--tint);
}

.cover-card h3 {
  padding: 12px 14px 0;
  font-size: 16px;
  line-height: 1.5;
}

.cover-meta {
  padding: 4px 14px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.cover-status {
  padding: 8px 14px 14px;
  margin-top: auto;
}

/* ---- 目录阅读顺序 ---- */

.order-list {
  counter-reset: order;
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.order-list li {
  position: relative;
  padding: 12px 16px 12px 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.7;
}

.order-list li::before {
  counter-increment: order;
  content: counter(order, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-deep);
}

.order-list strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---- 每周排期摘要 ---- */

.schedule-strip .table-wrap {
  margin-top: 18px;
}

/* ---- 目录标记读法 ---- */

.mark-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.mark-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mark-row dt {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.mark-row dd {
  font-size: 15px;
  line-height: 1.75;
  color: #33353a;
}

.mark-row dd .num {
  color: var(--ink);
}

/* ---- 最近变更摘要 ---- */

.mini-timeline {
  margin-top: 20px;
  border-left: 2px solid var(--line);
  padding-left: 20px;
  display: grid;
  gap: 18px;
}

.mini-timeline li {
  position: relative;
  min-width: 0;
}

.mini-timeline li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.mini-timeline time {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.mini-timeline h3 {
  margin-top: 2px;
  font-size: 16px;
}

.mini-timeline p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: #3a3c41;
}

/* ---- 说明与反馈 ---- */

.notes-and-feedback {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.notes-col,
.feedback-col {
  min-width: 0;
}

.notes-col h2,
.feedback-col h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.boundary-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: #33353a;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.feedback-col > p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: #33353a;
}

.feedback-steps {
  counter-reset: fb;
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.feedback-steps li {
  position: relative;
  padding: 10px 14px 10px 44px;
  background: var(--tint);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
  color: #33353a;
}

.feedback-steps li::before {
  counter-increment: fb;
  content: counter(fb, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-deep);
}

.feedback-col .btn-ghost {
  margin-top: 18px;
}

/* ============ 内页通用：图片块 ============ */

.entry-figure,
.genre-figure,
.timeline-figure,
.mark-figure,
.page-figure {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint);
}

.entry-figure img,
.genre-figure img,
.timeline-figure img,
.mark-figure img,
.page-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.entry-figure figcaption,
.genre-figure figcaption,
.timeline-figure figcaption,
.mark-figure figcaption,
.page-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* ============ 作品目录 ============ */

.list-guide {
  margin-top: 28px;
}

.list-guide h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.guide-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.guide-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 14px;
  background: var(--tint);
  border-radius: var(--radius);
}

.guide-num {
  font-size: 13px;
  line-height: 1.9;
  color: var(--accent-deep);
}

.guide-list p {
  font-size: 15px;
  line-height: 1.75;
  color: #33353a;
}

.entry-table {
  margin-top: 36px;
}

.entry-table h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.entry-table .table-conclusion {
  margin: 14px 0 16px;
}

.entry-table .table-limit {
  margin-top: 12px;
}

.cell-cover {
  width: 72px;
}

.cell-name {
  min-width: 160px;
  font-weight: 600;
}

.cell-mark {
  white-space: nowrap;
}

.cell-date {
  white-space: nowrap;
  color: #33353a;
}

.status-rule {
  margin-top: 36px;
}

.status-rule h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rule-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.rule-list dt {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.rule-list dd {
  font-size: 15px;
  line-height: 1.75;
  color: #33353a;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rule-list dd:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

/* ============ 题材分类 ============ */

.genre-anchors {
  position: sticky;
  top: 64px;
  z-index: 20;
  margin-top: 20px;
  padding: 10px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.genre-anchors ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-anchors a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.3;
  background: var(--tint);
}

.genre-anchors a:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--paper);
  text-decoration: none;
}

.genre-blocks {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.genre-blocks > h2,
.genre-blocks > .section-lead {
  grid-column: 1 / -1;
}

.genre-blocks h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.genre-blocks .genre-block {
  background: var(--paper);
  border: 1px solid var(--line);
}

.genre-blocks article.genre-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-label {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--paper);
  background: var(--muted);
  border-radius: 3px;
  vertical-align: 1px;
}

.genre-common {
  font-size: 14px;
  line-height: 1.75;
  color: #33353a;
}

.genre-entry {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
}

.genre-entry:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.genre-entry-map {
  margin-top: 40px;
}

.genre-entry-map h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.genre-entry-map .table-scroll,
.genre-entry-map .table-wrap {
  margin-top: 16px;
}

.genre-entry-map table {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.classify-rule {
  margin-top: 40px;
}

.classify-rule h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.classify-rule .step-list {
  margin-top: 16px;
}

/* ============ 更新排期 ============ */

.week-summary {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 20px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.week-summary-text {
  min-width: 0;
}

.week-summary-text h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.week-summary-figure {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.week-summary-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.week-summary-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.view-switch {
  display: flex;
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
}

.view-tab {
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  line-height: 1.3;
  color: #33353a;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.view-tab:last-child {
  border-right: 0;
}

.view-tab:hover {
  background: var(--tint);
}

.view-tab.is-active {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.schedule-panel {
  margin-top: 24px;
}

.schedule-panel[hidden] {
  display: none;
}

.panel-title {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.panel-title:focus {
  outline: none;
}

.panel-lead {
  margin: 12px 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: #33353a;
}

.schedule-table tbody th {
  background: var(--tint);
  font-size: 14px;
}

.schedule-table .num-col {
  text-align: right;
}

.delay-rule {
  margin-top: 40px;
}

.delay-rule h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.delay-rule > p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: #33353a;
}

.delay-rule .rule-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.delay-rule .rule-list li {
  position: relative;
  padding: 10px 14px 10px 18px;
  background: var(--tint);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.75;
  color: #33353a;
}

.delay-rule .rule-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.delay-rule .rule-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============ 更新记录 ============ */

.log-intro {
  margin-top: 28px;
}

.log-intro h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.log-intro-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}

.log-intro-col {
  min-width: 0;
  padding: 14px 16px;
  background: var(--tint);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.75;
  color: #33353a;
}

.timeline {
  margin-top: 40px;
  max-width: 900px;
}

.timeline h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.timeline-list {
  margin-top: 20px;
  display: grid;
  gap: 0;
}

.timeline-node {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.timeline-node:first-child {
  border-top: 0;
}

.timeline-date {
  min-width: 0;
  padding-top: 2px;
}

.timeline-date time {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.timeline-event {
  min-width: 0;
  position: relative;
  padding-left: 18px;
}

.timeline-event::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-event h3 {
  font-size: 16px;
  line-height: 1.5;
}

.timeline-context {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.8;
  color: #33353a;
}

.timeline-impact {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  padding-left: 10px;
  border-left: 2px solid var(--line);
}

/* ============ 目录标记 ============ */

.mark-groups {
  margin-top: 36px;
}

.mark-groups h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mark-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.mark-group:last-of-type {
  border-bottom: 0;
}

.mark-group h3 {
  font-size: 17px;
}

.mark-sample {
  margin-top: 10px;
}

.mark-group > p {
  margin-top: 8px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: #33353a;
}

.mark-warn {
  font-size: 14px;
  line-height: 1.75;
  color: var(--accent-deep);
  padding-left: 10px;
  border-left: 2px solid var(--accent);
}

.mark-warn .mark-code {
  background: #fdf1ed;
  border-color: #f0c9bc;
}

.spec-log {
  margin-top: 40px;
}

.spec-log h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.spec-log table {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cell-num {
  white-space: nowrap;
  color: var(--muted);
}

/* ============ 反馈说明 ============ */

.feedback-types {
  margin-top: 32px;
}

.feedback-types h2,
.required-info h2,
.process-steps h2,
.faq h2,
.self-check h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.feedback-types .table-wrap {
  margin-top: 16px;
}

.feedback-types tbody th {
  background: var(--tint);
  font-size: 14px;
  white-space: nowrap;
}

.required-info {
  margin-top: 36px;
}

.info-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.info-list li {
  position: relative;
  padding: 10px 14px 10px 18px;
  background: var(--tint);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.75;
  color: #33353a;
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.info-list strong {
  color: var(--ink);
  font-weight: 600;
}

.process-steps {
  margin-top: 36px;
}

.process-steps .step-list {
  margin-top: 16px;
  counter-reset: none;
}

.process-steps .step-list > li {
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-steps .step-list > li::before {
  content: none;
}

.step-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px;
  align-items: start;
}

.step-num {
  grid-row: span 2;
  font-size: 15px;
  line-height: 1.6;
  color: var(--accent-deep);
}

.step-item h3 {
  font-size: 16px;
  line-height: 1.5;
}

.step-item p {
  font-size: 15px;
  line-height: 1.75;
  color: #33353a;
}

.process-steps .section-note {
  margin-top: 12px;
}

.faq {
  margin-top: 36px;
}

.faq .section-lead {
  margin-bottom: 16px;
}

.self-check {
  margin-top: 36px;
}

.check-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.check-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.3;
  background: var(--tint);
}

.check-links a:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--paper);
  text-decoration: none;
}

/* ============ 404 ============ */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}

.error-block {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-size: 13px;
  line-height: 1.6;
  color: var(--accent-deep);
}

.error-block h1 {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.3;
}

.error-lead {
  margin-top: 12px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.8;
  color: #33353a;
}

.error-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-home,
.error-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.error-home {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.error-home:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--paper);
  text-decoration: none;
}

.error-link {
  background: var(--paper);
  color: var(--accent-deep);
  border: 1px solid var(--accent-deep);
}

.error-link:hover {
  background: #fdf1ed;
  text-decoration: none;
}

.error-guide {
  margin-top: 36px;
}

.error-guide h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.error-guide ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.error-guide li a {
  display: block;
  padding: 12px 16px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.6;
  background: var(--tint);
}

.error-guide li a:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--paper);
  text-decoration: none;
}

.error-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   5. responsive —— 960px 与 640px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  :root {
    --gutter: 20px;
  }

  .header-inner {
    min-height: 56px;
    gap: 16px;
  }

  .site-nav {
    display: none;
  }

  .header-note {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .page-header {
    min-height: 112px;
    padding: 16px 0 18px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 36px;
  }

  .hero-figure {
    order: 2;
  }

  .hero-text {
    order: 1;
  }

  .hero-text h1 {
    max-width: none;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-desc {
    max-width: none;
  }

  .genre-anchors {
    top: 56px;
  }

  .week-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .week-summary-figure {
    order: 2;
  }

  .week-summary-text {
    order: 1;
  }

  .log-intro-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline {
    max-width: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  .inner-main {
    padding-bottom: 48px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 12px;
  }

  .page-header {
    min-height: 112px;
  }

  .page-title {
    font-size: 26px;
  }

  section.page-title {
    padding-top: 14px;
  }

  .page-lead {
    font-size: 15px;
  }

  .hero-inner {
    padding-top: 26px;
    padding-bottom: 32px;
    gap: 22px;
  }

  .hero-lead {
    margin-top: 12px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    flex: 1 1 140px;
  }

  .genre-tags {
    margin-top: 20px;
    padding-top: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .genre-tags::-webkit-scrollbar {
    display: none;
  }

  .genre-tags a {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .hero-figure img {
    aspect-ratio: 4 / 3;
  }

  .home-main > section {
    padding-top: 32px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .section-sub {
    flex: 1 1 auto;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .cover-grid {
    gap: 12px;
  }

  .cover-card h3 {
    font-size: 15px;
    padding: 10px 12px 0;
  }

  .cover-meta {
    padding: 4px 12px 0;
    font-size: 12px;
  }

  .cover-status {
    padding: 6px 12px 12px;
  }

  .mark-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .notes-and-feedback {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .mini-timeline {
    padding-left: 16px;
  }

  .mini-timeline li::before {
    left: -23px;
  }

  .dir-table,
  .data-table {
    min-width: 520px;
    font-size: 14px;
  }

  .dir-table thead th,
  .data-table thead th {
    padding: 10px 10px;
  }

  .dir-table tbody td,
  .data-table tbody td,
  .data-table tbody th {
    padding: 10px 10px;
  }

  .entry-table .table-scroll {
    border-radius: var(--radius);
  }

  .guide-list li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
  }

  .genre-anchors {
    top: 56px;
    margin-top: 16px;
    padding: 8px 0;
  }

  .genre-anchors ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .genre-anchors ul::-webkit-scrollbar {
    display: none;
  }

  .genre-anchors a {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .genre-blocks {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 28px;
  }

  .classify-rule {
    margin-top: 32px;
  }

  .week-summary {
    margin-top: 20px;
    padding: 16px;
  }

  .view-switch {
    width: 100%;
    margin-top: 20px;
  }

  .view-tab {
    flex: 1 1 0;
    padding: 0 12px;
    min-height: 48px;
  }

  .schedule-panel {
    margin-top: 18px;
  }

  .delay-rule {
    margin-top: 32px;
  }

  .log-intro {
    margin-top: 20px;
  }

  .timeline {
    margin-top: 32px;
  }

  .timeline-node {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 0;
  }

  .timeline-event {
    padding-left: 16px;
  }

  .timeline-event::before {
    top: 7px;
  }

  .mark-groups {
    margin-top: 28px;
  }

  .mark-group {
    padding: 16px 0;
  }

  .mark-warn {
    font-size: 13px;
  }

  .spec-log {
    margin-top: 32px;
  }

  .feedback-types {
    margin-top: 24px;
  }

  .required-info,
  .process-steps,
  .faq,
  .self-check {
    margin-top: 30px;
  }

  .step-item {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 14px;
  }

  .related-links {
    margin-top: 34px;
  }

  .related-links ul,
  .related-list {
    flex-direction: column;
    align-items: stretch;
  }

  .related-links a,
  .related-list a {
    justify-content: flex-start;
  }

  .check-links {
    flex-direction: column;
    align-items: stretch;
  }

  .check-links a {
    justify-content: flex-start;
  }

  .entry-figure img,
  .genre-figure img,
  .timeline-figure img,
  .mark-figure img,
  .page-figure img {
    aspect-ratio: 16 / 10;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-group a {
    padding: 8px 0;
    min-height: 40px;
  }

  .footer-bottom {
    padding-bottom: 24px;
  }

  .error-block {
    padding: 44px 0 32px;
  }

  .error-block h1 {
    font-size: 24px;
  }

  .error-actions a {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cover-card {
    transition: none;
  }
}
