/* ==========================================================================
   午夜AV视频影院 · 全站样式
   分组：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: #fbf7f2;
  color: #2a2320;
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 16px;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-weight: 600;
  line-height: 1.4;
  color: #2a2320;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 19px;
}

h4 {
  font-size: 17px;
}

p {
  margin: 0 0 14px;
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: #c2571f;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #8a6b3f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #c2571f;
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b5f57;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e8ded3;
}

th {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  color: #2a2320;
  background-color: #f3e7da;
}

caption {
  padding: 0 0 10px;
  text-align: left;
  font-size: 14px;
  color: #6b5f57;
}

dl {
  margin: 0;
}

dt {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  color: #2a2320;
}

dd {
  margin: 0 0 12px;
  color: #6b5f57;
  font-size: 15px;
}

dd:last-child {
  margin-bottom: 0;
}

details summary {
  cursor: pointer;
}

/* 通用按钮 */
.button-primary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.button-primary {
  background-color: #c2571f;
  color: #fbf7f2;
  border: 1px solid #c2571f;
}

.button-primary:hover,
.button-primary:focus-visible {
  background-color: #8a6b3f;
  border-color: #8a6b3f;
  color: #fbf7f2;
  text-decoration: none;
}

.button-ghost {
  background-color: transparent;
  color: #c2571f;
  border: 1px solid #e8ded3;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background-color: #f3e7da;
  border-color: #8a6b3f;
  color: #8a6b3f;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   layout
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部信息条 */
.top-bar {
  background-color: #f3e7da;
  border-bottom: 1px solid #e8ded3;
}

.top-bar p {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b5f57;
}

/* 页头 */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 24px;
  background-color: #fbf7f2;
  border-bottom: 1px solid #e8ded3;
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #2a2320;
  letter-spacing: 0;
}

.brand:hover,
.brand:focus-visible {
  color: #c2571f;
  text-decoration: none;
}

/* 主导航 */
.site-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e8ded3;
  border-radius: 6px;
  background-color: #fbf7f2;
  color: #2a2320;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: #2a2320;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background-color: #f3e7da;
  color: #c2571f;
  text-decoration: none;
}

.nav-list a.is-current {
  background-color: #f3e7da;
  color: #c2571f;
  font-weight: 600;
}

/* 主内容 */
.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  min-width: 0;
}

/* 首页与内页双栏骨架：默认主内容在前、aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 56px;
  align-items: start;
}

/* 侧栏在前的内页：aside 与 main 是同一容器的直接子元素 */
.page-layout.sidebar-left {
  grid-template-columns: 220px minmax(0, 1fr);
}

.page-layout.sidebar-left .site-main {
  min-width: 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #6b5f57;
}

.breadcrumb a {
  color: #c2571f;
}

.breadcrumb-sep {
  color: #8a6b3f;
}

.breadcrumb-current {
  color: #6b5f57;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8ded3;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: #2a2320;
}

.page-description {
  margin: 12px 0 0;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.8;
  color: #6b5f57;
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  background-color: #f3e7da;
  border-top: 1px solid #e8ded3;
}

.footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-about h2,
.footer-links h2 {
  margin-bottom: 12px;
  font-size: 17px;
  color: #2a2320;
}

.footer-about p {
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.8;
  color: #6b5f57;
}

.footer-links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin-bottom: 16px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: #c2571f;
}

.footer-note {
  max-width: 60ch;
  font-size: 13px;
  line-height: 1.8;
  color: #6b5f57;
}

.footer-copyright {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid #e8ded3;
  font-size: 13px;
  color: #6b5f57;
}

/* --------------------------------------------------------------------------
   components
   -------------------------------------------------------------------------- */

/* 区块通用 */
.content-section {
  margin-bottom: 40px;
}

.content-section h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.section-lead,
.section-intro {
  max-width: 68ch;
  margin-bottom: 20px;
  font-size: 16px;
  color: #6b5f57;
}

/* 图片容器：固定宽高比，防止布局抖动 */
.section-media,
.media-figure,
.guide-figure,
.records-figure {
  margin: 0 0 20px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f3e7da;
}

.section-media img,
.media-figure img,
.guide-figure img,
.records-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-media figcaption,
.media-figure figcaption,
.guide-figure figcaption,
.records-figure figcaption {
  padding: 0 2px;
}

/* 频道编号行（首页总览与频道对照表共用结构，按父级限定） */
.channel-rows {
  display: block;
  border-top: 1px solid #e8ded3;
}

.channel-row {
  display: grid;
  align-items: start;
  gap: 8px 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e8ded3;
}

.channel-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 2px 10px;
  border-radius: 6px;
  background-color: #f3e7da;
  color: #8a6b3f;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.channel-name {
  font-size: 19px;
  color: #2a2320;
}

.channel-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #2a2320;
}

.channel-adj {
  font-size: 14px;
  color: #6b5f57;
}

.channel-scope {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #6b5f57;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #c2571f;
  white-space: nowrap;
}

.channel-link::after {
  content: "›";
  margin-left: 4px;
}

/* 首页频道总览：编号 / 名称 / 描述 / 相邻 / 链接 */
.channel-overview .channel-row {
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr) auto;
  grid-template-areas:
    "code name adj link"
    "code desc adj link";
}

.channel-overview .channel-code {
  grid-area: code;
}

.channel-overview .channel-name {
  grid-area: name;
}

.channel-overview .channel-desc {
  grid-area: desc;
}

.channel-overview .channel-adj {
  grid-area: adj;
}

.channel-overview .channel-link {
  grid-area: link;
}

/* 频道分类页对照表：编号 / 正文块 / 链接 */
.section-table .channel-row {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  grid-template-areas: "code body link";
}

.section-table .channel-code {
  grid-area: code;
}

.section-table .channel-body {
  grid-area: body;
  min-width: 0;
}

.section-table .channel-link {
  grid-area: link;
}

.channel-body h3 {
  margin-bottom: 6px;
}

/* 专题卡 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #e8ded3;
  border-radius: 8px;
  background-color: #fffdfa;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.topic-card:hover,
.topic-card:focus-within {
  border-color: #8a6b3f;
  background-color: #fdf6ee;
}

.topic-media {
  margin: 0 0 14px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f3e7da;
}

.topic-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.topic-cover,
.topic-order {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #6b5f57;
}

.topic-order {
  color: #4a6b4f;
}

.topic-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #c2571f;
}

/* 首页右栏：浏览前准备要点 */
.prep-block,
.record-glance {
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #e8ded3;
  border-radius: 8px;
  background-color: #fffdfa;
}

.prep-block h2,
.record-glance h2 {
  margin-bottom: 14px;
  font-size: 19px;
}

.prep-steps {
  counter-reset: prep;
  margin-bottom: 16px;
}

.prep-step {
  display: block;
  padding: 12px 0;
  border-bottom: 1px dashed #e8ded3;
}

.prep-step:last-child {
  border-bottom: 0;
}

.prep-step .step-name {
  display: block;
  margin-bottom: 6px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2a2320;
}

.prep-step .step-need {
  display: block;
  font-size: 14px;
  line-height: 1.8;
  color: #6b5f57;
}

.prep-step .step-done {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.8;
  color: #4a6b4f;
}

.prep-link,
.record-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #c2571f;
}

/* 首页右栏：整理记录速览 */
.record-month {
  padding: 12px 0;
  border-bottom: 1px dashed #e8ded3;
}

.record-month:last-of-type {
  border-bottom: 0;
}

.record-month h3 {
  margin-bottom: 8px;
  font-size: 15px;
  color: #8a6b3f;
}

.record-item {
  padding: 8px 0;
}

.record-item .record-target {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2a2320;
}

.record-item .record-scope {
  display: block;
  font-size: 13px;
  line-height: 1.8;
  color: #6b5f57;
}

/* 站内栏目索引 */
.site-index {
  max-width: 1120px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

.site-index h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.index-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.index-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 16px;
  border: 1px solid #e8ded3;
  border-radius: 8px;
  background-color: #fffdfa;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.index-item:hover,
.index-item:focus-visible {
  border-color: #8a6b3f;
  background-color: #fdf6ee;
  text-decoration: none;
}

.index-name {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #c2571f;
}

.index-note {
  font-size: 13px;
  line-height: 1.8;
  color: #6b5f57;
}

/* 内页侧栏分组导航 */
.side-nav,
.page-aside {
  position: sticky;
  top: 84px;
  padding: 20px;
  border: 1px solid #e8ded3;
  border-radius: 8px;
  background-color: #fffdfa;
  min-width: 0;
}

.side-group {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed #e8ded3;
}

.side-group:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.side-group-title,
.aside-title {
  margin-bottom: 8px;
  font-size: 15px;
  color: #8a6b3f;
}

.side-group-list,
.side-list,
.aside-list {
  display: block;
}

.side-group-list li,
.side-list li,
.aside-list li {
  display: block;
}

.side-group-list a,
.side-list a,
.aside-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 6px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: #2a2320;
}

.side-group-list a:hover,
.side-list a:hover,
.aside-list a:hover,
.side-group-list a:focus-visible,
.side-list a:focus-visible,
.aside-list a:focus-visible {
  background-color: #f3e7da;
  color: #c2571f;
  text-decoration: none;
}

.side-group-list a.is-current,
.side-list a.is-current,
.aside-list a.is-current {
  background-color: #f3e7da;
  color: #c2571f;
  font-weight: 600;
}

.side-group.is-open .side-group-title {
  color: #c2571f;
}

.aside-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #6b5f57;
}

/* 内页相关入口块 */
.aside-block {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed #e8ded3;
}

.aside-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.aside-block h2 {
  margin-bottom: 10px;
  font-size: 17px;
}

.aside-block p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: #6b5f57;
}

.aside-block a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #c2571f;
}

.aside-links {
  display: block;
}

.aside-links a {
  display: flex;
}

/* 字段说明块 */
.field-list {
  margin-top: 6px;
}

.field-list dt {
  margin-top: 10px;
  font-size: 14px;
  color: #2a2320;
}

.field-list dd {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #6b5f57;
}

/* 频道分类页：相邻与交叉说明 */
.cross-item {
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #e8ded3;
  border-radius: 8px;
  background-color: #fffdfa;
}

.cross-item:last-child {
  margin-bottom: 0;
}

.cross-item h3 {
  margin-bottom: 8px;
  font-size: 17px;
  color: #8a6b3f;
}

.cross-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #2a2320;
}

/* 频道分类页：进入专题片单路径 */
.path-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.path-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #e8ded3;
  border-radius: 6px;
  background-color: #fffdfa;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #c2571f;
}

.path-links a:hover,
.path-links a:focus-visible {
  background-color: #f3e7da;
  border-color: #8a6b3f;
  color: #8a6b3f;
  text-decoration: none;
}

/* 专题页：命名与覆盖范围列表 */
.topic-list {
  border-top: 1px solid #e8ded3;
}

.topic-row {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e8ded3;
}

.topic-name {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #2a2320;
}

.topic-basis,
.topic-scope,
.topic-direction {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #6b5f57;
}

.topic-basis {
  grid-column: 2;
  grid-row: 1;
}

.topic-scope {
  grid-column: 2;
  grid-row: 2;
}

.topic-direction {
  grid-column: 2;
  grid-row: 3;
  color: #4a6b4f;
}

/* 专题页：对应关系表 */
.mapping-table {
  margin-top: 4px;
}

/* 专题页：浏览顺序建议 */
.order-list {
  counter-reset: order;
}

.order-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 14px 0;
  border-bottom: 1px dashed #e8ded3;
}

.order-item:last-child {
  border-bottom: 0;
}

.order-item::before {
  counter-increment: order;
  content: counter(order, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #8a6b3f;
}

.order-item h3 {
  grid-column: 2;
  font-size: 17px;
}

.order-item p {
  grid-column: 2;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #6b5f57;
}

/* 浏览指引页：准备条件 */
.prep-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.prep-item {
  padding: 16px;
  border: 1px solid #e8ded3;
  border-radius: 8px;
  background-color: #fffdfa;
}

.prep-item h3 {
  margin-bottom: 8px;
  font-size: 17px;
  color: #2a2320;
}

.prep-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #6b5f57;
}

/* 浏览指引页：步骤条 */
.step-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.step-item {
  position: relative;
  padding: 18px 16px 16px;
  border: 1px solid #e8ded3;
  border-radius: 8px;
  background-color: #fffdfa;
}

.step-item .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  margin-bottom: 10px;
  border-radius: 6px;
  background-color: #f3e7da;
  color: #8a6b3f;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step-item h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.step-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #6b5f57;
}

/* 浏览指引页：完成检查清单 */
.check-table {
  margin-top: 4px;
  border: 1px solid #e8ded3;
  border-radius: 8px;
  overflow: hidden;
}

.check-table th,
.check-table td {
  font-size: 15px;
}

.check-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 浏览指引页：常见疑问 */
.faq-item {
  border-bottom: 1px solid #e8ded3;
}

.faq-item summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2a2320;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "＋";
  margin-right: 10px;
  color: #c2571f;
  font-weight: 400;
}

.faq-item[open] summary::before {
  content: "－";
}

.faq-item summary:hover {
  color: #c2571f;
}

.faq-item p {
  margin: 0;
  padding: 0 0 16px 26px;
  font-size: 15px;
  line-height: 1.8;
  color: #6b5f57;
}

/* 浏览指引页：相关条目 */
.related-list {
  border-top: 1px solid #e8ded3;
}

.related-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e8ded3;
}

.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #c2571f;
}

.related-note {
  font-size: 14px;
  color: #6b5f57;
}

/* 整理记录页：按月归档 */
.records-archive {
  counter-reset: none;
}

.archive-month {
  margin-bottom: 28px;
}

.archive-month:last-child {
  margin-bottom: 0;
}

.archive-month-title {
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 2px solid #f3e7da;
  font-size: 19px;
  color: #8a6b3f;
}

.archive-list {
  border-top: 0;
}

.archive-item {
  padding: 14px 0;
  border-bottom: 1px dashed #e8ded3;
}

.archive-item:last-child {
  border-bottom: 0;
}

.archive-target {
  margin: 0 0 4px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2a2320;
}

.archive-reason {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.8;
  color: #6b5f57;
}

.archive-scope {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #4a6b4f;
}

/* 404 */
.error-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
}

.error-panel {
  max-width: 640px;
  padding: 32px;
  margin-bottom: 40px;
  border: 1px solid #e8ded3;
  border-radius: 8px;
  background-color: #fffdfa;
}

.error-code {
  margin: 0 0 8px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #8a6b3f;
}

.error-panel h1 {
  margin-bottom: 12px;
  font-size: 32px;
}

.error-lead {
  margin-bottom: 10px;
  font-size: 16px;
  color: #2a2320;
}

.error-hint {
  margin-bottom: 20px;
  font-size: 15px;
  color: #6b5f57;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-links h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.error-link-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #e8ded3;
  border-radius: 8px;
  background-color: #fffdfa;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: #c2571f;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.error-link-list a:hover,
.error-link-list a:focus-visible {
  border-color: #8a6b3f;
  background-color: #f3e7da;
  color: #8a6b3f;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages
   -------------------------------------------------------------------------- */

/* 首页：地图式首屏 */
.home-main {
  padding-top: 0;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas:
    "node-left visual node-right"
    "node-left intro node-right"
    "node-left map node-right";
  gap: 20px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  align-items: start;
}

.hero-visual {
  grid-area: visual;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f3e7da;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-intro {
  grid-area: intro;
}

.hero-intro h1 {
  margin-bottom: 8px;
  font-size: 32px;
}

.hero-slogan {
  margin: 0 0 10px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #c2571f;
}

.hero-text {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: #6b5f57;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 6px;
  background-color: #c2571f;
  color: #fbf7f2;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background-color: #8a6b3f;
  color: #fbf7f2;
  text-decoration: none;
}

.hero-map {
  grid-area: map;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.map-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e8ded3;
  border-radius: 8px;
  background-color: #fffdfa;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.map-node:hover,
.map-node:focus-visible {
  border-color: #8a6b3f;
  background-color: #f3e7da;
  text-decoration: none;
}

.map-node .map-code {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #8a6b3f;
}

.map-node .map-name {
  font-size: 14px;
  color: #2a2320;
}

.map-node-guide {
  border-color: #c2571f;
  background-color: #fdf6ee;
}

.map-node-guide .map-code {
  color: #c2571f;
}

/* 首页首屏两侧节点：以纵向列表铺在视觉两侧 */
.hero-section > .map-node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-section > .map-node:nth-of-type(1) {
  grid-area: node-left;
}

.hero-section > .map-node:nth-of-type(2) {
  grid-area: node-left;
  margin-top: 76px;
}

.hero-section > .map-node:nth-of-type(3) {
  grid-area: node-left;
  margin-top: 152px;
}

.hero-section > .map-node:nth-of-type(4) {
  grid-area: node-right;
}

.hero-section > .map-node:nth-of-type(5) {
  grid-area: node-right;
  margin-top: 76px;
}

/* 首页主体双栏 */
.home-layout {
  padding-top: 0;
}

.layout-main {
  min-width: 0;
}

.layout-side {
  min-width: 0;
}

.channel-overview,
.topic-entry {
  margin-bottom: 44px;
}

.channel-overview h2,
.topic-entry h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

/* 内页主体 */
.inner-main .content-section:last-child {
  margin-bottom: 0;
}

.page-channels .section-basis p,
.page-topics .content-section p,
.page-records .records-intro p {
  max-width: 68ch;
}

.page-records .records-figure {
  margin: 0 0 32px;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-areas:
      "visual visual"
      "intro intro"
      "node-left node-right"
      "map map";
  }

  .hero-section > .map-node:nth-of-type(1),
  .hero-section > .map-node:nth-of-type(2),
  .hero-section > .map-node:nth-of-type(3),
  .hero-section > .map-node:nth-of-type(4),
  .hero-section > .map-node:nth-of-type(5) {
    grid-area: auto;
    margin-top: 0;
  }

  .hero-section > .map-node:nth-of-type(1),
  .hero-section > .map-node:nth-of-type(2),
  .hero-section > .map-node:nth-of-type(3) {
    grid-area: node-left;
  }

  .hero-section > .map-node:nth-of-type(4),
  .hero-section > .map-node:nth-of-type(5) {
    grid-area: node-right;
  }

  .hero-section > .map-node:nth-of-type(2),
  .hero-section > .map-node:nth-of-type(5) {
    margin-top: 68px;
  }
}

@media (max-width: 860px) {
  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 0 20px 44px;
  }

  .page-layout.sidebar-left .page-aside,
  .page-layout.sidebar-left .side-nav {
    order: 2;
  }

  .page-layout.sidebar-left .inner-main {
    order: 1;
  }

  .side-nav,
  .page-aside {
    position: static;
  }

  .inner-main {
    padding: 24px 20px 44px;
  }

  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 20px 20px;
  }

  .footer-copyright {
    padding: 16px 20px 24px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1,
  .page-title,
  .error-panel h1,
  .hero-intro h1 {
    font-size: 24px;
  }

  h2,
  .content-section h2,
  .site-index h2,
  .error-links h2,
  .channel-overview h2,
  .topic-entry h2 {
    font-size: 20px;
  }

  h3,
  .channel-name,
  .topic-card h3 {
    font-size: 17px;
  }

  .top-bar p {
    padding: 8px 16px;
    font-size: 12px;
  }

  .site-header {
    padding: 0 16px;
  }

  /* 移动端导航：按钮可见，列表默认收起 */
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(260px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid #e8ded3;
    border-radius: 8px;
    background-color: #fffdfa;
    box-shadow: 0 8px 20px rgba(42, 35, 32, 0.08);
    z-index: 40;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    width: 100%;
    padding: 0 12px;
  }

  /* 首页首屏纵向堆叠 */
  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "visual"
      "intro"
      "map"
      "node-left"
      "node-right";
    gap: 18px;
    padding: 24px 16px 32px;
  }

  .hero-section > .map-node:nth-of-type(1),
  .hero-section > .map-node:nth-of-type(2),
  .hero-section > .map-node:nth-of-type(3),
  .hero-section > .map-node:nth-of-type(4),
  .hero-section > .map-node:nth-of-type(5) {
    margin-top: 0;
  }

  .hero-section > .map-node:nth-of-type(1),
  .hero-section > .map-node:nth-of-type(2),
  .hero-section > .map-node:nth-of-type(3) {
    grid-area: node-left;
  }

  .hero-section > .map-node:nth-of-type(4),
  .hero-section > .map-node:nth-of-type(5) {
    grid-area: node-right;
  }

  .hero-map {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  /* 首页频道总览改为纵向信息块 */
  .channel-overview .channel-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "code"
      "name"
      "desc"
      "adj"
      "link";
    gap: 6px;
  }

  .section-table .channel-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "code"
      "body"
      "link";
    gap: 8px;
  }

  .topic-grid,
  .index-columns,
  .prep-list,
  .step-track,
  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .topic-basis,
  .topic-scope,
  .topic-direction {
    grid-column: 1;
    grid-row: auto;
  }

  .order-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .site-index {
    padding: 0 16px;
    margin-bottom: 44px;
  }

  .site-index h2 {
    margin-bottom: 14px;
  }

  .footer-links ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-main {
    padding: 36px 16px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .check-table {
    font-size: 14px;
  }

  .check-table th,
  .check-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .page-layout,
  .page-layout.sidebar-left {
    padding: 0 14px 36px;
  }

  .inner-main {
    padding: 20px 14px 36px;
  }

  .hero-section {
    padding: 20px 14px 28px;
  }

  .site-index {
    padding: 0 14px;
  }

  .footer-columns {
    padding: 28px 14px 18px;
  }

  .footer-copyright {
    padding: 14px 14px 22px;
  }

  .top-bar p {
    padding: 8px 14px;
  }

  .site-header {
    padding: 0 14px;
  }

  .error-main {
    padding: 28px 14px;
  }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
