/* ==========================================================================
   光棍电影 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base：变量、重置、字体、全局元素
   -------------------------------------------------------------------------- */

:root {
  --bg-page: #f6f5f2;
  --bg-card: #ffffff;
  --bg-note: #f0ede7;
  --text-main: #1f1e1c;
  --text-sub: #6b6862;
  --line: #e2dfd9;
  --accent: #8a6a3b;
  --accent-soft: #f3ede3;
  --radius: 6px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --shell: 1120px;
  --shell-narrow: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-main);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   layout：站点骨架 —— 页头、导航、主容器、面包屑、页标题、页脚
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-main);
}

/* 线索说明条 */
.site-notice {
  background-color: var(--bg-note);
  border-bottom: 1px solid var(--line);
}

.site-notice__text {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px 24px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

/* 页头 */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}

.site-brand__name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.site-brand__sub {
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.5;
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  font-size: 15px;
}

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.nav-toggle__text {
  font-size: 15px;
  line-height: 1;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.nav-list__item {
  display: flex;
}

.nav-list__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  border-bottom: 2px solid transparent;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.4;
}

.nav-list__link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.nav-list__link.is-current {
  border-bottom-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* 主内容容器 */
.site-main {
  display: block;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-main);
}

/* 内页标题区 */
.page-header {
  max-width: var(--shell-narrow);
  padding: 26px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.page-title {
  color: var(--text-main);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
}

.page-description {
  margin-top: 18px;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.9;
}

.page-description a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.page-header__lead {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.9;
}

.page-header__lead a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

/* 页脚 */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr)) minmax(190px, 1.1fr);
  gap: 32px 28px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.site-footer__brand-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.site-footer__summary {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.9;
}

.site-footer__group {
  min-width: 0;
}

.site-footer__group-title {
  margin-bottom: 14px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__link {
  display: inline-block;
  min-height: 24px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer__link:hover {
  color: var(--accent);
}

.site-footer__note {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

.site-footer__copyright {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   components：通用按钮、链接、区块标题、卡片、表格、标签
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.4;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background-color: var(--text-main);
  border-color: var(--text-main);
  color: #ffffff;
}

.btn--primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--line);
  color: var(--text-main);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--accent);
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid var(--accent-soft);
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

/* 首页区块通用头部 */
.section {
  padding: 56px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section__head {
  max-width: var(--shell-narrow);
  margin-bottom: 32px;
}

.section__title {
  font-size: 22px;
  line-height: 1.4;
}

.section__desc {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.9;
}

.section__more {
  margin-top: 28px;
}

/* 内页区块标题 */
.section-title {
  font-size: 22px;
  line-height: 1.4;
}

.section-intro,
.section-lead,
.section-desc {
  max-width: var(--shell-narrow);
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.9;
}

.section-desc a,
.section-intro a,
.section-lead a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

/* 图片容器统一约束 */
.hero__media,
.collection-card__media,
.channel-note__figure,
.guide-detail__figure,
.field-figure,
.media-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-note);
}

.hero__media img,
.collection-card__media img,
.channel-note__figure img,
.guide-detail__figure img,
.field-figure img,
.media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   pages：首页
   -------------------------------------------------------------------------- */

.home-main {
  display: block;
}

/* 首屏定位区 */
.hero {
  padding: 56px 0 8px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.hero__text {
  min-width: 0;
}

.hero__eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.hero__title {
  margin-top: 14px;
  font-size: 34px;
  line-height: 1.35;
}

.hero__lead {
  margin-top: 16px;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__media {
  margin: 0;
}

.hero__media img {
  aspect-ratio: 4 / 3;
}

.hero__caption {
  padding: 0 2px;
}

/* 题材频道总览（首页逐行表） */
.channel-table {
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 72px minmax(160px, 1fr) minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.channel-row--head {
  padding: 10px 4px;
  color: var(--text-sub);
  font-size: 13px;
  letter-spacing: 0;
}

.channel-row__no {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
}

.channel-row__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.channel-row__scope,
.channel-row__near {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

/* 专题片单入口（首页卡片） */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 28px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  overflow: hidden;
}

.collection-card__media {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.collection-card__media img {
  aspect-ratio: 16 / 9;
}

.collection-card__title {
  margin: 18px 20px 0;
  font-size: 18px;
  line-height: 1.45;
}

.collection-card__channels {
  margin: 10px 20px 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.7;
}

.collection-card__scope {
  margin: 8px 20px 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

/* 字段说明与收录边界摘要 */
.fields-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.fields-summary__col {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.fields-summary__title {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.45;
}

.field-list {
  margin-top: 16px;
}

.field-list__name {
  margin-top: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
}

.field-list__name:first-child {
  margin-top: 0;
}

.field-list__desc {
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

/* 整理记录速览 */
.log-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.log-group {
  min-width: 0;
  padding: 22px 24px;
  border-left: 2px solid var(--accent-soft);
  background-color: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.log-group__month {
  font-size: 17px;
  line-height: 1.45;
}

.log-group__list {
  margin-top: 14px;
}

.log-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.log-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.log-group .log-item__date {
  display: block;
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.log-group .log-item__type {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.7;
}

.log-group .log-item__text {
  margin-top: 8px;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.85;
}

/* 站内栏目索引 */
.column-index {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.column-index__cell {
  min-width: 0;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.column-index__name {
  font-size: 16px;
  line-height: 1.45;
}

.column-index__link {
  display: inline-block;
  min-height: 24px;
  border-bottom: 1px solid transparent;
}

.column-index__link:hover {
  border-bottom-color: var(--accent);
}

.column-index__desc {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   pages：题材频道页
   -------------------------------------------------------------------------- */

/* 频道对照表 */
.channel-table-section {
  padding-bottom: 56px;
}

.channel-table {
  margin-top: 28px;
}

.channel-table__head,
.channel-table__row {
  display: grid;
  grid-template-columns: 76px minmax(150px, 1fr) minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.channel-table__head {
  padding: 10px 4px;
  border-top: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 13px;
}

.channel-table__cell {
  min-width: 0;
  font-size: 15px;
  line-height: 1.8;
}

.channel-table__cell--no {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
}

.channel-table__cell--dir {
  font-weight: 600;
}

.channel-table__cell--cover,
.channel-table__cell--near {
  color: var(--text-sub);
}

/* 频道方向说明 */
.channel-detail-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.channel-note {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.channel-note:first-of-type {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.channel-note__body {
  min-width: 0;
}

.channel-note__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  font-size: 18px;
  line-height: 1.45;
}

.channel-note__no {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
}

.channel-note__body p {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.9;
}

.channel-note__figure {
  margin: 0;
}

.channel-note__figure img {
  aspect-ratio: 3 / 2;
}

/* 频道与专题片单对应关系 */
.channel-map-section {
  padding: 56px 0 0;
  border-top: 1px solid var(--line);
}

.channel-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.channel-map__col {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.channel-map__col-title {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.45;
}

.channel-map__list {
  margin-top: 12px;
}

.channel-map__item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.8;
}

.channel-map__item:last-child {
  border-bottom: 0;
}

.channel-map__no {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
}

.channel-map__foot {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

/* --------------------------------------------------------------------------
   pages：专题片单页
   -------------------------------------------------------------------------- */

/* 题材标签筛选 */
.collection-filter {
  padding-bottom: 40px;
}

.collection-filter__head {
  max-width: var(--shell-narrow);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.filter-tags__item {
  display: flex;
}

.filter-tag {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.filter-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tag.is-active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.collection-filter__hint {
  margin-top: 16px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

/* 片单卡列表 */
.collection-cards {
  padding: 0 0 56px;
}

.collection-cards .collection-grid {
  margin-top: 28px;
}

.collection-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.collection-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 20px 20px;
}

.collection-card__index {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.collection-card__body .collection-card__title {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.45;
}

.collection-card__desc {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.collection-card__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.collection-card__meta dt {
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
}

.collection-card__meta dd {
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.7;
}

/* 片单覆盖频道与条目范围说明 */
.collection-ranges {
  padding: 56px 0 0;
  border-top: 1px solid var(--line);
}

.range-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
  margin-top: 28px;
}

.range-list__item {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.range-list__title {
  font-size: 17px;
  line-height: 1.45;
}

.range-list__text {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.collection-ranges__aside {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-note);
}

.aside-title {
  font-size: 16px;
  line-height: 1.45;
}

.aside-text {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.aside-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 16px;
}

.aside-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--accent);
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid var(--accent-soft);
}

.aside-link:hover {
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages：浏览指引页
   -------------------------------------------------------------------------- */

.inner-shell {
  width: 100%;
}

.guide-steps {
  padding-bottom: 56px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.step-item {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-soft);
  border-radius: 0 0 var(--radius) var(--radius);
  background-color: var(--bg-card);
}

.step-item__index {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.step-item__name {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.45;
}

.step-item__desc {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.guide-detail {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.guide-detail__figure {
  max-width: 860px;
  margin: 28px 0 0;
}

.guide-detail__figure img {
  aspect-ratio: 21 / 9;
}

.guide-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
  margin-top: 32px;
}

.guide-note {
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.guide-note__title {
  font-size: 17px;
  line-height: 1.45;
}

.guide-note__list {
  margin-top: 12px;
}

.guide-note__item {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.guide-note__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.guide-judge {
  padding: 56px 0 0;
  border-top: 1px solid var(--line);
}

.judge-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
  margin-top: 28px;
}

.judge-column {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.judge-column__title {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.45;
}

.judge-list {
  counter-reset: judge;
  margin-top: 14px;
}

.judge-list__item {
  position: relative;
  padding: 10px 0 10px 30px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
  counter-increment: judge;
}

.judge-list__item::before {
  content: counter(judge);
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.guide-related {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-note);
}

.guide-related__title {
  font-size: 16px;
  line-height: 1.45;
}

.guide-related__text {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.guide-related__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   pages：字段说明页
   -------------------------------------------------------------------------- */

.section-fields-table {
  padding-bottom: 56px;
}

.field-figure {
  max-width: 860px;
  margin: 28px 0 0;
}

.field-figure img {
  aspect-ratio: 16 / 7;
}

.field-table {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
  table-layout: fixed;
}

.field-table__caption {
  padding-bottom: 12px;
  color: var(--text-sub);
  font-size: 14px;
  text-align: left;
}

.field-table th,
.field-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.85;
}

.field-table thead th {
  border-top: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
}

.field-table tbody th {
  width: 30%;
  font-weight: 600;
}

.field-name {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
}

.section-fields-scope {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
  margin-top: 28px;
}

.scope-block {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.scope-block--out {
  background-color: var(--bg-note);
}

.scope-block__title {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.45;
}

.scope-list {
  margin-top: 14px;
}

.scope-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 1px;
  background-color: var(--accent);
}

.scope-note {
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent-soft);
  background-color: var(--bg-note);
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.section-fields-faq {
  padding: 56px 0 0;
  border-top: 1px solid var(--line);
}

.faq-list {
  max-width: 860px;
  margin-top: 28px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item__question {
  position: relative;
  padding: 18px 40px 18px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
}

.faq-item[open] .faq-item__question::after {
  content: "–";
}

.faq-item__answer {
  padding: 0 40px 20px 0;
}

.faq-item__answer p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   pages：整理记录页
   -------------------------------------------------------------------------- */

.log-months {
  padding-bottom: 56px;
}

.section-head {
  max-width: var(--shell-narrow);
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 22px;
  line-height: 1.4;
}

.section-head__note {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.9;
}

.log-month {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.log-month:last-child {
  border-bottom: 1px solid var(--line);
}

.log-month__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
}

.log-month__title {
  font-size: 18px;
  line-height: 1.45;
}

.log-month__count {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.log-list {
  margin-top: 16px;
}

.log-list .log-item {
  display: grid;
  grid-template-columns: 130px 120px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.log-list .log-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.log-list .log-item__date {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
}

.log-list .log-item__type {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

.log-list .log-item__text {
  min-width: 0;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.85;
}

/* 调整类型与日期标注 */
.log-types {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.log-types__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}

.log-types__media {
  min-width: 0;
}

.media-figure {
  margin: 0;
}

.media-figure img {
  aspect-ratio: 4 / 3;
}

.log-types__body {
  min-width: 0;
}

.type-list {
  border-top: 1px solid var(--line);
}

.type-list__row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.type-list__term {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
}

.type-list__desc {
  min-width: 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.log-types__note {
  margin-top: 20px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.log-types__note a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

/* 记录与频道的对应关系 */
.log-map {
  padding: 56px 0 0;
  border-top: 1px solid var(--line);
}

.log-map__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}

.log-map__col {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.log-map__col-title {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.45;
}

.log-map__list {
  margin-top: 12px;
}

.log-map__item {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}

.log-map__item:last-child {
  border-bottom: 0;
}

.log-map__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   pages：404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.error-hero {
  max-width: var(--shell-narrow);
  padding: 72px 0 56px;
}

.error-hero__code {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
}

.error-hero__title {
  margin-top: 14px;
  font-size: 34px;
  line-height: 1.35;
}

.error-hero__text {
  margin-top: 16px;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.9;
}

.error-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.error-paths {
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
}

.error-paths__title {
  font-size: 22px;
  line-height: 1.4;
}

.error-paths__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin-top: 24px;
}

.error-paths__item {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-card);
}

.error-paths__link {
  display: inline-block;
  min-height: 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  border-bottom: 1px solid transparent;
}

.error-paths__link:hover {
  border-bottom-color: var(--accent);
}

.error-paths__desc {
  display: block;
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   responsive：1024px / 768px / 480px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .column-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    padding: 12px 18px;
  }

  .site-nav {
    position: relative;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: min(280px, calc(100vw - 36px));
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--bg-card);
    box-shadow: 0 12px 28px rgba(31, 30, 28, 0.12);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list__item {
    width: 100%;
  }

  .nav-list__link {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .nav-list__link:hover,
  .nav-list__link.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--accent);
  }

  .nav-list__item:last-child .nav-list__link {
    border-bottom: 0;
  }

  .site-notice__text {
    padding: 10px 18px;
  }

  .inner-main,
  .error-main {
    padding: 0 18px 56px;
  }

  .page-header {
    padding: 20px 0 28px;
    margin-bottom: 36px;
  }

  .page-title,
  .hero__title,
  .error-hero__title {
    font-size: 26px;
  }

  .section-title,
  .section__title,
  .section-head h2,
  .error-paths__title {
    font-size: 19px;
  }

  .hero {
    padding: 36px 0 0;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 0 18px;
  }

  .hero__media {
    order: -1;
  }

  .section {
    padding: 40px 0;
  }

  .channel-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 6px 16px;
    padding: 16px 2px;
  }

  .channel-row--head {
    display: none;
  }

  .channel-row__scope {
    grid-column: 2 / 3;
  }

  .channel-row__near {
    grid-column: 2 / 3;
    color: var(--text-sub);
    font-size: 14px;
  }

  .collection-grid,
  .fields-summary,
  .log-groups,
  .channel-map,
  .range-list,
  .guide-detail__grid,
  .judge-columns,
  .scope-grid,
  .log-map__layout,
  .error-paths__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .channel-table__head {
    display: none;
  }

  .channel-table__row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 6px 16px;
    padding: 16px 2px;
  }

  .channel-table__cell--cover,
  .channel-table__cell--near {
    grid-column: 2 / 3;
    font-size: 14px;
  }

  .channel-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0;
  }

  .channel-note__figure {
    order: -1;
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .log-list .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px 0;
  }

  .type-list__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .log-types__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .field-table {
    table-layout: auto;
  }

  .field-table th,
  .field-table td {
    padding: 12px 10px;
    font-size: 14px;
  }

  .field-table tbody th {
    width: 38%;
  }

  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding: 40px 18px 24px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__copyright {
    padding: 16px 18px 24px;
  }

  .column-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .site-brand__name {
    font-size: 18px;
  }

  .site-brand__sub {
    font-size: 12px;
  }

  .hero__actions,
  .error-hero__actions,
  .channel-map__foot,
  .log-map__foot,
  .aside-links,
  .guide-related__list {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .column-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-tag {
    padding: 0 14px;
    font-size: 14px;
  }

  .log-group {
    padding: 20px 18px;
  }

  .fields-summary__col,
  .channel-map__col,
  .range-list__item,
  .guide-note,
  .judge-column,
  .scope-block,
  .log-map__col,
  .error-paths__item,
  .collection-ranges__aside,
  .guide-related {
    padding: 20px 18px;
  }
}
