/* ==========================================================================
   神马光棍影院 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --bg: #faf8f5;
  --ink: #1f1d1a;
  --ink-soft: #6b655d;
  --brick: #a8452f;
  --brick-dark: #8f3a27;
  --teal: #4a5a5e;
  --line: #e3ddd4;
  --line-strong: #cfc7bb;
  --surface: #ffffff;
  --surface-soft: #f4f0ea;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1120px;
  --reading: 760px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", Arial, sans-serif;
  --narrow: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", Arial, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  font-family: var(--narrow);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.3;
}

h2 {
  font-size: 24px;
  line-height: 1.35;
}

h3 {
  font-size: 18px;
  line-height: 1.4;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--brick);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

button {
  font-family: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout · 全站骨架
   ========================================================================== */

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: rgba(250, 248, 245, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(4px);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--brick);
}

.brand-name {
  font-family: var(--narrow);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

.nav-list a.is-current {
  color: var(--brick);
  border-bottom-color: var(--brick);
  font-weight: 600;
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px 9px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--ink);
  border-radius: 2px;
}

/* 主内容 */
.site-main {
  display: block;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px 24px 72px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brick);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 内页页面标题区 */
.page-header {
  max-width: var(--reading);
  padding-bottom: 26px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* 页脚 */
.site-footer {
  background-color: var(--surface-soft);
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 46px 24px 40px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer-title {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

.footer-note {
  padding-top: 26px;
  max-width: var(--reading);
}

.footer-note p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.footer-copy {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ==========================================================================
   components · 通用组件
   ========================================================================== */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background-color: var(--brick);
  color: #fff;
  border-color: var(--brick);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--brick-dark);
  border-color: var(--brick-dark);
  color: #fff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--brick);
  border-color: var(--brick);
}

/* 图片容器 */
figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--surface-soft);
}

figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 表格通用 */
.data-table {
  width: 100%;
  font-size: 15px;
  line-height: 1.7;
}

.data-table caption {
  text-align: left;
}

.data-table thead th {
  padding: 12px 14px;
  font-family: var(--narrow);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.data-table tbody th {
  padding: 14px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr:hover th,
.data-table tbody tr:hover td {
  background-color: rgba(168, 69, 47, 0.04);
}

.table-caption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.table-wrap {
  overflow-x: auto;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  float: right;
  color: var(--brick);
  font-weight: 400;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-item summary:hover {
  color: var(--brick);
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ==========================================================================
   pages · index.html
   ========================================================================== */

/* 首屏定位区 */
.hero-section {
  padding: 52px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}

.hero-copy {
  max-width: 560px;
}

.hero-kicker {
  font-size: 13px;
  line-height: 1.6;
  color: var(--brick);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.24;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.hero-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.content-media.content-media-primary {
  grid-column: 1 / -1;
  margin-top: 40px;
}

.content-media.content-media-primary img {
  aspect-ratio: 21 / 9;
}

/* 通用 section 骨架 */
.section {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-head {
  max-width: var(--reading);
  margin-bottom: 32px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.section-more {
  margin-top: 26px;
  font-size: 15px;
  margin-bottom: 0;
}

.section-more a {
  color: var(--brick);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.section-more a:hover,
.section-more a:focus-visible {
  border-bottom-color: var(--brick);
}

/* 题材频道方向总览 */
.channel-rows {
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 20px 24px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.channel-row:hover {
  background-color: rgba(74, 90, 94, 0.05);
}

.channel-row .channel-name {
  font-family: var(--narrow);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.channel-row .channel-orient {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.channel-row .channel-scene {
  font-size: 14px;
  line-height: 1.75;
  color: var(--teal);
}

/* 本期专题片单速览 */
.collection-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.collection-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.collection-card .collection-name {
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

.collection-card .collection-scope {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.collection-card .collection-channel {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.collection-card .collection-channel a {
  color: var(--brick);
}

/* 条目字段与收录边界摘要 */
.field-table {
  width: 100%;
  font-size: 15px;
  line-height: 1.7;
}

.field-table thead th {
  padding: 12px 14px;
  font-family: var(--narrow);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.field-table tbody th {
  padding: 14px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.field-table tbody td {
  padding: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.field-table tbody tr:hover th,
.field-table tbody tr:hover td {
  background-color: rgba(168, 69, 47, 0.04);
}

/* 查阅路径三步概览 */
.guide-steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.guide-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.guide-step .step-index {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--brick);
}

.guide-step .step-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* 收录范围调整记录与更正反馈入口 */
.records-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.record-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.record-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.record-item .record-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  white-space: nowrap;
}

.record-item .record-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.feedback-block {
  padding: 22px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-block h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.feedback-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ==========================================================================
   pages · 内页共用 section 骨架
   ========================================================================== */

.section .section-title {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.section-intro,
.section-lead {
  max-width: var(--reading);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.section-note {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-note a {
  color: var(--brick);
  margin-right: 14px;
}

/* ==========================================================================
   pages · channels.html
   ========================================================================== */

.page-channels .section-channel-table {
  padding-top: 0;
}

.channel-table thead th:nth-child(1) {
  width: 18%;
}

.channel-table thead th:nth-child(2) {
  width: 24%;
}

.channel-table thead th:nth-child(3) {
  width: 30%;
}

.channel-table thead th:nth-child(4) {
  width: 28%;
}

.channel-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.channel-detail {
  padding: 22px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-detail .channel-name {
  font-size: 18px;
  margin-bottom: 10px;
}

.channel-detail .channel-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.channel-detail .channel-scene {
  font-size: 14px;
  line-height: 1.75;
  color: var(--teal);
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
  margin: 0;
}

.channel-map {
  border-top: 1px solid var(--line);
  margin-bottom: 32px;
}

.channel-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 32px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.channel-map-col {
  min-width: 0;
}

.channel-map-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.channel-map-links {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.channel-map-links a {
  color: var(--teal);
  margin-right: 12px;
}

.channel-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.tip-item {
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tip-item .tip-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.tip-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* ==========================================================================
   pages · collections.html
   ========================================================================== */

.page-collections .section-collection-list {
  padding-top: 0;
}

.collection-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.collection-block:first-of-type {
  border-top: 1px solid var(--line);
}

.collection-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
}

.collection-body {
  min-width: 0;
}

.collection-body .collection-name {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 16px;
}

.collection-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 16px;
  align-items: baseline;
}

.collection-meta dt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  white-space: nowrap;
}

.collection-meta dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.collection-meta dd a {
  color: var(--brick);
}

.collection-map-table thead th:nth-child(1) {
  width: 32%;
}

.collection-map-table thead th:nth-child(2) {
  width: 34%;
}

.collection-map-table thead th:nth-child(3) {
  width: 34%;
}

.collection-map-table tbody th a {
  color: var(--teal);
}

.order-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.order-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.order-item .order-index {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--brick);
}

.order-body {
  min-width: 0;
}

.order-body .order-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.order-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* ==========================================================================
   pages · fields.html
   ========================================================================== */

.page-fields .field-figure {
  margin-bottom: 44px;
}

.field-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
}

.page-fields .section-field-table {
  padding-top: 0;
}

.page-fields .field-table thead th:nth-child(1) {
  width: 20%;
}

.page-fields .field-table thead th:nth-child(2) {
  width: 44%;
}

.page-fields .field-table thead th:nth-child(3) {
  width: 36%;
}

.page-fields .field-table tbody td:first-child {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.boundary-col {
  padding: 22px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-in {
  border-left: 3px solid var(--teal);
}

.boundary-out {
  border-left: 3px solid var(--brick);
}

.boundary-col .boundary-title {
  font-size: 17px;
  margin-bottom: 12px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background-color: var(--line-strong);
  border-radius: 50%;
}

.boundary-in .boundary-list li::before {
  background-color: var(--teal);
}

.boundary-out .boundary-list li::before {
  background-color: var(--brick);
}

.boundary-note {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.boundary-note a {
  color: var(--brick);
}

.section-related {
  padding-top: 40px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.related-list li {
  min-width: 0;
}

.related-list a {
  display: block;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-list a:hover,
.related-list a:focus-visible {
  color: var(--brick);
  border-color: var(--brick);
}

/* ==========================================================================
   pages · guide.html
   ========================================================================== */

.page-guide .page-layout {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.guide-steps .section-lead,
.guide-records .section-lead,
.guide-faq .section-lead {
  margin-bottom: 24px;
}

.guide-figure {
  margin-bottom: 30px;
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
}

.step-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}

.step-item .step-name {
  font-size: 18px;
  margin-bottom: 4px;
}

.step-item .step-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
}

.step-item .step-desc a {
  color: var(--brick);
}

.step-item .step-result {
  font-size: 14px;
  line-height: 1.75;
  color: var(--teal);
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
  margin: 4px 0 0;
}

.guide-records .records-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.records-column {
  min-width: 0;
}

.records-column .records-subtitle,
.feedback-column .records-subtitle {
  font-size: 17px;
  margin-bottom: 14px;
}

.guide-records .record-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.guide-records .record-item {
  display: block;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.guide-records .record-date {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 6px;
}

.guide-records .record-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.guide-records .record-target {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--brick);
}

.feedback-column {
  min-width: 0;
  padding: 22px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-column .feedback-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.feedback-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background-color: var(--brick);
  border-radius: 50%;
}

.feedback-column .feedback-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.feedback-column .feedback-note a {
  color: var(--brick);
}

/* ==========================================================================
   pages · 404.html
   ========================================================================== */

.site-error .error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px 24px 88px;
}

.error-inner {
  max-width: 640px;
}

.error-code {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--brick);
  margin-bottom: 12px;
}

.error-title {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.error-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 36px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-links a {
  font-size: 15px;
  color: var(--teal);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.error-links a:hover,
.error-links a:focus-visible {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 34px;
  }

  .hero-grid {
    gap: 36px;
  }

  .records-layout,
  .guide-records .records-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    padding: 12px 20px;
    gap: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    min-height: 44px;
    padding: 11px 12px;
    border-bottom: 1px solid transparent;
    border-radius: var(--radius-sm);
  }

  .home-main,
  .inner-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-section {
    padding: 34px 0 40px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-title {
    font-size: 30px;
  }

  .content-media.content-media-primary {
    margin-top: 30px;
  }

  .section {
    padding: 40px 0;
  }

  .page-header {
    padding-bottom: 20px;
    margin-bottom: 30px;
  }

  .page-title {
    font-size: 28px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .collection-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px 0;
  }

  .collection-meta {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .records-layout,
  .guide-records .records-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .record-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .channel-map-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .channel-detail-list,
  .tips-grid,
  .boundary-columns,
  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-inner {
    padding: 36px 20px 32px;
  }

  .site-error .error-main {
    padding: 48px 20px 64px;
  }
}

@media (max-width: 560px) {
  body.site-body {
    font-size: 15px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .hero-title,
  .error-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 24px;
  }

  .section .section-title,
  .section-head h2 {
    font-size: 21px;
  }

  .hero-actions .btn,
  .error-actions .btn {
    flex: 1 1 100%;
  }

  .guide-step,
  .order-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
  }

  .collection-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }

  .collection-meta dt {
    margin-top: 8px;
  }

  .data-table {
    font-size: 14px;
  }

  .data-table thead th,
  .data-table tbody th,
  .data-table tbody td,
  .field-table thead th,
  .field-table tbody th,
  .field-table tbody td {
    padding: 11px 10px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}
