/* ==========================================================================
   独播库 nabercat.com — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --paper: #f6f1e7;
  --paper-deep: #efe8da;
  --ink: #1c1a17;
  --pine: #3f5c4a;
  --ochre: #a2632f;
  --rule: #d8cfbf;
  --note: #6b6459;
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --shell: 1120px;
  --gutter: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pine);
  text-decoration: none;
  transition: color 120ms ease, transform 120ms ease;
}

a:hover,
a:focus-visible {
  color: var(--ochre);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  transition: top 140ms ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   layout：页头 / 主导航 / 主容器 / 页脚
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--shell);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand-link {
  flex: none;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 8px 0;
}

.brand-link:hover,
.brand-link:focus-visible {
  color: var(--ochre);
}

.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 15px;
  color: var(--ink);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ochre);
  transform: translateX(2px);
}

.nav-link.is-current {
  color: var(--ochre);
}

.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--ochre);
}

.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
}

.mobile-nav-list {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px var(--gutter) 16px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--ochre);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px var(--gutter) 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--note);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--pine);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--note);
}

.page-header {
  margin-bottom: 18px;
}

.page-title {
  font-size: clamp(30px, 4.2vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-title-block,
.page-heading {
  margin-bottom: 40px;
}

.page-lead {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--pine);
}

.title-rule,
.rule-line,
.page-rule {
  height: 0;
  margin: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.site-footer {
  margin-top: 72px;
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
}

.footer-brand-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.footer-brand-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pine);
  margin-bottom: 14px;
}

.footer-list {
  display: grid;
  gap: 2px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--ink);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--ochre);
}

.footer-boundary {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--rule);
}

.footer-boundary p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--note);
}

.footer-boundary p + p {
  margin-top: 6px;
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--gutter) 28px;
  border-top: 1px solid var(--rule);
}

.footer-copy {
  font-size: 13px;
  color: var(--note);
}

/* --------------------------------------------------------------------------
   components：通用区块 / 标题 / 列表 / 链接 / 图注 / 任务带
   -------------------------------------------------------------------------- */
.section,
.section-block,
.checklist-section,
.mismatch-section,
.boundary-section,
.record-section,
.feedback-types,
.feedback-info,
.feedback-order,
.feedback-avoid,
.related-tasks {
  margin-bottom: 56px;
}

.section-head {
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-num {
  display: inline-block;
  margin-right: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ochre);
  vertical-align: 2px;
}

.section-desc,
.section-intro {
  font-size: 15px;
  line-height: 1.9;
  color: var(--note);
  margin-bottom: 22px;
}

.section-head .section-desc {
  margin-bottom: 0;
}

.section-text {
  margin-bottom: 16px;
}

.text-link,
.inline-link {
  color: var(--pine);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.text-link:hover,
.inline-link:hover,
.text-link:focus-visible,
.inline-link:focus-visible {
  color: var(--ochre);
  border-bottom-color: var(--ochre);
}

.figure-caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--note);
}

.content-figure,
.notes-figure,
.page-figure,
.taxonomy-figure,
.checklist-figure,
.featured-figure {
  margin: 0;
}

.content-figure img,
.notes-figure img,
.page-figure img,
.taxonomy-figure img,
.checklist-figure img,
.featured-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
  object-fit: cover;
}

/* 相关任务带（内页） */
.task-band {
  margin: 0 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
}

.task-band-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.task-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.task-item {
  display: block;
  padding: 16px 18px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.task-link {
  display: block;
  color: var(--ink);
}

.task-link:hover,
.task-link:focus-visible {
  color: var(--ochre);
}

.task-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.task-desc,
.task-gain,
.task-benefit {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--note);
}

/* 首页相关任务带 */
.section-related .section-title {
  margin-bottom: 18px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-item {
  padding: 16px 18px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.related-link {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.related-link:hover,
.related-link:focus-visible {
  color: var(--ochre);
}

.related-text {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--note);
}

.related-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.related-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--note);
}

/* 方形核对标记 */
.check-mark {
  flex: none;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-top: 6px;
  border: 1px solid var(--ochre);
  border-radius: 2px;
  position: relative;
}

.check-mark::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--ochre);
  border-bottom: 2px solid var(--ochre);
  transform: rotate(42deg);
}

/* 相关任务（反馈页样式） */
.related-task-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-task-item {
  display: block;
  padding: 16px 18px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
}

.related-task-item:hover,
.related-task-item:focus-visible {
  color: var(--ochre);
}

.related-task-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.related-task-gain {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--note);
}

/* 侧栏（内页通用） */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 300px);
  gap: 48px;
  align-items: start;
}

.page-primary,
.content-main {
  min-width: 0;
}

.page-aside,
.content-aside {
  min-width: 0;
  font-size: 15px;
}

.aside-block {
  margin-bottom: 32px;
  padding: 18px 20px;
  background: var(--paper-deep);
  border-left: 3px solid var(--pine);
  border-radius: 0 4px 4px 0;
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pine);
  margin-bottom: 10px;
}

.aside-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.aside-text + .aside-text {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   pages：首页
   -------------------------------------------------------------------------- */
.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero {
  padding: 40px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--note);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(30px, 4.2vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--pine);
  max-width: 34em;
}

.quick-entry {
  margin-top: 28px;
}

.quick-entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.quick-entry-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.quick-entry-link::before {
  content: "→";
  margin-right: 8px;
  color: var(--ochre);
  font-size: 14px;
}

.quick-entry-link:hover,
.quick-entry-link:focus-visible {
  color: var(--ochre);
  transform: translateX(2px);
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
  object-fit: cover;
}

.hero-guide-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.hero-guide-text {
  font-size: 13px;
  color: var(--note);
}

/* 频道索引总表 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
}

.channel-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

.channel-table th {
  text-align: left;
  font-weight: 700;
  color: var(--pine);
  background: var(--paper-deep);
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.channel-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.8;
}

.channel-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-table tbody tr:hover {
  background: var(--paper-deep);
}

.channel-table td:first-child {
  width: 22%;
  font-weight: 700;
  color: var(--ink);
}

.channel-table td:nth-child(2) {
  width: 48%;
  color: var(--ink);
}

.channel-table td:last-child {
  width: 30%;
  color: var(--note);
}

.table-link {
  color: var(--pine);
  border-bottom: 1px solid var(--rule);
}

.table-link:hover,
.table-link:focus-visible {
  color: var(--ochre);
  border-bottom-color: var(--ochre);
}

/* 查阅路径编年 */
.chronicle-list {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.chronicle-node {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 0 0 28px;
}

.chronicle-node:last-child {
  padding-bottom: 0;
}

.chronicle-node::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ochre);
}

.chronicle-num {
  flex: none;
  width: 92px;
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  color: var(--ochre);
  font-variant-numeric: tabular-nums;
}

.chronicle-body {
  min-width: 0;
  padding-top: 6px;
}

.chronicle-line {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.chronicle-line + .chronicle-line {
  margin-top: 4px;
  font-size: 14px;
  color: var(--note);
}

/* 专题片单推荐 */
.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.featured-main {
  min-width: 0;
}

.collection-item {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.collection-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.collection-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}

.collection-link {
  color: var(--ink);
}

.collection-link:hover,
.collection-link:focus-visible {
  color: var(--ochre);
}

.collection-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
  margin-bottom: 10px;
}

.collection-entries {
  display: grid;
  gap: 4px;
}

.collection-entries li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.collection-entries li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 1px;
  background: var(--ochre);
}

.featured-aside {
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.aside-note {
  margin-top: 24px;
}

.aside-note-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pine);
  margin-bottom: 8px;
}

.aside-note p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
}

.aside-note p + p {
  margin-top: 8px;
}

/* 观看前核验清单 */
.check-list {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--rule);
}

.check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.check-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.checklist-footer {
  margin-top: 18px;
  font-size: 14px;
}

/* 常见问题 */
.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
  color: var(--ochre);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--ochre);
}

.faq-num {
  flex: none;
  font-size: 14px;
  color: var(--ochre);
  padding-top: 2px;
}

.faq-answer {
  padding: 0 0 18px 32px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages：频道总览
   -------------------------------------------------------------------------- */
.taxonomy-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.taxonomy-text {
  min-width: 0;
}

.taxonomy-text p {
  font-size: 16px;
  line-height: 1.9;
}

.taxonomy-text p + p {
  margin-top: 14px;
}

.taxonomy-figure {
  min-width: 0;
}

/* 筛选条 */
.filter-bar {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--pine);
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 36px;
  padding: 4px 14px;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--pine);
  color: var(--pine);
}

.filter-btn.is-active {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--paper);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.filter-clear {
  min-height: 36px;
  padding: 4px 4px;
  font-size: 14px;
  color: var(--ochre);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ochre);
}

.filter-clear:hover,
.filter-clear:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.filter-count {
  font-size: 13px;
  color: var(--note);
}

.filter-status {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
}

/* 频道分组对照表 */
.group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.group-card {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.group-card[hidden] {
  display: none;
}

.group-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}

.group-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
  margin-bottom: 12px;
}

.group-items {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.group-item {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.group-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 1px;
  background: var(--ochre);
}

.group-link {
  margin-top: 14px;
  font-size: 14px;
}

/* 无结果处理建议 */
.section-fallback {
  padding: 24px;
  background: var(--paper-deep);
  border-left: 3px solid var(--pine);
  border-radius: 0 4px 4px 0;
}

.fallback-list {
  display: grid;
  gap: 16px;
}

.fallback-item {
  padding-left: 0;
}

.fallback-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.fallback-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
}

/* --------------------------------------------------------------------------
   pages：专题片单
   -------------------------------------------------------------------------- */
.abstract-box {
  padding: 20px 24px;
  background: var(--paper-deep);
  border-left: 3px solid var(--pine);
  border-radius: 0 4px 4px 0;
}

.abstract-box p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

.abstract-box p + p {
  margin-top: 12px;
}

.footnote-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--note);
}

.footnote-num {
  display: inline-block;
  margin-right: 6px;
  color: var(--ochre);
  font-weight: 700;
}

.footnote-ref {
  color: var(--ochre);
  font-size: 12px;
  vertical-align: super;
}

.collection-list-block .content-figure {
  margin-bottom: 32px;
}

.collection-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.collection-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.collection-main {
  min-width: 0;
}

.collection-main .collection-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.collection-rule {
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
}

.collection-items {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.collection-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  padding: 0;
  border-top: 0;
}

.collection-item .item-index {
  flex: none;
  min-width: 20px;
  font-size: 13px;
  color: var(--ochre);
  font-variant-numeric: tabular-nums;
}

.collection-tag {
  justify-self: start;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--pine);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.compose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.compose-item {
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.compose-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.compose-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.archive-item {
  padding: 18px 20px;
  background: var(--paper-deep);
  border-radius: 4px;
}

.archive-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pine);
  margin-bottom: 8px;
}

.archive-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.archive-note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
}

/* --------------------------------------------------------------------------
   pages：观看指南
   -------------------------------------------------------------------------- */
.page-heading {
  margin-bottom: 36px;
}

.content-section {
  margin-bottom: 40px;
}

.section-criterion {
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--pine);
  background: var(--paper-deep);
  border-left: 3px solid var(--pine);
  border-radius: 0 4px 4px 0;
}

.condition-list {
  display: grid;
  gap: 10px;
}

.condition-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.8;
}

.condition-mark {
  flex: none;
  color: var(--ochre);
  font-weight: 700;
}

.step-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.step-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.step-index {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--ochre);
  font-variant-numeric: tabular-nums;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-action {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}

.step-judge {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
}

.page-primary .content-figure {
  margin: 0 0 40px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 32px;
  border-top: 1px solid var(--rule);
}

.checklist-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.8;
}

.section-note {
  margin-top: 18px;
  font-size: 14px;
}

.term-list {
  display: grid;
  gap: 4px;
}

.term-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.term-desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--note);
}

.aside-link-list {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.aside-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--pine);
}

.aside-link:hover,
.aside-link:focus-visible {
  color: var(--ochre);
}

/* --------------------------------------------------------------------------
   pages：入口核验
   -------------------------------------------------------------------------- */
.checklist-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.checklist-list {
  min-width: 0;
  border-top: 1px solid var(--rule);
}

.checklist-list .checklist-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.checklist-body {
  min-width: 0;
}

.checklist-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 6px;
}

.checklist-where {
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
}

.checklist-standard {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.checklist-figure {
  min-width: 0;
}

.mismatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mismatch-card {
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.mismatch-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.mismatch-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
}

.boundary-body {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--pine);
}

.boundary-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

.boundary-text + .boundary-text {
  margin-top: 12px;
}

.record-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.record-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.record-index {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ochre);
  font-variant-numeric: tabular-nums;
}

.record-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages：纠错反馈
   -------------------------------------------------------------------------- */
.feedback-type-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feedback-type-item {
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.feedback-type-item:last-child {
  grid-column: 1 / -1;
}

.feedback-type-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 6px;
}

.feedback-type-judge {
  font-size: 14px;
  line-height: 1.8;
  color: var(--pine);
}

.feedback-type-example {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.8;
  color: var(--note);
}

.feedback-info-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.feedback-info-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.feedback-info-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ochre);
}

.feedback-info-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.feedback-order-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feedback-order-step {
  padding: 18px 20px;
  background: var(--paper-deep);
  border-left: 3px solid var(--ochre);
  border-radius: 0 4px 4px 0;
}

.feedback-order-stepname {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.feedback-order-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
}

.feedback-figure {
  margin: 0 0 56px;
}

.feedback-avoid-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.feedback-avoid-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.feedback-avoid-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.feedback-avoid-alt {
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
}

/* --------------------------------------------------------------------------
   pages：站务说明
   -------------------------------------------------------------------------- */
.page-hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 36px var(--gutter) 0;
}

.page-hero-inner {
  max-width: 720px;
}

.layout-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}

.notes-section {
  margin-bottom: 40px;
}

.abstract-block {
  padding: 20px 24px;
  background: var(--paper-deep);
  border-left: 3px solid var(--pine);
  border-radius: 0 4px 4px 0;
}

.abstract-block p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

.abstract-block p + p {
  margin-top: 12px;
}

.notes-follow {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--note);
}

.notes-intro {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--note);
}

.notes-figure {
  margin: 0 0 40px;
}

.principle-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.principle-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.principle-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ochre);
  font-variant-numeric: tabular-nums;
}

.principle-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}

.boundary-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.boundary-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.boundary-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 4px;
}

.boundary-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--note);
}

.glossary-caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 12px;
  font-size: 14px;
  color: var(--note);
}

.glossary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.glossary-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--pine);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
}

.glossary-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.8;
}

.glossary-table td:first-child {
  width: 50%;
  font-weight: 700;
  color: var(--ink);
}

.glossary-table td:last-child {
  color: var(--note);
}

.glossary-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--note);
}

.aside-ordered {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding-left: 18px;
  list-style: decimal;
  font-size: 14px;
  line-height: 1.8;
  color: var(--note);
}

/* --------------------------------------------------------------------------
   pages：404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
}

.error-intro {
  max-width: 720px;
  margin-bottom: 48px;
}

.error-code {
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  color: var(--ochre);
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}

.error-intro h1 {
  font-size: clamp(30px, 4.2vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

.error-lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--note);
  margin-bottom: 22px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  font-size: 15px;
  color: var(--paper);
  background: var(--pine);
  border-radius: 4px;
}

.error-home-link:hover,
.error-home-link:focus-visible {
  color: var(--paper);
  background: var(--ochre);
}

.error-reasons,
.error-next,
.error-note {
  margin-bottom: 44px;
}

.error-reasons h2,
.error-next h2,
.error-note h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 14px;
}

.error-reason-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
}

.error-reason-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}

.error-reason-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 1px;
  background: var(--ochre);
}

.error-next-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.error-next-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.error-next-link:hover,
.error-next-link:focus-visible {
  color: var(--ochre);
  border-color: var(--ochre);
}

.error-note p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--note);
}

.error-inline-link {
  color: var(--pine);
  border-bottom: 1px solid var(--rule);
}

.error-inline-link:hover,
.error-inline-link:focus-visible {
  color: var(--ochre);
  border-bottom-color: var(--ochre);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  :root {
    --gutter: 28px;
  }

  .hero-grid,
  .featured-grid,
  .taxonomy-layout,
  .checklist-layout {
    gap: 32px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
    gap: 32px;
  }

  .group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compose-grid,
  .feedback-order-steps,
  .task-list,
  .related-list,
  .related-task-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-list > :last-child,
  .related-list > :last-child,
  .related-task-list > :last-child {
    grid-column: 1 / -1;
  }

  .collection-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .collection-tag {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    gap: 12px;
    min-height: 60px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-nav {
    display: none;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-grid,
  .featured-grid,
  .taxonomy-layout,
  .checklist-layout,
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-figure {
    order: 2;
  }

  .hero-text {
    order: 1;
  }

  .quick-entry-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .featured-aside {
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .chronicle-list {
    padding-left: 20px;
  }

  .chronicle-node {
    gap: 16px;
  }

  .chronicle-num {
    width: 64px;
    font-size: 48px;
  }

  .group-grid,
  .compose-grid,
  .archive-list,
  .mismatch-grid,
  .feedback-type-list,
  .feedback-order-steps,
  .task-list,
  .related-list,
  .related-task-list,
  .error-next-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-list > :last-child,
  .related-list > :last-child,
  .related-task-list > :last-child {
    grid-column: auto;
  }

  .feedback-type-item:last-child {
    grid-column: auto;
  }

  .collection-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .collection-tag {
    grid-column: auto;
  }

  .checklist-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-info-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .feedback-avoid-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .filter-bar {
    padding: 18px 16px;
  }

  .filter-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex: none;
  }

  .filter-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px var(--gutter) 24px;
  }

  .step-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .step-index {
    font-size: 26px;
  }

  .record-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .record-index {
    font-size: 19px;
  }

  .principle-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .glossary-table th,
  .glossary-table td {
    padding: 10px 8px;
    font-size: 14px;
  }

  .glossary-table td:first-child {
    width: 45%;
  }

  .error-code {
    font-size: 52px;
  }

  .inner-main,
  .home-main,
  .layout-shell,
  .page-hero,
  .error-main {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .brand-link {
    font-size: 19px;
  }

  .hero-title,
  .page-title {
    font-size: 27px;
  }

  .section-title {
    font-size: 21px;
  }

  .hero-lead,
  .page-lead {
    font-size: 17px;
  }

  .chronicle-node {
    flex-direction: column;
    gap: 4px;
  }

  .chronicle-num {
    width: auto;
    font-size: 40px;
  }

  .chronicle-body {
    padding-top: 0;
  }

  .channel-table {
    min-width: 540px;
    font-size: 14px;
  }

  .channel-table th,
  .channel-table td {
    padding: 10px 12px;
  }

  .error-next-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
