/* ==========================================================================
   好看的韩国漫画 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --c-bg: #F7FBFF;
  --c-surface: #FFFFFF;
  --c-ink: #2B3A55;
  --c-ink-soft: #5A6B85;
  --c-primary: #3AA6C9;
  --c-primary-deep: #2A87A6;
  --c-accent: #FF8FA3;
  --c-green: #7BD3A8;
  --c-amber: #FFC98B;
  --c-violet: #9C8CE0;
  --c-line: #DCEAF5;
  --c-line-strong: #C4DCEC;
  --c-tint: #EDF6FC;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-soft: 0 1px 2px rgba(43, 58, 85, 0.04), 0 6px 18px rgba(43, 58, 85, 0.05);
  --container: 1120px;
  --gutter: 24px;
  --header-h: 68px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--c-ink);
  font-weight: 700;
}

p {
  margin: 0;
  max-width: 42em;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-primary-deep);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--c-primary);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--c-ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

strong {
  font-weight: 600;
  color: var(--c-ink);
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

button {
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--c-line);
  backdrop-filter: saturate(160%) blur(6px);
}

.header-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
  white-space: nowrap;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  color: var(--c-primary-deep);
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list > li > a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 11px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-index {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-line-strong);
  transition: color 0.18s ease;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible {
  color: var(--c-ink);
}

.nav-list > li > a:hover .nav-index {
  color: var(--c-primary);
}

.nav-list > li > a.is-current {
  color: var(--c-ink);
  font-weight: 600;
  border-bottom-color: var(--c-accent);
}

.nav-list > li > a.is-current .nav-index {
  color: var(--c-accent);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  left: 0;
  transform: none;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* 主容器 */
.site-main {
  display: block;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.home-main {
  padding-top: 0;
  padding-bottom: 56px;
}

.inner-main {
  padding-top: 0;
  padding-bottom: 56px;
  min-width: 0;
}

/* 两栏布局：主内容在前，辅助栏在后 */
.page-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--gutter) 56px;
  display: grid;
  grid-template-columns: minmax(0, 736px) minmax(0, 320px);
  justify-content: space-between;
  gap: 48px;
  align-items: start;
}

.page-layout > .site-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* 面包屑 */
.breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-ink-soft);
}

.site-main .breadcrumb {
  max-width: none;
  margin: 0 0 14px;
  padding: 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--c-line-strong);
}

.breadcrumb a {
  color: var(--c-ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--c-primary-deep);
}

.breadcrumb-sep {
  color: var(--c-line-strong);
  padding: 0 2px;
}

.breadcrumb-current {
  color: var(--c-ink);
}

/* 内页标题区 */
.page-title {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter) 26px;
  border-bottom: 1px solid var(--c-line);
}

.page-title-inner {
  max-width: var(--container);
}

.site-brand-heading {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-primary-deep);
  margin-bottom: 10px;
}

.page-title h1,
.page-header .page-title {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--c-ink);
  max-width: 22em;
}

.site-main .page-header {
  margin: 0 0 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-line);
}

.site-main .page-header .page-title {
  padding: 0;
  margin: 0;
  border-bottom: 0;
  max-width: none;
}

.page-lead,
.page-intro {
  margin-top: 12px;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

.page-title .tag-row {
  margin-top: 16px;
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  background: #FFFFFF;
  border-top: 1px solid var(--c-line);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px var(--gutter) 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 40px;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-ink-soft);
  max-width: 30em;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-ink-soft);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--c-primary-deep);
}

.footer-bottom {
  border-top: 1px solid var(--c-line);
}

.footer-bottom p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter) 20px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--c-ink-soft);
}

/* --------------------------------------------------------------------------
   components · 通用元件
   -------------------------------------------------------------------------- */

/* 细线标签 */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-line,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--c-ink-soft);
  white-space: nowrap;
}

a.tag-line {
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

a.tag-line:hover,
a.tag-line:focus-visible {
  border-color: var(--c-primary);
  color: var(--c-primary-deep);
  background: var(--c-tint);
}

.tag-campus {
  border-color: #A6E0C4;
  color: #2F7A57;
}

.tag-urban,
.tag-work {
  border-color: #F2D2A8;
  color: #9A6224;
}

.tag-fantasy,
.tag-mystery {
  border-color: #C8BEF2;
  color: #5B4AA8;
}

.tag-sport {
  border-color: #A6E0C4;
  color: #2F7A57;
}

/* 主按钮 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--c-primary);
  border-radius: var(--radius-sm);
  background: var(--c-primary);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--c-primary-deep);
  border-color: var(--c-primary-deep);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* 行内文字链接 */
.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.link-inline::after {
  content: "→";
  font-weight: 400;
  transition: transform 0.18s ease;
}

.link-inline:hover,
.link-inline:focus-visible {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

.link-inline:hover::after {
  transform: translateX(3px);
}

/* 章节标签与小标题 */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-primary-deep);
  margin-bottom: 8px;
}

.section-intro,
.section-lead,
.section-note {
  max-width: 40em;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

.section-note {
  font-size: 14px;
}

/* 通用 section 间距 */
.home-main > section {
  padding: 40px 0;
  border-bottom: 1px solid var(--c-line);
}

.home-main > section:last-of-type {
  border-bottom: 0;
}

.inner-main .section {
  padding: 0 0 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--c-line);
}

.inner-main .section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.inner-main .section > h2,
.inner-main .step-section > h2,
.inner-main .faq-section > h2 {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 14px;
}

.inner-main .section > p,
.inner-main .step-section > p,
.inner-main .faq-section > p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-ink);
}

.inner-main .section > p:last-child {
  margin-bottom: 0;
}

.inner-main .section > h2 + p,
.inner-main .step-section > h2 + p {
  margin-top: 0;
}

/* 图注容器 */
.content-figure,
.figure,
.media-figure,
.genre-enter-figure,
.faq-figure {
  margin: 20px 0 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
}

.content-figure img,
.figure img,
.media-figure img,
.genre-enter-figure img,
.faq-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 460;
  object-fit: cover;
  background: var(--c-tint);
}

.genre-enter-figure img {
  aspect-ratio: 880 / 480;
}

.content-figure figcaption,
.figure figcaption,
.media-figure figcaption,
.genre-enter-figure figcaption,
.faq-figure figcaption {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
}

/* 相关链接块（内页收尾） */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.related-list li {
  min-width: 0;
}

.related-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.related-list a:hover,
.related-list a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--c-primary);
  color: var(--c-primary-deep);
  box-shadow: var(--shadow-soft);
}

.related-note {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--c-ink-soft);
}

.related-section > h2 {
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 16px;
}

/* 内页尾部文字链接组 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

.related-links-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-ink-soft);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.related-links-item:hover,
.related-links-item:focus-visible {
  border-color: var(--c-primary);
  color: var(--c-primary-deep);
  background: var(--c-tint);
}

/* FAQ 折叠项 */
.faq-item {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  padding: 0 16px;
  transition: border-color 0.18s ease;
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item[open] {
  border-color: var(--c-line-strong);
}

.faq-item > summary {
  position: relative;
  padding: 14px 30px 14px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--c-ink);
}

.faq-item > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--c-primary);
  line-height: 1;
}

.faq-item[open] > summary::after {
  content: "−";
}

.faq-item > p,
.faq-answer {
  padding: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--c-ink-soft);
}

.faq-answer p + p {
  margin-top: 8px;
}

/* 辅助栏 */
.side-rail {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rail-block,
.rail-links,
.read-progress {
  min-width: 0;
}

.rail-block {
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.rail-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  margin-bottom: 10px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-list li {
  min-width: 0;
}

.toc-list a {
  display: block;
  padding: 6px 8px;
  border-left: 2px solid var(--c-line);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-ink-soft);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.toc-list a:hover,
.toc-list a:focus-visible {
  color: var(--c-primary-deep);
  border-left-color: var(--c-primary);
  background: var(--c-tint);
}

.toc-list a.is-active {
  color: var(--c-ink);
  font-weight: 600;
  border-left-color: var(--c-accent);
  background: var(--c-tint);
}

.rail-links,
.rail-link-list,
.rail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-link-list a,
.rail-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-ink-soft);
}

.rail-link-list a:hover,
.rail-link-list a:focus-visible,
.rail-list a:hover,
.rail-list a:focus-visible {
  color: var(--c-primary-deep);
}

.rail-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin-bottom: 10px;
}

/* 阅读进度条 */
.read-progress,
.progress-block,
.rail-progress,
.progress {
  padding: 14px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.progress-bar,
.progress-track {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: var(--c-line);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: var(--c-primary);
  transition: width 0.15s linear;
}

.progress-text,
.progress-hint {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--c-ink-soft);
}

.progress-current {
  font-weight: 600;
  color: var(--c-primary-deep);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

/* 首屏 */
.hero {
  max-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 40px var(--gutter) 44px;
  background: var(--c-tint);
  border-bottom: 1px solid var(--c-line);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--c-primary-deep);
}

.hero-copy h1 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--c-ink);
  max-width: 16em;
}

.hero-lead {
  margin-top: 14px;
  max-width: 34em;
  min-width: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--c-ink-soft);
}

.hero-copy .btn-primary {
  margin-top: 22px;
}

.hero-copy .tag-row {
  margin-top: 18px;
}

.hero-visual {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 640;
  object-fit: cover;
  background: var(--c-tint);
}

.hero-visual figcaption {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
}

/* 起点三步 */
.start-steps .step-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 20px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-soft);
}

.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-tint);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary-deep);
}

.step-card h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

.step-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

.step-card .link-inline {
  margin-top: auto;
}

/* 题材地图速览 */
.genre-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.genre-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.genre-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-soft);
}

.genre-swatch {
  display: block;
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: var(--c-green);
}

.genre-card h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

.genre-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

.genre-card .tag-row {
  margin-top: auto;
  padding-top: 4px;
}

.genre-card.genre-campus .genre-swatch {
  background: var(--c-green);
}

.genre-card.genre-urban .genre-swatch {
  background: var(--c-amber);
}

.genre-card.genre-fantasy .genre-swatch {
  background: var(--c-violet);
}

.genre-card.genre-mystery .genre-swatch {
  background: var(--c-primary);
}

.genre-card.genre-office .genre-swatch {
  background: var(--c-accent);
}

.genre-card.genre-sports .genre-swatch {
  background: var(--c-green);
}

/* 挑漫方法步骤条 */
.step-track {
  counter-reset: pick;
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.step-cell .step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--c-primary);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-primary-deep);
}

.step-cell h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.step-cell p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

.pick-track > .link-inline {
  margin-top: 20px;
}

/* 主题书单入口 */
.shelf-visual {
  margin: 22px 0 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
}

.shelf-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 880 / 520;
  object-fit: cover;
  background: var(--c-tint);
}

.shelf-visual figcaption {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
}

.shelf-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shelf-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.shelf-row:hover {
  transform: translateY(-2px);
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-soft);
}

.shelf-row .genre-swatch {
  width: 4px;
  height: 34px;
}

.shelf-body {
  min-width: 0;
}

.shelf-body h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.shelf-body p {
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  max-width: none;
}

.shelf-entry > .link-inline {
  margin-top: 18px;
}

/* 连载节奏观察 */
.serial-watch > p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-ink);
}

.watch-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.watch-list li {
  position: relative;
  padding: 12px 16px 12px 34px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

.watch-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
}

/* 常见疑问速览 */
.faq-brief .faq-item {
  margin-top: 12px;
}

.faq-brief > .link-inline {
  margin-top: 18px;
}

/* 版权与反馈摘要 */
.notice-cols {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.notice-copy p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-ink-soft);
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--c-ink);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.link-list a:hover,
.link-list a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--c-primary);
  color: var(--c-primary-deep);
}

/* --------------------------------------------------------------------------
   pages · 阅读起点
   -------------------------------------------------------------------------- */

.note-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.note-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.note-card h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 8px;
}

.note-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-ink-soft);
  max-width: none;
}

.note-card p + p {
  margin-top: 8px;
}

.order-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: order;
}

.order-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  align-items: start;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.order-item .order-num {
  grid-row: span 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-tint);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary-deep);
}

.order-item h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.order-item .order-audience {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-ink);
  max-width: none;
}

.order-item .order-tip {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  max-width: none;
}

.obstacle-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
}

.obstacle-list dt {
  padding: 14px 18px 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--c-ink);
}

.obstacle-list dd {
  padding: 0 18px 14px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--c-ink-soft);
}

.obstacle-list dd + dt {
  border-top: 1px solid var(--c-line);
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   pages · 题材地图
   -------------------------------------------------------------------------- */

.genre-board-section {
  margin-bottom: 40px;
}

.genre-board {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.genre-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 20px 20px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.genre-marker {
  display: block;
  width: 32px;
  height: 4px;
  border-radius: 4px;
  background: var(--c-green);
}

.genre-marker-green {
  background: var(--c-green);
}

.genre-marker-amber {
  background: var(--c-amber);
}

.genre-marker-violet {
  background: var(--c-violet);
}

.genre-block h3 {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
}

.genre-block p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--c-ink-soft);
  max-width: none;
}

.genre-block .tag-row {
  margin-top: 2px;
}

.genre-block .genre-note {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--c-line);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--c-ink-soft);
}

.genre-cross-section,
.genre-enter-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--c-line);
}

.genre-cross-section h2,
.genre-enter-section h2 {
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.genre-cross-section p,
.genre-enter-section p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.85;
}

.cross-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cross-list li {
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--radius);
  background: var(--c-surface);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

.cross-list li strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  color: var(--c-ink);
}

.genre-enter-section .btn-primary {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   pages · 挑漫方法
   -------------------------------------------------------------------------- */

.step-section {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}

.step-section h2 {
  position: relative;
  padding-left: 16px;
}

.step-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: var(--c-primary);
}

.check-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.check-list dt {
  padding: 12px 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--c-primary-deep);
}

.check-list dd {
  padding: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

.check-list dd + dt {
  border-top: 1px dashed var(--c-line);
  padding-top: 12px;
}

.step-result {
  margin-bottom: 32px;
}

.step-result h2 {
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.result-list li {
  padding: 12px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

.result-list li strong {
  color: var(--c-ink);
}

.step-result > p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 主题书单
   -------------------------------------------------------------------------- */

.filter-section {
  margin-bottom: 36px;
}

.filter-section > p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-ink-soft);
  margin-bottom: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-ink-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shelf-section {
  margin-bottom: 40px;
}

.shelf-section > h2 {
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.shelf-stack {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shelf-block {
  position: relative;
  min-width: 0;
  padding: 20px 20px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.shelf-bar {
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: var(--c-green);
}

.shelf-bar-campus {
  background: var(--c-green);
}

.shelf-bar-mystery {
  background: var(--c-primary);
}

.shelf-bar-work {
  background: var(--c-amber);
}

.shelf-bar-fantasy {
  background: var(--c-violet);
}

.shelf-block > h3 {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  margin-bottom: 10px;
}

.shelf-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--c-line);
}

.shelf-head p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  max-width: none;
}

.shelf-items {
  display: flex;
  flex-direction: column;
}

.shelf-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 12px 0;
  min-width: 0;
}

.shelf-item + .shelf-item {
  border-top: 1px solid var(--c-line);
}

.shelf-item-main {
  min-width: 0;
}

.shelf-item-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-ink);
}

.shelf-item-desc {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--c-ink-soft);
}

.shelf-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-ink-soft);
  white-space: nowrap;
}

.rule-section {
  margin-bottom: 40px;
}

.rule-section > h2 {
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: rule;
}

.rule-item {
  position: relative;
  min-width: 0;
  padding: 14px 18px 14px 46px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  counter-increment: rule;
}

.rule-item::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
}

.rule-item h3 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 4px;
}

.rule-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-ink-soft);
  max-width: none;
}

.rule-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 常见疑问
   -------------------------------------------------------------------------- */

.faq-section {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}

.faq-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq-section > .section-lead {
  margin-bottom: 16px;
}

.faq-group {
  margin-top: 4px;
}

.faq-figure {
  margin-top: 20px;
}

.faq-footnote {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

.faq-footnote a {
  font-weight: 600;
  border-bottom: 1px solid var(--c-line-strong);
}

.faq-footnote a:hover,
.faq-footnote a:focus-visible {
  border-bottom-color: var(--c-primary);
}

/* --------------------------------------------------------------------------
   pages · 版权与反馈
   -------------------------------------------------------------------------- */

.correction-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: fix;
}

.correction-item {
  position: relative;
  min-width: 0;
  padding: 16px 18px 16px 46px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  counter-increment: fix;
}

.correction-item::before {
  content: counter(fix, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 17px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
}

.correction-item h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 4px;
}

.correction-item p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--c-ink-soft);
  max-width: none;
}

.boundary-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list li {
  position: relative;
  padding: 12px 16px 12px 34px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  flex: 1 0 auto;
  padding-top: 56px;
  padding-bottom: 72px;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 32px 32px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--shadow-soft);
}

.error-code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: 8px;
}

.error-panel h1 {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-ink-soft);
  margin-bottom: 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-actions .btn-primary {
  flex: 0 1 auto;
}

.error-tips {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
}

.error-tips h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 12px;
}

.error-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.error-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--c-ink-soft);
}

.error-link-list a:hover,
.error-link-list a:focus-visible {
  color: var(--c-primary-deep);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 44px;
  }

  .side-rail {
    position: static;
    top: auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .start-steps .step-grid,
  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 36px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
  }

  /* 移动导航 */
  .nav-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: block;
    padding: 0 var(--gutter);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 12px 24px rgba(43, 58, 85, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li > a {
    min-height: 48px;
    padding: 12px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--c-line);
  }

  .nav-list > li:last-child > a {
    border-bottom: 0;
  }

  .nav-list > li > a.is-current {
    border-bottom-color: var(--c-line);
    color: var(--c-primary-deep);
  }

  .nav-list > li > a.is-current::after {
    content: "";
    position: absolute;
    left: 4px;
    bottom: 8px;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-accent);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 15.5px;
  }

  .brand-logo {
    font-size: 16px;
  }

  .page-title {
    padding: 18px var(--gutter) 20px;
  }

  .page-title h1,
  .page-header .page-title {
    font-size: clamp(23px, 6.4vw, 30px);
  }

  .page-lead,
  .page-intro {
    font-size: 14.5px;
  }

  .breadcrumb {
    padding-top: 14px;
    font-size: 12.5px;
  }

  .page-layout {
    padding-top: 18px;
    gap: 24px;
  }

  .hero {
    padding: 28px var(--gutter) 32px;
  }

  .hero-copy h1 {
    font-size: clamp(23px, 6.4vw, 30px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-copy .btn-primary {
    width: 100%;
  }

  .home-main > section {
    padding: 30px 0;
  }

  .start-steps .step-grid,
  .genre-grid,
  .note-grid,
  .step-track {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .shelf-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
  }

  .shelf-row > .tag-line {
    grid-column: 2;
    justify-self: start;
  }

  .notice-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .genre-board {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .shelf-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .shelf-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .shelf-item-meta {
    justify-self: start;
  }

  .filter-row {
    flex-direction: column;
    gap: 12px;
  }

  .filter-group {
    align-items: flex-start;
  }

  .filter-label {
    flex: 0 0 100%;
  }

  .tag-list {
    gap: 6px;
  }

  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-links {
    gap: 8px;
  }

  .related-links-item {
    flex: 1 1 100%;
    justify-content: center;
  }

  .inner-main .section > h2,
  .inner-main .step-section > h2,
  .inner-main .faq-section > h2,
  .genre-cross-section h2,
  .genre-enter-section h2,
  .step-result h2,
  .shelf-section > h2,
  .rule-section > h2,
  .related-section > h2 {
    font-size: 19px;
  }

  .error-main {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .error-panel {
    padding: 26px 20px 24px;
  }

  .error-actions .btn-primary {
    width: 100%;
  }

  .footer-inner {
    padding-top: 30px;
    padding-bottom: 22px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
  }

  .footer-bottom p {
    font-size: 12px;
    padding: 14px var(--gutter) 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
