/* ==========================================================================
   黑料大瓜 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #FBF8F1;
  --paper-alt: #F2EDE1;
  --ink: #14161A;
  --ink-soft: #4A4F57;
  --accent: #A8121E;
  --accent-dark: #7E0D16;
  --teal: #0B4F6C;
  --focus: #1F5FD0;
  --rule: #D8D2C4;
  --rule-strong: #B9B2A1;
  --radius: 2px;
  --wrap: 1140px;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
figcaption,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 19px;
}

h4 {
  font-size: 17px;
}

p {
  font-size: 17px;
  line-height: 1.85;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

time,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
  letter-spacing: 0;
}

strong {
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 40;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  line-height: 1.2;
}

.brand-slogan {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list > li {
  display: block;
}

.nav-list a {
  display: inline-block;
  padding: 8px 10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius);
}

.nav-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--rule-strong);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.site-main {
  display: block;
}

.home-main,
.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  padding-top: 20px;
  padding-bottom: 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  padding: 4px 0 12px;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: underline;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--rule-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 */
.page-header {
  padding: 6px 0 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.page-head {
  padding: 0 0 24px;
}

.page-lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 46em;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.meta-label {
  color: var(--ink-soft);
}

.meta-sep {
  color: var(--rule-strong);
}

.meta-item {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 页脚 */
.site-footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  padding: 0 0 24px;
}

.footer-back {
  display: block;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: underline;
  border-bottom: 1px solid var(--rule);
}

.footer-back:hover {
  color: var(--accent);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 8px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px 28px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-col a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-note {
  max-width: var(--wrap);
  margin: 20px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 移动端底部任务导航 */
.task-nav,
.mobile-task-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.task-nav-list,
.mobile-task-nav ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.task-nav-list a,
.mobile-task-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 6px 4px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-soft);
  text-align: center;
  text-decoration: none;
}

.task-nav-list a.is-current,
.mobile-task-nav a.is-current {
  color: var(--accent);
  font-weight: 700;
  border-top: 2px solid var(--accent);
}

/* --------------------------------------------------------------------------
   components · 通用部件
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--paper-alt);
  color: var(--ink);
}

/* 区块标题 */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.section-head h2 {
  position: relative;
  padding-left: 12px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--accent);
}

.section-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.section-title,
.section-lead,
.section-block h2,
.section-block h3 {
  position: relative;
}

.section-title {
  padding-left: 12px;
  margin-bottom: 8px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--accent);
}

.section-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* 图片与图注 */
figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: var(--paper-alt);
  white-space: nowrap;
}

.tag-suspense {
  color: var(--accent);
  border-color: var(--accent);
}

.tag-showbiz {
  color: var(--teal);
  border-color: var(--teal);
}

.tag-workplace {
  color: #5B4A0F;
  border-color: #A98A2A;
}

.tag-family {
  color: #4A2C5B;
  border-color: #7A4F94;
}

/* FAQ 折叠 */
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}

.faq-question,
.faq-item > summary {
  display: block;
  position: relative;
  padding: 12px 36px 12px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker,
.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-question::after,
.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
}

.faq-item[open] > .faq-question::after,
.faq-item[open] > summary::after {
  content: "−";
}

.faq-answer,
.faq-body {
  padding: 0 0 16px;
}

.faq-answer p,
.faq-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.faq-link {
  font-size: 15px;
}

/* 表格 */
.data-table,
.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

.data-table th,
.data-table td,
.field-table th,
.field-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.data-table thead th,
.field-table thead th {
  background: var(--paper-alt);
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--rule-strong);
}

.data-table tbody th,
.field-table tbody th {
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  width: 30%;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  padding-top: 24px;
  padding-bottom: 48px;
}

/* 首屏三分栏 */
.hero {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 32px;
  margin-bottom: 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}

.hero-notice {
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px;
}

.notice-title,
.entries-title {
  font-size: 15px;
  font-weight: 700;
  padding-left: 10px;
  position: relative;
  margin-bottom: 12px;
}

.notice-title::before,
.entries-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--accent);
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--rule);
}

.notice-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.notice-item .mono {
  color: var(--accent);
  font-size: 13px;
}

.notice-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}

.notice-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
}

.hero-main {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--teal);
  margin-bottom: 10px;
}

.hero-main h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 40em;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-entries {
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-item a {
  display: block;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}

.entry-item a:hover {
  border-color: var(--ink);
  color: var(--accent);
}

.entry-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.entry-desc {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* 编号书目速览 */
.quick-list {
  margin-bottom: 40px;
}

.quick-rows {
  border-top: 1px solid var(--rule);
}

.quick-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 96px 104px 88px;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
}

.quick-row:hover {
  border-bottom-color: var(--ink);
}

.quick-no {
  font-size: 15px;
  color: var(--accent);
  font-weight: 700;
}

.quick-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.quick-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.quick-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.quick-state {
  font-size: 13px;
  line-height: 1.6;
  color: var(--teal);
}

.quick-link {
  font-size: 14px;
  text-align: right;
}

/* 主推荐与次推荐 */
.picks {
  margin-bottom: 40px;
}

.picks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.pick-main {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--paper);
}

.pick-main-figure {
  margin: 0 0 14px;
}

.pick-main-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.pick-no {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 4px;
}

.pick-main-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.pick-main-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.pick-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.pick-points li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  font-size: 16px;
  line-height: 1.75;
}

.point-no {
  color: var(--accent);
  font-weight: 700;
}

.pick-main-link {
  font-size: 16px;
  font-weight: 700;
}

.pick-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.pick-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pick-card:hover {
  border-color: var(--ink);
}

.pick-card-figure {
  margin: 0;
}

.pick-card-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pick-card-title {
  font-size: 17px;
  line-height: 1.5;
}

.pick-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.pick-card-link {
  font-size: 14px;
  margin-top: auto;
}

/* 题材档案入口四格 */
.genre-entry {
  margin-bottom: 40px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.genre-cell {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.genre-cell:hover {
  border-color: var(--ink);
}

.genre-name {
  font-size: 18px;
}

.genre-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.genre-sample {
  font-size: 13px;
  color: var(--teal);
}

.genre-link {
  font-size: 14px;
  margin-top: 4px;
}

/* 追更三步路径 */
.path-steps {
  margin-bottom: 40px;
}

.step-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.step-item {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 1px solid var(--rule);
}

.step-item:first-child {
  border-left: 0;
}

.step-no {
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
}

.step-name {
  font-size: 17px;
}

.step-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 整理动态 */
.updates {
  margin-bottom: 40px;
}

.update-rows {
  border-top: 1px solid var(--rule);
}

.update-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 132px;
  align-items: center;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--rule);
}

.update-date {
  font-size: 14px;
  color: var(--teal);
}

.update-text {
  font-size: 16px;
  line-height: 1.7;
}

.update-link {
  font-size: 14px;
  text-align: right;
}

/* 首页问答 */
.faq {
  margin-bottom: 40px;
}

.faq-list {
  border-top: 1px solid var(--rule);
}

/* 纠错与说明入口条 */
.entry-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

.entry-bar-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.entry-bar-title {
  font-size: 19px;
}

.entry-bar-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.entry-bar-link {
  font-size: 15px;
  font-weight: 700;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   pages · 内页通用骨架
   -------------------------------------------------------------------------- */

/* 内页两栏：sidebar-left 时侧栏在前，其余主内容在前 */
.page-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.page-layout.layout-shell {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.main-column,
.content-main {
  min-width: 0;
}

.content-aside,
.genre-sidebar {
  min-width: 0;
}

/* 侧栏标题与说明 */
.sidebar-title,
.aside-title {
  font-size: 17px;
  padding-left: 10px;
  position: relative;
  margin-bottom: 10px;
}

.sidebar-title::before,
.aside-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--accent);
}

.sidebar-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.genre-sidebar,
.content-aside {
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px;
}

/* 侧栏链接块 */
.aside-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-link {
  display: block;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}

.aside-link:hover {
  border-color: var(--ink);
  color: var(--accent);
}

.aside-link-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.aside-link-desc {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* 内页 section 间距 */
.section {
  margin-bottom: 36px;
}

.section-block {
  margin-bottom: 36px;
  padding-bottom: 8px;
}

.section-block h2 {
  padding-left: 12px;
  margin-bottom: 12px;
}

.section-block h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--accent);
}

.section-block h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.section-block p {
  margin-bottom: 12px;
  max-width: 42em;
}

.section-figure,
.media-figure,
.figure-note,
.list-figure,
.guide-figure,
.genre-board-figure {
  margin: 0 0 20px;
}

.section-figure img,
.media-figure img,
.figure-note img,
.list-figure img,
.guide-figure img,
.genre-board-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   pages · 书目总览
   -------------------------------------------------------------------------- */

.genre-index-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.genre-index-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
}

.genre-index-list a:hover {
  border-color: var(--ink);
  color: var(--accent);
}

.genre-index-list .genre-name {
  font-size: 15px;
  font-weight: 700;
}

.genre-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.sidebar-link {
  font-size: 14px;
  line-height: 1.7;
}

.book-list-section > h2,
.field-notes > h2 {
  font-size: 24px;
  padding-left: 12px;
  position: relative;
  margin-bottom: 14px;
}

.book-list-section > h2::before,
.field-notes > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--accent);
}

.book-list {
  border-top: 1px solid var(--rule);
}

.book-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 88px 96px 96px;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 24px;
}

.book-item:hover {
  border-bottom-color: var(--ink);
}

.book-code {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  font-weight: 700;
}

.book-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.book-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.book-summary {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.book-tag {
  font-size: 13px;
  line-height: 1.6;
  color: var(--teal);
  white-space: nowrap;
}

.book-status {
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
  padding-left: 10px;
  border-left: 3px solid var(--rule-strong);
}

.book-status.status-ongoing {
  border-left-color: var(--teal);
  color: var(--teal);
}

.book-status.status-paused {
  border-left-color: #A98A2A;
  color: #6B5410;
}

.book-status.status-new {
  border-left-color: var(--accent);
  color: var(--accent);
}

.book-link {
  font-size: 14px;
  text-align: right;
}

.list-footnote {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.list-footnote a {
  margin-right: 12px;
}

.field-notes {
  margin-top: 40px;
}

.field-table tbody th {
  width: 26%;
}

.field-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.field-note a {
  margin-right: 12px;
}

/* --------------------------------------------------------------------------
   pages · 连载进度
   -------------------------------------------------------------------------- */

.page-hero {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0 18px;
  margin-bottom: 28px;
}

.page-scope {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 46em;
}

.page-hero .page-meta {
  margin-top: 10px;
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper);
}

.legend-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.legend-swatch {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 1px;
  background: var(--rule-strong);
}

.legend-swatch--ongoing {
  background: var(--teal);
}

.legend-swatch--paused {
  background: #A98A2A;
}

.legend-swatch--review {
  background: var(--accent);
}

.legend-swatch--settled {
  background: var(--ink-soft);
}

.legend-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.legend-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.batch-list {
  border-top: 1px solid var(--rule);
}

.batch-row {
  display: grid;
  grid-template-columns: 104px 104px minmax(0, 1fr) minmax(0, 1.2fr) 88px;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--rule);
}

.batch-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

.batch-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  white-space: nowrap;
}

.batch-books {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
}

.batch-change {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.batch-link {
  font-size: 14px;
  text-align: right;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper);
}

.order-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.order-num {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.7;
}

.order-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages · 阅读指南
   -------------------------------------------------------------------------- */

.step-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 8px;
}

.step-strip-item {
  padding: 16px;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-strip-item:first-child {
  border-left: 0;
}

.step-strip-item h3 {
  font-size: 16px;
}

.step-strip-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.guide-overview,
.guide-steps,
.guide-misconceptions,
.guide-faq,
.guide-cta {
  margin-bottom: 36px;
}

.guide-overview > h2,
.guide-steps > h2,
.guide-misconceptions > h2,
.guide-faq > h2 {
  font-size: 24px;
  padding-left: 12px;
  position: relative;
  margin-bottom: 14px;
}

.guide-overview > h2::before,
.guide-steps > h2::before,
.guide-misconceptions > h2::before,
.guide-faq > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--accent);
}

.guide-step {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  background: var(--paper);
  max-width: 46em;
}

.guide-step h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 19px;
  margin-bottom: 8px;
}

.guide-step > p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 12px;
}

.step-info {
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.step-info h4 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--teal);
}

.step-info ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-info li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.step-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.step-pitfall {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  padding-left: 12px;
  border-left: 3px solid #A98A2A;
  margin-bottom: 12px;
}

.pitfall-label {
  font-weight: 700;
  color: #6B5410;
  margin-right: 6px;
}

.step-link {
  font-size: 15px;
  line-height: 1.7;
}

.misconception-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  max-width: 46em;
}

.misconception-text {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
  color: var(--ink);
}

.misconception-fix {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  padding-left: 14px;
  border-left: 3px solid var(--teal);
}

.cta-pair,
.entry-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cta-box,
.entry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.cta-box h3,
.entry-card h3 {
  font-size: 19px;
}

.cta-box p,
.entry-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.cta-link,
.entry-link {
  font-size: 15px;
  font-weight: 700;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   pages · 题材档案
   -------------------------------------------------------------------------- */

.page-title-block {
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}

.page-title-main {
  min-width: 0;
}

.page-title-lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 46em;
}

.genre-files-page .page-meta,
.page-meta .meta-item {
  font-size: 14px;
  color: var(--ink-soft);
}

.genre-index-band {
  margin-bottom: 28px;
}

.genre-index-band > h2 {
  font-size: 24px;
  padding-left: 12px;
  position: relative;
  margin-bottom: 8px;
}

.genre-index-band > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--accent);
}

.genre-band-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.genre-band-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  height: 100%;
}

.genre-band-list a:hover {
  border-color: var(--ink);
  color: var(--accent);
}

.band-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.band-key {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.genre-archive-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.genre-archive {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
  scroll-margin-top: 24px;
}

.genre-archive > h2 {
  font-size: 24px;
  padding-left: 12px;
  position: relative;
  margin-bottom: 10px;
}

.genre-archive > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--accent);
}

.genre-summary {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 42em;
}

.genre-structure {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}

.structure-block {
  min-width: 0;
  padding: 14px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.structure-block h3 {
  font-size: 16px;
  color: var(--teal);
  margin-bottom: 6px;
}

.structure-block p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.genre-samples {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.genre-samples a {
  margin-right: 12px;
}

.genre-tips > h2 {
  font-size: 24px;
  padding-left: 12px;
  position: relative;
  margin-bottom: 14px;
}

.genre-tips > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--accent);
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

.tip-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding-left: 14px;
  border-left: 3px solid var(--teal);
}

.tip-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.tip-item a {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 纠错说明
   -------------------------------------------------------------------------- */

.correction-scope,
.correction-flow,
.correction-prepare,
.correction-exclude,
.correction-links {
  margin-bottom: 36px;
}

.correction-scope > h2,
.correction-flow > h2,
.correction-prepare > h2,
.correction-exclude > h2,
.correction-links > h2 {
  font-size: 24px;
  padding-left: 12px;
  position: relative;
  margin-bottom: 8px;
}

.correction-scope > h2::before,
.correction-flow > h2::before,
.correction-prepare > h2::before,
.correction-exclude > h2::before,
.correction-links > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--accent);
}

.scope-table td:first-child {
  width: 34%;
  font-weight: 700;
  color: var(--ink);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.flow-step {
  padding: 16px;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flow-step:first-child {
  border-left: 0;
}

.flow-step-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.flow-step-name {
  font-size: 16px;
}

.flow-step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.prepare-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.prepare-item {
  min-width: 0;
  padding: 14px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.prepare-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.prepare-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.exclude-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.exclude-item {
  padding-left: 14px;
  border-left: 3px solid #A98A2A;
}

.exclude-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.exclude-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 站点说明
   -------------------------------------------------------------------------- */

.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

.term-table {
  font-size: 15px;
}

.term {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
}

.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 14px;
  color: var(--ink-soft);
  padding-bottom: 8px;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  counter-reset: rule;
}

.rule-list li {
  padding-left: 14px;
  border-left: 3px solid var(--teal);
}

.rule-list h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.rule-list p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.boundary-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.boundary-list strong {
  margin-right: 4px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.error-panel {
  max-width: 640px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-alt);
  padding: 28px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 8px;
}

.error-lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 10px 0 16px;
}

.error-hints {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.error-hints li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.error-hints li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }

  .hero-entries {
    grid-column: 1 / -1;
  }

  .entry-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quick-row {
    grid-template-columns: 64px minmax(0, 1fr) 92px 96px 80px;
    gap: 12px;
  }

  .batch-row {
    grid-template-columns: 96px 96px minmax(0, 1fr) minmax(0, 1.2fr) 76px;
    gap: 10px;
  }
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 8px 16px rgba(20, 22, 26, 0.08);
    padding: 8px 16px 16px;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    padding: 12px 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    min-height: 48px;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--accent);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-notice,
  .hero-entries {
    grid-column: auto;
  }

  .entry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .picks-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .pick-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-row {
    grid-template-columns: 56px minmax(0, 1fr) 84px;
    grid-template-areas:
      "no body tag"
      "no state link";
    row-gap: 4px;
  }

  .quick-no {
    grid-area: no;
    align-self: start;
    padding-top: 2px;
  }

  .quick-body {
    grid-area: body;
  }

  .quick-row .tag {
    grid-area: tag;
    justify-self: start;
  }

  .quick-state {
    grid-area: state;
  }

  .quick-link {
    grid-area: link;
  }

  .step-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-item {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .step-item:first-child {
    border-top: 0;
  }

  .update-row {
    grid-template-columns: 108px minmax(0, 1fr);
    row-gap: 4px;
  }

  .update-link {
    grid-column: 2;
    text-align: left;
  }

  .page-layout.sidebar-left,
  .page-layout.layout-shell,
  .content-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .genre-sidebar {
    padding: 14px;
  }

  .genre-index-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
  }

  .genre-index-list > li {
    flex: 0 0 auto;
  }

  .genre-index-list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 132px;
  }

  .legend-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-row {
    grid-template-columns: 96px minmax(0, 1fr);
    row-gap: 4px;
  }

  .batch-date {
    grid-column: 1;
  }

  .batch-books,
  .batch-change {
    grid-column: 2;
  }

  .batch-link {
    grid-column: 2;
    text-align: left;
  }

  .step-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-strip-item:nth-child(3) {
    border-left: 0;
  }

  .step-strip-item:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .genre-band-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step:nth-child(3) {
    border-left: 0;
  }

  .flow-step:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .task-nav,
  .mobile-task-nav {
    display: block;
  }

  .site-footer {
    padding-bottom: 76px;
  }

  .book-item {
    grid-template-columns: 68px minmax(0, 1fr) 88px;
    grid-template-areas:
      "code body tag"
      "code status link";
    row-gap: 4px;
  }

  .book-code {
    grid-area: code;
    align-self: start;
    padding-top: 2px;
  }

  .book-body {
    grid-area: body;
  }

  .book-tag {
    grid-area: tag;
    justify-self: start;
  }

  .book-status {
    grid-area: status;
  }

  .book-link {
    grid-area: link;
  }
}

@media (max-width: 640px) {
  body.site-body {
    font-size: 16px;
  }

  h1,
  .page-title,
  .hero-main h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 21px;
  }

  .header-inner {
    padding: 12px 16px;
    gap: 12px;
  }

  .brand-mark {
    font-size: 19px;
  }

  .brand-slogan {
    display: none;
  }

  .home-main,
  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-main {
    padding-top: 18px;
  }

  .inner-main {
    padding-bottom: 40px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-header {
    padding: 4px 0 14px;
    margin-bottom: 20px;
  }

  .hero {
    padding-bottom: 24px;
    margin-bottom: 28px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-row {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "no body"
      "no tag"
      "no state"
      "no link";
  }

  .pick-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-link {
    grid-column: auto;
  }

  .entry-bar,
  .cta-pair,
  .entry-pair,
  .prepare-list,
  .genre-structure {
    grid-template-columns: minmax(0, 1fr);
  }

  .legend-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-date,
  .batch-books,
  .batch-change,
  .batch-link {
    grid-column: auto;
  }

  .step-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-strip-item {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .step-strip-item:first-child {
    border-top: 0;
  }

  .flow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-step {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .flow-step:first-child {
    border-top: 0;
  }

  .genre-band-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .book-item {
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-areas:
      "code body"
      "code tag"
      "code status"
      "code link";
  }

  .book-link {
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 22px 16px 8px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-back {
    padding: 12px 16px;
  }

  .footer-note {
    padding: 14px 16px 0;
  }

  .data-table,
  .field-table {
    display: block;
    font-size: 15px;
  }

  .data-table thead,
  .field-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .data-table tbody,
  .data-table tr,
  .data-table td,
  .field-table tbody,
  .field-table tr,
  .field-table th,
  .field-table td {
    display: block;
    width: 100%;
  }

  .data-table tr,
  .field-table tr {
    border-bottom: 1px solid var(--rule-strong);
    padding: 8px 0;
  }

  .data-table td,
  .field-table th,
  .field-table td {
    border-bottom: 0;
    padding: 4px 2px;
  }

  .data-table td:first-child,
  .field-table tbody th {
    font-weight: 700;
    color: var(--ink);
    width: auto;
  }

  .data-table td:first-child::before,
  .field-table tbody th::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    background: var(--accent);
    vertical-align: middle;
  }

  .scope-table td:first-child {
    width: auto;
  }

  .error-main {
    padding: 32px 16px 48px;
  }

  .error-panel {
    padding: 20px;
  }

  .error-code {
    font-size: 32px;
  }

  .error-actions .btn {
    width: 100%;
  }

  .guide-step {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
