/* ==========================================================================
   猎奇视频 · msyfang.com
   夜读影像志数字出版风：深墨底、纸白字、铜橙强调、青灰辅助
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BASE — 变量、重置、排版基础
   -------------------------------------------------------------------------- */
:root {
  --ink: #0e1416;
  --paper: #f2eee4;
  --copper: #d47a4a;
  --slate: #8aa8a0;
  --surface: #1a2225;
  --sand: #d9b36c;

  --ink-soft: #16202340;
  --line: #2c3a3e;
  --line-soft: #223035;

  --text-dim: #a9b4b1;
  --text-mute: #7d8b88;

  --font-head: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --container: 1180px;
  --reading: 760px;
  --radius: 6px;
  --radius-sm: 4px;
  --gap: 24px;
  --section-gap: 64px;

  --h1: clamp(2.1rem, 4vw, 3rem);
  --h2: 1.6rem;
  --h3: 1.2rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
  color: var(--copper);
  font-weight: 500;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.3;
  color: var(--paper);
  margin: 0 0 0.6em;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

strong {
  color: var(--paper);
  font-weight: 600;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--copper);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   2. LAYOUT — 骨架：页头、导航、主容器、面包屑、页标题、页脚
   -------------------------------------------------------------------------- */

/* --- 页头 / 刊头 --- */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}

.masthead__brand:hover {
  color: var(--paper);
}

.masthead__logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
}

.masthead__brand:hover .masthead__logo {
  color: var(--copper);
}

.issue-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--copper);
  border: 1px solid var(--copper);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  line-height: 1.5;
}

.issue-tag--page,
.issue-tag--inline,
.issue-tag--plain {
  font-size: 0.75rem;
}

.issue-tag--plain {
  border-color: var(--slate);
  color: var(--slate);
}

/* --- 主导航 --- */
.site-nav {
  flex: 1 1 auto;
}

.main-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.main-nav__list > li {
  margin: 0;
}

.main-nav__link {
  display: inline-block;
  padding: 6px 2px;
  color: var(--paper);
  font-size: 0.94rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.main-nav__link:hover {
  color: var(--copper);
  border-bottom-color: var(--copper);
  font-weight: 500;
}

.main-nav__link.is-current {
  color: var(--copper);
  border-bottom-color: var(--copper);
  font-weight: 600;
}

/* --- 移动菜单按钮（桌面隐藏） --- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  border-radius: 1px;
}

/* --- 移动抽屉 --- */
.mobile-drawer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer__list {
  list-style: none;
  margin: 0;
  padding: 8px 24px 16px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.mobile-drawer__list > li {
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-drawer__list > li:last-child {
  border-bottom: none;
}

.mobile-drawer__list a {
  display: block;
  padding: 14px 4px;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
  font-size: 1rem;
}

.mobile-drawer__list a:hover {
  color: var(--copper);
}

/* --- 主内容容器 --- */
.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main,
.inner-main,
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  padding-top: 20px;
  padding-bottom: 64px;
}

/* --- 面包屑 --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 6px 0 22px;
  padding: 0;
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--copper);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--text-mute);
}

.breadcrumb-current {
  color: var(--paper);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.breadcrumb__item {
  margin: 0;
  color: var(--text-dim);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-mute);
}

.breadcrumb__item a {
  color: var(--text-dim);
  text-decoration: none;
}

.breadcrumb__item a:hover {
  color: var(--copper);
}

/* --- 页面标题区（统一） --- */
.page-header {
  margin: 0 0 20px;
}

.page-title {
  font-family: var(--font-head);
  font-size: var(--h1);
  font-weight: 600;
  color: var(--paper);
  line-height: 1.25;
  margin: 0;
}

/* --- 页脚 --- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: 40px;
  color: var(--text-dim);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}

.site-footer__brand {
  grid-column: 1 / 2;
}

.site-footer__logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 10px;
}

.site-footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
}

.footer-group__title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.footer-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-group__list > li {
  margin: 0 0 8px;
}

.footer-group__list a {
  color: var(--text-dim);
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  padding: 2px 0;
}

.footer-group__list a:hover {
  color: var(--copper);
  text-decoration: underline;
}

.site-footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-mute);
}

.site-footer__copyright,
.site-footer__boundary {
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. COMPONENTS — 通用组件
   -------------------------------------------------------------------------- */

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--copper);
  color: var(--ink);
  border-color: var(--copper);
}

.btn--primary:hover {
  background: #e08a5a;
  color: var(--ink);
  font-weight: 600;
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--slate);
}

.btn--ghost:hover {
  color: var(--copper);
  border-color: var(--copper);
  font-weight: 600;
}

/* --- 标注签 --- */
.annotation-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate);
  color: var(--slate);
  background: transparent;
  white-space: nowrap;
}

.annotation-chip--fact {
  color: var(--paper);
  border-color: var(--paper);
}

.annotation-chip--method {
  color: var(--copper);
  border-color: var(--copper);
}

.annotation-chip--experience,
.annotation-chip--exp {
  color: var(--sand);
  border-color: var(--sand);
}

.annotation-chip--warn,
.annotation-chip--caution {
  color: var(--sand);
  border-color: var(--sand);
  background: rgba(217, 179, 108, 0.12);
}

.annotation-chip--alert {
  color: var(--copper);
  border-color: var(--copper);
  background: rgba(212, 122, 74, 0.12);
}

.annotation-chip--plain {
  color: var(--text-dim);
  border-color: var(--line);
}

/* --- 数据表 --- */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.6;
}

.data-table__caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-mute);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  background: var(--surface);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.84rem;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(138, 168, 160, 0.06);
}

.data-table tbody td a {
  color: var(--copper);
  text-decoration: none;
  white-space: nowrap;
}

.data-table tbody td a:hover {
  text-decoration: underline;
  font-weight: 600;
}

.data-table tbody td strong {
  color: var(--paper);
}

/* --- 章节标题块 --- */
.section__head {
  margin-bottom: 24px;
  max-width: var(--reading);
}

.section__head h2 {
  margin-bottom: 8px;
}

.section__head p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

.section-title {
  font-size: var(--h2);
  margin: 0 0 10px;
}

.section-lead,
.section-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0 0 18px;
  max-width: var(--reading);
}

.section-lead a,
.section-desc a {
  color: var(--copper);
}

/* --- 相关链接 --- */
.related-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-links__title,
.related-links h2 {
  font-size: 1.15rem;
  margin: 0 0 16px;
}

.related-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.related-links__item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.related-links__item a {
  color: var(--copper);
  text-decoration: none;
  font-weight: 500;
}

.related-links__item a:hover {
  text-decoration: underline;
}

.related-links__desc {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   4. PAGES — 首页
   -------------------------------------------------------------------------- */

/* --- 首屏工作台 --- */
.hero-workbench {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  padding: 40px 0 56px;
  align-items: stretch;
}

.hero-workbench__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-workbench__kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--copper);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.hero-workbench__panel h1 {
  font-size: var(--h1);
  margin: 0 0 12px;
  line-height: 1.22;
}

.hero-workbench__lede {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin: 0 0 22px;
}

/* 索引面板 */
.index-panel {
  margin-bottom: 22px;
}

.index-panel__title {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  text-transform: none;
}

.index-panel__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.index-panel__item {
  margin: 0;
  min-width: 0;
}

.index-panel__item a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  min-height: 44px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.index-panel__item a:hover {
  border-color: var(--copper);
  color: var(--copper);
  font-weight: 500;
}

.index-panel__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper);
  flex-shrink: 0;
}

/* 阅读进度 */
.reading-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-mute);
}

.reading-progress__label {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.reading-progress__track {
  flex: 1 1 auto;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.reading-progress__bar {
  display: block;
  height: 100%;
  width: 12%;
  background: var(--copper);
  border-radius: 2px;
}

.hero-workbench__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

/* 封面结果区 */
.cover-result {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cover-result__figure {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.cover-result__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-result__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 16px 20px;
  font-size: 0.78rem;
  color: var(--paper);
  background: linear-gradient(to top, rgba(14, 20, 22, 0.9), rgba(14, 20, 22, 0));
}

.cover-result__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cover-result__body .issue-tag {
  align-self: flex-start;
  margin: 0;
}

.cover-result__title {
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.35;
}

.cover-result__summary {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0;
}

.cover-result__link {
  align-self: flex-start;
  color: var(--copper);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
}

.cover-result__link:hover {
  color: var(--sand);
  border-bottom-color: var(--sand);
}

/* --- 通用 section --- */
.section {
  padding: 44px 0;
  border-top: 1px solid var(--line-soft);
}

.section:first-of-type {
  border-top: none;
}

/* --- 本期导览 --- */
.guide-rows__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.guide-rows__item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.guide-rows__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--copper);
}

.guide-rows__title {
  font-size: 1.05rem;
  margin: 0;
}

.guide-rows__text {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
  flex: 1 1 auto;
}

.guide-rows__link {
  color: var(--copper);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  align-self: flex-start;
}

.guide-rows__link:hover {
  text-decoration: underline;
}

/* --- 当前专题封面故事 --- */
.feature-story {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 32px;
  align-items: start;
}

.feature-story__media {
  min-width: 0;
}

.feature-story__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.feature-story__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-story__caption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

.feature-story__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-story__body .issue-tag {
  align-self: flex-start;
}

.feature-story__body h2 {
  margin: 0;
  font-size: 1.5rem;
}

.feature-story__body p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0;
}

.feature-story__clues {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-story__clues > li {
  margin: 0;
  padding: 10px 12px;
  background: var(--ink);
  border-left: 2px solid var(--copper);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-dim);
}

.feature-story__clues strong {
  color: var(--paper);
  display: inline;
  margin-right: 4px;
}

.feature-story__link {
  align-self: flex-start;
  margin-top: 8px;
  color: var(--copper);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
}

.feature-story__link:hover {
  color: var(--sand);
  border-bottom-color: var(--sand);
}

/* --- 频道研究方向表 --- */
.channel-table .table-wrap,
.batch-table .table-wrap {
  margin-top: 4px;
}

/* --- 观看前核验轨道（首页） --- */
.step-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-rail__item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  position: relative;
}

.step-rail__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--copper);
}

.step-rail__title {
  font-size: 1.05rem;
  margin: 0;
}

.step-rail__text {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
  flex: 1 1 auto;
}

.step-rail__link {
  color: var(--copper);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  align-self: flex-start;
}

.step-rail__link:hover {
  text-decoration: underline;
}

/* --- 编目方法与限制摘录 --- */
.method-excerpt__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.method-excerpt__col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}

.method-excerpt__subtitle {
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.method-excerpt__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.method-excerpt__list > li {
  margin: 0;
  padding: 10px 12px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.method-excerpt__list strong {
  color: var(--paper);
}

.method-excerpt__link {
  color: var(--copper);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.method-excerpt__link:hover {
  text-decoration: underline;
}

/* --- 首页问答 --- */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: var(--reading);
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__question {
  list-style: none;
  cursor: pointer;
  padding: 16px 44px 16px 18px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
  position: relative;
  min-height: 44px;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--copper);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__question::after {
  content: "−";
}

.faq__question:hover {
  color: var(--copper);
}

.faq__answer {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.faq__answer p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.faq__answer a {
  color: var(--copper);
}

/* --- 更正与交流入口 --- */
.corrections-entry {
  padding: 44px 0 56px;
}

.corrections-entry__body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius);
  padding: 28px;
  max-width: var(--reading);
}

.corrections-entry__body h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.corrections-entry__body p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0 0 18px;
}

.corrections-entry__body .btn {
  margin-bottom: 16px;
}

.corrections-entry__note {
  font-size: 0.82rem !important;
  color: var(--text-mute) !important;
  margin: 0 !important;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   5. PAGES — 内页通用
   -------------------------------------------------------------------------- */

/* 内页 page-hero（archive / method / viewing-guide） */
.page-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 32px;
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-hero__summary {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
  max-width: var(--reading);
}

.page-hero__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  margin: 0;
}

.page-hero .issue-tag {
  align-self: flex-start;
}

/* 通用双栏布局：默认主内容在前 aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.page-main {
  min-width: 0;
}

.page-aside {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 90px;
}

.page-aside h2 {
  font-size: 1rem;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.aside-block {
  margin-bottom: 20px;
}

.aside-block:last-child {
  margin-bottom: 0;
}

.aside-block h3 {
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--slate);
  margin: 0 0 10px;
}

.aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-list > li {
  margin: 0;
}

.aside-list a {
  color: var(--text-dim);
  font-size: 0.88rem;
  text-decoration: none;
  display: block;
  padding: 4px 0;
}

.aside-list a:hover {
  color: var(--copper);
  text-decoration: underline;
}

/* 内容区块（channels 页） */
.content-block {
  margin-bottom: 40px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.content-block > p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0 0 18px;
}

.content-block__footer {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.content-block__footer a {
  color: var(--copper);
  margin-right: 12px;
}

/* 规则列表 */
.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rule-list__item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.rule-list__item h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.rule-list__item p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}

/* 步骤列表（channels） */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-list__item {
  margin: 0;
  padding: 16px 20px 16px 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  min-width: 0;
}

.step-list__item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-list__item h3 {
  font-size: 0.98rem;
  margin: 0 0 6px;
}

.step-list__item p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}

/* 适看强度图例（channels） */
.intensity-legend {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.intensity-legend h3 {
  font-size: 0.95rem;
  margin: 0 0 12px;
  color: var(--slate);
}

.intensity-legend__list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intensity-legend__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.intensity-legend__row dt {
  font-family: var(--font-mono);
  color: var(--paper);
  min-width: 60px;
}

.intensity-legend__row dd {
  margin: 0;
  flex: 1 1 200px;
}

/* 频道总览图 */
.channel-overview {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.channel-overview img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.channel-overview figcaption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   6. PAGES — 专题策展（topics）
   -------------------------------------------------------------------------- */
.page-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-container .page-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}

.page-title__summary {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin: 0;
  max-width: var(--reading);
}

.page-title__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  margin: 0;
}

.page-title__meta a {
  color: var(--copper);
  margin-right: 10px;
}

.topic-cover {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.topic-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.topic-cover__caption {
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

.topic-intro {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 32px;
  align-items: start;
}

.topic-curation {
  min-width: 0;
}

.topic-curation h2 {
  font-size: 1.4rem;
  margin: 0 0 14px;
}

.topic-curation p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0 0 14px;
}

.topic-curation__threads {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-curation__thread {
  margin: 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--copper);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.thread-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper);
  flex-shrink: 0;
}

.topic-facts {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}

.topic-facts h2 {
  font-size: 1rem;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.topic-facts__list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topic-facts__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  font-size: 0.88rem;
}

.topic-facts__row dt {
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  min-width: 72px;
  flex-shrink: 0;
}

.topic-facts__row dd {
  margin: 0;
  color: var(--paper);
  flex: 1 1 140px;
}

.topic-entries h2,
.topic-notice h2,
.topic-backlist h2 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.topic-entries__table {
  min-width: 620px;
}

.topic-notice__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-notice__item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.topic-notice__item h3 {
  font-size: 0.98rem;
  margin: 0 0 8px;
  color: var(--sand);
}

.topic-notice__item p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}

.topic-backlist__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-backlist__row {
  display: grid;
  grid-template-columns: 90px 1fr 160px 80px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
  font-size: 0.9rem;
}

.topic-backlist__row:last-child {
  border-bottom: none;
}

.topic-backlist__row:hover {
  background: rgba(138, 168, 160, 0.06);
}

.topic-backlist__issue {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--copper);
}

.topic-backlist__theme {
  color: var(--paper);
  font-weight: 500;
  min-width: 0;
}

.topic-backlist__channel {
  color: var(--slate);
  font-size: 0.85rem;
  min-width: 0;
}

.topic-backlist__link {
  color: var(--copper);
  text-decoration: none;
  font-size: 0.85rem;
  text-align: right;
}

.topic-backlist__link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   7. PAGES — 条目档案（archive）
   -------------------------------------------------------------------------- */

/* 档案工具台：sidebar-left 在祖先节点上 */
.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 32px;
}

.archive-toolbar__text {
  min-width: 0;
  flex: 1 1 260px;
}

.archive-toolbar__title {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.archive-toolbar__desc {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0;
}

.view-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.view-switch__btn {
  background: var(--ink);
  color: var(--text-dim);
  border: none;
  padding: 10px 18px;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 500;
}

.view-switch__btn + .view-switch__btn {
  border-left: 1px solid var(--line);
}

.view-switch__btn:hover {
  color: var(--copper);
}

.view-switch__btn.is-active {
  background: var(--copper);
  color: var(--ink);
  font-weight: 600;
}

/* 布局：sidebar-left 祖先时侧栏在左 */
.page-layout.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.archive-side {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 90px;
}

.archive-side__title {
  font-size: 1rem;
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.archive-side__desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.batch-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.batch-index__item {
  margin: 0;
}

.batch-index__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  min-height: 44px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.18s ease;
}

.batch-index__link:hover {
  border-color: var(--copper);
}

.batch-index__no {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--copper);
}

.batch-index__range {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.archive-result {
  min-width: 0;
}

.archive-result__head {
  margin-bottom: 18px;
}

.archive-result__title {
  font-size: 1.3rem;
  margin: 0 0 6px;
}

.archive-result__desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}

.archive-figure {
  margin: 0 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.archive-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.archive-figure__caption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

.archive-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.archive-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.6;
}

.archive-table__caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-mute);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.archive-table thead th {
  background: var(--surface);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.82rem;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.archive-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  vertical-align: top;
}

.archive-table tbody tr:last-child td {
  border-bottom: none;
}

.archive-table tbody tr:hover {
  background: rgba(138, 168, 160, 0.06);
}

.archive-table tbody td a {
  color: var(--copper);
  text-decoration: none;
}

.archive-table tbody td a:hover {
  text-decoration: underline;
}

/* 卡片视图 */
.archive-cards {
  margin-top: 8px;
}

.archive-cards[hidden] {
  display: none;
}

.archive-cards__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.archive-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.archive-card__no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper);
  margin: 0;
}

.archive-card__title {
  font-size: 1rem;
  margin: 0;
}

.archive-card__meta {
  font-size: 0.82rem;
  color: var(--slate);
  margin: 0;
}

.archive-card__desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0;
  flex: 1 1 auto;
}

.archive-card__link {
  color: var(--copper);
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 500;
  align-self: flex-start;
}

.archive-card__link:hover {
  text-decoration: underline;
}

/* 字段说明表 */
.field-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.field-section .tabl {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 档案使用与限制 */
.archive-limits {
  margin-top: 32px;
}

.limits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.limits-list__item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.limits-list__title {
  font-size: 0.98rem;
  margin: 0 0 8px;
  color: var(--sand);
}

.limits-list__item p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0;
}

/* 记录样例 */
.record-sample {
  margin-top: 32px;
}

.record-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.record-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.record-card__no {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--copper);
  margin: 0;
}

.record-card__title {
  font-size: 1.05rem;
  margin: 0;
  flex: 1 1 200px;
}

.record-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.record-card__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.record-card__row {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.record-card__row strong {
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: block;
  margin-bottom: 2px;
}

.record-card__note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* 相关链接（archive 变体） */
.related-links-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate);
  margin: 0 0 8px;
}

.related-links-item {
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. PAGES — 观看指引（viewing-guide）
   -------------------------------------------------------------------------- */
.reading-column {
  max-width: var(--reading);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.guide-figure {
  margin: 0;
}

.guide-figure .section-title {
  margin-bottom: 14px;
}

.figure-block {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.figure-block img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.figure-block__caption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

.guide-figure__note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* 观看前四步核验 */
.verify-steps .step-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-rail__item {
  margin: 0;
}

.verify-steps .step-rail__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 20px 62px;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verify-steps .step-rail__index {
  position: absolute;
  left: 18px;
  top: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verify-steps .step-rail__title {
  font-size: 1.02rem;
  margin: 0;
}

.verify-steps .step-rail__text {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}

.verify-steps .step-rail__confirm {
  font-size: 0.85rem;
  color: var(--sand);
  margin: 0;
  padding: 8px 12px;
  background: rgba(217, 179, 108, 0.08);
  border-radius: var(--radius-sm);
}

.verify-steps .step-rail__link {
  align-self: flex-start;
  color: var(--copper);
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 500;
}

.verify-steps .step-rail__link:hover {
  text-decoration: underline;
}

/* 适看提示分级 & 异常表 */
.rating-table h2,
.exception-table h2 {
  margin-bottom: 10px;
}

/* 观看前问答 */
.faq-block .details-faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.details-faq__summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 44px 16px 18px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
  position: relative;
  min-height: 44px;
}

.details-faq__summary::-webkit-details-marker {
  display: none;
}

.details-faq__summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--copper);
}

.details-faq[open] .details-faq__summary::after {
  content: "−";
}

.details-faq__summary:hover {
  color: var(--copper);
}

.details-faq__body {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.details-faq__body p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.details-faq__body a {
  color: var(--copper);
}

/* --------------------------------------------------------------------------
   9. PAGES — 编目方法（method）
   -------------------------------------------------------------------------- */
.method-sample {
  margin-bottom: 40px;
}

.method-sample__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: start;
}

.method-sample__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}

.method-sample__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.method-sample__caption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

.method-sample__rules {
  min-width: 0;
}

.method-sample__rules .section-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.method-sample__rules .rule-list__item {
  padding: 16px 18px;
}

.method-sample__rules .rule-list__item .annotation-chip {
  margin-bottom: 8px;
}

.rule-list__title {
  font-size: 1rem;
  margin: 0 0 6px;
}

.rule-list__body {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.rule-list__note {
  font-size: 0.82rem;
  color: var(--sand);
  margin: 0;
  padding: 8px 10px;
  background: rgba(217, 179, 108, 0.08);
  border-radius: var(--radius-sm);
}

.method-basis {
  margin-bottom: 40px;
}

.basis-table {
  min-width: 620px;
}

.method-limits {
  margin-bottom: 40px;
}

.limit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.limit-list__item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.limit-list__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--sand);
  border: 1px solid var(--sand);
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.limit-list__title {
  font-size: 0.98rem;
  margin: 0 0 8px;
}

.limit-list__body {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0;
}

.method-fields {
  margin-bottom: 40px;
}

.field-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.field-list__item {
  margin: 0;
  min-width: 0;
}

.field-list__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  min-height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.18s ease;
}

.field-list__link:hover {
  border-color: var(--copper);
}

.field-list__name {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--copper);
}

.field-list__use {
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   10. PAGES — 更正与交流（corrections）
   -------------------------------------------------------------------------- */
.page-shell {
  max-width: var(--reading);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-shell .section {
  padding: 0;
  border-top: none;
}

.page-shell .section h2 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.page-shell .section > p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0 0 16px;
}

.media-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-figure figcaption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list__item {
  margin: 0;
  padding: 16px 18px 16px 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  min-width: 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.check-list__item::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--copper);
  font-family: var(--font-mono);
  font-weight: 700;
}

.check-list__item strong {
  color: var(--paper);
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scope-list__item {
  margin: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--slate);
  border-radius: var(--radius-sm);
  min-width: 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.scope-list__item strong {
  color: var(--paper);
  display: block;
  margin-bottom: 4px;
}

/* 步骤轨道（corrections 变体） */
.page-shell .step-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-shell .step-rail__item {
  margin: 0;
  padding: 16px 18px 16px 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  min-width: 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.page-shell .step-rail__num {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-shell .step-rail__item strong {
  color: var(--paper);
  display: block;
  margin-bottom: 4px;
}

.section--boundary {
  border-top: 1px solid var(--line) !important;
  padding-top: 24px !important;
}

.section--boundary p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}

.section--boundary a {
  color: var(--copper);
}

.section__note {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   11. PAGES — 404
   -------------------------------------------------------------------------- */
.error-main {
  padding-top: 60px;
  padding-bottom: 80px;
  max-width: var(--reading);
}

.error-head {
  margin-bottom: 32px;
}

.error-head .issue-tag {
  margin-bottom: 14px;
}

.error-head h1 {
  font-size: var(--h1);
  margin: 0 0 12px;
}

.error-head__lead {
  color: var(--text-dim);
  font-size: 1rem;
  margin: 0;
}

.error-body h2 {
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.error-body > p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0 0 20px;
}

.error-actions {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-actions > li {
  margin: 0;
}

.error-note {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE — 1080 / 768 / 520
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 24px;
  }

  .page-layout,
  .page-layout.archive-layout,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }

  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .hero-workbench {
    grid-template-columns: 5fr 7fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  /* 页头：显示汉堡，隐藏桌面导航 */
  .masthead {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 页脚：品牌占整行，四组两列 */
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 36px 16px 24px;
    gap: 24px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    padding: 16px 16px 28px;
    flex-direction: column;
    gap: 8px;
  }

  /* 首页首屏：单列，操作面板在前 */
  .hero-workbench {
    grid-template-columns: 1fr;
    padding: 24px 0 40px;
    gap: 20px;
  }

  .hero-workbench__panel {
    padding: 22px;
  }

  .index-panel__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-rows__list,
  .step-rail__list,
  .method-excerpt__grid,
  .topic-notice__list,
  .limits-list,
  .limit-list {
    grid-template-columns: 1fr;
  }

  .feature-story {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 内页布局：单列，主内容在前 */
  .page-layout,
  .page-layout.archive-layout,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-aside,
  .archive-side {
    position: static;
  }

  .topic-intro,
  .method-sample__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 往期目录：两列堆叠 */
  .topic-backlist__row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 14px 16px;
  }

  .topic-backlist__issue {
    grid-column: 1 / 2;
  }

  .topic-backlist__link {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    text-align: right;
  }

  .topic-backlist__theme {
    grid-column: 1 / -1;
  }

  .topic-backlist__channel {
    grid-column: 1 / -1;
  }

  /* 数据表：堆叠为字段-值 */
  .data-table,
  .archive-table {
    min-width: 0;
  }

  .data-table thead,
  .archive-table thead {
    display: none;
  }

  .data-table tbody,
  .archive-table tbody {
    display: block;
  }

  .data-table tbody tr,
  .archive-table tbody tr {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
  }

  .data-table tbody tr:last-child,
  .archive-table tbody tr:last-child {
    border-bottom: none;
  }

  .data-table tbody td,
  .archive-table tbody td {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 4px 0;
    border-bottom: none;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .data-table tbody td::before,
  .archive-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 84px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--slate);
  }

  .data-table tbody td > *,
  .archive-table tbody td > * {
    min-width: 0;
    max-width: 100%;
  }

  .annotation-chip {
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .table-wrap,
  .archive-table-wrap {
    overflow-x: visible;
  }

  .reading-column {
    max-width: 100%;
  }

  .page-shell {
    max-width: 100%;
  }

  .error-main {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .section {
    padding: 32px 0;
  }
}

@media (max-width: 520px) {
  .masthead {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .masthead__brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .masthead__logo {
    font-size: 1.15rem;
  }

  .issue-tag {
    font-size: 0.66rem;
    padding: 1px 6px;
  }

  .hero-workbench__panel {
    padding: 18px;
  }

  .index-panel__list {
    grid-template-columns: 1fr;
  }

  .hero-workbench__actions {
    flex-direction: column;
  }

  .hero-workbench__actions .btn {
    width: 100%;
  }

  .guide-rows__item,
  .step-rail__item,
  .method-excerpt__col,
  .topic-notice__item,
  .limit-list__item,
  .limits-list__item {
    padding: 16px;
  }

  .verify-steps .step-rail__item {
    padding: 18px 18px 18px 54px;
  }

  .corrections-entry__body {
    padding: 20px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .data-table tbody td::before,
  .archive-table tbody td::before {
    flex-basis: 72px;
  }

  .related-links__list,
  .field-list {
    grid-template-columns: 1fr;
  }

  .archive-cards__list {
    grid-template-columns: 1fr;
  }

  .topic-facts__row dt {
    min-width: 64px;
  }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .btn,
  .faq__question,
  .details-faq__summary {
    transition: none;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
