/* ==========================================================================
   ciduseo.com — 漫画在线 全站样式
   base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #f8f6f2;
  --ink: #1d1f1e;
  --structure: #2f4e5f;
  --action: #c2653a;
  --line: #ddd8d0;
  --muted: #6e6a64;
  --radius: 4px;
  --container: 1080px;
  --gap: 24px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

h1 { font-size: 32px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }

p {
  margin: 0 0 14px;
}

a {
  color: var(--structure);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--action);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}

ul, ol {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

time {
  font-variant-numeric: tabular-nums;
}

[hidden] {
  display: none !important;
}

/* 通用文字链接 */
.text-link {
  color: var(--structure);
  border-bottom: 1px solid rgba(47, 78, 95, 0.35);
  padding-bottom: 1px;
}

.text-link:hover,
.text-link:focus {
  color: var(--action);
  border-bottom-color: var(--action);
}

.link-more {
  display: inline-block;
  color: var(--action);
  font-weight: 600;
  font-size: 14px;
}

.link-more::after {
  content: " →";
  font-weight: 400;
}

.link-more:hover,
.link-more:focus {
  color: var(--structure);
}

/* --------------------------------------------------------------------------
   layout — 全站骨架
   -------------------------------------------------------------------------- */

.inner-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.site-brand {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.site-brand:hover,
.site-brand:focus {
  color: var(--action);
}

.site-nav {
  flex: 1 1 auto;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: flex-end;
}

.site-nav__item {
  display: block;
}

.site-nav__link {
  display: block;
  padding: 6px 2px;
  font-size: 14px;
  color: var(--structure);
  border-bottom: 2px solid transparent;
}

.site-nav__link:hover,
.site-nav__link:focus {
  color: var(--action);
  border-bottom-color: var(--action);
}

.site-nav__link.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--action);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--structure);
}

.site-main {
  display: block;
}

.site-footer {
  margin-top: 56px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-top: 36px;
  padding-bottom: 28px;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.site-footer__brand {
  font-weight: 600;
  color: var(--ink);
}

.site-footer__link {
  color: var(--muted);
}

.site-footer__link:hover,
.site-footer__link:focus {
  color: var(--action);
}

/* 页脚栏目 */
.footer-col__title {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--structure);
}

.footer-col__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.footer-col__list li {
  margin-bottom: 8px;
}

.footer-col__list a {
  font-size: 14px;
  color: var(--muted);
}

.footer-col__list a:hover,
.footer-col__list a:focus {
  color: var(--action);
}

.footer-col__text {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

.footer-col__link {
  font-size: 13px;
  color: var(--structure);
  font-weight: 600;
}

.footer-col__link:hover,
.footer-col__link:focus {
  color: var(--action);
}

/* 内页统一骨架：面包屑 / 页标题区 / 页内目录 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0 0;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: var(--action);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--structure);
}

.page-header {
  padding: 10px 0 0;
}

.page-title {
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--ink);
}

.page-head {
  padding: 0 0 8px;
}

.page-head__summary,
.page-head__lead {
  font-size: 15px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 14px;
}

.page-head__meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

/* 事实条 */
.fact-bar,
.page-head__facts {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}

.fact-bar__item,
.page-head__fact {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
}

.fact-bar__label {
  color: var(--muted);
}

.fact-bar__value {
  color: var(--ink);
  font-weight: 600;
}

/* 页内目录（通栏条） */
.sub-toc {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 28px;
}

.sub-toc__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sub-toc__label {
  font-size: 13px;
  color: var(--muted);
  flex: 0 0 auto;
}

.sub-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  flex: 1 1 auto;
}

.sub-toc__item {
  display: block;
}

.sub-toc__link {
  display: block;
  font-size: 13px;
  color: var(--structure);
  padding: 4px 0;
}

.sub-toc__link:hover,
.sub-toc__link:focus {
  color: var(--action);
}

.sub-toc__progress,
.page-toc__progress,
.read-progress,
.sub-toc__progress[role="presentation"] {
  display: block;
  position: relative;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  flex: 0 0 120px;
  min-width: 80px;
}

.sub-toc__progress-fill,
.page-toc__progress-bar,
.read-progress__bar,
.sub-toc__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--action);
  transition: width 0.15s linear;
}

/* 双栏布局：主内容在前，aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 300px);
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
}

.page-main {
  min-width: 0;
}

.page-side {
  min-width: 0;
  position: sticky;
  top: 68px;
}

/* 左目录双栏：aside 在前 */
.sidebar-left .page-layout {
  grid-template-columns: minmax(0, 220px) minmax(0, 820px);
}

.page-layout.sidebar-left {
  grid-template-columns: minmax(0, 220px) minmax(0, 820px);
}

.sidebar-left .page-toc,
.sidebar-left .page-side {
  position: sticky;
  top: 68px;
}

.page-content {
  min-width: 0;
}

/* features 页双栏 */
.layout-shell {
  grid-template-columns: minmax(0, 720px) minmax(0, 320px);
}

/* start 页双栏 */
.page-layout__main {
  min-width: 0;
}

.page-layout__side {
  min-width: 0;
  position: sticky;
  top: 68px;
}

/* 页首媒体 */
.page-media {
  margin: 0 0 28px;
}

.page-media__figure {
  margin: 0;
}

.page-media__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.page-media__caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   components
   -------------------------------------------------------------------------- */

/* 通用区块 */
.section {
  margin-bottom: 40px;
}

.section__title,
.section-title {
  font-size: 20px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.section__lead,
.section-lead,
.section-intro {
  font-size: 14px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 18px;
}

.section__note {
  font-size: 13px;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: 12px;
  margin: 14px 0;
}

.section__foot {
  margin: 14px 0 0;
}

/* 表格容器 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* 通用数据表 */
.data-table {
  width: 100%;
  font-size: 14px;
  min-width: 560px;
}

.data-table__caption,
.work-table__caption,
.genre-table__caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.data-table thead th,
.work-table thead th,
.genre-table thead th {
  background: #f2efe9;
  color: var(--structure);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td,
.work-table tbody td,
.genre-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.work-table tbody tr:last-child td,
.genre-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.work-table__row:hover,
.genre-table tbody tr:hover {
  background: #fbf9f5;
}

.data-table__name {
  font-weight: 600;
  color: var(--ink);
}

.data-table__link {
  color: var(--structure);
  border-bottom: 1px solid rgba(47, 78, 95, 0.35);
}

.data-table__link:hover,
.data-table__link:focus {
  color: var(--action);
  border-bottom-color: var(--action);
}

.data-table__cover {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* 状态标记 */
.status,
.status-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  line-height: 1.6;
  white-space: nowrap;
}

.status--ongoing,
.status-tag--ongoing {
  color: var(--structure);
  border-color: rgba(47, 78, 95, 0.4);
  background: rgba(47, 78, 95, 0.06);
}

.status--hiatus,
.status-tag--paused {
  color: var(--action);
  border-color: rgba(194, 101, 58, 0.4);
  background: rgba(194, 101, 58, 0.07);
}

.status--completed,
.status-tag--completed {
  color: var(--muted);
  border-color: var(--line);
  background: #f2efe9;
}

/* 题材标签 */
.genre-tag {
  display: inline-block;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 78, 95, 0.4);
  color: var(--structure);
  background: #fff;
  line-height: 1.6;
}

.genre-tag:hover,
.genre-tag:focus {
  color: var(--action);
  border-color: var(--action);
}

/* 折叠按钮 */
.fold-toggle,
.collapse-toggle {
  display: inline-block;
  margin: 8px 0 0;
  padding: 8px 16px;
  min-height: 44px;
  font-size: 14px;
  color: var(--structure);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.fold-toggle:hover,
.fold-toggle:focus,
.collapse-toggle:hover,
.collapse-toggle:focus {
  color: var(--action);
  border-color: var(--action);
}

.fold-panel,
.checklist__panel {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

/* 步骤折叠（首页） */
.step-fold {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.step-fold__title {
  font-size: 17px;
  margin: 0 0 6px;
}

.step-fold__summary {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.step-fold__detail {
  margin: 0 0 10px;
}

.step-fold__detail dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--structure);
  margin-top: 10px;
}

.step-fold__detail dd {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink);
}

.step-fold__links {
  margin: 12px 0 0;
  font-size: 14px;
}

/* 更新摘要（首页） */
.update-brief {
  list-style: none;
  margin: 0;
  padding: 0;
}

.update-brief__item {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.update-brief__item:first-child {
  border-top: 1px solid var(--line);
}

.update-brief__date {
  flex: 0 0 96px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 2px;
}

.update-brief__body {
  min-width: 0;
}

.update-brief__title {
  font-size: 15px;
  margin: 0 0 4px;
}

.update-brief__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* 专题摘要（首页） */
.feature-brief {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-brief__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-brief__title {
  font-size: 16px;
  margin: 0;
}

.feature-brief__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  flex: 1 1 auto;
}

/* 侧栏通用 */
.side-block,
.aside-block,
.side-card,
.page-side__block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.side-block__title,
.aside-block__title,
.side-card__title,
.page-side__title,
.page-side__subtitle {
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--structure);
}

.side-block__text,
.aside-block__text,
.side-card__text {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

.side-list,
.side-card__list,
.page-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-list__item,
.side-card__list li,
.page-side__list li {
  border-bottom: 1px solid var(--line);
}

.side-list__item:last-child,
.side-card__list li:last-child,
.page-side__list li:last-child {
  border-bottom: 0;
}

.side-list__link,
.side-card__link,
.page-side__link,
.aside-block__link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--structure);
  min-height: 44px;
}

.side-list__link:hover,
.side-card__link:hover,
.page-side__link:hover,
.aside-block__link:hover,
.side-list__link:focus,
.side-card__link:focus,
.page-side__link:focus,
.aside-block__link:focus {
  color: var(--action);
}

/* 页内目录（左栏） */
.page-toc__title {
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--structure);
}

.page-toc__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  counter-reset: toc;
}

.page-toc__item {
  border-bottom: 1px solid var(--line);
}

.page-toc__item:last-child {
  border-bottom: 0;
}

.page-toc__link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--structure);
  min-height: 44px;
}

.page-toc__link:hover,
.page-toc__link:focus {
  color: var(--action);
}

/* 相关条目（library） */
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.related-item__link {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--structure);
  margin-bottom: 6px;
}

.related-item__link:hover,
.related-item__link:focus {
  color: var(--action);
}

.related-item__text {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* 相关条目（updates） */
.related-entry__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-entry__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.related-entry__link {
  display: block;
  padding: 16px;
  min-height: 44px;
}

.related-entry__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--structure);
  margin-bottom: 6px;
}

.related-entry__desc {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.related-entry__link:hover .related-entry__name,
.related-entry__link:focus .related-entry__name {
  color: var(--action);
}

/* 相关栏目入口（genres） */
.related-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.related-nav__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.related-nav__link {
  display: block;
  padding: 16px;
  font-size: 14px;
  color: var(--structure);
  min-height: 44px;
}

.related-nav__link:hover,
.related-nav__link:focus {
  color: var(--action);
}

/* 折叠问答（notes） */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 10px;
}

.faq-item__question {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--structure);
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: "+";
  font-size: 18px;
  color: var(--action);
  flex: 0 0 auto;
}

.faq-item[open] .faq-item__question::after {
  content: "−";
}

.faq-item__question:hover {
  color: var(--action);
}

.faq-item__answer {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* 404 */
.error-main__inner {
  padding-top: 40px;
  padding-bottom: 40px;
}

.error-head {
  margin-bottom: 24px;
}

.error-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
}

.error-block__title {
  font-size: 18px;
  margin: 0 0 14px;
}

.error-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.error-list__item {
  border-bottom: 1px solid var(--line);
}

.error-list__item:last-child {
  border-bottom: 0;
}

.error-list__item .text-link {
  display: block;
  padding: 10px 0;
  min-height: 44px;
  border-bottom: 0;
}

.error-list__item .text-link:hover,
.error-list__item .text-link:focus {
  color: var(--action);
}

.btn-primary {
  display: inline-block;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: var(--radius);
  background: var(--action);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #a8542d;
  color: #fff;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

/* 首屏信息带 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 40px;
  align-items: start;
  padding: 40px 0 36px;
}

.hero__text {
  min-width: 0;
}

.hero__title {
  font-size: 32px;
  margin: 0 0 10px;
}

.hero__slogan {
  font-size: 17px;
  font-weight: 600;
  color: var(--structure);
  margin: 0 0 12px;
}

.hero__lead {
  font-size: 15px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 20px;
}

.hero__facts {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}

.hero__fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  min-width: 0;
}

.hero__fact-label {
  color: var(--muted);
}

.hero__fact-value {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.hero__cta {
  display: inline-block;
  padding: 12px 26px;
  min-height: 44px;
  border-radius: var(--radius);
  background: var(--action);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.hero__cta:hover,
.hero__cta:focus {
  background: #a8542d;
  color: #fff;
}

.hero__figure {
  margin: 0;
  min-width: 0;
}

.hero__figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero__caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* 作品索引精选表 */
.section--pick .data-table {
  min-width: 680px;
}

/* 题材分类速览轴 */
.genre-axis {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.genre-axis__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.genre-axis__note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* 阅读入门三步折叠 */
.section--start .step-fold:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages — 作品索引 library
   -------------------------------------------------------------------------- */

.page-library .dimension-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.page-library .dimension {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
}

.page-library .dimension__title {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--structure);
}

.page-library .dimension__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.page-library .work-table {
  width: 100%;
  font-size: 14px;
  min-width: 860px;
}

.page-library .work-table__th--cover {
  width: 84px;
}

.page-library .work-table__th--name {
  min-width: 160px;
}

.page-library .work-table__th--num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.page-library .work-table__cell--cover {
  width: 84px;
}

.page-library .work-table__cell--name {
  font-weight: 600;
  color: var(--ink);
  min-width: 160px;
}

.page-library .work-table__cell--num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-library .work-table__cover {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.page-library .row-link,
.page-library .tag-link {
  color: var(--structure);
  border-bottom: 1px solid rgba(47, 78, 95, 0.35);
  white-space: nowrap;
}

.page-library .row-link:hover,
.page-library .row-link:focus,
.page-library .tag-link:hover,
.page-library .tag-link:focus {
  color: var(--action);
  border-bottom-color: var(--action);
}

.page-library .table-note {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}

.page-library .status-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.page-library .status-guide__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
}

.page-library .status-guide__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  margin: 0 0 8px;
}

.page-library .status-guide__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages — 题材分类 genres
   -------------------------------------------------------------------------- */

.page-genres .genre-table {
  width: 100%;
  font-size: 14px;
  min-width: 620px;
}

.page-genres .genre-table-section .table-wrap {
  overflow-x: auto;
}

.page-genres .genre-entry {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.page-genres .genre-entry:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-genres .genre-entry__media {
  margin: 0 0 16px;
}

.page-genres .genre-entry__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.page-genres .genre-entry__media figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.page-genres .genre-entry__sub {
  font-size: 16px;
  margin: 20px 0 8px;
  color: var(--structure);
}

.page-genres .genre-entry p {
  font-size: 14px;
  max-width: 62ch;
}

.page-genres .genre-entry__works {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-genres .genre-entry__work {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  min-width: 0;
}

.page-genres .genre-entry__work .text-link {
  display: block;
  padding: 12px 14px;
  min-height: 44px;
  border-bottom: 0;
  font-size: 14px;
}

.page-genres .genre-entry__work .text-link:hover,
.page-genres .genre-entry__work .text-link:focus {
  color: var(--action);
}

.page-genres .genre-tags-section p {
  font-size: 14px;
  max-width: 62ch;
}

.page-genres .genre-tags-section__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-genres .genre-tags-section__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--muted);
}

.page-genres .genre-features-section__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-genres .genre-features-section__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages — 更新公告 updates
   -------------------------------------------------------------------------- */

.page-updates .updates-timeline {
  margin-bottom: 40px;
}

.page-updates .timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-updates .timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.page-updates .timeline-item:first-child {
  border-top: 1px solid var(--line);
}

.page-updates .timeline-item__date {
  font-size: 13px;
  color: var(--muted);
  padding-top: 3px;
}

.page-updates .timeline-item__body {
  min-width: 0;
}

.page-updates .timeline-item__title {
  font-size: 16px;
  margin: 0 0 6px;
}

.page-updates .timeline-item__meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

.page-updates .timeline-item__text {
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 8px;
}

.page-updates .timeline-item__link {
  font-size: 13px;
  color: var(--structure);
  border-bottom: 1px solid rgba(47, 78, 95, 0.35);
}

.page-updates .timeline-item__link:hover,
.page-updates .timeline-item__link:focus {
  color: var(--action);
  border-bottom-color: var(--action);
}

.page-updates .status-table {
  margin-bottom: 40px;
}

.page-updates .status-table .data-table {
  min-width: 560px;
}

.page-updates .update-rule {
  margin-bottom: 40px;
}

.page-updates .update-rule__block {
  border-left: 3px solid var(--line);
  padding: 4px 0 4px 16px;
  margin-bottom: 18px;
}

.page-updates .update-rule__subtitle {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--structure);
}

.page-updates .update-rule__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

.page-updates .crosscheck {
  margin-bottom: 40px;
}

.page-updates .crosscheck__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: cross;
}

.page-updates .crosscheck__step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.page-updates .crosscheck__step:first-child {
  border-top: 1px solid var(--line);
}

.page-updates .crosscheck__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--structure);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.page-updates .crosscheck__step-body {
  min-width: 0;
}

.page-updates .crosscheck__step-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.page-updates .crosscheck__step-text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.page-updates .crosscheck__note {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 0;
}

.page-updates .crosscheck__note .text-link {
  margin-right: 12px;
}

.page-updates .related-entry {
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   pages — 阅读入门 start
   -------------------------------------------------------------------------- */

.page-start .step-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px 24px;
  margin-bottom: 24px;
}

.page-start .step-block__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-start .step-block__index {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--structure);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.page-start .step-block__title {
  font-size: 19px;
  margin: 0;
}

.page-start .step-block__body {
  min-width: 0;
}

.page-start .step-block__intro {
  font-size: 14px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 16px;
}

.page-start .step-block__figure {
  margin: 0 0 18px;
}

.page-start .step-block__figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.page-start .step-block__caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.page-start .step-block__phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.page-start .step-phase {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf9f5;
  padding: 14px 16px;
  min-width: 0;
}

.page-start .step-phase__title {
  font-size: 14px;
  margin: 0 0 6px;
  color: var(--structure);
}

.page-start .step-phase__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.page-start .step-block__links {
  margin: 0;
  font-size: 14px;
}

.page-start .step-block__links .text-link {
  margin-right: 14px;
}

.page-start .habits {
  margin-bottom: 24px;
}

.page-start .habits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.page-start .habits__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
  min-width: 0;
}

.page-start .habits__item-title {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--structure);
}

.page-start .habits__item-text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.page-start .checklist {
  margin-bottom: 24px;
}

.page-start .checklist__list {
  margin: 0;
  padding-left: 1.2em;
}

.page-start .checklist__item {
  font-size: 14px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.page-start .checklist__item:last-child {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages — 专题企划 features
   -------------------------------------------------------------------------- */

.page-features .feature-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.page-features .feature-item__media {
  margin: 0 0 16px;
}

.page-features .feature-item__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.page-features .feature-item__caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.page-features .feature-item__title {
  font-size: 19px;
  margin: 0 0 8px;
}

.page-features .feature-item__clue {
  font-size: 14px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 12px;
}

.page-features .feature-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.page-features .feature-item__subtitle {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--structure);
}

.page-features .feature-item__order {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.page-features .feature-item__order li {
  font-size: 14px;
  padding: 4px 0;
}

.page-features .feature-item__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--action);
  min-height: 44px;
  padding: 10px 0;
}

.page-features .feature-item__link:hover,
.page-features .feature-item__link:focus {
  color: var(--structure);
}

.page-features .feature-relation {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.page-features .feature-relation__title {
  font-size: 19px;
  margin: 0 0 10px;
}

.page-features .feature-relation__text {
  font-size: 14px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 12px;
}

.page-features .feature-relation__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--action);
  min-height: 44px;
  padding: 10px 0;
}

.page-features .feature-relation__link:hover,
.page-features .feature-relation__link:focus {
  color: var(--structure);
}

.page-features .feature-toc__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.page-features .feature-toc__item {
  border-bottom: 1px solid var(--line);
}

.page-features .feature-toc__item:last-child {
  border-bottom: 0;
}

.page-features .feature-toc__link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--structure);
  min-height: 44px;
}

.page-features .feature-toc__link:hover,
.page-features .feature-toc__link:focus {
  color: var(--action);
}

/* --------------------------------------------------------------------------
   pages — 内容说明 notes
   -------------------------------------------------------------------------- */

.page-notes .page-side {
  min-width: 0;
}

.page-notes .sub-toc--side .sub-toc__list {
  display: block;
  margin: 0 0 14px;
}

.page-notes .sub-toc--side .sub-toc__item {
  border-bottom: 1px solid var(--line);
}

.page-notes .sub-toc--side .sub-toc__item:last-child {
  border-bottom: 0;
}

.page-notes .sub-toc--side .sub-toc__link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  min-height: 44px;
}

.page-notes .content-block {
  margin-bottom: 40px;
}

.page-notes .content-block__title {
  font-size: 20px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.page-notes .content-block__lead {
  font-size: 14px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 16px;
}

.page-notes .content-block__note {
  font-size: 13px;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: 12px;
  margin: 16px 0 0;
}

.page-notes .data-table {
  min-width: 560px;
}

.page-notes .label-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.page-notes .label-item__title {
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--structure);
}

.page-notes .label-item__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.page-notes .feedback-step {
  border-left: 3px solid var(--line);
  padding: 4px 0 4px 16px;
  margin-bottom: 16px;
}

.page-notes .feedback-step__title {
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--structure);
}

.page-notes .feedback-step__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   responsive — 960px
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .site-header__inner {
    min-height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav__list {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }

  .site-nav__list.is-open {
    display: flex;
  }

  .site-nav__item {
    border-bottom: 1px solid var(--line);
  }

  .site-nav__item:last-child {
    border-bottom: 0;
  }

  .site-nav__link {
    padding: 12px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 0;
    font-size: 15px;
  }

  .site-nav__link.is-current {
    border-bottom: 0;
    color: var(--action);
  }

  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 28px 0 24px;
  }

  .hero__figure {
    order: -1;
  }

  .hero__figure img {
    height: 240px;
  }

  .page-layout,
  .page-layout.sidebar-left,
  .sidebar-left .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-side,
  .page-layout__side,
  .sidebar-left .page-toc,
  .sidebar-left .page-side {
    position: static;
    top: auto;
  }

  /* 侧栏整体下移：DOM 中主内容在前，此处无需 order 调整；
     genres / notes 的 aside 在 DOM 中位于 main 之前，需把正文提前 */
  .sidebar-left .page-toc,
  .sidebar-left .page-side {
    order: 2;
  }

  .sidebar-left .page-content {
    order: 1;
  }

  .page-library .dimension-list,
  .page-library .status-guide,
  .related-list,
  .related-entry__list,
  .related-nav__list,
  .feature-brief,
  .genre-axis,
  .page-start .step-block__phases,
  .page-start .habits__list,
  .page-genres .genre-entry__works,
  .page-genres .genre-tags-section__list,
  .page-genres .genre-features-section__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-media__img {
    height: 220px;
  }

  .page-genres .genre-entry__media img {
    height: 190px;
  }

  .page-features .feature-item__media img {
    height: 190px;
  }
}

/* --------------------------------------------------------------------------
   responsive — 640px
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }

  .page-title {
    font-size: 22px;
  }

  .hero__title {
    font-size: 22px;
  }

  .hero__slogan {
    font-size: 16px;
  }

  .hero__facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .hero__figure img {
    height: 200px;
  }

  .hero__cta {
    display: block;
    text-align: center;
    width: 100%;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 28px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* 页内目录条：横向可滚动 */
  .sub-toc__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .sub-toc__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 0 18px;
  }

  .sub-toc__item {
    flex: 0 0 auto;
  }

  .sub-toc__progress,
  .page-toc__progress,
  .read-progress,
  .sub-toc__progress[role="presentation"] {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }

  .page-layout,
  .page-layout.sidebar-left,
  .sidebar-left .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  /* 单列布局下的模块 */
  .page-library .dimension-list,
  .page-library .status-guide,
  .related-list,
  .related-entry__list,
  .related-nav__list,
  .feature-brief,
  .genre-axis,
  .page-start .step-block__phases,
  .page-start .habits__list,
  .page-genres .genre-entry__works,
  .page-genres .genre-tags-section__list,
  .page-genres .genre-features-section__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-media__img {
    height: 180px;
  }

  .page-genres .genre-entry__media img {
    height: 170px;
  }

  .page-features .feature-item__media img {
    height: 170px;
  }

  .page-start .step-block__figure img {
    height: 170px;
  }

  /* 属性表转定义列表：不横向滚动 */
  .table-wrap {
    border: 0;
    background: transparent;
    overflow-x: visible;
  }

  .data-table,
  .work-table,
  .genre-table,
  .page-library .work-table,
  .page-genres .genre-table,
  .page-notes .data-table,
  .page-updates .status-table .data-table {
    min-width: 0;
  }

  .data-table thead,
  .work-table thead,
  .genre-table thead {
    display: none;
  }

  .data-table__caption,
  .work-table__caption,
  .genre-table__caption {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }

  .data-table tbody,
  .work-table tbody,
  .genre-table tbody {
    display: block;
  }

  .data-table tbody tr,
  .work-table__row,
  .genre-table tbody tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 12px 14px;
    margin-bottom: 12px;
  }

  .data-table tbody tr:hover,
  .work-table__row:hover,
  .genre-table tbody tr:hover {
    background: #fff;
  }

  .data-table tbody th,
  .data-table tbody td,
  .work-table tbody td,
  .genre-table tbody td {
    display: block;
    border-bottom: 0;
    padding: 4px 0;
    width: auto;
  }

  .data-table tbody th:first-child,
  .data-table tbody td:first-child {
    padding-top: 0;
  }

  .data-table__cover,
  .page-library .work-table__cover {
    width: 60px;
    height: 80px;
  }

  .page-library .work-table__cell--cover,
  .page-library .work-table__th--cover {
    width: auto;
  }

  /* 时间轴：日期移到标题上方 */
  .page-updates .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .page-updates .timeline-item__date {
    padding-top: 0;
  }

  .page-updates .crosscheck__step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .update-brief__item {
    flex-direction: column;
    gap: 6px;
  }

  .update-brief__date {
    flex: 0 0 auto;
  }

  .fact-bar,
  .page-head__facts {
    flex-direction: column;
    gap: 8px;
  }

  .fact-bar__item,
  .page-head__fact {
    display: block;
  }

  .fact-bar__label {
    display: block;
  }

  .page-start .step-block {
    padding: 18px 16px;
  }

  .page-features .feature-item,
  .page-features .feature-relation {
    padding: 16px;
  }

  .error-block {
    padding: 18px;
  }

  .btn-primary {
    display: block;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   motion — 仅增强，不影响初始可见性
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .link-more,
  .text-link,
  .site-nav__link,
  .side-list__link,
  .side-card__link,
  .page-side__link,
  .page-toc__link,
  .feature-toc__link,
  .related-item__link,
  .related-entry__link,
  .related-nav__link,
  .genre-tag,
  .faq-item__question {
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  }

  .sub-toc__progress-fill,
  .page-toc__progress-bar,
  .read-progress__bar,
  .sub-toc__progress-bar {
    transition: width 0.2s ease-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
