/* ==========================================================================
   beiyuzixun.com · 女神漫画
   base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --ink: #1B1E24;
  --paper: #F7F6F2;
  --cyan: #1FB6A6;
  --yellow: #F2C230;
  --brick: #D9553F;
  --ink-soft: #4A4F58;
  --ink-mute: #6E747E;
  --line: #D9D6CE;
  --line-dark: #33373F;
  --paper-alt: #EFEDE6;
  --radius: 6px;
  --font-base: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --col: 1080px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--cyan);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

strong {
  font-weight: 700;
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  transition: top 0.16s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. layout
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  max-width: var(--wrap);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--paper);
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--cyan);
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--yellow);
  border-radius: 1px;
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  color: #C9CCD2;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.nav-link:hover {
  color: var(--paper);
  border-bottom-color: var(--cyan);
}

.nav-link.is-current {
  color: var(--paper);
  font-weight: 700;
  border-bottom-color: var(--cyan);
}

.nav-batch-note {
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.16s ease;
}

.nav-batch-note:hover {
  color: var(--ink);
  background: #FFD75A;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  border-radius: 1px;
}

.mobile-drawer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding: 8px 24px 18px;
}

.drawer-list {
  max-width: var(--wrap);
  margin: 0 auto;
}

.drawer-list li + li {
  border-top: 1px solid var(--line-dark);
}

.drawer-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 2px;
  color: var(--paper);
}

.drawer-list a:hover {
  color: var(--cyan);
}

.drawer-name {
  font-size: 16px;
  font-weight: 700;
}

.drawer-desc {
  font-size: 12px;
  color: #9AA0AA;
  text-align: right;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-mute);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

.page-header {
  padding: 14px 0 0;
}

.page-title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.28;
  color: var(--ink);
}

.page-title-block {
  margin-top: 12px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.page-lead,
.page-subtitle,
.page-task-note {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.site-footer {
  background: var(--ink);
  color: #B9BEC6;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #9AA0AA;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 12px;
}

.footer-group ul li + li {
  margin-top: 8px;
}

.footer-group a {
  font-size: 13px;
  color: #B9BEC6;
}

.footer-group a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
}

.footer-bottom p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 24px;
  font-size: 12px;
  color: #7E848E;
}

/* --------------------------------------------------------------------------
   3. components
   -------------------------------------------------------------------------- */

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 8px;
}

.section-desc {
  max-width: 720px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
}

.section-title {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 10px;
}

.section-note,
.section-lead {
  max-width: 720px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
  margin-bottom: 20px;
}

.col-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.col-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  margin-bottom: 14px;
}

.col-foot {
  margin-top: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.text-link::after {
  content: "›";
  font-size: 15px;
  line-height: 1;
}

.text-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}

.card-link:hover {
  color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
}

.link-arrow::after {
  content: "→";
}

.link-arrow:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--cyan);
  color: #0C2A27;
  border-color: var(--cyan);
}

.btn-primary:hover {
  background: #18A092;
  color: #0C2A27;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.summary-dir,
.summary-direction {
  padding: 1px 8px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  border-radius: 3px;
}

.summary-batch {
  padding: 1px 8px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 3px;
}

.summary-name,
.summary-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.summary-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.summary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.summary-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}

.summary-links a:hover {
  color: var(--ink);
}

.summary-card {
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
}

.summary-card + .summary-card {
  margin-top: 12px;
}

.entry-list {
  border-top: 1px solid var(--line);
}

.entry-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.entry-batch {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.entry-title {
  font-size: 15px;
  font-weight: 700;
}

.entry-tag {
  padding: 1px 8px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border-radius: 3px;
  white-space: nowrap;
}

.entry-summary {
  grid-column: 2 / -1;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.module-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFFFF;
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-body,
.faq-answer {
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.related-links {
  max-width: var(--col);
  margin: 0 auto;
  padding: 22px 24px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.related-links-item {
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.related-links-item:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* --------------------------------------------------------------------------
   4. pages
   -------------------------------------------------------------------------- */

/* ---------- 首页 ---------- */

.home-main {
  display: block;
}

.hero-index {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  padding-top: 12px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.24;
  margin-bottom: 16px;
}

.hero-lead {
  max-width: 30em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  margin-top: -24px;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-alt);
}

.hero-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 3px;
}

.subject-picker {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px;
}

.picker-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.picker-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 14px 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.picker-item a:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.picker-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.picker-name {
  font-size: 16px;
  font-weight: 700;
}

.picker-note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-mute);
}

.update-section {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.update-section .section-head,
.update-section .update-grid {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
}

.update-section .section-head {
  padding: 44px 24px 0;
}

.update-grid {
  padding: 0 24px 44px;
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: 32px;
  align-items: start;
}

.batch-list {
  border-top: 1px solid var(--line);
}

.batch-item {
  border-bottom: 1px solid var(--line);
}

.batch-item a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  transition: background 0.16s ease;
}

.batch-item a:hover {
  background: rgba(31, 182, 166, 0.06);
}

.batch-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.batch-title {
  font-size: 15px;
  font-weight: 700;
}

.batch-tag {
  padding: 1px 8px;
  font-size: 12px;
  color: var(--ink-soft);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 3px;
  white-space: nowrap;
}

.batch-tag-short {
  color: var(--brick);
  border-color: rgba(217, 85, 63, 0.4);
}

.batch-summary {
  grid-column: 2 / -1;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.list-foot {
  margin-top: 16px;
}

.aside-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.cover-wall {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cover-card {
  min-width: 0;
}

.cover-card-shift {
  margin-top: 28px;
}

.cover-card a {
  display: block;
  height: 100%;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.cover-card a:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.cover-figure {
  position: relative;
  margin-bottom: 12px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-alt);
}

.cover-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 3px;
}

.cover-name {
  font-size: 15px;
  margin-bottom: 4px;
}

.cover-summary {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-mute);
}

.route-strip {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-strip .section-head,
.route-list {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
}

.route-strip .section-head {
  padding: 44px 24px 0;
}

.route-list {
  padding: 0 24px 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.route-item {
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  border-radius: var(--radius);
}

.route-no {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.route-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.route-goal {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.route-pace {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  margin-bottom: 12px;
}

.dual-notes {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px;
}

.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.notes-col {
  min-width: 0;
}

.notes-list {
  border-top: 1px solid var(--line);
}

.notes-item {
  border-bottom: 1px solid var(--line);
}

.notes-item a {
  display: block;
  padding: 12px 0;
}

.notes-item a:hover .notes-name {
  color: var(--cyan);
}

.notes-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.notes-line {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* ---------- 题材图鉴 ---------- */

.layout-shell {
  display: grid;
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}

.layout-shell.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.atlas-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.sidebar-note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-mute);
  margin-bottom: 14px;
}

.tree-item + .tree-item {
  margin-top: 4px;
}

.tree-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 6px 4px;
  text-align: left;
  border-radius: 4px;
  transition: background 0.16s ease;
}

.tree-toggle:hover {
  background: var(--paper-alt);
}

.tree-toggle::after {
  content: "▾";
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-mute);
}

.tree-toggle[aria-expanded="false"]::after {
  content: "▸";
}

.tree-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.tree-name {
  font-size: 14px;
  font-weight: 700;
}

.tree-sub {
  margin: 2px 0 8px 14px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.tree-sub li {
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.sidebar-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.atlas-main {
  min-width: 0;
}

.atlas-intro,
.atlas-compare,
.atlas-judge,
.atlas-cross {
  margin-bottom: 40px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.direction-card {
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.direction-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.direction-name {
  font-size: 17px;
  margin: 4px 0 8px;
}

.direction-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.direction-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 0;
}

.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: 28px;
  align-items: start;
}

.entry-list-col,
.entry-summary-col {
  min-width: 0;
}

.entry-list .entry-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.entry-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.summary-panel {
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
}

.summary-panel + .summary-panel {
  margin-top: 12px;
}

.summary-figure {
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
}

.summary-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.judge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.judge-col {
  min-width: 0;
}

.judge-list {
  border-top: 1px solid var(--line);
}

.judge-list li {
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.judge-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.cross-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.cross-col {
  min-width: 0;
}

.cross-list {
  border-top: 1px solid var(--line);
}

.cross-list li {
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.cross-tail {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* ---------- 更新台 ---------- */

.page-layout {
  display: grid;
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}

.page-layout.sidebar-right {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
}

.batch-intro {
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.batch-intro h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.batch-intro > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.batch-intro-list {
  margin: 12px 0;
  border-top: 1px solid var(--line);
}

.batch-intro-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.batch-intro-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.batch-intro-link {
  margin-top: 10px;
}

.batch-scale {
  margin-bottom: 32px;
}

.scale-track {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  background: var(--ink);
  border-radius: var(--radius);
  overflow-x: auto;
}

.scale-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 3px;
  color: #C9CCD2;
  min-width: 52px;
}

.scale-num {
  font-family: var(--font-mono);
  font-size: 12px;
}

.scale-count {
  font-size: 11px;
  color: #8A9098;
}

.scale-item.is-current {
  background: var(--yellow);
  color: var(--ink);
}

.scale-item.is-current .scale-count {
  color: #5C4A0A;
}

.update-group {
  margin-bottom: 32px;
}

.group-head {
  margin-bottom: 12px;
}

.group-head h2 {
  font-size: 19px;
  margin-bottom: 6px;
}

.desk-banner {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.desk-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.desk-banner figcaption {
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-mute);
  background: #FFFFFF;
}

.batch-cross {
  margin-top: 8px;
}

.cross-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.cross-columns .cross-col h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.cross-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border-radius: 3px;
}

.summary-panel > h2 {
  font-size: 16px;
  margin-bottom: 6px;
}

.layout-aside .summary-card + .summary-card {
  margin-top: 12px;
}

/* ---------- 阅读路线 ---------- */

.page-head {
  margin-top: 12px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.route-toc {
  margin-top: 32px;
}

.route-toc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.route-toc-item a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  height: 100%;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease;
}

.route-toc-item a:hover {
  border-color: var(--cyan);
}

.route-toc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.route-toc-name {
  font-size: 16px;
  font-weight: 700;
}

.route-toc-cond {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--ink-mute);
}

.route-stage {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.route-stage-mark {
  padding: 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  align-self: start;
}

.stage-num {
  display: inline-block;
  margin-bottom: 8px;
  padding: 1px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 3px;
}

.stage-name {
  font-size: 20px;
  color: var(--paper);
  margin-bottom: 8px;
}

.stage-prereq {
  font-size: 13px;
  line-height: 1.7;
  color: #B9BEC6;
}

.route-stage-body {
  min-width: 0;
}

.stage-goal,
.stage-rhythm {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.stage-goal strong,
.stage-rhythm strong {
  display: inline-block;
  margin-right: 8px;
  color: var(--ink);
}

.stage-figure {
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.stage-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.stage-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-mute);
  background: #FFFFFF;
}

.stage-read-list {
  margin: 14px 0;
  border-top: 1px solid var(--line);
}

.stage-read-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.read-name {
  font-size: 14px;
  font-weight: 700;
}

.read-dir {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.stage-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}

.stage-link:hover {
  color: var(--ink);
}

.route-switch {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.switch-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.switch-col {
  min-width: 0;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.switch-col-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.switch-list li {
  position: relative;
  padding: 8px 0 8px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.switch-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.route-revisit {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.revisit-list {
  border-top: 1px solid var(--line);
}

.revisit-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.revisit-name {
  font-size: 15px;
  font-weight: 700;
}

.revisit-why {
  flex: 1 1 260px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.revisit-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
}

.revisit-link:hover {
  color: var(--ink);
}

.route-note {
  padding: 40px 0 8px;
}

.route-note-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.route-note-col {
  min-width: 0;
  padding: 18px;
  background: var(--paper-alt);
  border-radius: var(--radius);
}

.route-note-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.route-note-col p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.route-note-col a {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}

.route-note-col a:hover {
  color: var(--ink);
}

/* ---------- 编辑观察 ---------- */

.page-shell {
  margin-top: 32px;
}

.page-shell .page-title-block {
  margin-top: 0;
}

.watch-intro {
  margin-bottom: 40px;
}

.watch-intro-text {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.watch-intro-scope {
  max-width: 680px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.watch-list {
  margin-bottom: 40px;
}

.watch-entry {
  max-width: 680px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.watch-entry-head {
  margin-bottom: 12px;
}

.watch-entry-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 4px;
}

.watch-entry-title {
  font-size: 21px;
  line-height: 1.4;
  margin-left: -24px;
}

.watch-entry-media {
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.watch-entry-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.watch-entry-media figcaption {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-mute);
  background: #FFFFFF;
}

.watch-entry-body p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.watch-entry-quote {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  background: #FFFFFF;
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.watch-shift {
  margin-bottom: 40px;
}

.shift-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.shift-col {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFFFF;
}

.shift-col-before {
  border-top: 3px solid var(--brick);
}

.shift-col-after {
  border-top: 3px solid var(--cyan);
}

.shift-col-title {
  font-size: 15px;
  margin-bottom: 10px;
}

.shift-list li + li {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.shift-item-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 2px;
}

.shift-item-text {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.watch-move {
  margin-bottom: 40px;
}

.move-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.move-item {
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.move-item-out {
  border-left: 3px solid var(--brick);
}

.move-item-back {
  border-left: 3px solid var(--cyan);
}

.move-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.move-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.watch-link {
  margin-bottom: 40px;
}

.watch-link-list {
  border-top: 1px solid var(--line);
}

.watch-link-item {
  padding: 12px 0 12px 34px;
  position: relative;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  counter-increment: watchlink;
}

.watch-link-list {
  counter-reset: watchlink;
}

.watch-link-item::before {
  content: counter(watchlink, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.watch-link-cta {
  margin-top: 16px;
}

.watch-related {
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.related-link {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.related-link:hover {
  color: var(--cyan);
}

/* ---------- 收录说明 ---------- */

.notes-section {
  margin-top: 40px;
}

.criteria-list {
  border-top: 1px solid var(--line);
}

.criteria-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.criteria-no {
  grid-row: 1 / span 3;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
}

.criteria-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.criteria-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.criteria-except {
  font-size: 13px;
  line-height: 1.7;
  color: var(--brick);
}

.notes-figure {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.notes-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.notes-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-mute);
  background: #FFFFFF;
}

.field-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.field-column {
  min-width: 0;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-column-title {
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.field-list {
  margin: 0;
}

.field-list dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  margin-top: 10px;
}

.field-list dt:first-child {
  margin-top: 0;
}

.field-list dd {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rule-block {
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-name {
  font-size: 15px;
  margin-bottom: 6px;
}

.rule-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.rule-examples {
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.rule-examples li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.rule-examples li + li {
  margin-top: 4px;
}

.rule-examples li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--cyan);
}

.batch-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.batch-column {
  min-width: 0;
  padding: 16px;
  background: var(--paper-alt);
  border-radius: var(--radius);
}

.batch-column-title {
  font-size: 15px;
  margin-bottom: 8px;
}

.batch-column p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.batch-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px 10px;
}

.faq-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.faq-column {
  min-width: 0;
}

.notes-related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.notes-related h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.notes-related .related-links {
  max-width: none;
  padding: 0;
  border-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.notes-related .related-links li a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.notes-related .related-links li a:hover {
  color: var(--cyan);
}

/* ---------- 反馈与收录 ---------- */

.feedback-types {
  margin-top: 32px;
}

.feedback-types-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.feedback-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--yellow);
}

.feedback-card--correct {
  border-top-color: var(--brick);
}

.feedback-card--reclass {
  border-top-color: var(--yellow);
}

.feedback-card--suggest {
  border-top-color: var(--cyan);
}

.feedback-card-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 4px;
}

.feedback-card-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.feedback-card-scope {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.feedback-card-points {
  margin-bottom: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.feedback-card-points li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.feedback-card-points li + li {
  margin-top: 6px;
}

.feedback-card-points li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--cyan);
}

.feedback-card-link {
  margin-top: auto;
}

.feedback-card-link a {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}

.feedback-card-link a:hover {
  color: var(--ink);
}

.feedback-figure {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.feedback-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.feedback-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-mute);
  background: #FFFFFF;
}

.feedback-prepare {
  margin-top: 40px;
}

.prepare-list {
  border-top: 1px solid var(--line);
}

.prepare-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.prepare-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
}

.prepare-body {
  min-width: 0;
}

.prepare-name {
  font-size: 15px;
  margin-bottom: 4px;
}

.prepare-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.feedback-flow {
  margin-top: 40px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: flowstep;
}

.flow-step {
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-step-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--yellow);
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.flow-step-name {
  font-size: 15px;
  margin-bottom: 6px;
}

.flow-step > p:last-child {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.flow-footnote {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.feedback-result {
  margin-top: 40px;
}

.result-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.result-col {
  min-width: 0;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.result-col:first-child {
  border-top: 3px solid var(--cyan);
}

.result-col:last-child {
  border-top: 3px solid var(--brick);
}

.result-col-title {
  font-size: 15px;
  margin-bottom: 10px;
}

.result-list li {
  position: relative;
  padding: 8px 0 8px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.result-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.feedback-faq {
  margin-top: 40px;
}

.faq-question {
  font-size: 15px;
}

/* ---------- 404 ---------- */

.error-main {
  max-width: var(--col);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.error-hero {
  max-width: 640px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brick);
  margin-bottom: 10px;
}

.error-hero h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.3;
  margin-bottom: 14px;
}

.error-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  color: #0C2A27;
  background: var(--cyan);
  border-radius: var(--radius);
  transition: background 0.16s ease;
}

.error-home-link:hover {
  color: #0C2A27;
  background: #18A092;
}

.error-paths {
  margin-top: 36px;
}

.error-paths h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.error-path-list li a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.error-path-list li a:hover {
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   5. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    gap: 14px;
  }

  .site-nav {
    display: none;
  }

  .nav-batch-note {
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
    margin-left: 0;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 32px;
  }

  .hero-visual {
    margin-top: 0;
    order: -1;
  }

  .hero-copy {
    padding-top: 0;
  }

  .picker-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .update-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-card-shift {
    margin-top: 0;
  }

  .route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .dual-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .layout-shell.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .atlas-sidebar {
    position: static;
  }

  .tree-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tree-item {
    flex: 0 0 auto;
  }

  .tree-item + .tree-item {
    margin-top: 0;
  }

  .tree-toggle {
    width: auto;
    padding: 6px 12px;
    border: 1px solid var(--line);
    white-space: nowrap;
  }

  .tree-sub {
    display: none;
  }

  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .entry-summary-col {
    order: -1;
  }

  .page-layout.sidebar-right {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-aside {
    order: -1;
  }

  .scale-track {
    grid-template-columns: repeat(10, 56px);
  }

  .route-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .route-toc-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-types-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 56px;
  }

  body.site-body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand-text {
    font-size: 16px;
  }

  .nav-batch-note {
    display: none;
  }

  .mobile-drawer {
    padding: 4px 16px 14px;
  }

  .inner-main {
    padding: 0 16px 48px;
  }

  .breadcrumb {
    padding-top: 14px;
  }

  .page-title {
    font-size: 25px;
  }

  .hero-inner,
  .subject-picker,
  .update-section .section-head,
  .update-grid,
  .cover-wall,
  .route-strip .section-head,
  .route-list,
  .dual-notes {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-actions .btn {
    flex: 1 1 160px;
  }

  .picker-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }

  .picker-item {
    flex: 0 0 168px;
    scroll-snap-align: start;
  }

  .update-grid {
    padding-bottom: 32px;
  }

  .update-summary-col {
    order: -1;
  }

  .wall-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dual-notes,
  .subject-picker,
  .cover-wall {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .tree-list {
    padding-bottom: 8px;
  }

  .direction-grid,
  .judge-grid,
  .cross-grid,
  .cross-columns,
  .switch-cols,
  .route-note-cols,
  .shift-compare,
  .move-list,
  .field-columns,
  .rule-list,
  .faq-columns,
  .result-columns,
  .related-list,
  .notes-related .related-links,
  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .criteria-item,
  .prepare-item {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 10px;
  }

  .watch-entry {
    padding: 20px 0;
  }

  .watch-entry-title {
    font-size: 19px;
    margin-left: 0;
  }

  .watch-entry-quote {
    padding: 10px 12px;
  }

  .route-stage {
    padding: 24px 0;
  }

  .route-stage-mark {
    padding: 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 16px 24px;
    gap: 24px;
  }

  .footer-bottom p {
    padding: 14px 16px 22px;
  }

  .related-links {
    padding-left: 16px;
    padding-right: 16px;
  }

  .error-main {
    padding: 40px 16px 56px;
  }

  .desk-banner img,
  .feedback-figure img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 400px) {
  .brand-text {
    font-size: 15px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .entry-item {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }

  .entry-batch,
  .entry-tag {
    justify-self: start;
  }

  .entry-summary {
    grid-column: 1 / -1;
  }

  .batch-item a {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }

  .batch-summary {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
