/* ==========================================================================
   在线漫画 · sanxiagj.com
   全站样式表：base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #f4f5f7;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: #2a4d8f;
  text-decoration: none;
}

a:hover {
  color: #1c3767;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

summary {
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

:focus-visible {
  outline: 2px solid #2a4d8f;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. layout — 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: #ffffff;
  border-bottom: 1px solid #d8dce3;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 60px;
}

.site-nav {
  margin-left: auto;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.inner-main {
  max-width: 1120px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #6b7280;
}

.breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.breadcrumb a:hover {
  color: #2a4d8f;
  border-bottom-color: #2a4d8f;
}

.breadcrumb-sep {
  color: #b9bfc9;
}

.breadcrumb-current {
  color: #1f2937;
  font-weight: 600;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #b9bfc9;
}

.page-header {
  margin-bottom: 18px;
}

.page-title {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  color: #1f2937;
}

.site-footer {
  flex-shrink: 0;
  background-color: #ffffff;
  border-top: 1px solid #d8dce3;
}

.footer-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 22px;
}

/* --------------------------------------------------------------------------
   3. components — 页头 / 导航 / 页脚
   -------------------------------------------------------------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  flex-shrink: 0;
}

.brand:hover {
  color: #1f2937;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background-color: #2a4d8f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 4px;
}

.brand-slogan {
  font-size: 12px;
  color: #6b7280;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-left: auto;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #1f2937;
  border-radius: 1px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: #374151;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background-color: transparent;
  border-radius: 1px;
}

.nav-link:hover {
  color: #2a4d8f;
  background-color: #f4f5f7;
}

.nav-link.is-current {
  color: #2a4d8f;
  font-weight: 700;
}

.nav-link.is-current::after {
  background-color: #2a4d8f;
}

/* 通用按钮与文字链接 */

.btn-primary,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background-color: #2a4d8f;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1c3767;
  color: #ffffff;
}

.btn-ghost {
  background-color: #ffffff;
  color: #2a4d8f;
  border-color: #c3cbd9;
}

.btn-ghost:hover {
  border-color: #2a4d8f;
  color: #1c3767;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #2a4d8f;
  border-bottom: 1px solid #c3cbd9;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.text-link:hover {
  color: #1c3767;
  border-bottom-color: #1c3767;
}

.inline-link {
  color: #2a4d8f;
  border-bottom: 1px solid #c3cbd9;
}

.inline-link:hover {
  border-bottom-color: #1c3767;
}

/* 状态标签 */

.tag,
.status-tag,
.cover-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  border-radius: 3px;
  white-space: nowrap;
}

.tag-ongoing,
.status-tag--ongoing {
  background-color: #e6f4ed;
  color: #1f8a5f;
  border: 1px solid #b8ddc9;
}

.tag-intermittent,
.status-tag--intermittent {
  background-color: #fdf2e2;
  color: #b26a00;
  border: 1px solid #eccfa2;
}

.tag-finished,
.status-tag--completed {
  background-color: #eef0f3;
  color: #6b7280;
  border: 1px solid #d3d8df;
}

.tag-unknown {
  background-color: #f4f5f7;
  color: #6b7280;
  border: 1px dashed #c3cbd9;
}

/* 分区色标 */

.zone-dot,
.zone-dot-hot,
.zone-dot-soft,
.zone-dot-mystery,
.zone-dot-fantasy,
.zone-dot-school,
.zone-dot-scifi,
.zone-dot--action,
.zone-dot--daily,
.zone-dot--fantasy,
.zone-dot--history,
.zone-dot--mystery,
.zone-dot--scifi {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.zone-dot,
.zone-dot-hot,
.zone-dot--action {
  background-color: #c0392b;
}

.zone-dot-soft,
.zone-dot--daily {
  background-color: #1f8a5f;
}

.zone-dot-mystery,
.zone-dot--mystery {
  background-color: #4b3f72;
}

.zone-dot-fantasy,
.zone-dot--fantasy {
  background-color: #2a4d8f;
}

.zone-dot-school,
.zone-dot--history {
  background-color: #b26a00;
}

.zone-dot-scifi,
.zone-dot--scifi {
  background-color: #0f7c8c;
}

/* 区块标题体系 */

.section-title {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: #1f2937;
}

.section-note,
.section-lead,
.section-desc,
.section-intro {
  margin-top: 6px;
  font-size: 13.5px;
  color: #4b5563;
}

.section-head {
  margin-bottom: 14px;
}

/* 表格 */

.table-scroll,
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
  -webkit-overflow-scrolling: touch;
}

.field-table {
  width: 100%;
  min-width: 640px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.field-table caption {
  text-align: left;
}

.field-table th,
.field-table td {
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e6e9ee;
}

.field-table thead th {
  background-color: #f4f5f7;
  color: #374151;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid #d8dce3;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody tr:hover {
  background-color: #fafbfc;
}

.cell-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}

.cell-strong {
  font-weight: 600;
  color: #1f2937;
}

.cell-desc,
.cell-action {
  color: #4b5563;
}

.cell-action,
.cell-link {
  white-space: nowrap;
}

.cell-link,
.row-link {
  color: #2a4d8f;
  border-bottom: 1px solid #c3cbd9;
}

.cell-link:hover,
.row-link:hover {
  border-bottom-color: #1c3767;
}

/* 图片与图注 */

.content-figure,
.figure,
.zone-figure,
.page-figure {
  margin: 0;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
  overflow: hidden;
}

.content-figure img,
.figure img,
.zone-figure img,
.page-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: #eef0f3;
}

.figure-caption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: #6b7280;
  border-top: 1px solid #e6e9ee;
}

/* 锚点条 */

.anchor-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anchor-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  color: #2a4d8f;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 4px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.anchor-link:hover {
  border-color: #2a4d8f;
  color: #1c3767;
}

/* 相关栏目入口 */

.related-list,
.side-list,
.aside-list {
  display: grid;
  gap: 10px;
}

.related-item,
.side-item,
.aside-item {
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.related-link,
.side-link,
.aside-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #2a4d8f;
}

.related-link:hover,
.side-link:hover,
.aside-link:hover {
  color: #1c3767;
}

.related-desc,
.related-note,
.side-note,
.aside-desc {
  margin-top: 4px;
  font-size: 13px;
  color: #4b5563;
}

.related-title,
.side-title,
.aside-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.related-entry,
.related-section,
.related-block,
.side-column,
.page-aside {
  margin-top: 24px;
}

/* 边界提示条 */

.boundary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background-color: #f8f9fb;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.boundary-text {
  flex: 1 1 320px;
  min-width: 220px;
  color: #4b5563;
}

.boundary-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.boundary-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #2a4d8f;
  background-color: #ffffff;
  border: 1px solid #c3cbd9;
  border-radius: 4px;
}

.boundary-link:hover {
  border-color: #2a4d8f;
  color: #1c3767;
}

/* 页脚 */

.footer-summary {
  max-width: 760px;
  font-size: 13.5px;
  color: #4b5563;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e6e9ee;
}

.footer-col-title {
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1f2937;
}

.footer-list {
  display: grid;
  gap: 6px;
}

.footer-list a {
  display: inline-block;
  padding: 4px 0;
  font-size: 13px;
  color: #4b5563;
  transition: color 0.15s ease;
}

.footer-list a:hover {
  color: #2a4d8f;
}

.footer-note {
  margin-top: 20px;
  padding-top: 14px;
  font-size: 12.5px;
  color: #6b7280;
  border-top: 1px solid #e6e9ee;
}

/* 滚动出现增强（不依赖 JS 显示正文） */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .reveal.is-visible {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   4. pages — 首页
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 24px;
  align-items: start;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #2a4d8f;
  background-color: #eef2fa;
  border: 1px solid #c3cbd9;
  border-radius: 3px;
}

.hero-text h1 {
  margin-top: 12px;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 700;
  color: #1f2937;
}

.hero-lead {
  margin-top: 12px;
  max-width: 74ch;
  font-size: 14px;
  color: #4b5563;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.hero-media {
  margin: 0;
  border: 1px solid #d8dce3;
  border-radius: 6px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: #eef0f3;
}

.hero-media figcaption {
  padding: 8px 12px;
  font-size: 12.5px;
  color: #6b7280;
  border-top: 1px solid #e6e9ee;
}

/* 分区状态速查带 */

.quick-band,
.status-band,
.cover-row,
.task-groups,
.table-section,
.checklist-brief {
  margin-top: 24px;
}

.zone-tags {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.zone-tag {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.zone-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.zone-name::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background-color: #2a4d8f;
  flex-shrink: 0;
}

.zone-tag .zone-hint {
  font-size: 12.5px;
  color: #6b7280;
}

/* 更新状态带 */

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.status-card {
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.status-card p {
  margin-top: 8px;
  font-size: 13px;
  color: #4b5563;
}

/* 分区封面行 */

.cover-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cover-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
  transition: border-color 0.15s ease;
}

.cover-item:hover {
  border-color: #2a4d8f;
}

.cover-figure {
  position: relative;
  margin: 0;
  border: 1px solid #e6e9ee;
  border-radius: 4px;
  overflow: hidden;
  background-color: #eef0f3;
}

.cover-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background-color: #eef0f3;
}

.cover-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  min-width: 0;
  padding: 1px 6px;
  font-size: 11px;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(31, 41, 55, 0.08);
}

.cover-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1f2937;
}

.cover-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: #2a4d8f;
  border-bottom: 1px solid #c3cbd9;
  align-self: flex-start;
}

.cover-link:hover {
  color: #1c3767;
  border-bottom-color: #1c3767;
}

/* 任务分组 */

.task-card {
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.task-card + .task-card {
  margin-top: 12px;
}

.task-name {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.task-fields {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 14px;
  margin-top: 12px;
}

.task-fields dt {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.task-fields dd {
  font-size: 13.5px;
  color: #374151;
}

.task-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #2a4d8f;
  border: 1px solid #c3cbd9;
  border-radius: 4px;
}

.task-link:hover {
  border-color: #2a4d8f;
  color: #1c3767;
}

/* 读前检查摘要 */

.check-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.check-item {
  position: relative;
  padding: 10px 14px 10px 38px;
  font-size: 13.5px;
  color: #374151;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.check-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 12px;
  height: 12px;
  border: 1px solid #c3cbd9;
  border-radius: 3px;
  background-color: #f8f9fb;
}

.brief-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #2a4d8f;
  border-bottom: 1px solid #c3cbd9;
}

.brief-link:hover {
  color: #1c3767;
  border-bottom-color: #1c3767;
}

/* --------------------------------------------------------------------------
   5. pages — 内页通用区块
   -------------------------------------------------------------------------- */

.page-hero,
.page-head {
  margin-bottom: 20px;
}

.page-lead,
.page-desc,
.page-task {
  max-width: 74ch;
  font-size: 14px;
  color: #4b5563;
}

.page-title-block {
  margin-bottom: 18px;
}

.section,
.content-section {
  margin-top: 24px;
}

.section + .section,
.content-section + .content-section {
  margin-top: 24px;
}

/* 题材地图 */

.section-standard .field-table {
  min-width: 620px;
}

.field-row th.cell-zone {
  display: table-cell;
}

.section-zones .zone-block {
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.section-zones .zone-block + .zone-block {
  margin-top: 12px;
}

.zone-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.zone-block-desc {
  margin-top: 8px;
  max-width: 74ch;
  font-size: 13.5px;
  color: #4b5563;
}

.zone-block-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #2a4d8f;
  border-bottom: 1px solid #c3cbd9;
}

.zone-block-link:hover {
  color: #1c3767;
  border-bottom-color: #1c3767;
}

.section-zones .zone-figure {
  margin-top: 12px;
}

.section-zones .zone-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pitfall-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.pitfall-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background-color: #f8f9fb;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.pitfall-index {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 700;
  color: #b26a00;
  background-color: #fdf2e2;
  border: 1px solid #eccfa2;
  border-radius: 4px;
}

.pitfall-text {
  flex: 1 1 auto;
  min-width: 220px;
  font-size: 13.5px;
  color: #374151;
}

/* 更新与榜单 */

.page-bangdan .content-section {
  margin-top: 24px;
}

.content-figure {
  margin-top: 24px;
}

.content-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.step-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.step-item {
  padding: 14px 16px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.step-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1f2937;
}

.step-body {
  margin-top: 6px;
  font-size: 13.5px;
  color: #4b5563;
}

.step-action {
  margin-top: 6px;
  font-size: 13px;
  color: #2a4d8f;
}

.page-bangdan .boundary-bar {
  margin-top: 24px;
}

.page-bangdan .related-section {
  margin-top: 24px;
}

/* 阅读准备 */

.section-checklist .checklist {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.checklist-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.checklist-box {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 1px solid #c3cbd9;
  border-radius: 3px;
  background-color: #f8f9fb;
}

.checklist-body {
  flex: 1 1 auto;
  min-width: 220px;
}

.checklist-name {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.checklist-note {
  margin-top: 4px;
  font-size: 13px;
  color: #4b5563;
}

.copy-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  background-color: #f8f9fb;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.copy-text {
  flex: 1 1 320px;
  min-width: 220px;
  font-size: 13px;
  color: #374151;
  white-space: pre-line;
}

.copy-button {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #2a4d8f;
  background-color: #ffffff;
  border: 1px solid #c3cbd9;
  border-radius: 4px;
}

.copy-button:hover {
  border-color: #2a4d8f;
  color: #1c3767;
}

.section-startpoint .startpoint-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.startpoint-item {
  padding: 14px 16px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.startpoint-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #1f2937;
}

.startpoint-cond {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

.startpoint-how {
  margin-top: 6px;
  font-size: 13.5px;
  color: #4b5563;
}

.startpoint-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #2a4d8f;
  border-bottom: 1px solid #c3cbd9;
}

.startpoint-link:hover {
  color: #1c3767;
  border-bottom-color: #1c3767;
}

.section-questions .question-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.question-item {
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.question-name {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.question-answer {
  margin-top: 6px;
  font-size: 13.5px;
  color: #4b5563;
}

/* 卷册推进 */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: 24px;
  align-items: start;
}

.main-column,
.page-content {
  min-width: 0;
}

.page-jindu .page-head {
  margin-bottom: 20px;
}

.page-jindu .content-section {
  margin-top: 24px;
}

.side-column {
  margin-top: 0;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.side-column .side-list {
  display: grid;
  gap: 10px;
}

.side-column .side-item {
  padding: 0;
  background-color: transparent;
  border: 0;
}

.break-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.break-item {
  padding: 14px 16px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.break-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #1f2937;
}

.break-symptom {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

.break-action {
  margin-top: 6px;
  font-size: 13.5px;
  color: #374151;
}

.break-record {
  margin-top: 6px;
  font-size: 13px;
  color: #2a4d8f;
}

.record-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.record-item {
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.record-name {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.record-text {
  margin-top: 6px;
  font-size: 13.5px;
  color: #4b5563;
}

/* 读后回顾 */

.page-huigu .page-title-block {
  margin-bottom: 18px;
}

.page-huigu .page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: 24px;
  align-items: start;
}

.page-huigu .page-content .breadcrumb {
  margin-bottom: 14px;
}

.page-huigu .content-section {
  margin-top: 24px;
}

.review-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  counter-reset: review;
}

.review-item {
  position: relative;
  padding: 12px 14px 12px 46px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
  counter-increment: review;
}

.review-item::before {
  content: counter(review, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 13px;
  font-size: 12px;
  font-weight: 700;
  color: #2a4d8f;
  font-variant-numeric: tabular-nums;
}

.review-question {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.review-note {
  margin-top: 6px;
  font-size: 13.5px;
  color: #4b5563;
}

.field-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.page-huigu .field-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.field-name {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.field-body {
  min-width: 220px;
  font-size: 13.5px;
  color: #4b5563;
}

.switch-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.switch-item {
  padding: 12px 14px;
  font-size: 13.5px;
  color: #374151;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-left: 3px solid #2a4d8f;
  border-radius: 6px;
}

.page-aside {
  margin-top: 0;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.page-aside .aside-list {
  display: grid;
  gap: 10px;
}

.page-aside .aside-item {
  padding: 0;
  background-color: transparent;
  border: 0;
}

/* 阅读问答 */

.faq-cats {
  margin-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d8dce3;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.faq-cat-list {
  display: flex;
  gap: 8px;
  min-width: max-content;
}

.faq-cat-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 4px;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.faq-cat-link:hover {
  border-color: #2a4d8f;
  color: #2a4d8f;
}

.faq-section {
  margin-top: 20px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  list-style: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  color: #2a4d8f;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid #e6e9ee;
}

.faq-answer {
  padding: 12px 16px 16px;
}

.faq-answer p {
  font-size: 13.5px;
  color: #4b5563;
}

.faq-answer p + p {
  margin-top: 8px;
}

.page-wenda .page-figure {
  margin-top: 24px;
}

.page-wenda .page-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.rules-section {
  margin-top: 24px;
}

.page-wenda .related-block {
  margin-top: 24px;
}

.page-wenda .related-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.page-wenda .related-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.page-wenda .related-desc {
  margin-top: 0;
}

/* 404 */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-panel {
  width: 100%;
  max-width: 640px;
  padding: 28px 24px;
  text-align: left;
  background-color: #ffffff;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.error-code {
  font-size: 13px;
  font-weight: 700;
  color: #b26a00;
  font-variant-numeric: tabular-nums;
}

.error-panel h1 {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
}

.error-text {
  margin-top: 10px;
  font-size: 13.5px;
  color: #4b5563;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   6. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0 12px;
    border-top: 1px solid #e6e9ee;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-left: 3px solid transparent;
    border-radius: 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-current {
    border-left-color: #2a4d8f;
    background-color: #f4f5f7;
  }

  .site-main,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .hero-text h1 {
    font-size: 22px;
  }

  .zone-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout,
  .page-huigu .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-column,
  .page-aside {
    margin-top: 24px;
  }

  .page-title {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .brand-slogan {
    display: none;
  }

  .hero-text h1 {
    font-size: 20px;
  }

  .page-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn {
    width: 100%;
  }

  .zone-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .task-fields dt {
    margin-top: 8px;
  }

  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .page-huigu .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .boundary-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .boundary-link {
    justify-content: center;
  }

  .copy-block {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-button {
    width: 100%;
  }

  .error-actions {
    flex-direction: column;
  }
}
