/* ==========================================================================
   樱花动漫电视剧 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base —— 变量、重置、基础排版
   -------------------------------------------------------------------------- */
:root {
  --bg: #f7f4f1;
  --ink: #221f24;
  --accent: #d96a8a;
  --accent-dark: #b94f6d;
  --muted: #8a8792;
  --card: #ffffff;
  --line: #e3ddd8;
  --line-strong: #cfc6c0;
  --radius: 8px;
  --radius-sm: 4px;
  --shell: 1120px;
  --gap: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout —— 站点骨架：页头、导航、主容器、页脚
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 244, 241, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--bg);
}

.brand-name {
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  border: 1px solid transparent;
}

.nav-list a:hover {
  color: var(--accent-dark);
  background: rgba(217, 106, 138, 0.08);
}

.nav-list a.is-current {
  color: var(--accent-dark);
  border-color: var(--line-strong);
  background: var(--card);
  font-weight: 700;
}

/* 页头右侧快捷入口 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 14px;
  color: var(--ink);
}

.tool-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* 汉堡按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
  position: relative;
}

.nav-toggle-bar::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 6px;
}

/* 主内容容器 */
.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.home-main {
  max-width: var(--shell);
}

.inner-main {
  padding-top: 20px;
}

/* 页脚 */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
}

.footer-title {
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-about p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}

.footer-list {
  display: grid;
  gap: 6px;
}

.footer-list a {
  display: inline-block;
  min-height: 30px;
  font-size: 14px;
  color: var(--muted);
}

.footer-list a:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px 28px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   components —— 通用模块：区块头、面包屑、页标题、卡片、表格、目录
   -------------------------------------------------------------------------- */

/* 区块头 */
.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.section-head p {
  font-size: 14px;
  color: var(--muted);
}

.section-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.section-foot {
  margin-top: 18px;
  font-size: 14px;
}

.section-foot a {
  color: var(--accent-dark);
  font-weight: 700;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent-dark);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--line-strong);
}

/* 页面标题区 */
.page-header,
.page-title {
  margin-bottom: 26px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
}

.page-description {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  max-width: 780px;
}

.page-description a {
  color: var(--accent-dark);
  font-weight: 700;
}

/* 通用卡片 */
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* 通用图片容器 */
.hero-visual,
.channel-note-media,
.media-figure,
.feature-media,
.path-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}

.hero-visual img,
.channel-note-media img,
.media-figure img,
.feature-media img,
.path-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px;
  line-height: 1.6;
}

/* 通用表格 */
.field-table,
.field-table-grid,
.channel-link-table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.field-table th,
.field-table td,
.field-table-grid th,
.field-table-grid td,
.channel-link-table th,
.channel-link-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.field-table thead th,
.field-table-grid thead th,
.channel-link-table thead th {
  background: #f2ece8;
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.field-table-grid tbody tr:last-child th,
.field-table-grid tbody tr:last-child td,
.channel-link-table tbody tr:last-child th,
.channel-link-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 内页右侧目录 */
.toc {
  align-self: start;
  position: sticky;
  top: 92px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.toc-title {
  font-size: 15px;
  margin-bottom: 12px;
}

.toc-list {
  display: grid;
  gap: 4px;
}

.toc-list a {
  display: block;
  min-height: 34px;
  padding: 5px 8px;
  border-left: 2px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.toc-list a:hover,
.toc-list a.is-active {
  color: var(--accent-dark);
  border-left-color: var(--accent);
  background: rgba(217, 106, 138, 0.06);
}

.toc-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.toc-note a {
  color: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   pages —— 首页
   -------------------------------------------------------------------------- */

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
  padding: 26px 0 34px;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-entry a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 76px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.hero-entry a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hero-entry .entry-label {
  font-weight: 700;
  font-size: 15px;
}

.hero-entry .entry-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-visual img {
  aspect-ratio: 4 / 3;
}

/* 题材频道总览 */
.channels {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.channel-rows {
  display: grid;
  gap: 10px;
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.channel-row:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.channel-main {
  min-width: 0;
}

.channel-name {
  font-size: 17px;
  margin-bottom: 4px;
}

.channel-tone {
  font-size: 14px;
  color: var(--muted);
}

.channel-reader {
  font-size: 13px;
  color: var(--muted);
}

.channel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.channel-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* 首页三栏门户 */
.portal-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 280px;
  gap: var(--gap);
  align-items: start;
  padding: 36px 0 0;
}

.index-column,
.dynamic-column {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.column-title {
  font-size: 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.index-nav + .index-nav {
  margin-top: 18px;
}

.index-subtitle {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.index-list {
  display: grid;
  gap: 2px;
}

.index-list a {
  display: block;
  min-height: 34px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
}

.index-list a:hover {
  background: rgba(217, 106, 138, 0.08);
  color: var(--accent-dark);
}

.center-column {
  min-width: 0;
}

/* 最近更新 / 人气榜单并列 */
.lists-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.list-panel {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.panel-title {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.entry-list {
  display: grid;
  gap: 2px;
}

.entry-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.entry-item:last-child {
  border-bottom: 0;
}

.rank-list .rank-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-list .rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: #f2ece8;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.entry-info {
  min-width: 0;
}

.entry-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.entry-meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.panel-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.panel-foot a {
  color: var(--accent-dark);
  font-weight: 700;
}

/* 专题片单速览 */
.features {
  margin-top: 32px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.feature-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.feature-scope,
.feature-channels {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-channels {
  margin-top: 6px;
}

/* 右侧动态栏 */
.field-summary,
.path-summary {
  min-width: 0;
}

.path-summary {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.column-subtitle {
  font-size: 15px;
  margin-bottom: 6px;
}

.column-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.field-table {
  font-size: 13px;
}

.field-table th,
.field-table td {
  padding: 9px 10px;
}

.column-foot {
  margin-top: 12px;
  font-size: 13px;
}

.column-foot a {
  color: var(--accent-dark);
  font-weight: 700;
}

.path-steps {
  display: grid;
  gap: 10px;
  counter-reset: pathstep;
}

.path-step {
  padding-left: 30px;
  position: relative;
}

.path-step::before {
  counter-increment: pathstep;
  content: counter(pathstep);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.path-step .step-name {
  font-size: 14px;
  margin-bottom: 2px;
}

.path-step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages —— 内页通用布局
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--gap);
  align-items: start;
}

.main-column,
.layout-main,
.main-content {
  min-width: 0;
}

/* 内页内容区块 */
.content-section,
.channel-table,
.channel-notes,
.channel-links,
.feature-list,
.feature-detail,
.feature-order,
.paths,
.feedback,
.feedback-rule {
  margin-bottom: 36px;
}

.content-section h2,
.channel-table h2,
.channel-notes h2,
.channel-links h2,
.feature-list h2,
.feature-detail h2,
.feature-order h2,
.paths h2,
.feedback h2,
.feedback-rule h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

/* 题材频道页：方向总表 */
.channel-table .channel-rows {
  display: grid;
  gap: 10px;
}

.channel-table .channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.channel-table .channel-row:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.channel-row-main {
  min-width: 0;
}

.channel-tendency {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.channel-audience {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.channel-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.channel-enter:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* 题材频道页：频道说明 */
.channel-note-list {
  display: grid;
  gap: 18px;
}

.channel-note {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-note-media img {
  aspect-ratio: 4 / 3;
}

.channel-note-body {
  min-width: 0;
}

.channel-note-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.channel-note-body p {
  font-size: 14px;
  color: var(--muted);
}

.channel-note-sample {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink);
}

/* 题材频道页：频道与片单对应表 */
.channel-link-table tbody th {
  font-weight: 700;
  color: var(--ink);
  background: #faf6f3;
  white-space: nowrap;
}

.channel-links-more {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-links-more a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 14px;
}

.channel-links-more a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* 专题片单页 */
.feature-media {
  margin-bottom: 20px;
}

.feature-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.feature-list .feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.feature-card-scope,
.feature-card-channel {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-card-channel {
  margin-top: 6px;
}

.feature-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}

.feature-card-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.feature-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.feature-block-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.feature-block-body p {
  font-size: 14px;
  color: var(--muted);
}

.feature-block-meta {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.feature-block-meta dt {
  font-size: 12px;
  color: var(--muted);
}

.feature-block-meta dd {
  margin: 0 0 6px;
  font-size: 14px;
}

/* 专题片单页：阅读顺序 */
.order-list {
  display: grid;
  gap: 12px;
  counter-reset: orderstep;
}

.order-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.order-text {
  font-size: 14px;
  color: var(--ink);
  min-width: 0;
}

/* 条目字段说明页 */
.media-figure {
  margin-bottom: 18px;
}

.media-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-table-grid caption {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  background: #faf6f3;
  border-bottom: 1px solid var(--line);
}

.field-table-grid tbody th {
  font-weight: 700;
  color: var(--ink);
  background: #faf6f3;
  white-space: nowrap;
}

.boundary-list {
  display: grid;
  gap: 12px;
}

.boundary-list li {
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-list h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.boundary-list p {
  font-size: 14px;
  color: var(--muted);
}

.usage-steps {
  display: grid;
  gap: 12px;
  counter-reset: usagestep;
}

.usage-steps li {
  position: relative;
  padding: 14px 16px 14px 54px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.usage-steps li::before {
  counter-increment: usagestep;
  content: counter(usagestep);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.usage-steps h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.usage-steps p {
  font-size: 14px;
  color: var(--muted);
}

/* 阅读路径页 */
.path-figure {
  margin-bottom: 20px;
}

.path-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.path-list {
  display: grid;
  gap: 18px;
}

.path-item {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-item h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.path-item .path-scene {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.path-item .path-steps {
  counter-reset: itemstep;
}

.path-item .path-steps li {
  position: relative;
  padding: 4px 0 4px 28px;
  font-size: 14px;
  color: var(--ink);
}

.path-item .path-steps li::before {
  counter-increment: itemstep;
  content: counter(itemstep);
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f2ece8;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* 阅读路径页：反馈 */
.feedback-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feedback-item {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.feedback-item p {
  font-size: 14px;
  color: var(--muted);
}

.feedback-rule {
  display: grid;
  gap: 16px;
}

.rule-block {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-block h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.rule-block p {
  font-size: 14px;
  color: var(--muted);
}

.rule-note {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(217, 106, 138, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages —— 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: 760px;
}

.error-title {
  margin-bottom: 26px;
}

.error-title h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.error-title p {
  font-size: 15px;
  color: var(--muted);
}

.error-paths h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.error-paths > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.error-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.error-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}

.error-list a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.error-back {
  margin-top: 20px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
}

.error-home-link:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* --------------------------------------------------------------------------
   responsive —— 960px / 640px 断点
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    justify-self: end;
  }

  .site-nav {
    order: 4;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .header-tools {
    order: 3;
    justify-self: end;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-title {
    font-size: 28px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main link"
      "reader link";
    align-items: start;
  }

  .channel-main {
    grid-area: main;
  }

  .channel-reader {
    grid-area: reader;
    margin-top: 4px;
  }

  .channel-link {
    grid-area: link;
    align-self: center;
  }

  .portal-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .index-column {
    order: 3;
  }

  .center-column {
    order: 1;
  }

  .dynamic-column {
    order: 2;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .toc {
    position: static;
  }

  .channel-note {
    grid-template-columns: 170px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .brand {
    font-size: 16px;
  }

  .header-tools .tool-link {
    padding: 0 10px;
    font-size: 13px;
  }

  .site-main {
    padding: 20px 16px 40px;
  }

  .hero {
    padding: 18px 0 26px;
  }

  .hero-title {
    font-size: 23px;
  }

  .hero-entries {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-row,
  .channel-table .channel-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "reader"
      "link";
    gap: 10px;
  }

  .channel-link,
  .channel-enter {
    justify-self: start;
  }

  .lists-grid,
  .feature-cards,
  .feature-list .feature-cards,
  .feedback-list,
  .error-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-note {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-block-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-title,
  .error-title h1 {
    font-size: 23px;
  }

  .content-section h2,
  .channel-table h2,
  .channel-notes h2,
  .channel-links h2,
  .feature-list h2,
  .feature-detail h2,
  .feature-order h2,
  .paths h2,
  .feedback h2,
  .feedback-rule h2,
  .section-head h2 {
    font-size: 19px;
  }

  .field-table,
  .field-table-grid,
  .channel-link-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .field-table th,
  .field-table td,
  .field-table-grid th,
  .field-table-grid td,
  .channel-link-table th,
  .channel-link-table td {
    white-space: normal;
    min-width: 96px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 16px 18px;
  }

  .footer-bottom {
    padding: 12px 16px 24px;
  }
}
