/* ==========================================================================
   秋霞电影网站 · 全站样式表
   结构分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础排版
   -------------------------------------------------------------------------- */
:root {
  --c-text: #23262b;
  --c-text-soft: #5c6169;
  --c-bg: #f6f7f9;
  --c-surface: #ffffff;
  --c-line: #e2e5ea;
  --c-link: #2f6fd0;
  --c-link-dark: #23559f;
  --c-drama: #6b7bd6;
  --c-suspense: #4a5a72;
  --c-urban: #c96f4a;
  --c-family: #7a9a5b;
  --c-period: #a5784f;
  --radius: 6px;
  --shell: 1120px;
  --shadow-soft: 0 1px 2px rgba(35, 38, 43, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-text);
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--c-link-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-link);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

strong {
  font-weight: 600;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 10px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 14px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* --------------------------------------------------------------------------
   layout · 页头 / 导航 / 主容器 / 页脚
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  flex: none;
  font-size: 19px;
  font-weight: 600;
  color: var(--c-text);
  padding: 8px 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--c-link);
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list li {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--c-text-soft);
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--c-bg);
  color: var(--c-text);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--c-text);
  font-weight: 600;
  border-bottom-color: var(--c-link);
}

.nav-toggle {
  display: none;
  flex: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle::before {
  top: 15px;
}

.nav-toggle::after {
  bottom: 15px;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px 20px 56px;
}

.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px 20px 20px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-line);
}

.footer-brand {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 460px;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.7;
}

.footer-nav {
  flex: 0 1 auto;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--c-text-soft);
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible {
  color: var(--c-link);
}

.footer-middle {
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
}

.footer-boundary {
  font-size: 13.5px;
  color: var(--c-text-soft);
  line-height: 1.7;
}

.footer-bottom {
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--c-text-soft);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13.5px;
  color: var(--c-text-soft);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--c-link);
}

/* --------------------------------------------------------------------------
   components · 通用区块 / 标题 / 表格 / 清单 / 面包屑
   -------------------------------------------------------------------------- */
.section-head {
  margin-bottom: 18px;
}

.section-head h2,
.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-desc,
.section-intro,
.section-lead {
  font-size: 15px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

.section-desc a,
.section-intro a,
.section-lead a {
  text-decoration: underline;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  color: var(--c-text-soft);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--c-text-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--c-link);
}

.breadcrumb-sep {
  color: #a8adb6;
}

.breadcrumb-current {
  color: var(--c-text);
  font-weight: 600;
}

.page-header {
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--c-line);
}

.page-title {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.page-description {
  font-size: 15.5px;
  color: var(--c-text-soft);
  line-height: 1.8;
  max-width: 820px;
}

.table-wrap {
  overflow-x: auto;
}

.field-table {
  width: 100%;
  font-size: 15px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}

.field-table caption,
.table-caption,
.field-table-caption {
  caption-side: top;
  text-align: left;
  font-size: 13.5px;
  color: var(--c-text-soft);
  padding: 0 0 10px;
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
  line-height: 1.7;
}

.field-table thead th {
  background: #f2f4f7;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text);
  white-space: nowrap;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--c-text);
  width: 22%;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody tr:hover {
  background: #fafbfc;
}

.step-list,
.order-list,
.notes-list {
  display: grid;
  gap: 14px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.faq-question {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "＋";
  flex: none;
  width: 18px;
  color: var(--c-link);
  font-weight: 600;
}

.faq-item[open] .faq-question::before {
  content: "－";
}

.faq-question:hover {
  color: var(--c-link);
}

.faq-answer {
  padding: 0 16px 16px 44px;
  font-size: 15px;
  color: var(--c-text-soft);
  line-height: 1.8;
}

.faq-answer p + p {
  margin-top: 8px;
}

/* 图片容器统一约束 */
.article-media,
.media-figure,
.list-media,
.genre-item-media,
.content-media,
.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eceef2;
}

.article-media img,
.media-figure img,
.list-media img,
.genre-item-media img,
.content-media img,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-media figcaption,
.media-figure figcaption,
.content-media figcaption {
  position: static;
  padding: 8px 2px 0;
  font-size: 13.5px;
  color: var(--c-text-soft);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main {
  display: block;
}

.hero {
  position: relative;
  background: #1f2227;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: #1f2227;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-copy {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 76px 20px 68px;
}

.hero-title {
  font-size: 36px;
  line-height: 1.28;
  color: #fff;
  max-width: 760px;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16.5px;
  line-height: 1.8;
  color: #e4e7ec;
  max-width: 700px;
}

.hero-slogan {
  margin-top: 12px;
  font-size: 15px;
  color: #b9c0cc;
  border-left: 3px solid var(--c-drama);
  padding-left: 12px;
}

.content-media-primary {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px 34px;
  background: transparent;
  border-radius: 0;
}

.content-media-primary img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}

.content-media-primary figcaption {
  color: var(--c-text-soft);
}

.quick-entry {
  max-width: var(--shell);
  margin: 26px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.entry-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.entry-link:hover,
.entry-link:focus-visible {
  border-color: var(--c-link);
  color: var(--c-link);
  background: #f4f8ff;
  text-decoration: none;
}

.genre-overview,
.featured-lists,
.field-summary,
.browse-notes,
.boundary-feedback {
  max-width: var(--shell);
  margin: 44px auto 0;
  padding: 0 20px;
}

.genre-list {
  display: grid;
  gap: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.genre-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--c-line);
  border-left: 3px solid transparent;
  transition: background-color 0.18s ease;
}

.genre-row:last-child {
  border-bottom: 0;
}

.genre-row:hover {
  background: #fafbfc;
}

.genre-row:nth-child(1) {
  border-left-color: var(--c-drama);
}

.genre-row:nth-child(2) {
  border-left-color: var(--c-suspense);
}

.genre-row:nth-child(3) {
  border-left-color: var(--c-urban);
}

.genre-row:nth-child(4) {
  border-left-color: var(--c-family);
}

.genre-row:nth-child(5) {
  border-left-color: var(--c-period);
}

.genre-main {
  flex: 1 1 auto;
  min-width: 0;
}

.genre-name {
  font-size: 17px;
  margin-bottom: 4px;
}

.genre-scope {
  font-size: 15px;
  color: var(--c-text-soft);
  line-height: 1.7;
}

.genre-field {
  margin-top: 4px;
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.7;
  padding-left: 10px;
  border-left: 2px solid var(--c-line);
}

.genre-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-link);
  white-space: nowrap;
}

.genre-link:hover,
.genre-link:focus-visible {
  border-color: var(--c-link);
  background: #f4f8ff;
  text-decoration: none;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.list-grid .list-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.list-grid .list-item:hover {
  border-color: #c9d2e0;
  box-shadow: var(--shadow-soft);
}

.list-grid .list-name {
  font-size: 17px;
}

.list-grid .list-scope,
.list-grid .list-structure {
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

.list-grid .list-structure {
  padding-top: 8px;
  border-top: 1px dashed var(--c-line);
}

.list-grid .list-link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 14.5px;
  font-weight: 600;
}

.boundary-note {
  margin-top: 14px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.8;
  background: #f2f4f7;
  border-left: 3px solid var(--c-suspense);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.notes-list {
  counter-reset: note;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note-item {
  position: relative;
  padding: 16px 18px 16px 54px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.note-item::before {
  counter-increment: note;
  content: counter(note);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--c-suspense);
  border-radius: 50%;
}

.note-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.note-text {
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

.notes-more {
  margin-top: 16px;
  font-size: 15px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.boundary-grid .boundary-col {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.boundary-grid .boundary-subtitle {
  font-size: 16px;
  margin-bottom: 8px;
}

.boundary-grid .boundary-text {
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   pages · 内页两栏（题材频道 / 专题片单）
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.page-layout.sidebar-left .page-aside {
  order: 1;
}

.page-layout.sidebar-left .page-content {
  order: 2;
}

.page-aside {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky;
  top: 78px;
}

.aside-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.aside-note {
  font-size: 13.5px;
  color: var(--c-text-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

.aside-list,
.genre-index-list {
  display: grid;
  gap: 2px;
}

.aside-list a,
.genre-index-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px 0 12px;
  font-size: 14.5px;
  color: var(--c-text-soft);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.aside-list a:hover,
.aside-list a:focus-visible,
.genre-index-list a:hover,
.genre-index-list a:focus-visible {
  background: var(--c-bg);
  color: var(--c-text);
  border-left-color: var(--c-link);
  text-decoration: none;
}

.page-content {
  min-width: 0;
}

.genre-section,
.genre-compare,
.genre-path,
.list-section,
.boundary-section,
.order-section,
.tip-section,
.content-section,
.section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--c-line);
}

.genre-section,
.list-section {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.genre-section .genre-list {
  display: grid;
  gap: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.genre-item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
  scroll-margin-top: 78px;
}

.genre-item:last-child {
  border-bottom: 0;
}

.genre-item-media {
  aspect-ratio: 4 / 3;
  border-left: 3px solid var(--c-line);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.genre-item-drama .genre-item-media {
  border-left-color: var(--c-drama);
}

.genre-item-suspense .genre-item-media {
  border-left-color: var(--c-suspense);
}

.genre-item-urban .genre-item-media {
  border-left-color: var(--c-urban);
}

.genre-item-family .genre-item-media {
  border-left-color: var(--c-family);
}

.genre-item-period .genre-item-media {
  border-left-color: var(--c-period);
}

.genre-item-body {
  min-width: 0;
}

.genre-item-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.genre-item-scope,
.genre-item-field {
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.8;
}

.genre-item-field {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--c-line);
}

.genre-item-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 14.5px;
  font-weight: 600;
}

.genre-path .step-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.genre-path .step-index {
  flex: none;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--c-link);
  border-radius: 50%;
}

.genre-path .step-body {
  min-width: 0;
}

.genre-path .step-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.genre-path .step-desc {
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 专题片单页
   -------------------------------------------------------------------------- */
.list-section .list-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  border-radius: 0;
  box-shadow: none;
  scroll-margin-top: 78px;
}

.list-section .list-item:hover {
  border-color: var(--c-line);
  box-shadow: none;
}

.list-section .list-media {
  aspect-ratio: 16 / 10;
}

.list-section .list-body {
  min-width: 0;
}

.list-section .list-name {
  font-size: 17px;
}

.list-section .list-meta {
  margin: 8px 0 10px;
  display: grid;
  gap: 6px;
}

.list-section .list-meta dt {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
}

.list-section .list-meta dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

.list-section .list-link {
  font-size: 14.5px;
  font-weight: 600;
}

.boundary-columns,
.tip-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.boundary-column,
.tip-column {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.boundary-name,
.tip-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.boundary-list {
  display: grid;
  gap: 8px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--c-suspense);
  border-radius: 50%;
}

.tip-text {
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.8;
}

.order-item {
  padding: 14px 16px 14px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-urban);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.order-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.order-text {
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 条目字段说明页
   -------------------------------------------------------------------------- */
.article-media {
  margin-bottom: 20px;
}

.article-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.relation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.relation-item {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.relation-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.relation-text {
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.8;
}

.relation-point {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--c-line);
  font-size: 14px;
  color: var(--c-text);
}

.next-step-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.next-step-item a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.next-step-item a:hover,
.next-step-item a:focus-visible {
  border-color: var(--c-link);
  background: #f4f8ff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 查阅路径页
   -------------------------------------------------------------------------- */
.media-figure {
  margin-bottom: 26px;
}

.media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.step-section .step-item {
  display: block;
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-link);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.step-section .step-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-section .step-action,
.step-section .step-check,
.step-section .step-result {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--c-text-soft);
}

.step-section .step-action strong,
.step-section .step-check strong,
.step-section .step-result strong {
  color: var(--c-text);
}

.step-section .step-check {
  margin-top: 6px;
}

.step-section .step-result {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--c-line);
}

.boundary-section .boundary-block {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-suspense);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.boundary-section .boundary-block + .boundary-block {
  margin-top: 14px;
}

.boundary-section .boundary-block p {
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 72px;
}

.error-inner {
  width: 100%;
  max-width: 640px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 34px 28px;
}

.error-code {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--c-suspense);
  margin-bottom: 10px;
}

.error-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  color: var(--c-text-soft);
  line-height: 1.8;
}

.error-text + .error-text {
  margin-top: 8px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 20px;
}

.error-button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--c-link);
  border-radius: var(--radius);
}

.error-button:hover,
.error-button:focus-visible {
  background: var(--c-link-dark);
  color: #fff;
  text-decoration: none;
}

.error-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.error-link:hover,
.error-link:focus-visible {
  border-color: var(--c-link);
  color: var(--c-link);
  text-decoration: none;
}

.error-nav {
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}

.error-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.error-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14.5px;
}

/* --------------------------------------------------------------------------
   responsive · 平板与手机
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .header-inner {
    min-height: 58px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6px 0 12px;
    border-top: 1px solid var(--c-line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    display: block;
  }

  .nav-link {
    display: flex;
    width: 100%;
    padding: 0 6px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
  }

  .nav-link.is-current {
    border-left-color: var(--c-link);
    background: var(--c-bg);
  }

  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-layout.sidebar-left .page-aside {
    order: 2;
    position: static;
  }

  .page-layout.sidebar-left .page-content {
    order: 1;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-copy {
    padding: 56px 20px 48px;
  }

  .hero-title {
    font-size: 28px;
  }

  .quick-entry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-grid,
  .relation-list,
  .next-step-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-list,
  .boundary-grid,
  .boundary-columns,
  .tip-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-item {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .list-section .list-item {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15.5px;
  }

  .header-inner,
  .inner-main,
  .footer-inner,
  .hero-copy,
  .content-media-primary,
  .quick-entry,
  .genre-overview,
  .featured-lists,
  .field-summary,
  .browse-notes,
  .boundary-feedback {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    font-size: 17px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-head h2,
  .section-title {
    font-size: 19px;
  }

  .hero-copy {
    padding-top: 44px;
    padding-bottom: 38px;
  }

  .hero-title {
    font-size: 23px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .content-media-primary img {
    aspect-ratio: 4 / 3;
  }

  .quick-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .genre-overview,
  .featured-lists,
  .field-summary,
  .browse-notes,
  .boundary-feedback {
    margin-top: 34px;
  }

  .genre-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .genre-link {
    width: 100%;
    justify-content: center;
  }

  .list-grid,
  .relation-list,
  .next-step-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-item,
  .list-section .list-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .genre-item-media {
    aspect-ratio: 16 / 9;
  }

  .list-section .list-media {
    aspect-ratio: 16 / 9;
  }

  .field-table {
    font-size: 14px;
  }

  .field-table th,
  .field-table td {
    padding: 9px 10px;
  }

  .field-table thead th {
    white-space: normal;
  }

  .field-table tbody th {
    width: 30%;
  }

  .article-media img,
  .media-figure img {
    aspect-ratio: 4 / 3;
  }

  .faq-answer {
    padding-left: 16px;
  }

  .error-inner {
    padding: 26px 20px;
  }

  .error-code {
    font-size: 34px;
  }

  .error-title {
    font-size: 20px;
  }

  .error-button,
  .error-link {
    flex: 1 1 100%;
    justify-content: center;
  }

  .footer-top {
    gap: 18px;
  }

  .footer-nav-list {
    gap: 4px 18px;
  }
}
