/* ==========================================================================
   MR好色 · 都市情感小说阅读目录站
   base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  padding: 0;
  background-color: #f5f6f7;
  color: #22272e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC",
    "STSong", "SimSun", Georgia, serif;
  font-weight: 700;
  color: #1b2027;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: #1f5fbf;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: #164a94;
  text-decoration: underline;
  font-weight: 600;
}

a:focus-visible {
  outline: 2px solid #1f5fbf;
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #d8dde5;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-mark {
  font-family: "Songti SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  font-size: 20px;
  font-weight: 700;
  color: #1b2027;
  line-height: 1.2;
  padding: 6px 0;
  white-space: nowrap;
}

.brand-mark:hover,
.brand-mark:focus-visible {
  color: #1f5fbf;
  text-decoration: none;
}

/* 主导航 */
.primary-nav.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.primary-nav.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
}

.primary-nav.site-nav a {
  display: inline-block;
  padding: 8px 10px;
  font-size: 15px;
  line-height: 1.4;
  color: #3a424c;
  border-radius: 4px;
  white-space: nowrap;
}

.primary-nav.site-nav a:hover,
.primary-nav.site-nav a:focus-visible {
  color: #1f5fbf;
  background-color: #eef2f8;
  text-decoration: none;
  font-weight: 600;
}

.primary-nav.site-nav a.is-current {
  color: #1f5fbf;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #1f5fbf;
  border-radius: 0;
}

/* 移动折叠按钮 */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after,
.nav-toggle span {
  content: "";
}

.nav-toggle::before,
.nav-toggle::after {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background-color: #22272e;
  border-radius: 1px;
}

.nav-toggle::before {
  top: 15px;
  box-shadow: 0 6px 0 #22272e;
}

.nav-toggle::after {
  bottom: 15px;
}

.nav-toggle:hover {
  border-color: #1f5fbf;
}

.nav-toggle[aria-expanded="true"]::before {
  top: 21px;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  bottom: 21px;
  transform: rotate(-45deg);
}

/* 主内容 */
.site-main {
  display: block;
}

.inner-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.home-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 18px 0 4px;
  font-size: 14px;
  line-height: 1.6;
  color: #6a7480;
}

.breadcrumb a {
  color: #1f5fbf;
}

.breadcrumb-sep {
  color: #a8b0ba;
}

.breadcrumb-current {
  color: #6a7480;
}

/* 页面标题区 */
.page-header {
  padding: 10px 0 0;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: #1b2027;
  line-height: 1.3;
  margin: 0;
}

.page-head {
  padding: 14px 0 26px;
  border-bottom: 1px solid #d8dde5;
  margin-bottom: 30px;
}

.page-lead,
.page-summary,
.page-kicker {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.85;
  color: #3a424c;
}

.page-kicker {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #9a5a2b;
  margin-bottom: 8px;
}

.page-lead + .page-figure,
.page-summary + .page-figure,
.page-kicker + .page-summary + .page-figure {
  margin-top: 22px;
}

/* 图片容器 */
.page-figure {
  max-width: 760px;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  overflow: hidden;
  background-color: #eef1f4;
}

.page-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.page-figure figcaption {
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #6a7480;
  background-color: #ffffff;
  border-top: 1px solid #e4e8ee;
}

/* 页脚 */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #d8dde5;
  color: #3a424c;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 26px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px 28px;
}

.footer-col {
  min-width: 0;
}

.footer-brand-mark {
  font-family: "Songti SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  font-size: 19px;
  font-weight: 700;
  color: #1b2027;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.75;
  color: #6a7480;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #1b2027;
  margin-bottom: 10px;
  font-family: inherit;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col ul a {
  font-size: 14px;
  line-height: 1.7;
  color: #4a535e;
  display: inline-block;
  padding: 2px 0;
}

.footer-col ul a:hover,
.footer-col ul a:focus-visible {
  color: #1f5fbf;
}

.footer-bottom {
  border-top: 1px solid #e4e8ee;
  background-color: #fafbfc;
}

.footer-bottom p {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4px 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #6a7480;
}

.footer-bottom p:first-child {
  padding-top: 16px;
}

.footer-bottom p:last-child {
  padding-bottom: 16px;
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */

/* 交叉引用链接 */
.xref {
  color: #1f5fbf;
  font-weight: 500;
}

.xref:hover,
.xref:focus-visible {
  text-decoration: underline;
  font-weight: 600;
}

/* 索引表 */
.table-scroll {
  overflow-x: auto;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  background-color: #ffffff;
}

.index-table {
  font-size: 14px;
  line-height: 1.65;
  min-width: 100%;
  background-color: #ffffff;
}

.index-table caption {
  caption-side: top;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: #6a7480;
  border-bottom: 1px solid #e4e8ee;
  background-color: #fafbfc;
}

.index-table thead th {
  text-align: left;
  font-weight: 700;
  color: #1b2027;
  background-color: #f0f3f7;
  padding: 10px 14px;
  border-bottom: 1px solid #d8dde5;
  white-space: nowrap;
}

.index-table tbody th {
  text-align: left;
  font-weight: 700;
  color: #1b2027;
  padding: 10px 14px;
  border-bottom: 1px solid #e4e8ee;
  background-color: #fafbfc;
}

.index-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #e4e8ee;
  color: #3a424c;
  vertical-align: top;
}

.index-table tbody tr:last-child td,
.index-table tbody tr:last-child th {
  border-bottom: 0;
}

.index-table tbody tr:hover td,
.index-table tbody tr:hover th {
  background-color: #f5f8fc;
}

.index-table tbody a {
  color: #1f5fbf;
}

/* 阅读路径步骤条（首页） */
.reading-preview .path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: pathstep;
  margin-top: 20px;
}

.reading-preview .path-step {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  padding: 18px 18px 16px;
  counter-increment: pathstep;
  min-width: 0;
}

.reading-preview .path-step::before {
  content: counter(pathstep, decimal-leading-zero);
  display: block;
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  font-weight: 700;
  color: #9a5a2b;
  margin-bottom: 6px;
}

.reading-preview .path-step h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.reading-preview .path-step p {
  font-size: 15px;
  line-height: 1.75;
  color: #4a535e;
  margin-bottom: 10px;
}

/* 相关任务带 */
.task-band {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px 34px;
  border-top: 1px solid #d8dde5;
}

.task-band h2,
.task-band .task-band-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.task-band ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.task-band li {
  min-width: 0;
}

.task-band a {
  display: block;
  padding: 14px 16px;
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: #1f5fbf;
  min-height: 44px;
}

.task-band a:hover,
.task-band a:focus-visible {
  border-color: #1f5fbf;
  background-color: #f0f5fc;
  text-decoration: none;
}

/* 内页通用区块标题 */
.section-lead,
.section-lede,
.section-intro {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: #6a7480;
  margin-top: 6px;
}

.section-more {
  margin-top: 14px;
  font-size: 15px;
}

/* 内页版式容器 */
.page-layout {
  display: block;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main .hero {
  padding: 34px 0 8px;
}

.hero-intro {
  max-width: 760px;
  padding-bottom: 26px;
}

.hero-kicker {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #9a5a2b;
  margin-bottom: 10px;
}

.hero-intro h1 {
  font-size: 44px;
  line-height: 1.28;
  margin-bottom: 14px;
}

.hero-lede {
  font-size: 17px;
  line-height: 1.85;
  color: #3a424c;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: #1f5fbf;
  color: #ffffff;
  border-color: #1f5fbf;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #164a94;
  border-color: #164a94;
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background-color: #ffffff;
  color: #1f5fbf;
  border-color: #1f5fbf;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: #eef2f8;
  color: #164a94;
  text-decoration: none;
}

/* 首屏主视觉 + 边栏 */
.hero-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.hero-media {
  background-color: #eef1f4;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.hero-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: #6a7480;
  background-color: #ffffff;
  border-top: 1px solid #e4e8ee;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.meta-block {
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  padding: 16px 18px;
}

.meta-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4e8ee;
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.65;
}

.meta-list > div {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.meta-list dt {
  color: #6a7480;
  white-space: nowrap;
}

.meta-list dd {
  margin: 0;
  color: #22272e;
  min-width: 0;
}

.meta-list dd a {
  color: #1f5fbf;
}

/* 首页次级内容图 */
.content-media {
  margin-top: 26px;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  overflow: hidden;
  background-color: #eef1f4;
}

.content-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center;
}

.content-media figcaption {
  padding: 9px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: #6a7480;
  background-color: #ffffff;
  border-top: 1px solid #e4e8ee;
}

/* 首页各区块 */
.home-main section {
  padding: 34px 0 0;
}

.home-main section > h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

/* 篇章总目预览 */
.catalog-preview .table-scroll {
  margin-top: 18px;
}

/* 人物谱系摘录 */
.person-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.person-column {
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  padding: 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.person-column h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.person-column p {
  font-size: 15px;
  line-height: 1.75;
  color: #4a535e;
  margin-bottom: 10px;
}

.person-column .person-tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.6;
  color: #9a5a2b;
  background-color: #fbf4ee;
  border: 1px solid #ecd9c8;
  border-radius: 4px;
  padding: 1px 8px;
  margin-bottom: 12px;
}

.person-column .xref {
  margin-top: auto;
  font-size: 15px;
}

/* 版本札记预览 */
.version-preview .version-list {
  margin-top: 18px;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  background-color: #ffffff;
  overflow: hidden;
}

.version-preview .version-item {
  display: grid;
  grid-template-columns: 10em minmax(0, 1fr);
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid #e4e8ee;
  font-size: 15px;
  line-height: 1.7;
}

.version-preview .version-item:last-child {
  border-bottom: 0;
}

.version-preview .version-item dt {
  font-weight: 700;
  color: #1b2027;
  white-space: nowrap;
}

.version-preview .version-item dd {
  margin: 0;
  color: #4a535e;
  min-width: 0;
}

/* 选读说明摘要 */
.selection-note .selection-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  align-items: start;
}

.selection-summary {
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-left: 3px solid #9a5a2b;
  border-radius: 6px;
  padding: 20px 22px;
  min-width: 0;
}

.selection-summary h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.selection-summary p {
  font-size: 15px;
  line-height: 1.8;
  color: #3a424c;
  margin-bottom: 10px;
}

.selection-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  background-color: #ffffff;
  overflow: hidden;
  min-width: 0;
}

.selection-facts > div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid #e4e8ee;
  font-size: 14px;
  line-height: 1.7;
}

.selection-facts > div:last-child {
  border-bottom: 0;
}

.selection-facts dt {
  color: #6a7480;
  white-space: nowrap;
}

.selection-facts dd {
  margin: 0;
  color: #22272e;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   pages · 篇章总目（左索引栏 + 目录主表）
   -------------------------------------------------------------------------- */

.catalog-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.group-index {
  position: sticky;
  top: 84px;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  background-color: #ffffff;
  padding: 16px 16px 6px;
  min-width: 0;
}

.group-index .aside-title {
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e4e8ee;
}

.index-group {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed #e4e8ee;
}

.index-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.index-group h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.index-group h3 a {
  color: #1f5fbf;
}

.index-group p {
  font-size: 13px;
  line-height: 1.7;
  color: #6a7480;
}

.catalog-main {
  min-width: 0;
}

.catalog-table h2,
.xref-note h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.catalog-table .index-table {
  margin-top: 16px;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  overflow: hidden;
}

.xref-note {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #d8dde5;
}

.xref-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  background-color: #ffffff;
  overflow: hidden;
}

.xref-list li {
  padding: 12px 16px;
  border-bottom: 1px solid #e4e8ee;
  font-size: 15px;
  line-height: 1.75;
  color: #3a424c;
}

.xref-list li:last-child {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages · 人物谱系（主内容 + 右称谓栏）
   -------------------------------------------------------------------------- */

.character-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.person-main {
  min-width: 0;
}

.person-list h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.person-list > p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: #6a7480;
  margin-top: 6px;
}

.person-entry {
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  padding: 18px 20px;
  margin-top: 16px;
  min-width: 0;
}

.person-entry h3 {
  font-size: 18px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eef1f4;
}

.person-entry p {
  font-size: 15px;
  line-height: 1.8;
  color: #3a424c;
  margin-bottom: 6px;
}

.person-entry .person-relation {
  color: #22272e;
}

.person-entry .person-chapters {
  font-size: 14px;
  color: #6a7480;
}

.person-entry .person-xref {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 14px;
}

.relation-table {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #d8dde5;
}

.relation-table h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.relation-table > p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: #6a7480;
  margin-top: 6px;
}

.relation-table .index-table {
  margin-top: 16px;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  overflow: hidden;
}

.name-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  position: sticky;
  top: 84px;
}

.name-index,
.aside-tips {
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  padding: 16px 18px;
  min-width: 0;
}

.name-index h2,
.aside-tips h2 {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4e8ee;
}

.name-index > p {
  font-size: 13px;
  line-height: 1.7;
  color: #6a7480;
  margin-bottom: 10px;
}

.name-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.name-index li {
  min-width: 0;
}

.name-index li a {
  display: inline-block;
  padding: 5px 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #1f5fbf;
  background-color: #f3f6fb;
  border: 1px solid #dde4ee;
  border-radius: 4px;
}

.name-index li a:hover,
.name-index li a:focus-visible {
  background-color: #e7eefa;
  border-color: #1f5fbf;
  text-decoration: none;
}

.aside-tips ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: #4a535e;
}

.aside-tips ul li {
  padding-left: 12px;
  position: relative;
}

.aside-tips ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #9a5a2b;
}

.aside-link {
  margin-top: 12px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 阅读路径
   -------------------------------------------------------------------------- */

.inner-main .path-steps {
  padding-top: 4px;
}

.inner-main .path-steps h2,
.branch-table h2,
.reading-checklist h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.inner-main .step-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  counter-reset: readstep;
}

.inner-main .step-item {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  padding: 16px 16px 14px;
  min-width: 0;
  counter-increment: readstep;
}

.inner-main .step-item::before {
  content: counter(readstep, decimal-leading-zero);
  display: block;
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  font-weight: 700;
  color: #9a5a2b;
  margin-bottom: 6px;
}

.inner-main .step-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.inner-main .step-purpose {
  font-size: 14px;
  line-height: 1.75;
  color: #4a535e;
  margin-bottom: 10px;
}

.inner-main .step-entry {
  font-size: 14px;
  line-height: 1.6;
}

.branch-table {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid #d8dde5;
}

.branch-table .index-table {
  margin-top: 16px;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  overflow: hidden;
}

.reading-checklist {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid #d8dde5;
}

.checklist {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checklist-item {
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  padding: 16px 18px;
  min-width: 0;
}

.checklist-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.checklist-item p {
  font-size: 14px;
  line-height: 1.75;
  color: #4a535e;
}

.checklist-item .checklist-link {
  margin-top: 10px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 版本札记
   -------------------------------------------------------------------------- */

.version-list h2,
.change-guide h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.version-list .version-item {
  margin-top: 14px;
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  overflow: hidden;
}

.version-list .version-item[open] {
  border-color: #b9c6d8;
}

.version-list summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  line-height: 1.6;
  min-height: 44px;
  background-color: #fafbfc;
}

.version-list summary::-webkit-details-marker {
  display: none;
}

.version-list summary::before {
  content: "+";
  display: inline-block;
  width: 1em;
  font-weight: 700;
  color: #1f5fbf;
  text-align: center;
}

.version-list .version-item[open] summary::before {
  content: "–";
}

.version-list summary:hover {
  background-color: #f0f3f7;
}

.version-no {
  font-weight: 700;
  color: #1b2027;
}

.version-tag {
  font-size: 12px;
  line-height: 1.6;
  color: #1f5fbf;
  background-color: #eef2f8;
  border: 1px solid #d6e0ee;
  border-radius: 4px;
  padding: 1px 8px;
}

.version-item[open] .version-tag {
  color: #9a5a2b;
  background-color: #fbf4ee;
  border-color: #ecd9c8;
}

.version-date {
  margin-left: auto;
  font-size: 13px;
  color: #6a7480;
}

.version-list .change-list {
  padding: 6px 18px 16px 18px;
  border-top: 1px solid #e4e8ee;
}

.version-list .change-list li {
  display: grid;
  grid-template-columns: 4.5em 6.5em minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed #e4e8ee;
  font-size: 14px;
  line-height: 1.75;
}

.version-list .change-list li:last-child {
  border-bottom: 0;
}

.change-id {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  color: #6a7480;
}

.change-type {
  font-size: 13px;
  color: #9a5a2b;
  white-space: nowrap;
}

.version-list .change-list p {
  color: #3a424c;
  min-width: 0;
}

.change-guide {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid #d8dde5;
}

.change-type-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.change-type-list dt {
  grid-column: auto;
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px 6px 0 0;
  padding: 12px 16px 4px;
  font-weight: 700;
  font-size: 15px;
  color: #1b2027;
}

.change-type-list dd {
  margin: 0;
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.75;
  color: #4a535e;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   pages · 选读说明（主内容 + 右术语栏）
   -------------------------------------------------------------------------- */

.selection-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.selection-main {
  min-width: 0;
}

.selection-standards h2,
.reading-tips h2,
.boundary-list h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.selection-standards > p,
.reading-tips > p,
.boundary-list > p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: #6a7480;
  margin-top: 6px;
}

.standard-list {
  margin-top: 18px;
  counter-reset: std;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.standard-list li {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  padding: 16px 18px 16px 58px;
  min-width: 0;
  counter-increment: std;
}

.standard-list li::before {
  content: counter(std);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background-color: #eef2f8;
  color: #1f5fbf;
  font-family: "Songti SC", "STSong", serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
}

.standard-list h3,
.tip-list h3,
.boundary-items h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.standard-list p,
.tip-list p,
.boundary-items p {
  font-size: 15px;
  line-height: 1.8;
  color: #4a535e;
}

.reading-tips,
.boundary-list {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #d8dde5;
}

.tip-list,
.boundary-items {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.tip-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.boundary-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tip-list li,
.boundary-items li {
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  padding: 16px 18px;
  min-width: 0;
}

.boundary-items li {
  border-left: 3px solid #9a5a2b;
}

.term-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  position: sticky;
  top: 84px;
}

.aside-block {
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  padding: 16px 18px;
  min-width: 0;
}

.aside-block .aside-title {
  font-size: 16px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4e8ee;
}

.aside-block > p {
  font-size: 13px;
  line-height: 1.7;
  color: #6a7480;
  margin-bottom: 10px;
}

.term-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.term-list dt {
  font-size: 14px;
  font-weight: 700;
  color: #1b2027;
  line-height: 1.6;
  padding-top: 8px;
}

.term-list dt:first-child {
  padding-top: 0;
}

.term-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #6a7480;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e4e8ee;
}

.term-list dd:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aside-links {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   pages · 阅读问答
   -------------------------------------------------------------------------- */

.faq-groups {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.faq-group h2 {
  font-size: 22px;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid #1f5fbf;
  line-height: 1.3;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  color: #1b2027;
  background-color: #fafbfc;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 1em;
  font-weight: 700;
  color: #1f5fbf;
  text-align: center;
}

.faq-item[open] summary::before {
  content: "–";
}

.faq-item summary:hover {
  background-color: #f0f3f7;
}

.faq-answer {
  padding: 4px 18px 16px 40px;
  border-top: 1px solid #e4e8ee;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.85;
  color: #3a424c;
  margin-top: 10px;
}

.quick-links {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid #d8dde5;
}

.quick-links h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.quick-links ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-links li {
  min-width: 0;
}

.quick-links a {
  display: block;
  min-height: 44px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.6;
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
}

.quick-links a:hover,
.quick-links a:focus-visible {
  border-color: #1f5fbf;
  background-color: #f0f5fc;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 24px 70px;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid #d8dde5;
  border-radius: 8px;
  padding: 36px 32px;
  text-align: left;
}

.error-code {
  font-family: "Songti SC", "STSong", serif;
  font-size: 15px;
  font-weight: 700;
  color: #9a5a2b;
  margin-bottom: 8px;
}

.error-panel h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.error-panel > p {
  font-size: 16px;
  line-height: 1.85;
  color: #3a424c;
  margin-bottom: 10px;
}

.error-actions {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e4e8ee;
}

.error-actions ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.error-actions li {
  min-width: 0;
}

.error-actions a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.6;
  background-color: #f7f9fb;
  border: 1px solid #d8dde5;
  border-radius: 6px;
}

.error-actions a:hover,
.error-actions a:focus-visible {
  border-color: #1f5fbf;
  background-color: #eef2f8;
  text-decoration: none;
}

.error-actions a.error-home {
  background-color: #1f5fbf;
  border-color: #1f5fbf;
  color: #ffffff;
}

.error-actions a.error-home:hover,
.error-actions a.error-home:focus-visible {
  background-color: #164a94;
  border-color: #164a94;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .header-inner {
    gap: 14px;
  }

  .primary-nav.site-nav a {
    padding: 8px 8px;
    font-size: 14px;
  }

  .catalog-shell {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
  }

  .character-shell,
  .selection-shell {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
  }

  .inner-main .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav.site-nav {
    flex: 1 1 100%;
    display: block;
    order: 3;
  }

  .primary-nav.site-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    border-top: 1px solid #e4e8ee;
    margin-top: 4px;
  }

  .primary-nav.site-nav ul.is-open {
    display: flex;
  }

  .primary-nav.site-nav li {
    width: 100%;
  }

  .primary-nav.site-nav a {
    display: block;
    width: 100%;
    padding: 12px 4px;
    font-size: 16px;
    border-radius: 0;
    border-bottom: 1px solid #f0f3f7;
  }

  .primary-nav.site-nav a.is-current {
    box-shadow: inset 3px 0 0 #1f5fbf;
    padding-left: 12px;
  }

  .hero-intro h1 {
    font-size: 36px;
  }

  .hero-visual-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-meta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .meta-block {
    flex: 1 1 260px;
  }

  .reading-preview .path-steps,
  .person-columns,
  .change-type-list,
  .tip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selection-note .selection-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .catalog-shell,
  .character-shell,
  .selection-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .group-index,
  .name-aside,
  .term-aside {
    position: static;
  }

  .group-index {
    padding-bottom: 16px;
  }

  .index-group {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .inner-main .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 24px;
  }

  .task-band ul,
  .quick-links ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.site-body {
    font-size: 16px;
    line-height: 1.8;
  }

  .header-inner,
  .inner-main,
  .home-main,
  .task-band,
  .footer-inner,
  .footer-bottom p {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-mark {
    font-size: 18px;
  }

  .page-title {
    font-size: 28px;
  }

  .hero-intro h1 {
    font-size: 29px;
    line-height: 1.32;
  }

  .hero-kicker {
    font-size: 13px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 11px 16px;
    font-size: 15px;
  }

  .hero-visual-grid {
    gap: 16px;
  }

  .hero-meta {
    flex-direction: column;
  }

  .meta-block {
    flex: 1 1 auto;
  }

  .meta-list > div {
    grid-template-columns: 4.8em minmax(0, 1fr);
    gap: 6px;
  }

  .home-main section {
    padding-top: 28px;
  }

  .home-main section > h2,
  .catalog-table h2,
  .xref-note h2,
  .person-list h2,
  .relation-table h2,
  .inner-main .path-steps h2,
  .branch-table h2,
  .reading-checklist h2,
  .version-list h2,
  .change-guide h2,
  .selection-standards h2,
  .reading-tips h2,
  .boundary-list h2 {
    font-size: 21px;
  }

  .reading-preview .path-steps,
  .person-columns,
  .change-type-list,
  .tip-list,
  .boundary-items,
  .checklist,
  .inner-main .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .version-preview .version-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 12px 16px;
  }

  .selection-facts > div {
    grid-template-columns: 5.5em minmax(0, 1fr);
    padding: 10px 14px;
  }

  .selection-summary {
    padding: 18px;
  }

  .task-band ul,
  .quick-links ul,
  .error-actions ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 30px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .page-head {
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .page-figure img {
    aspect-ratio: 4 / 3;
  }

  .content-media img {
    aspect-ratio: 16 / 9;
  }

  .hero-media img {
    aspect-ratio: 4 / 3;
  }

  .index-table {
    font-size: 13px;
  }

  .index-table thead th,
  .index-table tbody td,
  .index-table tbody th {
    padding: 9px 11px;
  }

  .version-list summary {
    padding: 12px 14px;
    gap: 6px 10px;
  }

  .version-date {
    margin-left: 0;
    flex: 1 1 100%;
    padding-left: calc(1em + 10px);
  }

  .version-list .change-list {
    padding: 4px 14px 12px;
  }

  .version-list .change-list li {
    grid-template-columns: 4.5em minmax(0, 1fr);
    gap: 4px 10px;
  }

  .version-list .change-list p {
    grid-column: 1 / -1;
  }

  .faq-answer {
    padding: 4px 14px 14px 14px;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 12px 14px;
  }

  .faq-group h2 {
    font-size: 19px;
  }

  .standard-list li {
    padding: 14px 14px 14px 50px;
  }

  .standard-list li::before {
    left: 12px;
    top: 14px;
  }

  .error-main {
    padding: 36px 16px 50px;
  }

  .error-panel {
    padding: 26px 20px;
  }

  .error-panel h1 {
    font-size: 26px;
  }

  .person-entry {
    padding: 16px;
  }

  .name-index ul {
    gap: 6px;
  }

  .name-index li a {
    padding: 6px 10px;
    min-height: 34px;
  }
}

@media (max-width: 390px) {
  .header-inner,
  .inner-main,
  .home-main,
  .task-band,
  .footer-inner,
  .footer-bottom p {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-intro h1 {
    font-size: 26px;
  }

  .page-title {
    font-size: 25px;
  }

  .btn {
    min-width: 120px;
  }

  .meta-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .meta-list dt {
    font-size: 13px;
  }

  .selection-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .version-list .change-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .change-type {
    white-space: normal;
  }
}
