:root {
  --brand: #0f6d63;
  --brand-dark: #0b544c;
  --action: #ff7a45;
  --action-dark: #e8622c;
  --ink: #1d2530;
  --ink-soft: #5b6672;
  --page-bg: #f7f8f6;
  --card-bg: #ffffff;
  --line: #e2e6e1;
  --line-strong: #cbd3cc;
  --serial-bg: #e4f3ec;
  --serial-ink: #1f7a5a;
  --paused-bg: #f5eeda;
  --paused-ink: #8a6d1f;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(29, 37, 48, 0.05);
  --shadow-lift: 0 4px 12px rgba(29, 37, 48, 0.09);
  --container: 1180px;
  --gap: 24px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ============================================================
   base · 全站基础
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--page-bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--action-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

:target {
  scroll-margin-top: 96px;
}

/* ============================================================
   layout · 骨架容器
   ============================================================ */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--page-bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.inner-main {
  padding-top: 20px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.breadcrumb a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line-strong);
  font-size: 13px;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 22px;
}

.page-title {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.page-lead,
.page-task,
.page-task-note,
.page-task-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 62ch;
}

.page-head {
  margin-bottom: 22px;
}

.page-title-block {
  margin-bottom: 22px;
}

.page-title-block .page-task-note,
.page-title-block .page-task-desc {
  padding-left: 12px;
  border-left: 3px solid var(--brand);
}

.page-hero {
  margin-bottom: 24px;
}

.title-rule {
  margin-top: 14px;
}

/* 通用分节标题 */
.section-title {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink);
}

.section-desc,
.section-intro {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 68ch;
}

.section-head {
  margin-bottom: 18px;
}

/* ============================================================
   components · 页头与导航
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand);
  padding: 4px 0;
}

.brand:hover {
  color: var(--brand-dark);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.nav-item {
  line-height: 1;
}

.nav-item a {
  display: inline-block;
  padding: 8px 2px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}

.nav-item a:hover {
  color: var(--brand);
  border-bottom-color: var(--line-strong);
}

.nav-item.is-current a,
.nav-item a.is-current {
  color: var(--brand);
  font-weight: 700;
  border-bottom-color: var(--brand);
}

.notice-line {
  flex: 0 0 auto;
  font-size: 12.5px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-soft);
  padding-left: 10px;
  border-left: 2px solid var(--line-strong);
  max-width: 200px;
}

.notice-line a {
  color: var(--ink-soft);
}

.notice-line a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background-color: var(--card-bg);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px 16px;
}

.mobile-nav-list li {
  border-bottom: 1px solid var(--line);
}

.mobile-nav-list li:last-child {
  border-bottom: 0;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 15px;
  color: var(--ink);
}

.mobile-nav-list a.is-current {
  color: var(--brand);
  font-weight: 700;
}

/* ============================================================
   components · 按钮、标签、状态标
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--action);
  border-color: var(--action);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--action-dark);
  border-color: var(--action-dark);
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-ghost:hover {
  background-color: var(--brand);
  color: #ffffff;
}

.genre-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--brand);
  background-color: var(--card-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.genre-tag:hover {
  border-color: var(--brand);
  background-color: var(--serial-bg);
  color: var(--brand-dark);
}

.status-serial,
.status-badge {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12.5px;
  line-height: 1.7;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.status-serial,
.status-ongoing .status-badge {
  background-color: var(--serial-bg);
  color: var(--serial-ink);
}

.status-paused .status-badge {
  background-color: var(--paused-bg);
  color: var(--paused-ink);
}

.status-done {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12.5px;
  line-height: 1.7;
  border-radius: var(--radius-sm);
  background-color: #eceff1;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ============================================================
   components · 图片容器
   ============================================================ */

figure {
  margin: 0;
}

.hero-figure,
.pick-figure,
.cover-figure,
.entry-figure,
.genre-card-media,
.archive-media,
.entry-thumb,
.guide-figure,
.media-figure {
  position: relative;
  overflow: hidden;
  background-color: #eef1ee;
  border-radius: var(--radius);
}

.hero-figure img,
.pick-figure img,
.cover-figure img,
.entry-figure img,
.genre-card-media img,
.archive-media img,
.entry-thumb img,
.guide-figure img,
.media-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-caption,
.guide-figure figcaption {
  padding: 10px 2px 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============================================================
   components · 折叠问答
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.faq-item[open] .faq-question::before {
  content: "−";
  background-color: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.faq-question:hover {
  color: var(--brand);
}

.faq-answer {
  padding: 0 16px 16px 46px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ============================================================
   components · 锚点索引与相关链接
   ============================================================ */

.side-index,
.archive-index,
.anchor-index,
.content-side {
  align-self: start;
}

.side-index-title,
.side-title,
.anchor-index-title,
.related-links-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-index-list,
.anchor-list,
.anchor-index-list,
.related-links-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-index-list a,
.anchor-list a,
.anchor-index-list a,
.related-links-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 14.5px;
  color: var(--ink);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.side-index-list a:hover,
.anchor-list a:hover,
.anchor-index-list a:hover,
.related-links-list a:hover {
  color: var(--brand);
  background-color: var(--page-bg);
  border-left-color: var(--brand);
}

.side-index-note,
.side-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 14.5px;
  color: var(--brand);
  background-color: var(--card-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.related-links-item:hover {
  border-color: var(--brand);
  background-color: var(--serial-bg);
}

/* ============================================================
   components · 页脚
   ============================================================ */

.site-footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 24px 20px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 40ch;
}

.footer-nav-title,
.footer-extra-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-nav-list,
.footer-extra-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-nav-list a,
.footer-extra-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-nav-list a:hover,
.footer-extra-list a:hover {
  color: var(--brand);
}

.footer-copy {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ============================================================
   pages · 首页
   ============================================================ */

.home-main {
  padding-top: 24px;
}

/* 焦点封面区 */
.hero-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--gap);
  align-items: stretch;
  margin-bottom: 34px;
}

.hero-visual {
  min-width: 0;
}

.hero-figure {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.hero-text h1 {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.hero-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.fact dt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.fact dd {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* 主推题材资料卡 */
.hero-pick {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.pick-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.pick-figure {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
}

.pick-tag {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--brand);
  font-weight: 600;
}

.pick-status {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.pick-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.pick-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--action-dark);
}

.pick-link:hover {
  color: var(--brand);
}

/* 快速分类带 */
.quick-genre {
  margin-bottom: 34px;
  padding: 22px 24px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quick-genre .section-desc {
  margin-bottom: 16px;
}

/* 三栏门户 */
.portal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: var(--gap);
  align-items: start;
  margin-bottom: 34px;
}

.portal-aside-left,
.portal-aside-right {
  min-width: 0;
  padding: 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.index-group + .index-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.index-group-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--brand);
  margin-bottom: 8px;
}

.index-list {
  display: flex;
  flex-direction: column;
}

.index-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0 6px 12px;
  font-size: 14.5px;
  color: var(--ink);
  border-left: 2px solid var(--line);
}

.index-list a:hover {
  color: var(--brand);
  border-left-color: var(--brand);
}

.portal-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 封面墙 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.cover-figure {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
}

.cover-no {
  align-self: flex-start;
  padding: 1px 8px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--brand);
  border-radius: var(--radius-sm);
}

.cover-tag {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.cover-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: auto;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--action-dark);
}

.cover-link:hover {
  color: var(--brand);
}

/* 最新条目速览 */
.latest-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.latest-col {
  min-width: 0;
  padding: 18px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.latest-col-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.entry-list {
  display: flex;
  flex-direction: column;
}

.entry-list .entry-row {
  border-bottom: 1px dashed var(--line);
}

.entry-list .entry-row:last-child {
  border-bottom: 0;
}

.entry-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 8px 4px;
  color: var(--ink);
}

.entry-link:hover {
  color: var(--brand);
}

.entry-figure {
  width: 52px;
  height: 68px;
  border: 1px solid var(--line);
}

.entry-tag {
  display: inline-block;
  margin-bottom: 2px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--brand);
}

.entry-list .entry-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.entry-link:hover .entry-title {
  color: var(--brand);
}

.entry-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.entry-status {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: var(--radius-sm);
  background-color: var(--serial-bg);
  color: var(--serial-ink);
}

.entry-list .entry-row .status-paused,
.entry-list .entry-note .status-paused {
  background-color: var(--paused-bg);
  color: var(--paused-ink);
}

/* 右栏动态与帮助 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.75;
}

.news-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-tag {
  flex: 0 0 auto;
  padding: 1px 7px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--brand);
  background-color: var(--serial-bg);
  border-radius: var(--radius-sm);
}

.news-link {
  color: var(--ink);
}

.news-link:hover {
  color: var(--brand);
}

.help-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.portal-aside-right .help-card {
  padding: 16px;
  background-color: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portal-aside-right .help-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 6px;
}

.portal-aside-right .help-card-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.portal-aside-right .help-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--action-dark);
}

.portal-aside-right .help-card-link:hover {
  color: var(--brand);
}

/* 追更路径说明 */
.follow-path {
  margin-bottom: 34px;
  padding: 24px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.follow-path .section-desc {
  margin-bottom: 18px;
}

.follow-path .step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.follow-path .step-item {
  min-width: 0;
  padding: 18px;
  background-color: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.follow-path .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--brand);
  border-radius: var(--radius-sm);
}

.follow-path .step-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 6px;
}

.follow-path .step-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.follow-path .step-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--action-dark);
}

.follow-path .step-link:hover {
  color: var(--brand);
}

/* 阅读指引摘要 */
.guide-summary {
  margin-bottom: 34px;
  padding: 24px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-summary .section-desc {
  margin-bottom: 18px;
}

.guide-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--action-dark);
}

.guide-more:hover {
  color: var(--brand);
}

/* 来源与更正摘要 */
.source-summary {
  padding: 24px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.source-summary .section-desc {
  margin-bottom: 16px;
}

.source-summary .boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.source-summary .boundary-item {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.source-summary .boundary-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  background-color: var(--brand);
  border-radius: 50%;
}

.source-entry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
}

.source-entry:hover {
  background-color: var(--brand);
  color: #ffffff;
}

/* ============================================================
   pages · 内页通用布局
   ============================================================ */

.site-inner .site-main {
  padding-top: 20px;
}

.page-layout {
  display: grid;
  gap: var(--gap);
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.page-layout.layout-shell {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.layout-content,
.content-main {
  min-width: 0;
}

.layout-content > section + section,
.content-main > section + section {
  margin-top: 32px;
}

/* 通用内容卡组 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.genre-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.genre-card-media {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
}

.genre-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.genre-card-no {
  align-self: flex-start;
  padding: 1px 8px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--brand);
  border-radius: var(--radius-sm);
}

.genre-card-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.genre-card-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.genre-card-links {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  line-height: 1.8;
}

.genre-card-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-right: 12px;
  font-weight: 600;
  color: var(--action-dark);
}

.genre-card-links a:hover {
  color: var(--brand);
}

/* 指南型说明列表 */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-item {
  padding: 16px 18px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
}

.guide-item-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 6px;
}

.guide-item-desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* 跨栏跳转卡 */
.cross-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.cross-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.cross-card-no {
  align-self: flex-start;
  padding: 1px 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--brand);
  border-radius: var(--radius-sm);
}

.cross-card-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}

.cross-card-desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.cross-card-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14.5px;
  font-weight: 600;
}

.cross-card-link a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--action-dark);
}

.cross-card-link a:hover {
  color: var(--brand);
}

.reading-tip {
  margin-top: 32px;
  padding: 18px 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reading-tip-link {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
}

.reading-tip-link a {
  font-weight: 600;
  color: var(--action-dark);
}

.reading-tip-link a:hover {
  color: var(--brand);
}

/* ============================================================
   pages · 连载追踪
   ============================================================ */

.intro-strip {
  padding: 16px 20px;
  margin-bottom: 28px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
}

.intro-strip .section-desc {
  margin-top: 6px;
}

.tracking-list-section,
.status-legend-section,
.tracking-path-section,
.related-section {
  margin-bottom: 32px;
}

.entry-row-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.entry-row-list .entry-row {
  border-bottom: 0;
}

.entry-row-list .entry-row-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding: 12px 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.entry-row-list .entry-row-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}

.entry-row-list .entry-thumb {
  width: 72px;
  height: 92px;
  border: 1px solid var(--line);
}

.entry-row-body {
  min-width: 0;
}

.entry-genre-tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--brand);
  background-color: var(--serial-bg);
  border-radius: var(--radius-sm);
}

.entry-row-list .entry-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 4px;
}

.entry-row-list .entry-row-link:hover .entry-title {
  color: var(--brand);
}

.entry-meta {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.entry-arrow {
  justify-self: end;
  font-size: 18px;
  line-height: 1;
  color: var(--line-strong);
}

.entry-row-list .entry-row-link:hover .entry-arrow {
  color: var(--action);
}

/* 状态标注口径 */
.status-legend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.status-legend-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-legend-text {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* 追更路径 */
.path-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.path-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-step .step-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--brand);
  border-radius: var(--radius-sm);
}

.path-step .step-text {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* 底部关联卡 */
.related-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.related-card-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}

.related-card-desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.related-card-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--action-dark);
}

.related-card-link:hover {
  color: var(--brand);
}

/* ============================================================
   pages · 完结文库
   ============================================================ */

.archive-wall,
.reading-order,
.archive-diff,
.back-block {
  margin-bottom: 32px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.archive-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.archive-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.archive-media {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
}

.archive-card .card-index {
  align-self: flex-start;
  padding: 1px 8px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--brand);
  border-radius: var(--radius-sm);
}

.archive-card .card-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.archive-card .card-tag {
  font-size: 13px;
  line-height: 1.7;
  color: var(--brand);
}

.archive-card .card-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.archive-card .card-meta {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.archive-card .card-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: auto;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--action-dark);
}

.archive-card .card-link:hover {
  color: var(--brand);
}

.order-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.order-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--brand);
  border-radius: var(--radius-sm);
}

.order-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}

.order-desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.diff-item {
  padding: 18px 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
}

.diff-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 6px;
}

.diff-desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.back-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.back-card-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 56ch;
}

.back-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
}

.back-card-link:hover {
  background-color: var(--brand);
  color: #ffffff;
}

/* ============================================================
   pages · 阅读指引
   ============================================================ */

.guide-section {
  margin-bottom: 32px;
}

.guide-figure {
  margin-bottom: 18px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.guide-section .step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.guide-section .step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-section .step-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--brand);
  border-radius: var(--radius-sm);
}

.guide-section .step-body {
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.guide-section .step-body .step-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 4px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.compare-col {
  padding: 18px 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.compare-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  width: 6px;
  height: 6px;
  background-color: var(--action);
  border-radius: 50%;
}

.guide-note {
  margin-top: 14px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  background-color: var(--card-bg);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.guide-section .note-list,
.source-note .note-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.guide-section .note-item,
.source-note .note-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-section .note-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 4px;
}

.guide-section .note-text,
.source-note .note-text {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.content-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-side .anchor-index,
.content-side .help-card {
  padding: 18px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.content-side .help-card-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 6px;
}

.content-side .help-card-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.content-side .help-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--action-dark);
}

.content-side .help-card-link:hover {
  color: var(--brand);
}

.content-side .related-links {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin-top: 0;
  padding: 18px;
  border-top: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ============================================================
   pages · 来源与更正
   ============================================================ */

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: 32px;
}

.source-note-body {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 16px;
}

.media-figure {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}

.source-note .note-list {
  margin-top: 0;
}

.source-note .note-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--brand);
  border-radius: var(--radius-sm);
}

.correction-steps .step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.correction-steps .step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.correction-steps .step-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--brand);
  border-radius: var(--radius-sm);
}

.correction-steps .step-text {
  min-width: 0;
}

.correction-steps .step-text .step-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 4px;
}

.correction-steps .step-text p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.content-boundary .boundary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.content-boundary .boundary-item {
  padding: 16px 18px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.content-boundary .boundary-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 4px;
}

.content-boundary .boundary-item p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.link-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.link-card-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}

.link-card-desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.link-card-action {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--action-dark);
}

.link-card-action:hover {
  color: var(--brand);
}

/* ============================================================
   pages · 404
   ============================================================ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 72px;
}

.error-block {
  width: 100%;
  max-width: 640px;
  padding: 36px 32px;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.error-code {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.error-block h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  margin: 8px 0 12px;
}

.error-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 20px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14.5px;
  color: var(--brand);
  background-color: var(--page-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.error-links a:hover {
  border-color: var(--brand);
  background-color: var(--serial-bg);
}

.error-action {
  font-size: 14.5px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--action-dark);
}

.error-home-link:hover {
  color: var(--brand);
}

/* ============================================================
   responsive · 平板
   ============================================================ */

@media (max-width: 1024px) {
  .portal-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .portal-aside-left {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px 24px;
  }

  .portal-aside-left .aside-title {
    grid-column: 1 / -1;
  }

  .portal-aside-left .index-group + .index-group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .page-layout.sidebar-left {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .page-layout.layout-shell {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}

/* ============================================================
   responsive · 手机与窄屏
   ============================================================ */

@media (max-width: 768px) {
  .site-main {
    padding: 20px 20px 44px;
  }

  .header-inner {
    padding: 10px 20px;
    gap: 12px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .notice-line {
    order: 5;
    flex: 1 1 100%;
    max-width: none;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .mobile-nav-list {
    padding: 8px 20px 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-focus {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-text {
    padding: 18px 20px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .portal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-aside-left {
    display: block;
  }

  .portal-aside-left .index-group + .index-group {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout.sidebar-left,
  .page-layout.layout-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 手机端：正文与标题优先，辅助侧栏排到内容之后 */
  .page-layout.sidebar-left .side-index,
  .page-layout.sidebar-left .archive-index {
    order: 2;
  }

  .page-layout.sidebar-left .layout-content,
  .page-layout.sidebar-left .content-main {
    order: 1;
  }

  .page-layout.layout-shell .content-main {
    order: 1;
  }

  .page-layout.layout-shell .content-side {
    order: 2;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-note-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-grid,
  .card-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 20px 18px;
  }

  .error-block {
    padding: 28px 22px;
  }
}

@media (max-width: 480px) {
  .site-main {
    padding: 16px 16px 40px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .mobile-nav-list {
    padding: 8px 16px 14px;
  }

  .brand {
    font-size: 18px;
  }

  .page-title,
  .hero-text h1 {
    font-size: 22px;
  }

  .section-title {
    font-size: 19px;
  }

  .hero-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-row-list .entry-row-link {
    grid-template-columns: 60px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 12px;
  }

  .entry-row-list .entry-thumb {
    width: 60px;
    height: 78px;
  }

  .genre-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }

  .quick-genre,
  .follow-path,
  .guide-summary,
  .source-summary {
    padding: 18px;
  }

  .footer-inner {
    padding: 24px 16px 16px;
  }
}

/* ============================================================
   print · 打印
   ============================================================ */

@media print {
  .site-header,
  .mobile-nav,
  .footer-nav,
  .footer-extra,
  .related-links,
  .menu-toggle {
    display: none !important;
  }

  .site-body,
  .site-main {
    background: #ffffff;
    color: #000000;
    max-width: none;
    padding: 0;
  }

  .footer-inner {
    display: block;
    padding: 12px 0 0;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
