/* ==========================================================================
   看漫画 7xiaxia.com — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #f6f8f9;
  color: #14212b;
  font-family: -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
  color: #14212b;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1d6fd6;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #1d6fd6;
  outline-offset: 2px;
}

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --------------------------------------------------------------------------
   layout — 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f6f8f9;
  color: #14212b;
  font-size: 16px;
  line-height: 1.75;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.inner-main {
  max-width: 1180px;
  padding-top: 0;
}

/* 内页两栏外壳：默认主内容在前，aside 在后 */
.page-layout {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 40px;
  align-items: start;
}

/* 侧栏在前的变体：.sidebar-left 为祖先节点时 */
.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.sidebar-left .page-layout > .page-content,
.page-layout.sidebar-left > .page-content,
.sidebar-left .page-layout > .site-main,
.page-layout.sidebar-left > .site-main {
  min-width: 0;
}

/* body 直接承载侧栏与主内容时的兜底布局 */
body.sidebar-left {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 40px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

body.sidebar-left > .site-header,
body.sidebar-left > .breadcrumb-bar,
body.sidebar-left > .site-footer {
  grid-column: 1 / -1;
}

body.sidebar-left > .site-main,
body.sidebar-left > .page-content {
  grid-column: 2;
  min-width: 0;
}

body.sidebar-left > .page-sidebar,
body.sidebar-left > .page-aside,
body.sidebar-left > .side-toc {
  grid-column: 1;
}

/* --------------------------------------------------------------------------
   components — 页头 / 导航
   -------------------------------------------------------------------------- */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #dde5e9;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #14212b;
  letter-spacing: 0;
  padding-bottom: 10px;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
  color: #1d6fd6;
}

.brand-sub {
  font-size: 13px;
  font-weight: 400;
  color: #5a6b76;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  margin-bottom: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dde5e9;
  border-radius: 4px;
  background-color: #ffffff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #14212b;
}

.group-nav {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  padding-bottom: 0;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-group-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #5a6b76;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.nav-link {
  display: inline-block;
  padding: 10px 12px;
  font-size: 15px;
  color: #14212b;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  text-decoration: none;
  color: #1d6fd6;
  border-bottom-color: #1d6fd6;
}

.nav-link.is-current {
  font-weight: 700;
  color: #1d6fd6;
  border-bottom-color: #1d6fd6;
}

.nav-group-reading,
.nav-group-archive,
.nav-group-guide {
  background-color: transparent;
  border-radius: 4px;
}

.nav-group:has(.nav-link.is-current) {
  background-color: #eef4f7;
}

/* 面包屑 */
.breadcrumb-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #5a6b76;
}

.breadcrumb-item {
  color: #5a6b76;
}

.breadcrumb-item a {
  color: #1d6fd6;
}

.breadcrumb-item.is-current,
.breadcrumb-item.breadcrumb-current {
  color: #5a6b76;
}

.breadcrumb-item + .breadcrumb-item::before,
.breadcrumb-item + .breadcrumb-sep::before {
  content: "›";
  margin-right: 6px;
  color: #5a6b76;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #5a6b76;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #1d6fd6;
}

.breadcrumb-sep {
  color: #5a6b76;
}

.breadcrumb-current {
  color: #5a6b76;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  color: #14212b;
  margin-bottom: 10px;
}

.page-description,
.page-lead,
.page-summary {
  font-size: 16px;
  color: #5a6b76;
  max-width: 68ch;
  margin-bottom: 8px;
}

.page-path,
.path-note {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #5a6b76;
  background-color: #eef4f7;
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 0;
}

.page-title-block {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

.page-hero {
  margin-bottom: 28px;
}

.page-head {
  margin-bottom: 28px;
}

/* 侧栏目录 */
.page-sidebar,
.page-aside,
.side-toc {
  min-width: 0;
  position: sticky;
  top: 96px;
  align-self: start;
}

.sidebar-heading,
.toc-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #5a6b76;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dde5e9;
}

.toc-block {
  border: 1px solid #dde5e9;
  border-radius: 4px;
  background-color: #ffffff;
  padding: 12px 14px;
}

.toc-block > summary.toc-title {
  cursor: pointer;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.toc-block[open] > summary.toc-title {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dde5e9;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: #5a6b76;
  border-left: 2px solid #dde5e9;
  border-radius: 0;
}

.toc-link:hover,
.toc-link:focus-visible {
  color: #1d6fd6;
  border-left-color: #1d6fd6;
  text-decoration: none;
  background-color: #eef4f7;
}

.toc-link.is-active,
.toc-item .toc-link.is-active {
  color: #1d6fd6;
  font-weight: 700;
  border-left-color: #1d6fd6;
  background-color: #eef4f7;
}

.toc-progress {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #5a6b76;
  margin-top: 10px;
}

/* 内容区块 */
.content-block,
.content-section {
  margin-bottom: 44px;
}

.content-block > h2,
.content-section > h2 {
  font-size: 22px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dde5e9;
}

.content-block > p,
.content-section > p {
  color: #14212b;
  max-width: 68ch;
}

.block-intro,
.section-intro,
.section-lead {
  color: #5a6b76;
  max-width: 68ch;
  margin-bottom: 18px;
}

/* 摘要块 */
.summary-block,
.summary-box,
.callout {
  background-color: #eef4f7;
  border-left: 3px solid #0e7c66;
  border-radius: 4px;
  padding: 16px 20px;
}

.summary-block p,
.summary-box p,
.callout p {
  max-width: 66ch;
  color: #14212b;
}

/* 延伸入口 */
.next-links,
.next-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.next-links li,
.next-list li {
  min-width: 0;
}

.next-links a,
.next-list a,
.next-item a {
  display: inline-block;
  padding: 8px 0 8px 16px;
  position: relative;
  font-size: 15px;
  color: #1d6fd6;
}

.next-links a::before,
.next-list a::before,
.next-item a::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #0e7c66;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #dde5e9;
}

.related-links-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #5a6b76;
}

.related-links-item {
  font-size: 14px;
  color: #1d6fd6;
  padding: 6px 10px;
  border: 1px solid #dde5e9;
  border-radius: 4px;
  background-color: #ffffff;
}

.related-links-item:hover,
.related-links-item:focus-visible {
  text-decoration: none;
  border-color: #1d6fd6;
  background-color: #eef4f7;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid #dde5e9;
  border-radius: 4px;
  background-color: #ffffff;
}

.field-table {
  width: 100%;
  font-size: 15px;
}

.field-table caption {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  color: #5a6b76;
  border-bottom: 1px solid #dde5e9;
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid #dde5e9;
  vertical-align: top;
}

.field-table thead th {
  background-color: #eef4f7;
  font-size: 14px;
  color: #14212b;
  font-weight: 700;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

.field-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #0e7c66;
  white-space: nowrap;
}

/* 图片容器 */
.hero-figure,
.detail-figure,
.content-figure,
.section-figure,
.entry-figure,
.note-figure,
.media-figure {
  margin: 0 0 20px;
  border: 1px solid #dde5e9;
  border-radius: 4px;
  background-color: #ffffff;
  overflow: hidden;
}

.hero-figure img,
.detail-figure img,
.content-figure img,
.section-figure img,
.entry-figure img,
.note-figure img,
.media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hero-figure figcaption,
.detail-figure figcaption,
.content-figure figcaption,
.section-figure figcaption,
.entry-figure figcaption,
.note-figure figcaption,
.media-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: #5a6b76;
  border-top: 1px solid #dde5e9;
  background-color: #ffffff;
}

/* 作品索引行（通用） */
.entry-rows,
.entry-list {
  display: flex;
  flex-direction: column;
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px 16px;
  padding: 10px 4px;
  border-bottom: 1px solid #dde5e9;
  min-height: 44px;
}

.entry-row:last-child {
  border-bottom: none;
}

.entry-name {
  font-size: 15px;
  color: #1d6fd6;
  min-width: 0;
  overflow-wrap: anywhere;
}

.entry-genre,
.entry-year {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #5a6b76;
  white-space: nowrap;
}

/* 状态标签 */
.status,
.status-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-ongoing,
.status-tag.status-ongoing {
  color: #0e7c66;
  background-color: #e6f4f1;
  border-color: #b6ded5;
}

.status-hiatus,
.status-tag.status-hiatus,
.status-pause,
.status-tag.status-pause {
  color: #b7791f;
  background-color: #fbf3e2;
  border-color: #ecd6a8;
}

.status-complete,
.status-completed,
.status-done,
.status-tag.status-done,
.status-tag.status-completed {
  color: #5a6b76;
  background-color: #eef4f7;
  border-color: #dde5e9;
}

/* 步骤 / 规则列表 */
.step-list,
.rule-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-item,
.rule-item {
  padding-left: 18px;
  border-left: 2px solid #dde5e9;
}

.step-title,
.rule-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.step-item p,
.rule-item p {
  max-width: 66ch;
}

.step-note {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #5a6b76;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid #dde5e9;
  border-radius: 4px;
  background-color: #ffffff;
}

.faq-question {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #14212b;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #1d6fd6;
  font-weight: 400;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid #dde5e9;
}

.faq-answer {
  padding: 14px 18px;
}

.faq-answer p {
  max-width: 66ch;
  color: #14212b;
}

/* 页脚 */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #dde5e9;
  color: #14212b;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #5a6b76;
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  font-size: 14px;
  color: #1d6fd6;
  display: inline-block;
  padding: 4px 0;
}

.footer-text {
  font-size: 14px;
  color: #5a6b76;
  max-width: 40ch;
}

.footer-bottom {
  border-top: 1px solid #dde5e9;
}

.footer-bottom p {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: #5a6b76;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

.home-main {
  padding-top: 0;
}

/* 首屏 */
.hero {
  background-color: #ffffff;
  border-bottom: 1px solid #dde5e9;
  margin-bottom: 44px;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: start;
}

.hero-lead {
  min-width: 0;
}

.hero-lead h1 {
  font-size: 34px;
  margin-bottom: 16px;
}

.hero-text {
  font-size: 16px;
  color: #5a6b76;
  max-width: 46ch;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background-color: #1d6fd6;
  color: #ffffff;
  border-color: #1d6fd6;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #1659ac;
  border-color: #1659ac;
  color: #ffffff;
}

.btn-ghost {
  background-color: #ffffff;
  color: #14212b;
  border-color: #dde5e9;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: #1d6fd6;
  color: #1d6fd6;
}

.hero-index {
  min-width: 0;
  border: 1px solid #dde5e9;
  border-radius: 4px;
  background-color: #ffffff;
  padding: 18px 20px;
}

.index-heading {
  font-size: 18px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dde5e9;
}

.index-more,
.section-more {
  margin: 12px 0 0;
  font-size: 14px;
}

.hero-figure {
  max-width: 1180px;
  margin: 0 auto 0;
  border: none;
  border-top: 1px solid #dde5e9;
  border-radius: 0;
}

.hero-figure img {
  aspect-ratio: 21 / 9;
}

/* 通用 section */
.section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dde5e9;
}

/* 三步阅读路径 */
.path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.path-item {
  min-width: 0;
  border-top: 2px solid #1d6fd6;
  padding-top: 16px;
}

.path-num {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #5a6b76;
  margin-bottom: 6px;
}

.path-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.path-text {
  color: #5a6b76;
  margin-bottom: 10px;
}

.path-link {
  font-size: 14px;
}

/* 题材分组作品索引 */
.genre-group {
  margin-top: 26px;
}

.genre-heading {
  font-size: 18px;
  margin-bottom: 8px;
  padding: 6px 0 6px 12px;
  border-left: 3px solid #0e7c66;
  background-color: #eef4f7;
  border-radius: 0 4px 4px 0;
}

/* 作品档案详情展开 */
.entry-detail .field-table {
  margin-bottom: 20px;
}

/* 年份归档带 */
.year-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.year-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 8px 16px;
  border: 1px solid #dde5e9;
  border-radius: 4px;
  background-color: #ffffff;
  color: #1d6fd6;
  min-height: 44px;
  line-height: 26px;
}

.year-tag:hover,
.year-tag:focus-visible {
  text-decoration: none;
  border-color: #1d6fd6;
  background-color: #eef4f7;
}

.year-tag.is-active {
  background-color: #1d6fd6;
  border-color: #1d6fd6;
  color: #ffffff;
}

/* 连载状态一览 */
.status-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.status-column {
  min-width: 0;
  border: 1px solid #dde5e9;
  border-radius: 4px;
  background-color: #ffffff;
  padding: 16px 18px;
}

.status-heading {
  font-size: 18px;
  margin-bottom: 8px;
}

.status-note {
  font-size: 14px;
  color: #5a6b76;
  margin-bottom: 10px;
}

.status-list {
  display: flex;
  flex-direction: column;
}

.status-list li {
  border-bottom: 1px solid #dde5e9;
}

.status-list li:last-child {
  border-bottom: none;
}

.status-list a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  min-height: 44px;
}

/* 阅读方式摘要 */
.summary-columns {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  margin-top: 18px;
}

.summary-text {
  min-width: 0;
}

.summary-text p {
  max-width: 68ch;
  color: #14212b;
}

/* --------------------------------------------------------------------------
   pages — 内页（works / timeline / entry / notes / reading / feedback）
   -------------------------------------------------------------------------- */

/* works */
.page-works .genre-group {
  margin-top: 30px;
}

.page-works .entry-list {
  margin-top: 6px;
}

.advice-group {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #dde5e9;
}

.advice-heading {
  font-size: 18px;
  margin-bottom: 6px;
}

.advice-group p {
  max-width: 66ch;
  color: #14212b;
}

.next-block .next-list {
  margin-top: 12px;
}

/* timeline */
.section-band {
  margin-bottom: 40px;
}

.year-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.year-group {
  margin-top: 28px;
}

.year-heading {
  font-size: 18px;
  margin-bottom: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #14212b;
  padding-bottom: 8px;
  border-bottom: 1px solid #dde5e9;
}

.section-rule .rule-block {
  margin-top: 20px;
  padding-left: 18px;
  border-left: 2px solid #dde5e9;
}

.section-rule .rule-block h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.section-rule .rule-block p {
  max-width: 66ch;
}

.section-next .next-list {
  margin-top: 12px;
}

/* entry */
.block-fields .field-table {
  margin-top: 14px;
}

.block-order .rule-list {
  margin-top: 16px;
}

.block-example .entry-figure {
  margin-top: 16px;
}

.example-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.example-points li {
  padding-left: 16px;
  position: relative;
  color: #14212b;
  max-width: 66ch;
}

.example-points li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: #0e7c66;
  font-weight: 700;
}

.example-points strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: #0e7c66;
  margin-right: 6px;
}

.block-next .next-list {
  margin-top: 12px;
}

/* notes */
.note-item {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #dde5e9;
}

.note-item:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 18px;
}

.note-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.note-summary {
  max-width: 68ch;
  color: #14212b;
  margin-bottom: 10px;
}

.note-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-points li {
  padding-left: 16px;
  position: relative;
  color: #5a6b76;
  max-width: 66ch;
}

.note-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #0e7c66;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.note-figure {
  margin-bottom: 24px;
}

/* reading */
.step-list .step-item {
  position: relative;
}

.step-list .step-title {
  font-size: 18px;
}

.media-figure {
  margin-bottom: 24px;
}

/* feedback */
.page-feedback .page-content {
  min-width: 0;
}

.coop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.coop-item {
  min-width: 0;
  border: 1px solid #dde5e9;
  border-radius: 4px;
  background-color: #ffffff;
  padding: 18px;
}

.coop-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.coop-desc {
  font-size: 14px;
  color: #5a6b76;
  margin-bottom: 12px;
}

.material-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.material-list li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  color: #14212b;
}

.material-list li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: #0e7c66;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.scope-col {
  min-width: 0;
  border: 1px solid #dde5e9;
  border-radius: 4px;
  background-color: #ffffff;
  padding: 18px;
}

.scope-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scope-list li {
  padding-left: 18px;
  position: relative;
  font-size: 14px;
  color: #14212b;
}

.scope-list-yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0e7c66;
}

.scope-list-no li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #b7791f;
}

/* 404 */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 96px;
}

.error-block {
  max-width: 640px;
  text-align: left;
}

.error-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: #5a6b76;
  margin-bottom: 8px;
}

.error-title {
  font-size: 34px;
  margin-bottom: 12px;
}

.error-text {
  color: #5a6b76;
  max-width: 60ch;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 4px;
  background-color: #1d6fd6;
  border: 1px solid #1d6fd6;
  color: #ffffff;
  font-size: 15px;
}

.error-btn:hover,
.error-btn:focus-visible {
  text-decoration: none;
  background-color: #1659ac;
  border-color: #1659ac;
  color: #ffffff;
}

.error-link {
  font-size: 15px;
  color: #1d6fd6;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .page-layout,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  body.sidebar-left > .site-main,
  body.sidebar-left > .page-content,
  body.sidebar-left > .page-sidebar,
  body.sidebar-left > .page-aside,
  body.sidebar-left > .side-toc {
    grid-column: 1;
  }

  .page-sidebar,
  .page-aside,
  .side-toc {
    position: static;
    order: 1;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .summary-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .path-list,
  .status-columns,
  .coop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scope-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    padding: 12px 16px 0;
    gap: 8px 16px;
  }

  .menu-toggle {
    display: flex;
  }

  .group-nav {
    flex-direction: column;
    gap: 16px;
    padding: 12px 0 16px;
    border-top: 1px solid #dde5e9;
    margin-top: 4px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-group {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-group-title {
    padding-left: 4px;
  }

  .nav-link {
    padding: 12px 8px;
    border-bottom: 1px solid #dde5e9;
    border-left: 2px solid transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-link.is-current {
    border-bottom-color: #dde5e9;
    border-left-color: #1d6fd6;
    background-color: #eef4f7;
  }

  .breadcrumb-bar {
    padding: 14px 16px 0;
  }

  .site-main,
  .inner-main,
  .page-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title-block {
    padding: 16px 16px 0;
  }

  .page-title,
  h1 {
    font-size: 26px;
  }

  .hero-inner {
    padding: 32px 16px 24px;
  }

  .hero-lead h1 {
    font-size: 26px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 9;
  }

  .path-list,
  .status-columns,
  .coop-grid,
  .scope-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    align-items: start;
  }

  .entry-row .entry-genre,
  .entry-row .entry-year,
  .entry-row .status,
  .entry-row .status-tag {
    justify-self: start;
  }

  .year-band,
  .year-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 20px;
  }

  .footer-bottom p {
    padding: 14px 16px;
  }

  .error-main {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .error-title {
    font-size: 26px;
  }
}

@media (max-width: 420px) {
  .btn,
  .error-btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
