/* ==========================================================================
   天美传媒一区 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #f4f1ea;
  --paper-raised: #fffdf8;
  --ink: #1f2523;
  --ink-soft: #5c6662;
  --green: #1f6f4a;
  --amber: #b8622a;
  --rule: #c9c4b8;
  --terminal: #141a18;
  --mint: #d7e5dc;
  --radius: 6px;
  --radius-sm: 4px;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, Menlo, "Courier New", monospace;
  --font-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --shell: 1200px;
  --read: 760px;
  --gutter: 24px;
  --shadow-soft: 0 1px 0 rgba(31, 37, 35, 0.04), 0 8px 24px rgba(31, 37, 35, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--mint);
  color: var(--terminal);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--paper);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px var(--gutter) 64px;
}

/* 页头 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper-raised);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.brand-slogan {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* 主导航 */

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--green);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--ink);
  border-bottom-color: var(--green);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background-color: var(--paper-raised);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 页脚 */

.site-footer {
  flex-shrink: 0;
  margin-top: 48px;
  background-color: var(--terminal);
  color: var(--mint);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(215, 229, 220, 0.18);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li {
  line-height: 1.6;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(215, 229, 220, 0.78);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
}

.footer-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(215, 229, 220, 0.7);
}

.footer-link-strong {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--mint);
  border-bottom: 1px dashed rgba(215, 229, 220, 0.4);
  padding-bottom: 2px;
}

.footer-link-strong:hover,
.footer-link-strong:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--gutter) 32px;
  border-top: 1px solid rgba(215, 229, 220, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #ffffff;
}

.footer-position {
  font-size: 0.8125rem;
  color: rgba(215, 229, 220, 0.62);
}

/* 内页骨架：面包屑 / 页标题 / 主容器 */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--green);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.page-lead {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 72ch;
  margin-top: 12px;
}

.page-lead + .page-lead {
  margin-top: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--green);
  background-color: var(--mint);
  border: 1px solid rgba(31, 111, 74, 0.2);
  border-radius: 999px;
}

/* 主内容 + 侧栏 */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.content-aside,
.catalog-aside,
.guide-aside,
.side-panel,
.sidebar {
  min-width: 0;
}

.aside-block {
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
}

.aside-block + .aside-block {
  margin-top: 20px;
}

.aside-title {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.aside-links,
.aside-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-links li,
.aside-list li {
  line-height: 1.6;
}

.aside-links a,
.aside-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 8px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.aside-links a:hover,
.aside-links a:focus-visible,
.aside-list a:hover,
.aside-list a:focus-visible {
  color: var(--green);
  background-color: var(--mint);
  border-left-color: var(--green);
  text-decoration: none;
}

.aside-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.aside-text + .aside-text {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  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-color: var(--green);
  color: #ffffff;
  border-color: var(--green);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #17573a;
  border-color: #17573a;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--green);
  border-color: var(--green);
  background-color: var(--paper-raised);
}

/* 区块标题 */

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.section-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.section-desc,
.section-intro {
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 72ch;
}

/* 表格 */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.data-table,
.entry-table,
.channel-table,
.field-table,
.prepare-table {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
  line-height: 1.65;
}

.data-table caption,
.entry-table caption,
.channel-table caption,
.field-table caption,
.prepare-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  padding: 12px 16px 0;
}

.table-caption {
  caption-side: top;
}

.data-table thead th,
.entry-table thead th,
.channel-table thead th,
.field-table thead th,
.prepare-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background-color: #eeeae1;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.data-table tbody th,
.entry-table tbody th,
.channel-table tbody th,
.field-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.data-table tbody td,
.entry-table tbody td,
.channel-table tbody td,
.field-table tbody td,
.prepare-table tbody td {
  padding: 12px 16px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.entry-table tbody tr:last-child th,
.entry-table tbody tr:last-child td,
.channel-table tbody tr:last-child th,
.channel-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.prepare-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.entry-table tbody tr:hover,
.channel-table tbody tr:hover {
  background-color: rgba(215, 229, 220, 0.4);
}

.channel-table tbody th,
.entry-table tbody th {
  font-family: var(--font-mono);
  color: var(--green);
}

/* 图片容器 */

.hero-visual,
.media-figure,
.index-figure,
.page-media,
.content-figure,
.feature-media,
.media-frame {
  margin: 0;
  background-color: var(--terminal);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-visual img,
.media-figure img,
.index-figure img,
.page-media img,
.content-figure img,
.feature-media img,
.media-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-caption,
.figcaption,
.figure-caption,
.media-figure figcaption,
.index-figure figcaption,
.page-media figcaption,
.content-figure figcaption,
.media-frame figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background-color: var(--paper-raised);
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
}

/* 编号步骤（通用） */

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.step-body {
  flex: 1 1 auto;
  min-width: 0;
}

.step-body h3,
.step-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}

.step-body p,
.step-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 说明列表 */

.note-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note-item {
  padding: 14px 16px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.note-title {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}

.note-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 双栏通用 */

.confusion-columns,
.glossary-columns,
.archive-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sub-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 8px;
}

/* 终端状态条 */

.terminal-status {
  background-color: var(--terminal);
  color: var(--mint);
  border-radius: var(--radius);
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.status-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 12px 20px;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #5fd39b;
  box-shadow: 0 0 0 3px rgba(95, 211, 155, 0.18);
}

.status-site {
  color: #ffffff;
  font-weight: 600;
}

.status-type {
  color: rgba(215, 229, 220, 0.75);
}

.status-link {
  margin-left: auto;
  color: var(--mint);
  border-bottom: 1px dashed rgba(215, 229, 220, 0.4);
  padding-bottom: 1px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.status-link:hover,
.status-link:focus-visible {
  color: #ffffff;
  text-decoration: none;
  border-bottom-color: #ffffff;
}

/* 首屏 */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--rule);
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  margin-bottom: 14px;
}

.hero-text h1 {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 40ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.hero-scope {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--rule);
}

.hero-scope li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 2px;
  background-color: var(--green);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 频道目录 */

.channel-directory {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}

/* 阶段归档 */

.stage-archive {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}

.stage-paths {
  min-width: 0;
}

.stage-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
  counter-reset: stage;
}

.stage-archive .stage-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.stage-archive .stage-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-soft);
}

.stage-archive .stage-name {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.stage-archive .stage-item p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
  min-width: 0;
}

.stage-archive .stage-item a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--green);
  white-space: nowrap;
}

.stage-note {
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 24px;
  align-self: start;
}

.stage-note h3 {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.stage-note p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.stage-note .btn {
  margin-top: 4px;
}

/* 条目字段字典 */

.entry-fields {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}

/* 专题文章 */

.feature-articles {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-soft);
}

.feature-card .feature-no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  margin-bottom: 10px;
}

.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 8px;
}

.feature-card .feature-summary {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.feature-card .feature-media {
  margin: 0 0 16px;
  border-radius: var(--radius-sm);
}

.feature-card .feature-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card .feature-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
}

/* 观看前核验 */

.verify-steps {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}

.verify-steps .step-list {
  margin-bottom: 26px;
}

.verify-steps .step-no {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green);
  background-color: var(--mint);
  border-radius: var(--radius-sm);
}

/* 主创档案摘录 */

.creator-excerpts {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  padding: 56px 0 40px;
}

.creator-roles {
  min-width: 0;
}

.role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.role-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}

.role-name {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green);
}

.role-desc {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.creator-link-note {
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 24px;
  align-self: start;
}

.creator-link-note h3 {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.creator-link-note p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

/* 相关内容条 */

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--rule);
}

.related-links-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.related-links-item:hover,
.related-links-item:focus-visible {
  color: var(--green);
  border-color: var(--green);
  background-color: var(--mint);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 作品目录
   -------------------------------------------------------------------------- */

.page-catalog .catalog-intro {
  margin-bottom: 28px;
}

.page-catalog .catalog-intro h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-catalog .catalog-intro p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 10px;
  max-width: 72ch;
}

.page-catalog .media-figure {
  margin: 0 0 32px;
}

.page-catalog .media-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-catalog .channel-groups {
  margin-bottom: 36px;
}

.page-catalog .channel-groups > h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-catalog .channel-groups > p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 72ch;
}

.page-catalog .channel-group {
  margin-bottom: 24px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
}

.page-catalog .channel-group h3 {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.page-catalog .channel-scope {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.page-catalog .entry-table {
  min-width: 520px;
}

.page-catalog .entry-table caption {
  padding: 0 0 8px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.page-catalog .field-guide {
  margin-bottom: 36px;
}

.page-catalog .field-guide h2,
.page-catalog .related-entry h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-catalog .field-guide > p,
.page-catalog .related-entry > p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 72ch;
}

.page-catalog .field-table {
  min-width: 520px;
}

.page-catalog .field-table caption {
  padding: 12px 16px 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.page-catalog .related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-catalog .related-list li {
  min-width: 0;
}

.page-catalog .related-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink);
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.page-catalog .related-list a:hover,
.page-catalog .related-list a:focus-visible {
  color: var(--green);
  border-color: var(--green);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 类型索引
   -------------------------------------------------------------------------- */

.page-genres .page-title-zone {
  margin-bottom: 32px;
}

.content-shell {
  display: block;
}

.page-genres .type-glossary,
.page-genres .type-channel-map,
.page-genres .lookup-method,
.page-genres .confusion-notes {
  margin-bottom: 40px;
}

.page-genres .glossary-columns {
  align-items: start;
}

.glossary-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.glossary-item {
  padding: 16px 18px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}

.glossary-item:hover {
  border-color: var(--green);
}

.glossary-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.glossary-identify {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.glossary-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--green);
}

.page-genres .index-figure {
  margin: 0 0 22px;
}

.page-genres .index-figure img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.page-genres .data-table {
  min-width: 560px;
}

.page-genres .lookup-method .step-index {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  background-color: var(--mint);
  border-radius: var(--radius-sm);
}

.page-genres .confusion-col {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   pages · 主创档案
   -------------------------------------------------------------------------- */

.page-creators .page-head {
  margin-bottom: 28px;
}

.page-creators .content-main {
  min-width: 0;
}

.page-creators .content-figure {
  margin: 0 0 32px;
}

.page-creators .content-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-creators .content-section {
  margin-bottom: 36px;
}

.page-creators .content-section > h2 {
  margin-bottom: 8px;
}

.page-creators .content-section > .section-intro {
  margin-bottom: 18px;
}

.page-creators .data-table {
  min-width: 520px;
}

.page-creators .step-list {
  margin-top: 4px;
}

.page-creators .step-num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  background-color: var(--mint);
  border-radius: var(--radius-sm);
}

.entry-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.entry-link-item {
  min-width: 0;
}

.entry-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 56px;
  padding: 12px 16px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease;
}

.entry-link:hover,
.entry-link:focus-visible {
  border-color: var(--green);
  text-decoration: none;
}

.entry-link-title {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green);
}

.entry-link-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 专题文章
   -------------------------------------------------------------------------- */

.page-features .page-title-band {
  background-color: var(--paper-raised);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0 24px;
  margin-bottom: 40px;
}

.page-features .container {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-features .page-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.page-features .feature-list {
  min-width: 0;
}

.page-features .feature-list > h2,
.page-features .reading-order > h2,
.page-features .feature-links > h2 {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-features .feature-list > .section-intro,
.page-features .reading-order > .section-intro,
.page-features .feature-links > .section-intro {
  margin-bottom: 20px;
}

.feature-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 20px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-soft);
}

.feature-item .feature-media {
  min-width: 0;
}

.feature-item .media-frame {
  margin: 0;
  border-radius: var(--radius-sm);
}

.feature-item .media-frame img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-body {
  min-width: 0;
}

.feature-body .feature-no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  margin-bottom: 8px;
}

.feature-body .feature-title {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 8px;
}

.feature-body .feature-summary {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.feature-body .feature-scope {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-soft);
  padding: 8px 12px;
  background-color: #eeeae1;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.feature-body .feature-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
}

.page-features .reading-order,
.page-features .feature-links {
  min-width: 0;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}

.order-no {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mint);
  border-radius: 50%;
}

.order-title {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 2px;
}

.order-text {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ink-soft);
  grid-column: 2;
}

.link-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-card {
  min-width: 0;
}

.link-card-anchor {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 56px;
  padding: 12px 16px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.link-card-anchor:hover,
.link-card-anchor:focus-visible {
  border-color: var(--green);
  background-color: var(--mint);
  text-decoration: none;
}

.link-card-title {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green);
}

.link-card-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 阶段归档
   -------------------------------------------------------------------------- */

.page-archive .page-container {
  max-width: 100%;
}

.page-archive .page-title {
  margin-bottom: 0;
}

.page-archive .page-title .page-lead {
  margin-top: 14px;
}

.page-archive .page-media {
  margin: 0 0 36px;
}

.page-archive .page-media img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.page-archive .stage-list {
  margin-bottom: 40px;
}

.page-archive .stage-list > h2,
.page-archive .archive-notes > h2,
.page-archive .static-path-notes > h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-archive .stage-list > .section-intro,
.page-archive .static-path-notes > .section-intro {
  margin-bottom: 22px;
}

.stage-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-archive .stage-item {
  padding: 20px 24px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.stage-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  background-color: var(--mint);
  padding: 2px 10px;
  border-radius: 999px;
}

.page-archive .stage-name {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.stage-scope {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.stage-desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.stage-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
}

.stage-sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
}

.stage-sub-links li {
  min-width: 0;
}

.stage-sub-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 12px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  background-color: #eeeae1;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.stage-sub-links a:hover,
.stage-sub-links a:focus-visible {
  color: var(--green);
  border-color: var(--green);
  text-decoration: none;
}

.page-archive .archive-notes {
  margin-bottom: 40px;
}

.page-archive .archive-notes > h2 {
  margin-bottom: 16px;
}

.archive-note-col {
  min-width: 0;
  padding: 20px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.archive-note-col h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.archive-note-col p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
}

.path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.path-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}

.path-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
}

.path-desc {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 观看指南
   -------------------------------------------------------------------------- */

.page-guide .page-container {
  max-width: 100%;
}

.page-guide .page-title {
  margin-bottom: 0;
}

.page-guide .page-title .page-lead {
  margin-top: 14px;
}

.page-guide .layout-shell {
  margin-top: 32px;
}

.page-guide .guide-section {
  margin-bottom: 40px;
}

.page-guide .guide-section > h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-guide .guide-section > .section-intro {
  margin-bottom: 18px;
}

.page-guide .media-figure {
  margin: 0 0 22px;
}

.page-guide .media-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-guide .prepare-table {
  min-width: 520px;
}

.page-guide .prepare-table caption {
  padding: 12px 16px 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.page-guide .step-num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  background-color: var(--mint);
  border-radius: var(--radius-sm);
}

.step-note {
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--amber);
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--green);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  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(--font-mono);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--rule);
}

.faq-answer {
  padding: 14px 18px 18px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 反馈说明 */

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.feedback-item {
  padding: 14px 16px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.feedback-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.feedback-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.feedback-note {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ink-soft);
  padding: 14px 16px;
  background-color: #eeeae1;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.site-error .error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px var(--gutter);
}

.error-panel {
  max-width: 640px;
  width: 100%;
  padding: 40px 36px;
  background-color: var(--paper-raised);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 12px;
}

.error-title {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
}

.error-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.error-hints {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.error-hints li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}

.error-hints li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 2px;
  background-color: var(--green);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --gutter: 20px;
  }

  .header-inner {
    gap: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: var(--paper-raised);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px rgba(31, 37, 35, 0.08);
    padding: 8px var(--gutter) 16px;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid var(--rule);
    border-left: 2px solid transparent;
    width: 100%;
  }

  .nav-link.is-current {
    border-bottom-color: var(--rule);
    border-left-color: var(--green);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 0 36px;
  }

  .hero-lead {
    max-width: 60ch;
  }

  .stage-archive,
  .creator-excerpts {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 40px 0;
  }

  .channel-directory,
  .entry-fields,
  .feature-articles,
  .verify-steps {
    padding: 40px 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }

  .page-features .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .feature-item {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 60px;
    padding: 8px var(--gutter);
    flex-wrap: wrap;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-slogan {
    font-size: 0.6875rem;
  }

  .inner-main {
    padding: 20px var(--gutter) 48px;
  }

  .home-main {
    padding: 0 var(--gutter);
  }

  .terminal-status {
    margin-top: 16px;
  }

  .status-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }

  .status-link {
    margin-left: 0;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .hero-text h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 22px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual img {
    aspect-ratio: 16 / 10;
  }

  .channel-directory,
  .entry-fields,
  .feature-articles,
  .verify-steps {
    padding: 32px 0;
  }

  .stage-archive,
  .creator-excerpts {
    padding: 32px 0;
    gap: 22px;
  }

  .stage-archive .stage-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .stage-archive .stage-item a {
    justify-self: start;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .role-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head h2,
  .section-title {
    font-size: 1.25rem;
  }

  .page-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .page-lead {
    font-size: 0.9375rem;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-features .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-features .page-title-band {
    padding: 16px 0 20px;
    margin-bottom: 28px;
  }

  .feature-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .feature-item .media-frame img {
    aspect-ratio: 16 / 9;
  }

  .confusion-columns,
  .glossary-columns,
  .archive-notes-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .page-catalog .related-list,
  .entry-links,
  .path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-catalog .channel-group {
    padding: 16px;
  }

  .step-item {
    padding: 16px;
    gap: 12px;
  }

  .error-panel {
    padding: 28px 20px;
  }

  .error-main {
    padding: 40px var(--gutter);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 32px var(--gutter) 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    padding: 16px var(--gutter) 28px;
  }

  .page-archive .stage-item {
    padding: 16px 18px;
  }

  .archive-note-col {
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-link {
    font-size: 0.9375rem;
  }

  .feature-card {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
