/* ==========================================================================
   飘花伦理电影 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --bg: #f7f7f5;
  --bg-soft: #ffffff;
  --bg-tint: #eef1ee;
  --text: #23262b;
  --text-muted: #6b7076;
  --line: #e2e3e0;
  --primary: #2f6f5e;
  --primary-dark: #24564a;
  --accent: #b4552f;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(35, 38, 43, 0.05), 0 6px 16px rgba(35, 38, 43, 0.05);
  --shadow-hover: 0 2px 4px rgba(35, 38, 43, 0.06), 0 12px 24px rgba(35, 38, 43, 0.09);
  --container: 1120px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout
   -------------------------------------------------------------------------- */
.site-main {
  display: block;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.inner-main {
  padding-top: 20px;
}

.home-main {
  padding-top: 0;
}

.section {
  margin-top: 48px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  color: var(--text);
}

.section-desc,
.section-intro,
.section-lead {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 780px;
}

.section-more {
  margin: 18px 0 0;
  font-size: 14px;
}

.section-foot {
  margin: 18px 0 0;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   components · header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--text);
  text-decoration: none;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.brand-slogan {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--primary);
  text-decoration: none;
  border-bottom-color: var(--primary);
}

.nav-list a.is-current {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

/* --------------------------------------------------------------------------
   components · breadcrumb / page header
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0 0;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text);
}

.page-header {
  margin: 16px 0 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.page-description {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 780px;
}

/* --------------------------------------------------------------------------
   components · buttons / links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--bg-tint);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.link-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary);
}

.link-more::after {
  content: " →";
  font-weight: 400;
}

.link-more:hover,
.link-more:focus-visible {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   components · tables
   -------------------------------------------------------------------------- */
.field-table,
.relation-table {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.field-table caption,
.relation-table caption,
.field-table-caption,
.relation-caption,
.table-caption {
  caption-side: top;
  padding: 10px 12px;
  text-align: left;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td,
.relation-table th,
.relation-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.field-table thead th,
.relation-table thead th {
  background: var(--bg-tint);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.field-table tbody th,
.relation-table tbody th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.relation-table tbody tr:last-child th,
.relation-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody tr:hover,
.relation-table tbody tr:hover {
  background: #fafbfa;
}

/* --------------------------------------------------------------------------
   components · footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 56px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.4fr);
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 20px 24px;
}

.footer-brand {
  max-width: 320px;
}

.footer-name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.footer-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.footer-heading {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.footer-group ul {
  display: block;
}

.footer-group li {
  margin-bottom: 6px;
}

.footer-group a {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-bottom .copyright {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  color: var(--text-muted);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.hero {
  padding: 40px 0 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.hero-copy {
  max-width: 560px;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
}

.hero-text {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-figure {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.hero-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-index li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hero-index li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.index-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.index-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* 题材频道方向总览 */
.channel-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.channel-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.channel-focus {
  margin: 0;
  font-size: 13px;
  color: var(--primary);
}

.channel-trait {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* 专题片单速览 */
.list-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.list-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.list-figure {
  margin: 0;
}

.list-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.list-card .list-name {
  margin: 14px 16px 0;
  font-size: 16px;
}

.list-card .list-scope {
  margin: 8px 16px 0;
  font-size: 13px;
  color: var(--primary);
}

.list-card .list-compose {
  margin: 6px 16px 18px;
  font-size: 14px;
  color: var(--text-muted);
}

/* 条目字段与收录边界摘要 */
.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.fields-table-wrap .subsection-title,
.fields-boundary .subsection-title {
  margin: 0 0 12px;
  font-size: 16px;
}

.fields-table-wrap .field-table {
  font-size: 14px;
}

.fields-boundary {
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-text {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.boundary-more {
  margin: 14px 0 0;
  font-size: 14px;
}

/* 查阅路径三步概览 */
.path-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.path-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-tint);
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  border-radius: 50%;
}

.path-step .step-body {
  display: block;
}

.path-step .step-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.path-step .step-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* 收录范围调整记录摘要 */
.scope-timeline {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--line);
  padding-left: 18px;
  gap: 16px;
}

.scope-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  position: relative;
}

.scope-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.scope-date {
  font-size: 13px;
  color: var(--text-muted);
}

.scope-note {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

/* 站内页面索引 */
.index-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.index-column {
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-heading {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--primary);
}

.index-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.index-links a {
  font-size: 14px;
  color: var(--text);
}

.index-links a:hover,
.index-links a:focus-visible {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   pages · 题材频道
   -------------------------------------------------------------------------- */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.channel-overview .channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.channel-body .channel-name {
  font-size: 17px;
}

.channel-body p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.channel-label {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  background: var(--bg-tint);
  color: var(--primary);
  font-size: 12px;
  border-radius: 999px;
}

.channel-body .channel-orientation {
  color: var(--text);
}

.channel-link {
  margin-top: 4px;
  font-size: 14px;
}

.channel-media {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-tint);
}

.channel-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.channel-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.channel-note {
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-note-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.channel-note-text {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.channel-field-list {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  font-size: 13px;
}

.channel-field-list dt {
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.channel-field-list dd {
  margin: 0;
  color: var(--text);
}

.channel-relation .relation-table-wrap,
.channel-relation .relation-table {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */
.list-overview {
  margin-top: 40px;
}

.list-block {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.list-media {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-tint);
}

.list-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.list-body {
  min-width: 0;
}

.list-body .list-name {
  font-size: 18px;
  margin-bottom: 10px;
}

.list-body p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text);
}

.field-label {
  display: inline-block;
  min-width: 68px;
  margin-right: 8px;
  color: var(--primary);
  font-weight: 600;
}

.list-relation {
  margin-top: 48px;
}

.relation-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border-radius: var(--radius);
}

.relation-table {
  min-width: 640px;
}

.list-channel-map {
  margin-top: 48px;
}

.channel-map-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.channel-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.channel-map-list-name {
  font-weight: 600;
  color: var(--text);
}

.channel-map-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 16px;
}

.channel-map-channel-name {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   pages · 条目字段说明
   -------------------------------------------------------------------------- */
.field-intro {
  margin-top: 40px;
}

.field-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

.field-intro-text p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text);
}

.field-intro-figure {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-intro-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.field-intro-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.field-table-section {
  margin-top: 44px;
}

.field-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: var(--radius);
}

.field-table-section .field-table {
  min-width: 560px;
}

.boundary-section {
  margin-top: 44px;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.boundary-col {
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-heading {
  margin: 0 0 12px;
  font-size: 16px;
}

.boundary-included .boundary-heading {
  color: var(--primary);
}

.boundary-excluded .boundary-heading {
  color: var(--accent);
}

.boundary-col .boundary-list li {
  padding: 0 0 0 18px;
  margin-bottom: 8px;
  font-size: 14px;
}

.boundary-col .boundary-list li:last-child {
  margin-bottom: 0;
}

.boundary-included .boundary-list li::before {
  background: var(--primary);
}

.boundary-excluded .boundary-list li::before {
  background: var(--accent);
}

.reading-notes-section {
  margin-top: 44px;
}

.reading-notes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.reading-notes-list li {
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-title {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--primary);
}

.reading-notes-list p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   pages · 查阅路径
   -------------------------------------------------------------------------- */
.path-steps {
  margin-top: 40px;
}

.path-steps > .section-title {
  font-size: 20px;
}

.path-steps > .section-desc {
  margin: 8px 0 20px;
}

.step-block {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-head .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 50%;
  flex: none;
}

.step-title {
  font-size: 17px;
}

.step-figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-tint);
}

.step-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.step-figure figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.step-body {
  min-width: 0;
}

.step-body > p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text);
}

.step-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-point {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.step-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.path-tips {
  margin-top: 48px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 20px;
}

.tip-card {
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tip-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary);
}

.tip-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.tips-note {
  margin: 20px 0 0;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 收录范围说明
   -------------------------------------------------------------------------- */
.scope-section {
  margin-top: 44px;
}

.scope-included {
  margin-top: 40px;
}

.scope-media {
  margin: 0 0 20px;
}

.scope-figure {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.scope-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.scope-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.scope-body > p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--text);
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.scope-list strong {
  color: var(--text);
  margin-right: 6px;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
  border-left: 2px solid var(--line);
  padding-left: 20px;
}

.log-item {
  position: relative;
}

.log-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.log-date {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.log-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.log-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.related-entry {
  margin-top: 48px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-item {
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-item a {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.related-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.site-error .error-main {
  padding-top: 56px;
  padding-bottom: 72px;
}

.error-block {
  max-width: 640px;
  padding: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.error-block h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-text {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.error-links li {
  padding: 12px 14px;
  background: var(--bg-tint);
  border-radius: var(--radius-sm);
}

.error-links a {
  font-size: 14px;
  font-weight: 600;
}

.error-actions {
  margin: 0;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
}

.btn-home:hover,
.btn-home:focus-visible {
  background: var(--primary-dark);
  color: #ffffff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-copy {
    max-width: none;
  }

  .list-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-cards .list-card:last-child {
    grid-column: 1 / -1;
  }

  .fields-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-overview .channel-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-media img {
    aspect-ratio: 16 / 9;
  }

  .list-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-media img {
    aspect-ratio: 16 / 9;
  }

  .field-intro-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tips-grid .tip-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: block;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible,
  .nav-list a.is-current {
    border-bottom: 0;
    border-left-color: var(--primary);
    background: var(--bg-tint);
  }

  .site-main {
    padding: 0 16px 48px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-index li:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .list-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-cards .list-card:last-child {
    grid-column: auto;
  }

  .channel-rows .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .path-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .path-step .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .scope-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .index-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .channel-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-field-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .channel-field-list dd {
    margin-bottom: 8px;
  }

  .boundary-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .reading-notes-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .tips-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tips-grid .tip-card:last-child {
    grid-column: auto;
  }

  .channel-map-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .channel-map-arrow {
    text-align: left;
  }

  .related-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-block {
    padding: 24px 18px;
  }

  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-figure img {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
