/* ==========================================================================
   香香漫画 · 全站样式表
   视觉方向：社区市集摊位风 · 暖纸色底 · 墨色正文 · 多色题材旗
   ========================================================================== */

/* ==========================================================================
   Base —— 重置、根变量、全局字体与底色
   ========================================================================== */

:root {
  --paper: #faf6ee;
  --ink: #292420;
  --ink-soft: #4a423a;
  --ink-mute: #7a7066;
  --stall-line: #e5dccb;
  --card-bg: #fffcf5;
  --love-pink: #d88a96;
  --adventure-orange: #d99b5f;
  --slice-green: #719a79;
  --mystery-blue: #598aa6;
  --sci-fi-purple: #8a7aa8;
  --fantasy-red: #b5635a;
  --line-light: #efe8da;
  --white: #ffffff;
  --header-h: 66px;
  --container: 1080px;
  --radius: 8px;
  --shadow-soft: 0 1px 4px rgba(41, 36, 32, 0.06);
  --shadow-lift: 0 4px 14px rgba(41, 36, 32, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--adventure-orange);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
}

strong {
  font-weight: 700;
}

figure {
  margin: 0;
}

/* 屏幕阅读器保留 */
.sr-only {
  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-header {
  background: var(--paper);
  border-bottom: 1px solid var(--stall-line);
  position: relative;
  z-index: 20;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.brand-name::first-letter {
  color: var(--fantasy-red);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* 全站统一内容宽度 */
.home-main,
.inner-main,
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* 面包屑 —— 内页统一 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 0 4px;
  font-size: 13px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-mute);
}

.breadcrumb a:hover {
  color: var(--adventure-orange);
}

.breadcrumb-sep {
  color: var(--stall-line);
  display: inline-block;
}

.breadcrumb-current {
  color: var(--ink-soft);
}

/* 内页页面标题区 —— 全站一致 */
.page-header {
  border-bottom: 1px solid var(--stall-line);
  padding: 18px 0 20px;
  margin-bottom: 28px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 46em;
}

/* 页脚 */
.site-footer {
  background: #2b2620;
  color: #c9c0b2;
  margin-top: 60px;
  flex-shrink: 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-about .footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #f5efe4;
  margin-bottom: 8px;
  display: block;
}

.footer-about p:not(.footer-brand) {
  font-size: 13px;
  line-height: 1.7;
  color: #a99f90;
}

.footer-links .footer-heading {
  font-size: 13px;
  font-weight: 600;
  color: #e8e0d4;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.footer-links ul li {
  margin-bottom: 6px;
}

.footer-links ul li a {
  font-size: 14px;
  color: #a99f90;
  line-height: 1.6;
}

.footer-links ul li a:hover {
  color: #f0d9a8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 20px;
  text-align: center;
}

.footer-bottom p {
  max-width: var(--container);
  margin: 0 auto;
  font-size: 12px;
  color: #8c8377;
  line-height: 1.6;
}

/* ==========================================================================
   Components —— 导航、按钮、卡片、旗标、表格、词条等通用模块
   ========================================================================== */

/* ----- 全站导航 ----- */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  line-height: 1.4;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.nav-list li a:hover {
  color: var(--ink);
  border-bottom-color: var(--stall-line);
}

.nav-list li a.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--fantasy-red);
}

/* 汉堡按钮 —— 默认桌面隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--stall-line);
  border-radius: 6px;
  align-items: center;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* ----- 按钮 ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--fantasy-red);
  border-color: var(--fantasy-red);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--stall-line);
}

.btn-secondary:hover {
  border-color: var(--adventure-orange);
  color: var(--adventure-orange);
  background: rgba(217, 155, 95, 0.06);
}

/* ----- 题材旗标 ----- */
.genre-flag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  background: var(--stall-line);
}

.genre-flag-romance {
  background: #f4dde1;
  color: #8d4b58;
}

.genre-flag-adventure {
  background: #f6e5d2;
  color: #8a5a2b;
}

.genre-flag-slice {
  background: #e2ede4;
  color: #3e6a48;
}

.genre-flag-mystery {
  background: #dde9ef;
  color: #2f5f7d;
}

.genre-flag-sci-fi {
  background: #e8e3f0;
  color: #5a4a7d;
}

.genre-flag-fantasy {
  background: #f0ddd8;
  color: #8a453c;
}

/* ----- 通用标题区 ----- */
.section-heading,
.section-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.section-block {
  padding: 44px 0;
  border-bottom: 1px solid var(--line-light);
}

.section-block:last-child {
  border-bottom: none;
}

/* ----- 词条左右对照 ----- */
.term-figure,
.lede-figure,
.preview-media,
.hero-media,
.route-figure,
.about-closing-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stall-line);
}

/* 统一图片约束 */
.hero-figure img,
.preview-media img,
.lede-figure img,
.category-figure img,
.route-figure img,
.term-figure img,
.about-closing-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Pages —— 首页
   ========================================================================== */

/* 站内路标条 */
.site-brief-strip {
  background: #f3ecdd;
  border-radius: 4px;
  padding: 10px 16px;
  margin: 20px 0 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.site-brief-strip p {
  display: inline;
}

.site-brief-strip a {
  color: var(--ink);
  font-weight: 600;
  padding: 2px 2px;
  margin: 0 2px;
  border-bottom: 1px solid var(--adventure-orange);
}

.site-brief-strip a:hover {
  color: var(--adventure-orange);
}

/* ----- 首屏主视觉 ----- */
.hero-visual {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 28px 0 12px;
}

.hero-copy h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-slogan {
  font-size: 18px;
  font-weight: 600;
  color: var(--fantasy-red);
  margin-bottom: 12px;
  line-height: 1.5;
}

.hero-description {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 22px;
  max-width: 32em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  box-shadow: var(--shadow-lift);
}

.hero-boundary-tip {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px dashed var(--stall-line);
  padding: 12px 0 0;
  margin-top: 8px;
  line-height: 1.6;
}

/* ----- 新手常走三条路 ----- */
.reader-path-cards {
  padding-bottom: 24px;
}

.reader-path-cards .section-heading {
  margin-bottom: 24px;
}

.path-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.path-card {
  background: var(--card-bg);
  border: 1px solid var(--stall-line);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.path-card::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--adventure-orange);
  margin-bottom: 14px;
}

.path-card:nth-child(2)::before {
  background: var(--slice-green);
}

.path-card:nth-child(3)::before {
  background: var(--mystery-blue);
}

.path-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: #d6c7ad;
}

.path-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.path-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.path-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
}

.path-card a::after {
  content: "→";
  font-size: 15px;
  transition: transform 0.2s ease;
}

.path-card a:hover::after {
  transform: translateX(3px);
}

/* ----- 六个题材摊位 ----- */
.genre-stall-wall {
  padding-top: 36px;
}

.genre-stall-wall .section-heading {
  margin-bottom: 20px;
}

.stall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stall-card {
  background: var(--card-bg);
  border: 1px solid var(--stall-line);
  border-left: 3px solid var(--stall-line);
  border-radius: 6px;
  padding: 18px 16px 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stall-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.stall-romance {
  border-left-color: var(--love-pink);
}

.stall-adventure {
  border-left-color: var(--adventure-orange);
}

.stall-slice {
  border-left-color: var(--slice-green);
}

.stall-mystery {
  border-left-color: var(--mystery-blue);
}

.stall-sci-fi {
  border-left-color: var(--sci-fi-purple);
}

.stall-fantasy {
  border-left-color: var(--fantasy-red);
}

.stall-card .genre-flag {
  margin-bottom: 10px;
}

.stall-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
}

.stall-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 10px;
}

.stall-card a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 2px;
}

.stall-card a::after {
  content: "→";
}

.stall-card a:hover {
  color: var(--adventure-orange);
}

.stall-wall-footnote {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* ----- 编辑阅读首段预览 ----- */
.editorial-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  padding: 44px 0;
}

.preview-media {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.preview-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.preview-content p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 10px;
}

.preview-content a {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  min-height: 40px;
  line-height: 40px;
  border-bottom: 2px solid var(--adventure-orange);
}

.preview-content a:hover {
  color: var(--adventure-orange);
}

/* ----- 漫画用语入口带 ----- */
.glossary-entry-strip {
  background: var(--card-bg);
  border: 1px solid var(--stall-line);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin: 32px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.glossary-entry-strip p {
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.entry-word {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--stall-line);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

.glossary-entry-strip .text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.glossary-entry-strip .text-link::after {
  content: "→";
}

.glossary-entry-strip .text-link:hover {
  color: var(--adventure-orange);
}

/* ==========================================================================
   Pages —— 题材分类页
   ========================================================================== */

.category-intro {
  margin-bottom: 32px;
}

.category-intro .section-heading {
  margin-bottom: 12px;
}

.category-intro p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 8px;
  max-width: 48em;
}

.category-card-grid {
  margin-bottom: 36px;
}

.category-card-grid > .section-heading {
  margin-bottom: 20px;
}

.genre-card {
  background: var(--card-bg);
  border: 1px solid var(--stall-line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.genre-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.genre-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.genre-definition {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genre-tags li {
  font-size: 12px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 3px;
  padding: 2px 8px;
  color: var(--ink-mute);
  line-height: 1.6;
}

.genre-mood {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.6;
}

.genre-mood strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}

/* 相邻题材迁移提示 */
.adjacent-category-note {
  margin-bottom: 36px;
}

.adjacent-category-note .section-heading {
  margin-bottom: 16px;
}

.adjacent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.adjacent-card {
  background: var(--card-bg);
  border: 1px solid var(--stall-line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.adjacent-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  color: var(--ink);
}

.adjacent-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* 分类视觉锚点 */
.category-visual-anchor {
  margin: 28px 0;
}

.category-figure {
  aspect-ratio: 16 / 7;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.category-figure figcaption {
  font-size: 13px;
  color: var(--ink-mute);
  padding: 8px 2px 0;
  line-height: 1.6;
}

/* 通往编辑阅读入口 */
.category-to-editorial-link {
  background: var(--card-bg);
  border-left: 3px solid var(--slice-green);
  padding: 20px 22px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.category-to-editorial-link .section-heading {
  font-size: 18px;
  margin-bottom: 8px;
}

.category-to-editorial-link p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 8px;
}

.category-to-editorial-link p a {
  color: var(--slice-green);
  font-weight: 600;
  border-bottom: 1px solid var(--slice-green);
}

.back-home-link {
  margin-top: 20px;
  font-size: 14px;
}

.back-home-link a {
  color: var(--ink-mute);
  border-bottom: 1px solid var(--stall-line);
  display: inline-block;
  min-height: 36px;
  line-height: 36px;
}

.back-home-link a:hover {
  color: var(--adventure-orange);
  border-bottom-color: var(--adventure-orange);
}

/* ==========================================================================
   Pages —— 编辑阅读页
   ========================================================================== */

.editorial-lede {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 36px;
}

.lede-content .section-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.lede-content p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 10px;
}

.lede-figure {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.dimension-list {
  margin-bottom: 36px;
}

.dimension-list > .section-title {
  margin-bottom: 20px;
}

.dimension-card {
  background: var(--card-bg);
  border: 1px solid var(--stall-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
}

.dimension-index {
  font-size: 26px;
  font-weight: 700;
  color: var(--adventure-orange);
  line-height: 1.2;
  border-right: 2px solid var(--line-light);
  padding-right: 14px;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.dimension-card:nth-child(2) .dimension-index {
  color: var(--slice-green);
}

.dimension-card:nth-child(3) .dimension-index {
  color: var(--mystery-blue);
}

.dimension-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.dimension-body p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 6px;
}

.reading-context {
  background: var(--card-bg);
  border: 1px solid var(--stall-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 32px;
}

.reading-context .section-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.reading-context p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 6px;
}

.closing-links {
  background: var(--paper);
  border: 1px dashed var(--stall-line);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.closing-links p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.closing-links strong {
  display: block;
  margin-top: 4px;
}

.closing-links strong a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--adventure-orange);
  padding-bottom: 2px;
}

.closing-links strong a:hover {
  color: var(--adventure-orange);
}

/* ==========================================================================
   Pages —— 进站导览页
   ========================================================================== */

.guide-intro {
  margin-bottom: 28px;
}

.guide-intro .section-title {
  margin-bottom: 10px;
}

.guide-intro p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 6px;
  max-width: 48em;
}

.section-map {
  margin-bottom: 36px;
}

.section-map .section-title {
  margin-bottom: 6px;
}

.section-desc {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 16px;
  line-height: 1.7;
}

.map-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--stall-line);
}

.map-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  font-size: 14px;
  min-width: 560px;
}

.map-table th,
.map-table td {
  padding: 12px 16px;
  text-align: left;
  line-height: 1.6;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}

.map-table thead th {
  background: #f3ecdd;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.map-table tbody tr:last-child td {
  border-bottom: none;
}

.map-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.route-figure {
  aspect-ratio: 16 / 6;
  width: 100%;
  margin: 28px 0 36px;
}

.route-figure figcaption {
  font-size: 13px;
  color: var(--ink-mute);
  padding: 8px 2px 0;
  line-height: 1.6;
}

.route-block {
  background: var(--card-bg);
  border: 1px solid var(--stall-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}

.route-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--mystery-blue);
  line-height: 1.2;
  border-right: 2px solid var(--line-light);
  padding-right: 14px;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.route-block:nth-of-type(2) .route-number {
  color: var(--slice-green);
}

.route-block:nth-of-type(3) .route-number {
  color: var(--love-pink);
}

.route-content .route-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.route-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 10px;
}

.route-steps {
  padding-left: 0;
}

.route-steps li {
  border-left: 2px solid var(--line-light);
  padding-left: 14px;
  margin-bottom: 14px;
  position: relative;
}

.route-steps li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stall-line);
}

.route-steps li h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.route-steps li p {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.6;
}

.route-steps li p a {
  color: var(--mystery-blue);
  border-bottom: 1px solid var(--mystery-blue);
}

.route-tip {
  font-size: 13px;
  color: var(--ink-mute);
  background: var(--paper);
  border-radius: 4px;
  padding: 8px 12px;
  line-height: 1.6;
  margin-top: 4px;
}

.guide-closing {
  background: var(--card-bg);
  border-left: 3px solid var(--mystery-blue);
  padding: 18px 22px;
  border-radius: 6px;
  margin-top: 28px;
}

.guide-closing .section-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.guide-closing p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.guide-closing p a {
  color: var(--mystery-blue);
  font-weight: 600;
  border-bottom: 1px solid var(--mystery-blue);
}

/* ==========================================================================
   Pages —— 漫画用语页
   ========================================================================== */

.glossary-usage {
  margin-bottom: 28px;
}

.glossary-usage h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.glossary-usage p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 48em;
}

.term-group {
  background: var(--card-bg);
  border: 1px solid var(--stall-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.term-group > h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
}

.term-group > p {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 16px;
  line-height: 1.6;
}

.term-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.term-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line-light);
}

.term-item dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  padding-top: 2px;
}

.term-def {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 4px;
}

.term-example {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.6;
  background: var(--paper);
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-block;
}

.term-figure {
  aspect-ratio: 16 / 5;
  width: 100%;
  margin: 24px 0;
}

.glossary-to-content-link {
  background: var(--card-bg);
  border-left: 3px solid var(--sci-fi-purple);
  padding: 18px 22px;
  border-radius: 6px;
  margin-top: 24px;
}

.glossary-to-content-link h2 {
  font-size: 17px;
  margin-bottom: 8px;
}

.glossary-to-content-link p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.glossary-to-content-link p a {
  color: var(--sci-fi-purple);
  font-weight: 600;
  border-bottom: 1px solid var(--sci-fi-purple);
  margin-right: 12px;
  display: inline-block;
  padding: 2px 0;
}

.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
}

.related-links-label {
  font-size: 13px;
  color: var(--ink-mute);
}

.related-links-item {
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--stall-line);
  border-radius: 4px;
  padding: 4px 12px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  background: var(--card-bg);
}

.related-links-item:hover {
  border-color: var(--sci-fi-purple);
  color: var(--sci-fi-purple);
}

/* ==========================================================================
   Pages —— 站内说明页
   ========================================================================== */

.about-position-statement {
  margin-bottom: 28px;
}

.about-position-statement .section-title {
  margin-bottom: 14px;
}

.position-text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 12px;
  padding-left: 18px;
  border-left: 3px solid var(--stall-line);
  max-width: 46em;
}

.position-text:first-of-type {
  border-left-color: var(--love-pink);
}

.position-text:nth-of-type(2) {
  border-left-color: var(--slice-green);
}

.position-text:nth-of-type(3) {
  border-left-color: var(--mystery-blue);
}

.boundary-table-section {
  margin-bottom: 28px;
}

.boundary-table-section .section-title {
  margin-bottom: 14px;
}

.boundary-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--stall-line);
}

.boundary-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  font-size: 14px;
  min-width: 580px;
}

.boundary-table th,
.boundary-table td {
  padding: 13px 16px;
  text-align: left;
  line-height: 1.6;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}

.boundary-table thead th {
  background: #f3ecdd;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.boundary-table tbody tr:last-child td {
  border-bottom: none;
}

.copyright-etiquette {
  margin-bottom: 24px;
}

.copyright-etiquette .section-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.copyright-etiquette p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 48em;
}

.feedback-way {
  background: var(--card-bg);
  border: 1px solid var(--stall-line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.feedback-way .section-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.feedback-way p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.about-closing-figure {
  aspect-ratio: 16 / 5;
  width: 100%;
  margin-bottom: 24px;
}

.about-closing-figure figcaption {
  font-size: 13px;
  color: var(--ink-mute);
  padding: 8px 2px 0;
  line-height: 1.6;
}

.back-to-content-links {
  margin-top: 24px;
}

.back-to-content-links p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

.back-to-content-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.back-to-content-links ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--stall-line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card-bg);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.back-to-content-links ul li a:hover {
  border-color: var(--adventure-orange);
  color: var(--adventure-orange);
}

/* ==========================================================================
   Pages —— 404 页
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.error-content {
  max-width: 560px;
  width: 100%;
  text-align: left;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--stall-line);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.error-content h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.error-lead {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
}

.error-home-link:hover {
  background: var(--fantasy-red);
  color: #fff;
}

.error-actions a:not(.error-home-link) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--stall-line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card-bg);
}

.error-actions a:not(.error-home-link):hover {
  border-color: var(--adventure-orange);
  color: var(--adventure-orange);
}

.error-hint {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.7;
}

.error-hint a {
  color: var(--ink);
  border-bottom: 1px solid var(--stall-line);
  margin-right: 8px;
}

.error-hint a:hover {
  color: var(--adventure-orange);
  border-bottom-color: var(--adventure-orange);
}

/* ==========================================================================
   Responsive —— 960px 与 640px 断点
   ========================================================================== */

@media (max-width: 960px) {
  /* 导航收起为汉堡 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--stall-line);
    box-shadow: 0 8px 16px rgba(41, 36, 32, 0.06);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 4px;
    font-size: 15px;
    border-bottom: none;
    border-left: 2px solid transparent;
    width: 100%;
  }

  .nav-list li a.is-current {
    border-left-color: var(--fantasy-red);
    border-bottom: none;
    font-weight: 600;
  }

  .nav-list li + li {
    border-top: 1px solid var(--line-light);
  }

  /* 首页 hero 改为上下 */
  .hero-visual {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-boundary-tip {
    grid-column: 1;
  }

  /* 三个路径卡改两列 */
  .path-card-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .path-card:last-child {
    grid-column: 1 / -1;
  }

  /* 摊位改两列 */
  .stall-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 编辑预览改单列 */
  .editorial-preview {
    grid-template-columns: 1fr;
  }

  .preview-media {
    max-width: 560px;
  }

  /* 编辑阅读首屏改单列 */
  .editorial-lede {
    grid-template-columns: 1fr;
  }

  .lede-figure {
    max-width: 560px;
  }

  /* 页脚改两列 */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* 相邻题材卡改两列 */
  .adjacent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adjacent-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding: 0 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-header {
    padding: 14px 0 16px;
    margin-bottom: 20px;
  }

  /* 首页 hero 文本 */
  .hero-copy h1 {
    font-size: 30px;
    line-height: 1.35;
  }

  .hero-slogan {
    font-size: 16px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  /* 路径卡单列 */
  .path-card-list {
    grid-template-columns: 1fr;
  }

  .path-card:last-child {
    grid-column: 1;
  }

  /* 摊位单列 */
  .stall-grid {
    grid-template-columns: 1fr;
  }

  /* 编辑预览 */
  .editorial-preview {
    padding: 32px 0;
  }

  .preview-content h2 {
    font-size: 20px;
  }

  .glossary-entry-strip {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  /* 分类页 */
  .genre-card {
    padding: 16px;
  }

  .genre-name {
    font-size: 16px;
  }

  .adjacent-grid {
    grid-template-columns: 1fr;
  }

  .adjacent-card:last-child {
    grid-column: 1;
  }

  .category-figure {
    aspect-ratio: 4 / 3;
  }

  /* 编辑阅读页 */
  .dimension-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dimension-index {
    border-right: none;
    border-bottom: 2px solid var(--line-light);
    padding-right: 0;
    padding-bottom: 6px;
    min-height: auto;
    font-size: 22px;
  }

  .closing-links {
    flex-direction: column;
    gap: 14px;
  }

  .reading-context {
    padding: 16px;
  }

  /* 导览页 */
  .route-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .route-number {
    border-right: none;
    border-bottom: 2px solid var(--line-light);
    padding-right: 0;
    padding-bottom: 6px;
    min-height: auto;
    font-size: 24px;
  }

  .route-figure {
    aspect-ratio: 4 / 3;
  }

  /* 用语页 */
  .term-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .term-item dt {
    font-size: 16px;
  }

  .term-figure {
    aspect-ratio: 4 / 3;
  }

  .related-links {
    align-items: flex-start;
    flex-direction: column;
  }

  /* 站内说明 */
  .position-text {
    padding-left: 12px;
  }

  .about-closing-figure {
    aspect-ratio: 4 / 3;
  }

  .back-to-content-links ul {
    flex-direction: column;
    align-items: stretch;
  }

  .back-to-content-links ul li a {
    justify-content: center;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 16px 20px;
  }

  .footer-bottom {
    padding: 12px 16px;
  }

  /* 404 */
  .error-code {
    font-size: 56px;
  }

  .error-content h1 {
    font-size: 22px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions a {
    justify-content: center;
  }

  .error-home-link {
    width: 100%;
  }
}
