/* =========================================================
   漫画免费 看漫画 · 全站样式
   base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. base
   --------------------------------------------------------- */
:root {
  --paper: #f5f2ea;
  --paper-soft: #fffdf8;
  --line: #e2dccf;
  --line-strong: #cdc4b2;
  --ink: #1f2a37;
  --ink-soft: #4a5563;
  --ink-mute: #6b7280;
  --green: #2f7d6e;
  --orange: #c9772e;
  --blue: #3a5a9b;
  --red: #b84a4a;
  --sand: #a8894f;
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1160px;
  --shadow-card: 0 1px 2px rgba(31, 42, 55, .05);
  --shadow-hover: 0 6px 16px rgba(31, 42, 55, .12);
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

a:hover {
  color: var(--green);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

strong {
  font-weight: 700;
  color: var(--ink);
}

button {
  font-family: inherit;
}

/* ---------------------------------------------------------
   2. layout · 全站骨架
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 700;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background-color: var(--green);
  box-shadow: inset 0 0 0 3px rgba(255, 253, 248, .55);
}

.brand-text {
  font-size: 18px;
  letter-spacing: 0;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 15px;
  border: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--green);
  background-color: rgba(47, 125, 110, .08);
}

.site-nav a.is-current {
  color: var(--green);
  font-weight: 700;
  border-color: rgba(47, 125, 110, .35);
  background-color: rgba(47, 125, 110, .1);
}

.context-bar {
  border-top: 1px dashed var(--line);
  background-color: rgba(226, 220, 207, .35);
}

.context-bar p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 7px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--paper-soft);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--ink);
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background-color: var(--paper-soft);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 24px 14px;
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  min-height: 44px;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-nav li:last-child a {
  border-bottom: 0;
}

.mobile-nav a.is-current {
  color: var(--green);
  font-weight: 700;
}

.site-main {
  display: block;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.inner-main {
  padding-top: 22px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  margin-bottom: 6px;
}

.page-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.site-footer {
  background-color: var(--paper-soft);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 1fr));
  gap: 28px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 24px 26px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.footer-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.footer-col {
  min-width: 0;
}

.footer-col h2 {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.footer-bottom p:first-child {
  padding-bottom: 2px;
}

.footer-bottom p:last-child {
  padding-top: 2px;
}

/* ---------------------------------------------------------
   3. components · 通用组件
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn-primary:hover {
  background-color: #276a5d;
  border-color: #276a5d;
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background-color: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  background-color: rgba(47, 125, 110, .07);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 24px;
}

.section-head p {
  margin-top: 8px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.section-desc {
  margin-top: 8px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.section-lead,
.section-intro,
.section-note {
  margin: 8px 0 18px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.panel-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.panel-link:hover {
  color: var(--orange);
}

.dot,
.district-dot,
.swatch-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--ink-mute);
}

.dot-green,
.swatch-green,
.district-dot.dot-green {
  background-color: var(--green);
}

.dot-blue,
.swatch-blue,
.district-dot.dot-blue {
  background-color: var(--blue);
}

.dot-orange,
.swatch-orange,
.district-dot.dot-orange {
  background-color: var(--orange);
}

.dot-red,
.swatch-red,
.district-dot.dot-red {
  background-color: var(--red);
}

.dot-sand,
.district-dot.dot-sand {
  background-color: var(--sand);
}

.dot-ink,
.district-dot.dot-ink {
  background-color: var(--ink);
}

.dot-route,
.district-dot.dot-route {
  background-color: var(--orange);
}

.dot-district,
.district-dot.dot-district {
  background-color: var(--green);
}

.dot-list,
.district-dot.dot-list {
  background-color: var(--blue);
}

.dot-guide,
.district-dot.dot-guide {
  background-color: var(--red);
}

.dot-done {
  background-color: var(--green);
}

.dot-current {
  background-color: var(--orange);
}

.dot-next {
  background-color: var(--line-strong);
}

.swatch-dot {
  width: 8px;
  height: 8px;
}

/* 折叠问答 */
details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  float: right;
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--ink-mute);
}

details[open] summary::after {
  content: "–";
}

/* ---------------------------------------------------------
   4. pages · 首页
   --------------------------------------------------------- */
.home-main {
  padding-top: 28px;
}

/* 4.1 hero */
.hero {
  margin-bottom: 44px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-size: 38px;
  line-height: 1.3;
}

.hero-lead {
  margin-top: 14px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
}

.hero-stats div {
  min-width: 0;
}

.hero-stats dt {
  font-size: 13px;
  color: var(--ink-mute);
}

.hero-stats dd {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.hero-media {
  min-width: 0;
  padding: 10px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--line);
}

/* 4.2 阅读场景选择 */
.scene-select {
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.scene-select h2 {
  font-size: 24px;
}

.scene-intro {
  margin-top: 8px;
  max-width: 760px;
  font-size: 15px;
  color: var(--ink-soft);
}

.scene-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.scene-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.scene-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.scene-card h3 {
  font-size: 18px;
}

.scene-card p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.scene-meta {
  font-family: var(--font-mono);
  font-size: 13px !important;
  color: var(--ink-mute) !important;
}

.scene-card a {
  margin-top: auto;
  padding-top: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.scene-card a:hover {
  color: var(--orange);
}

/* 4.3 分区地图预览 */
.map-preview {
  margin-top: 46px;
}

.map-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.map-figure {
  min-width: 0;
  padding: 10px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--line);
}

.district-panel {
  min-width: 0;
  padding: 18px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.district-panel h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.district-list {
  display: flex;
  flex-direction: column;
}

.district-item {
  display: grid;
  grid-template-columns: 12px minmax(84px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.district-item:last-child {
  border-bottom: 0;
}

.district-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.district-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.district-item a {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.district-item a:hover {
  color: var(--orange);
}

/* 4.4 更新路线 */
.update-route {
  margin-top: 46px;
}

.route-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.route-node {
  position: relative;
  min-width: 0;
  padding: 18px 16px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.route-node::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  border-top: 1px dashed var(--line-strong);
  z-index: 0;
}

.route-node .node-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  background-color: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.route-node h3 {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 17px;
}

.route-node p {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.route-node.is-done .node-badge {
  background-color: rgba(47, 125, 110, .12);
  border-color: var(--green);
  color: var(--green);
}

.route-node.is-current {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(201, 119, 46, .35);
}

.route-node.is-current .node-badge {
  background-color: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.route-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.route-foot p {
  max-width: 720px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
}

/* 4.5 编辑书单封面墙 */
.cover-wall {
  margin-top: 46px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cover-card {
  min-width: 0;
}

.cover-card a {
  display: block;
  height: 100%;
  padding: 10px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cover-card a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.cover-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--line);
}

.cover-title {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.cover-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-mute);
}

/* 4.6 路线热度榜 */
.route-rank {
  margin-top: 46px;
}

.rank-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rank-column {
  min-width: 0;
  padding: 18px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-column h3 {
  font-size: 17px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rank-list {
  margin-top: 6px;
}

.rank-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.rank-list li:last-child {
  border-bottom: 0;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
}

.rank-name {
  font-size: 14.5px;
  color: var(--ink);
}

.rank-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 1px 8px;
  border-radius: 999px;
  background-color: rgba(58, 90, 155, .1);
  color: var(--blue);
  white-space: nowrap;
}

/* 4.7 追更手册速览 */
.follow-quick {
  margin-top: 46px;
}

.step-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  min-width: 0;
  padding: 18px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
}

.step-item .step-no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
}

.step-item h3 {
  margin-top: 8px;
  font-size: 17px;
}

.step-item p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 4.8 折叠问答入口 */
.faq-entry {
  margin-top: 46px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list li {
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-list summary {
  padding: 14px 18px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.faq-list p {
  padding: 0 18px 16px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 4.9 站点说明入口条 */
.site-note-entry {
  margin-top: 46px;
}

.note-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background-color: rgba(226, 220, 207, .4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.note-bar p {
  max-width: 760px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.note-bar a {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.note-bar a:hover {
  color: var(--orange);
}

/* ---------------------------------------------------------
   5. pages · 内页通用
   --------------------------------------------------------- */
.page-hero {
  margin: 14px 0 34px;
  padding: 20px 22px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-kicker,
.page-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mute);
}

.page-lead {
  margin-top: 10px;
  max-width: 820px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.page-head {
  margin-bottom: 30px;
}

.page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
}

.page-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
}

.page-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* 5.1 分区地图 */
.legend-overview,
.district-list,
.route-hint {
  margin-bottom: 44px;
}

.legend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legend-figure {
  min-width: 0;
  padding: 10px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legend-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--line);
}

.legend-panel {
  min-width: 0;
  padding: 18px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legend-panel-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.legend-body {
  min-width: 0;
}

.legend-name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.legend-desc {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.district-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.district-row {
  display: grid;
  grid-template-columns: 12px 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.district-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.district-cover {
  min-width: 0;
}

.district-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--line);
}

.district-info {
  min-width: 0;
}

.district-info h3 {
  font-size: 17px;
}

.district-info p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.district-meta {
  font-family: var(--font-mono);
  font-size: 13px !important;
  color: var(--ink-mute) !important;
}

.district-enter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.district-enter:hover {
  border-color: var(--green);
  background-color: rgba(47, 125, 110, .08);
  color: var(--green);
}

.hint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hint-card {
  min-width: 0;
  padding: 18px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hint-card h3 {
  font-size: 17px;
}

.hint-card p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.hint-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--green);
}

.hint-link:hover {
  color: var(--orange);
}

/* 5.2 更新路线 */
.batch-panel,
.route-timeline,
.change-note {
  margin-bottom: 44px;
}

.batch-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.batch-item {
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.batch-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.batch-summary::after {
  margin-left: auto;
}

.batch-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
}

.batch-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.batch-state {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-mute);
}

.batch-state.state-current {
  background-color: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.batch-state.state-done {
  background-color: rgba(47, 125, 110, .12);
  border-color: var(--green);
  color: var(--green);
}

.batch-body {
  padding: 0 18px 16px;
  border-top: 1px dashed var(--line);
}

.batch-note {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.batch-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 12px;
}

.batch-entries li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  min-width: 0;
}

.batch-entries li:last-child,
.batch-entries li:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

.entry-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--ink-mute);
}

.entry-mark.mark-green {
  background-color: var(--green);
}

.entry-mark.mark-orange {
  background-color: var(--orange);
}

.entry-mark.mark-blue {
  background-color: var(--blue);
}

.entry-mark.mark-red {
  background-color: var(--red);
}

.entry-title {
  font-size: 14.5px;
  color: var(--ink);
  overflow-wrap: break-word;
}

.entry-state {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-mute);
  white-space: nowrap;
}

.route-figure {
  min-width: 0;
  margin-bottom: 20px;
  padding: 10px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.route-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--line);
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.timeline-node {
  min-width: 0;
  padding: 14px 12px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-node .node-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--line-strong);
}

.timeline-node .node-label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
}

.timeline-node .node-text {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.timeline-node.is-current {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(201, 119, 46, .3);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.note-card {
  min-width: 0;
  padding: 18px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-card h3 {
  font-size: 17px;
}

.note-card p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.tip-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 20px;
  background-color: rgba(226, 220, 207, .4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.tip-text {
  max-width: 720px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.tip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 5.3 编辑书单 */
.list-groups,
.list-cards,
.related-routes {
  margin-bottom: 44px;
}

.list-groups h2,
.list-cards h2,
.related-routes h2 {
  font-size: 24px;
}

.group-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.group-tab {
  min-width: 0;
  padding: 18px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
}

.group-weekend {
  border-top-color: var(--orange);
}

.group-catchup {
  border-top-color: var(--blue);
}

.group-tab h3 {
  font-size: 17px;
}

.group-tab p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.list-hero {
  min-width: 0;
  margin-bottom: 20px;
  padding: 10px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.list-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card-grid .cover-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card-grid .cover-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.card-grid .cover-card h3 {
  font-size: 17px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
}

.card-grid .cover-card > p:not(.card-meta) {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--green);
}

.card-link:hover {
  color: var(--orange);
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.route-list li {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.route-list h3 {
  font-size: 16.5px;
}

.route-list p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.route-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--green);
}

.route-list a:hover {
  color: var(--orange);
}

/* 5.4 追更手册 */
.page-follow-guide .page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.page-hero-text {
  min-width: 0;
}

.page-hero-media {
  min-width: 0;
}

.page-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--line);
}

.guide-scenes,
.guide-progress,
.guide-mistakes,
.guide-links {
  margin-bottom: 44px;
}

.guide-scenes h2,
.guide-progress h2,
.guide-mistakes h2,
.guide-links h2 {
  font-size: 24px;
}

.scene-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scene-step-card {
  min-width: 0;
  padding: 18px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scene-step-card .scene-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  background-color: rgba(47, 125, 110, .12);
  color: var(--green);
}

.scene-step-card h3 {
  margin-top: 10px;
  font-size: 17px;
}

.scene-step-card > p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.step-list {
  margin-top: 12px;
  padding-left: 0;
}

.step-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

.step-list li:last-child {
  border-bottom: 0;
}

.step-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green);
}

.scene-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.scene-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

.scene-links a:hover {
  color: var(--orange);
}

.progress-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.progress-col {
  min-width: 0;
  padding: 18px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.progress-col h3 {
  font-size: 17px;
}

.progress-col > p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.plain-list {
  margin-top: 12px;
}

.plain-list li {
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

.plain-list li:last-child {
  border-bottom: 0;
}

.faq-item {
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.entry-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-list a {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.entry-list a:hover {
  color: var(--orange);
}

.entry-list span {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* 5.5 问答台 */
.page-qa-desk .page-hero {
  margin-bottom: 26px;
}

.legend-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.legend-dots li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.page-layout.qa-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.topic-toc {
  min-width: 0;
  padding: 16px 16px 14px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 96px;
}

.topic-toc h2 {
  font-size: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.topic-toc nav ul {
  margin-top: 8px;
}

.topic-toc nav > ul > li {
  padding: 6px 0;
}

.topic-toc nav > ul > li > a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.topic-toc nav > ul > li > a:hover {
  color: var(--green);
}

.topic-toc nav ul ul {
  margin: 4px 0 4px 10px;
  padding-left: 10px;
  border-left: 1px dashed var(--line-strong);
}

.topic-toc nav ul ul li {
  padding: 3px 0;
}

.topic-toc nav ul ul a {
  font-size: 13.5px;
  color: var(--ink-mute);
}

.topic-toc nav ul ul a:hover {
  color: var(--green);
}

.toc-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
}

.toc-foot a {
  font-weight: 700;
  color: var(--green);
}

.qa-main {
  min-width: 0;
}

.qa-list h2 {
  font-size: 24px;
}

.qa-group {
  margin-top: 22px;
}

.qa-group-title {
  font-size: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.qa-item {
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.qa-item summary {
  padding: 14px 18px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.qa-item p {
  padding: 0 18px 14px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.qa-item p:last-child {
  padding-bottom: 16px;
}

.rule-note {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.rule-note h2 {
  font-size: 22px;
}

.qa-figure {
  min-width: 0;
  margin: 16px 0;
  padding: 10px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qa-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--line);
}

.rule-list {
  margin-top: 8px;
}

.rule-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

.rule-list li:last-child {
  border-bottom: 0;
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green);
}

.rule-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: 14.5px;
}

.rule-entry a {
  font-weight: 700;
  color: var(--green);
}

.rule-entry a:hover {
  color: var(--orange);
}

/* 5.6 站点说明 */
.scope,
.column-relations,
.reading-boundary {
  margin-bottom: 44px;
}

.scope h2,
.column-relations h2,
.reading-boundary h2 {
  font-size: 24px;
}

.scope-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.scope-text {
  min-width: 0;
}

.scope-text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.scope-text p + p {
  margin-top: 12px;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.scope-list li {
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-list h3 {
  font-size: 15.5px;
}

.scope-list p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-mute);
}

.scope-list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.relations-figure {
  min-width: 0;
  margin-bottom: 20px;
  padding: 10px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.relations-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--line);
}

.relations-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.relations-rules li {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
}

.relations-rules h3 {
  font-size: 16px;
}

.relations-rules p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.boundary-list li {
  position: relative;
  min-width: 0;
  padding: 12px 16px 12px 34px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--red);
}

.boundary-list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.boundary-entry {
  margin-top: 20px;
  padding: 18px 20px;
  background-color: rgba(226, 220, 207, .4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.boundary-entry > p {
  max-width: 820px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.boundary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 8px;
  padding: 16px 20px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-mute);
}

.related-links-item {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--green);
}

.related-links-item:hover {
  color: var(--orange);
}

/* ---------------------------------------------------------
   6. pages · 404
   --------------------------------------------------------- */
.error-main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.error-hero {
  max-width: 720px;
  padding: 26px 24px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-mute);
}

.error-hero h1 {
  margin-top: 8px;
  font-size: 34px;
}

.error-text {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.error-links {
  margin-top: 36px;
}

.error-links h2 {
  font-size: 22px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.error-link-list li {
  min-width: 0;
}

.error-link-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 16px;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.error-link-list a:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ---------------------------------------------------------
   7. responsive
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: 2;
  }

  .map-preview-grid,
  .legend-layout,
  .scope-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .hint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    padding: 10px 18px;
  }

  .context-bar p {
    padding: 7px 18px;
  }

  .mobile-nav ul {
    padding: 6px 18px 12px;
  }

  .site-main {
    padding: 24px 18px 44px;
  }

  .page-title {
    font-size: 30px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .scene-cards,
  .route-track,
  .cover-grid,
  .rank-columns,
  .step-flow,
  .group-tabs,
  .card-grid,
  .scene-step-grid,
  .note-grid,
  .error-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .route-list,
  .entry-list,
  .progress-columns,
  .relations-rules,
  .boundary-list,
  .scope-list,
  .batch-entries {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-list li:last-child:nth-child(odd),
  .boundary-list li:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .district-row {
    grid-template-columns: 12px 96px minmax(0, 1fr);
  }

  .district-enter {
    grid-column: 2 / -1;
    justify-content: center;
  }

  .page-layout.qa-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-toc {
    position: static;
    order: 2;
  }

  .qa-main {
    order: 1;
  }

  .page-follow-guide .page-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15.5px;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .brand-text {
    font-size: 16px;
  }

  .context-bar p {
    padding: 6px 14px;
    font-size: 12.5px;
  }

  .mobile-nav ul {
    padding: 4px 14px 10px;
  }

  .site-main {
    padding: 20px 14px 40px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .section-head h2,
  .scene-select h2,
  .list-groups h2,
  .list-cards h2,
  .related-routes h2,
  .guide-scenes h2,
  .guide-progress h2,
  .guide-mistakes h2,
  .guide-links h2,
  .qa-list h2,
  .scope h2,
  .column-relations h2,
  .reading-boundary h2 {
    font-size: 21px;
  }

  .hero {
    margin-bottom: 32px;
  }

  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .scene-cards,
  .route-track,
  .cover-grid,
  .rank-columns,
  .step-flow,
  .group-tabs,
  .card-grid,
  .scene-step-grid,
  .note-grid,
  .error-link-list,
  .timeline-track,
  .hint-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-node::before {
    display: none;
  }

  .faq-list summary,
  .faq-item summary,
  .qa-item summary,
  .batch-summary {
    padding: 13px 14px;
  }

  .faq-list p,
  .faq-item p,
  .qa-item p,
  .batch-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .district-item {
    grid-template-columns: 12px minmax(0, 1fr);
    row-gap: 4px;
  }

  .district-item .district-desc {
    grid-column: 2;
  }

  .district-item a {
    grid-column: 2;
    justify-self: start;
  }

  .district-row {
    grid-template-columns: 12px minmax(0, 1fr);
    row-gap: 10px;
  }

  .district-cover {
    grid-column: 2;
    max-width: 120px;
  }

  .district-info {
    grid-column: 2;
  }

  .district-enter {
    grid-column: 2;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 14px 20px;
  }

  .footer-bottom p {
    padding: 10px 14px;
  }

  .note-bar,
  .tip-bar,
  .boundary-entry,
  .related-links {
    padding: 14px 16px;
  }

  .note-bar a,
  .related-links-item {
    white-space: normal;
  }

  .panel-link,
  .hint-link,
  .card-link,
  .route-list a,
  .entry-list a {
    min-height: 44px;
  }
}

/* 程序验收反馈：修复网格孤项 */
@media (min-width: 769px) {
  .cover-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
