/* ============================================================
   星空影视 · 全站样式
   分组：base / layout / components / pages / responsive
   ============================================================ */

/* ---------- base：变量与重置 ---------- */
:root {
  --paper: #faf8f3;
  --ink: #17150f;
  --muted: #6f6a60;
  --rule: #d8d3c8;
  --accent: #8c2f24;
  --shade: #eeeae1;
  --serif: "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: 1080px;
  --col-main: 700px;
  --col-side: 260px;
  --gap-side: 60px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- layout：全站骨架 ---------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.nav-link {
  display: inline-block;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 26px 0 0;
}

.page-title {
  font-size: 34px;
  line-height: 1.28;
  letter-spacing: 0.02em;
  max-width: 900px;
}

.page-summary {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.title-rule {
  display: block;
  height: 0;
  margin-top: 22px;
  border-top: 3px double var(--ink);
}

.page-header .page-summary + .title-rule {
  margin-top: 20px;
}

.page-header:has(.page-summary) {
  padding-bottom: 4px;
}

/* 页脚 */
.site-footer {
  flex: 0 0 auto;
  margin-top: 0;
  border-top: 1px solid var(--rule);
  background: var(--shade);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.footer-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.footer-brand,
.footer-copy {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-brand {
  color: var(--ink);
  font-weight: 700;
}

/* 两栏骨架：主内容在前，侧栏在后 */
.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--col-side);
  gap: var(--gap-side);
  align-items: start;
  margin-top: 40px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--col-side);
  gap: var(--gap-side);
  align-items: start;
  margin-top: 40px;
}

/* ---------- components：通用元素 ---------- */
.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 720px;
}

.section-intro,
.section-lead,
.section-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 720px;
}

.section-title {
  font-size: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 14px;
}

.link-arrow {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.link-arrow::after {
  content: " →";
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* 图片与图注 */
figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--shade);
}

figcaption,
.figure-caption {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-figure {
  margin: 28px 0 0;
}

.page-figure img {
  height: 320px;
  border-radius: var(--radius);
}

/* 流程节点（首页 read-path 与反馈页 correction-flow 共用结构） */
.flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-left: 34px;
}

.flow::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--rule);
}

.flow-node {
  position: relative;
  padding-left: 4px;
}

.flow-index {
  position: absolute;
  left: -34px;
  top: 0;
  width: 31px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.flow-node p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 640px;
}

/* 相关链接组 */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-list a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  display: inline-block;
}

.related-list a:hover,
.related-list a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.related-note {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.related-title {
  font-size: 20px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.related-links,
.related-pages,
.related-reading {
  margin-top: 48px;
}

.related-links .related-list,
.related-pages .related-list,
.related-reading .related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 28px;
}

.related-reading .related-item,
.related-links .related-item {
  padding: 14px 16px;
  background: var(--shade);
  border-radius: var(--radius);
}

/* ---------- pages：首页 ---------- */
.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.hero {
  padding: 34px 0 0;
  border-bottom: 1px solid var(--rule);
}

.hero-head {
  padding-bottom: 26px;
  border-bottom: 3px double var(--ink);
}

.hero-kicker {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.hero-title {
  font-size: 44px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  max-width: 900px;
}

.hero-subtitle {
  margin: 16px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.hero-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 40px;
  padding: 32px 0 40px;
}

.hero-lead {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  line-height: 1.9;
}

.hero-lead p {
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero-figure {
  display: flex;
  flex-direction: column;
}

.hero-figure img {
  height: 300px;
  border-radius: var(--radius);
}

.hero-toc {
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}

.hero-toc-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-toc-list li {
  border-bottom: 1px dotted var(--rule);
}

.hero-toc-list a {
  display: block;
  padding: 9px 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.hero-toc-list a:hover,
.hero-toc-list a:focus-visible {
  color: var(--accent);
}

/* 频道版面 */
.channel-brief {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}

.channel-lines {
  border-top: 1px solid var(--rule);
}

.channel-line {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 116px;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.channel-line .channel-name {
  font-size: 19px;
  font-weight: 700;
}

.channel-line .channel-scope {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.channel-line .channel-link {
  justify-self: end;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  white-space: nowrap;
}

.channel-line .channel-link:hover,
.channel-line .channel-link:focus-visible {
  text-decoration: none;
  border-bottom-width: 2px;
}

/* 专题主推 */
.topic-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 44px;
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.topic-figure img {
  height: 340px;
  border-radius: var(--radius);
}

.topic-body h2 {
  font-size: 26px;
  line-height: 1.35;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
}

.topic-body > p {
  color: var(--ink);
  font-size: 16px;
}

.topic-points {
  counter-reset: tp;
  margin-top: 6px;
}

.topic-points li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.topic-points li::before {
  counter-increment: tp;
  content: counter(tp, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.topic-points strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 2px;
}

/* 四步路径 */
.read-path {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}

.read-path .flow-title {
  font-size: 19px;
  line-height: 1.4;
}

.flow-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.flow-link:hover,
.flow-link:focus-visible {
  text-decoration: none;
  border-bottom-width: 2px;
}

/* 名词速览 */
.term-brief {
  padding: 44px 0 8px;
}

.term-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}

.term-item {
  padding: 20px 22px 22px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.term-item:last-child {
  border-right: 0;
}

.term-item .term-name {
  font-size: 19px;
  margin-bottom: 8px;
}

.term-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.term-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.term-link:hover,
.term-link:focus-visible {
  text-decoration: none;
  border-bottom-width: 2px;
}

/* ---------- pages：频道目录 ---------- */
.channel-main {
  min-width: 0;
}

.channel-section {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 26px;
  margin-bottom: 26px;
}

.channel-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.channel-entry {
  min-width: 0;
}

.channel-entry .channel-name {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.channel-entry .channel-scope,
.channel-entry .channel-audience {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.85;
}

.channel-entry .channel-audience {
  color: var(--muted);
}

.channel-label {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--shade);
  border-radius: 3px;
  vertical-align: 2px;
}

.channel-entry .channel-link {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.channel-entry .channel-link:hover,
.channel-entry .channel-link:focus-visible {
  text-decoration: none;
  border-bottom-width: 2px;
}

.channel-side {
  min-width: 0;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.side-nav {
  background: var(--shade);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.side-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.side-list li {
  border-bottom: 1px dotted var(--rule);
}

.side-list li:last-child {
  border-bottom: 0;
}

.side-list a {
  display: block;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  text-decoration: none;
}

.side-list a:hover,
.side-list a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.channel-topic-map {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 3px double var(--ink);
}

.channel-topic-map h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.topic-map-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.topic-map-item {
  padding: 18px 20px;
  background: var(--shade);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.topic-map-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.topic-map-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  flex: 1 1 auto;
}

.topic-map-item a {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  align-self: flex-start;
  padding-bottom: 1px;
}

.topic-map-item a:hover,
.topic-map-item a:focus-visible {
  text-decoration: none;
  border-bottom-width: 2px;
}

/* ---------- pages：专题片单 ---------- */
.topic-toc {
  margin-top: 26px;
  padding: 18px 22px;
  background: var(--shade);
  border-radius: var(--radius);
}

.toc-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.topic-toc .toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
}

.toc-item a {
  display: block;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.toc-item a:hover,
.toc-item a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.topic-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}

.topic-block h2 {
  font-size: 26px;
  line-height: 1.35;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
}

.topic-origin {
  font-size: 16px;
  color: var(--ink);
  max-width: 760px;
}

.episode-order {
  counter-reset: ep;
  margin: 22px 0 0;
  border-top: 1px solid var(--rule);
}

.episode-item {
  position: relative;
  padding: 16px 0 16px 44px;
  border-bottom: 1px solid var(--rule);
}

.episode-item::before {
  counter-increment: ep;
  content: counter(ep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.episode-item h3 {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.episode-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.topic-rel {
  margin: 20px 0 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

.topic-rel a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  margin: 0 4px;
}

.topic-rel a:hover,
.topic-rel a:focus-visible {
  text-decoration: none;
  border-bottom-width: 2px;
}

.topic-map {
  margin-top: 44px;
}

.topic-map h2 {
  font-size: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 10px;
}

.map-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 15px;
}

.map-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 8px;
}

.map-table th,
.map-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.map-table thead th {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  background: var(--shade);
  border-bottom: 1px solid var(--ink);
}

.map-table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.map-table a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.map-table a:hover,
.map-table a:focus-visible {
  text-decoration: none;
  border-bottom-width: 2px;
}

/* ---------- pages：观看指南 ---------- */
.steps {
  margin-top: 30px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.step-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--shade);
  text-decoration: none;
  min-height: 44px;
}

.step-link:hover,
.step-link:focus-visible {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--accent);
  text-decoration: none;
}

.step-num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.step-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.step-note {
  flex-basis: 100%;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.step-link[aria-current="step"] {
  background: var(--ink);
}

.step-link[aria-current="step"] .step-num,
.step-link[aria-current="step"] .step-name {
  color: var(--paper);
}

.step-link[aria-current="step"] .step-note {
  color: var(--rule);
}

.guide-main {
  min-width: 0;
}

.guide-section + .guide-section {
  margin-top: 48px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--shade);
}

.segmented-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented-label {
  flex: 1 1 160px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  border-right: 1px solid var(--rule);
}

.segmented-label:last-of-type {
  border-right: 0;
}

.segmented-input:checked + .segmented-label {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.segmented-input:focus-visible + .segmented-label {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.checklist-view {
  margin-top: 6px;
}

.checklist {
  border-top: 1px solid var(--rule);
}

.check-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.85;
}

.check-item strong,
.check-item .check-head {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.check-item .check-body {
  color: var(--muted);
  font-size: 15px;
}

.check-item .check-basis {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

.check-item a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.check-item a:hover,
.check-item a:focus-visible {
  text-decoration: none;
  border-bottom-width: 2px;
}

/* 分段视图：默认按步骤看 */
.checklist-by-item {
  display: none;
}

#view-by-item:checked ~ .checklist-by-step {
  display: none;
}

#view-by-item:checked ~ .checklist-by-item {
  display: block;
}

/* 折叠问答 */
.faq {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-question {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "＋";
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "－";
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--accent);
}

.faq-answer {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.faq-answer p {
  margin: 0 0 0.7em;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* 侧栏主题目录 */
.guide-toc {
  position: sticky;
  top: 24px;
  min-width: 0;
  background: var(--shade);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.guide-toc .toc-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.toc-nav .toc-list li {
  border-bottom: 1px dotted var(--rule);
}

.toc-nav .toc-list li:last-child {
  border-bottom: 0;
}

.toc-nav .toc-list a {
  display: block;
  padding: 8px 0 8px 12px;
  border-left: 2px solid transparent;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  text-decoration: none;
}

.toc-nav .toc-list a:hover,
.toc-nav .toc-list a:focus-visible,
.toc-nav .toc-list a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  text-decoration: none;
}

.toc-related {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.toc-subtitle {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.toc-related .related-list a {
  font-size: 13px;
}

/* ---------- pages：策展手记 ---------- */
.prose {
  max-width: 680px;
  margin: 40px auto 0;
}

.prose-section + .prose-section {
  margin-top: 40px;
}

.prose .section-heading {
  font-size: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
}

.prose p {
  font-size: 17px;
  line-height: 1.9;
}

.prose-list {
  margin: 14px 0 0;
  border-top: 1px solid var(--rule);
}

.prose-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.prose-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 8px;
  font-size: 20px;
  color: var(--accent);
}

.prose a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.prose a:hover,
.prose a:focus-visible {
  text-decoration: none;
  border-bottom-width: 2px;
}

.inline-figure {
  margin: 34px 0;
}

.inline-figure img {
  height: 300px;
  border-radius: var(--radius);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.meta-item {
  position: relative;
}

.meta-item + .meta-item::before {
  content: "／";
  margin-right: 20px;
  color: var(--rule);
}

/* ---------- pages：名词索引 ---------- */
.term-group {
  margin-top: 42px;
}

.term-group:first-of-type {
  margin-top: 36px;
}

.term-group h2 {
  font-size: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 10px;
}

.group-note {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.terms-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}

.term-group .term-item {
  padding: 18px 22px 18px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 0;
}

.term-group .term-item:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid var(--rule);
}

.term-group .term-item:nth-child(even) {
  padding-left: 28px;
}

.term-group .term-name {
  font-size: 18px;
  margin-bottom: 6px;
}

.term-def {
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 6px;
}

.term-usage {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.confusable {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 3px double var(--ink);
}

.confusable h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.confusable-list {
  border-top: 1px solid var(--rule);
  margin-top: 16px;
}

.confusable-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.confusable-left,
.confusable-right {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.confusable-right {
  color: var(--accent);
}

.confusable-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- pages：反馈与更正 ---------- */
.correction-flow .flow-index {
  color: var(--accent);
  border-color: var(--accent);
}

.correction-flow .flow-heading {
  font-size: 19px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.correction-flow .flow-text {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.85;
}

.correction-flow .flow-note {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.entry-types {
  margin-top: 46px;
}

.entry-types h2,
.boundary h2 {
  font-size: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 10px;
}

.type-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.type-item {
  padding: 18px 20px;
  background: var(--shade);
  border-radius: var(--radius);
  border-top: 2px solid var(--ink);
}

.type-heading {
  font-size: 18px;
  margin-bottom: 8px;
}

.type-problem {
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 8px;
}

.type-action {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.boundary {
  margin-top: 46px;
}

.boundary-list {
  border-top: 1px solid var(--rule);
  margin-top: 18px;
}

.boundary-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.boundary-item a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.boundary-item a:hover,
.boundary-item a:focus-visible {
  text-decoration: none;
  border-bottom-width: 2px;
}

/* ---------- pages：404 ---------- */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.error-block {
  max-width: 680px;
  margin: 64px auto 0;
  padding: 40px 0 0;
  border-top: 3px solid var(--ink);
}

.error-code {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.error-title {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.error-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 26px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}

.error-links a {
  display: block;
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.error-links a:hover,
.error-links a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.error-note {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.error-note a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.error-note a:hover,
.error-note a:focus-visible {
  text-decoration: none;
  border-bottom-width: 2px;
}

.error-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 10px 24px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
}

.error-home:hover,
.error-home:focus-visible {
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .hero-toc {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 18px 0 0;
  }

  .hero-toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 24px;
  }

  .layout-shell,
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 40px;
  }

  .topic-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .channel-line {
    grid-template-columns: 140px minmax(0, 1fr) 108px;
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--rule);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--rule);
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    border-bottom-color: transparent;
    border-left-color: var(--accent);
  }

  .nav-link.is-current {
    border-bottom-color: transparent;
    border-left-color: var(--ink);
    background: var(--shade);
  }

  .hero-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-toc {
    grid-column: auto;
  }

  .hero-toc-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .topic-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-shell,
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .channel-side,
  .guide-toc {
    position: static;
  }

  .footer-inner {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
    line-height: 1.85;
  }

  .header-inner,
  .inner-main,
  .home-main,
  .error-main,
  .footer-inner,
  .footer-bottom {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand {
    font-size: 19px;
    letter-spacing: 0.1em;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-title {
    font-size: 38px;
    line-height: 1.28;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-figure img {
    height: 220px;
  }

  .channel-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 0;
  }

  .channel-line .channel-link {
    justify-self: start;
    margin-top: 4px;
  }

  .topic-figure img {
    height: 220px;
  }

  .topic-body h2 {
    font-size: 22px;
  }

  .read-path,
  .channel-brief,
  .topic-feature,
  .term-brief {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .term-brief {
    padding-bottom: 0;
  }

  .term-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .term-item {
    border-right: 0;
    padding: 16px 0 18px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-figure img {
    height: 200px;
  }

  .inline-figure img {
    height: 200px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 13px;
  }

  .page-header {
    padding-top: 20px;
  }

  .page-summary {
    font-size: 15px;
  }

  .section-head h2,
  .section-title,
  .channel-topic-map h2,
  .topic-block h2,
  .topic-map h2,
  .term-group h2,
  .confusable h2,
  .entry-types h2,
  .boundary h2,
  .prose .section-heading,
  .related-title {
    font-size: 21px;
  }

  .channel-entry .channel-name {
    font-size: 21px;
  }

  .channel-label {
    display: block;
    width: fit-content;
    margin: 0 0 4px;
  }

  .terms-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .term-group .term-item,
  .term-group .term-item:nth-child(odd),
  .term-group .term-item:nth-child(even) {
    padding: 16px 0;
    border-right: 0;
  }

  .confusable-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .confusable-note {
    margin-top: 6px;
  }

  .steps-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .step-link {
    padding: 10px;
  }

  .step-note {
    display: none;
  }

  .segmented-label {
    flex: 1 1 50%;
    font-size: 13px;
    padding: 10px 8px;
  }

  .prose {
    margin-top: 30px;
  }

  .prose p {
    font-size: 16px;
  }

  .map-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .map-table caption {
    white-space: normal;
  }

  .error-block {
    margin-top: 40px;
  }

  .error-title {
    font-size: 28px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .related-links .related-list,
  .related-pages .related-list,
  .related-reading .related-list,
  .topic-map-list,
  .type-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 30px;
  }

  .page-title {
    font-size: 25px;
  }

  .steps-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-note {
    display: block;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
