/* ==========================================================================
   可爱的尾巴漫画 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --ink: #101826;
  --paper: #f6efe3;
  --berry: #d9485f;
  --teal: #5e7a7a;
  --yellow: #e9b44c;
  --paper-soft: #fbf6ec;
  --ink-soft: #2b3648;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  --serif: "Songti SC", "SimSun", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  --shell: 1160px;
  --read: 760px;
  --radius: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 10px;
}

.text-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--berry);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--berry);
  border-bottom-color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
}

.site-header {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--shell);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-mark {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark:hover,
.brand-mark:focus-visible {
  color: var(--berry);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.nav-link {
  display: inline-block;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 800;
  border-bottom-color: var(--berry);
}

.header-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.icon-link svg {
  width: 20px;
  height: 20px;
}

.icon-link:hover,
.icon-link:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.mobile-nav {
  border-top: 1px solid rgba(16, 24, 38, 0.16);
  background: var(--paper-soft);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 24px 16px;
}

.mobile-nav li + li {
  border-top: 1px solid rgba(16, 24, 38, 0.12);
}

.mobile-nav a {
  display: block;
  padding: 13px 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--berry);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--teal);
}

.breadcrumb a {
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

.breadcrumb-sep {
  color: var(--teal);
}

.breadcrumb-current {
  color: var(--ink-soft);
  font-weight: 600;
}

.page-header {
  padding: 14px 0 22px;
  border-bottom: 2px solid var(--ink);
}

.page-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.22;
  color: var(--ink);
}

.content-wrap {
  max-width: var(--read);
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--berry);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--paper);
  margin-bottom: 8px;
}

.footer-slogan {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246, 239, 227, 0.74);
}

.footer-group {
  min-width: 0;
}

.footer-heading {
  margin-bottom: 12px;
  padding-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--yellow);
  border-bottom: 1px solid var(--berry);
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  display: inline-block;
  padding: 2px 0;
  font-size: 14px;
  color: rgba(246, 239, 227, 0.86);
  border-bottom: 1px solid transparent;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--berry);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid rgba(246, 239, 227, 0.2);
  font-size: 13px;
  color: rgba(246, 239, 227, 0.66);
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--ink);
}

.section-head h2 {
  font-size: clamp(22px, 2.6vw, 28px);
}

.section-head p {
  flex: 1 1 260px;
  min-width: 200px;
  font-size: 14px;
  color: var(--teal);
}

.section-title {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 8px;
}

.section-note {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 15px;
  color: var(--ink-soft);
}

.step-list {
  display: grid;
  gap: 16px;
}

.step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.14);
  border-left: 3px solid var(--berry);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.step-body p {
  font-size: 15px;
  color: var(--ink-soft);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(16, 24, 38, 0.18);
  border-radius: var(--radius);
  background: var(--paper-soft);
  -webkit-overflow-scrolling: touch;
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(16, 24, 38, 0.34);
  border-radius: 4px;
}

.table-scroll table {
  width: 100%;
  min-width: 660px;
  font-size: 14px;
}

.table-scroll caption {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--teal);
  border-bottom: 1px solid rgba(16, 24, 38, 0.14);
}

.table-scroll thead th {
  padding: 11px 14px;
  text-align: left;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
  background: var(--teal);
  white-space: nowrap;
}

.table-scroll tbody th,
.table-scroll tbody td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(16, 24, 38, 0.12);
}

.table-scroll tbody tr:last-child th,
.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.table-scroll tbody th {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
}

.table-scroll tbody td {
  color: var(--ink-soft);
}

.table-scroll tbody tr:hover {
  background: rgba(233, 180, 76, 0.14);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 24, 38, 0.2);
}

.related-links-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}

.related-links-item {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--berry);
}

.related-links-item:hover,
.related-links-item:focus-visible {
  color: var(--berry);
}

/* 通用相关入口列表（compare / guide / work-detail / feedback） */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related-list a {
  display: block;
  padding: 16px 18px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.related-list a:hover,
.related-list a:focus-visible {
  border-color: var(--berry);
  background: #fff;
}

.related-list h3,
.related-list .related-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.related-list p,
.related-list .related-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 48px 0 44px;
  border-bottom: 2px solid var(--ink);
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.16;
  margin-bottom: 18px;
}

.hero-lede {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.hero-cover {
  position: relative;
  min-width: 0;
  border: 3px solid var(--ink);
  border-radius: 4px;
  background: var(--paper-soft);
  overflow: hidden;
}

.hero-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-cover figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 12px 14px;
  border-top: 3px solid var(--ink);
  background: var(--paper);
}

.cover-tag {
  padding: 2px 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 2px;
}

.cover-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
}

.cover-batch {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
}

.feature-strip-section,
.update-rail-section,
.genre-index-section,
.chart-lines-section,
.compare-bridge-section,
.help-feedback-section {
  padding: 44px 0 0;
}

.feature-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.feature-strip::-webkit-scrollbar {
  height: 6px;
}

.feature-strip::-webkit-scrollbar-thumb {
  background: rgba(16, 24, 38, 0.3);
  border-radius: 3px;
}

.cover-card {
  flex: 0 0 172px;
  min-width: 0;
  scroll-snap-align: start;
}

.cover-card figure {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-soft);
}

.cover-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-card h3 {
  margin: 10px 0 4px;
  font-size: 15px;
  line-height: 1.4;
}

.cover-card h3 a {
  border-bottom: 2px solid transparent;
}

.cover-card h3 a:hover,
.cover-card h3 a:focus-visible {
  border-bottom-color: var(--berry);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.card-meta .tag {
  padding: 1px 7px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--paper);
  background: var(--teal);
  border-radius: 2px;
}

.card-meta .type {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-soft);
  border: 1px solid rgba(16, 24, 38, 0.3);
  border-radius: 2px;
  padding: 1px 7px;
}

.card-batch {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
}

.update-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.update-rail::-webkit-scrollbar {
  height: 6px;
}

.update-rail::-webkit-scrollbar-thumb {
  background: rgba(16, 24, 38, 0.3);
  border-radius: 3px;
}

.update-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  flex: 0 0 268px;
  min-width: 0;
  padding: 10px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.update-thumb {
  border: 1px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
}

.update-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.update-info {
  min-width: 0;
}

.update-info h3 {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.update-info h3 a:hover,
.update-info h3 a:focus-visible {
  color: var(--berry);
}

.update-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 2px;
}

.update-batch {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}

.genre-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.genre-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-top: 3px solid var(--berry);
  border-radius: var(--radius);
}

.genre-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.genre-item h3 a:hover,
.genre-item h3 a:focus-visible {
  color: var(--berry);
}

.genre-hint {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.genre-pick {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--teal);
}

.chart-lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.chart-line {
  min-width: 0;
}

.chart-line h3 {
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-size: 17px;
  border-bottom: 2px solid var(--ink);
}

.chart-list {
  display: flex;
  flex-direction: column;
}

.chart-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas:
    "rank name"
    "rank reason";
  gap: 2px 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(16, 24, 38, 0.12);
}

.chart-list li:last-child {
  border-bottom: 0;
}

.rank {
  grid-area: rank;
  align-self: start;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--berry);
}

.chart-list a {
  grid-area: name;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid transparent;
}

.chart-list a:hover,
.chart-list a:focus-visible {
  border-bottom-color: var(--berry);
}

.reason {
  grid-area: reason;
  font-size: 13px;
  color: var(--teal);
}

.compare-bridge {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.compare-short,
.compare-serial {
  min-width: 0;
  padding: 20px 22px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-radius: var(--radius);
}

.compare-short h3,
.compare-serial h3 {
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--berry);
}

.compare-short ul,
.compare-serial ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-short li,
.compare-serial li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

.compare-short li::before,
.compare-serial li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--berry);
  border-radius: 50%;
}

.compare-bridge-link {
  margin-top: 18px;
}

.help-feedback-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
}

.help-steps,
.feedback-brief {
  min-width: 0;
}

.help-steps h2,
.feedback-brief h2 {
  font-size: 22px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.help-steps ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.help-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.help-steps .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
  background: var(--berry);
  border-radius: 2px;
}

.help-steps .step-name {
  font-size: 15px;
  color: var(--ink-soft);
}

.feedback-brief {
  padding: 20px 22px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-radius: var(--radius);
}

.feedback-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.feedback-brief ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-brief li a {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  border-bottom: 2px solid var(--berry);
}

.feedback-brief li a:hover,
.feedback-brief li a:focus-visible {
  color: var(--berry);
}

/* --------------------------------------------------------------------------
   pages · 总目录
   -------------------------------------------------------------------------- */

.catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 32px;
  align-items: center;
  padding: 24px 0 30px;
  border-bottom: 2px solid var(--ink);
}

.page-head-copy {
  min-width: 0;
}

.page-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-head-figure {
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-soft);
}

.page-head-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-head-figure figcaption {
  padding: 9px 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--teal);
  border-top: 1px solid rgba(16, 24, 38, 0.16);
}

.catalog-filter,
.catalog-table-section,
.catalog-guide,
.related-entries {
  padding: 36px 0 0;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tag {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.28);
  border-radius: var(--radius);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.filter-tag:hover,
.filter-tag:focus-visible {
  border-color: var(--berry);
  color: var(--berry);
}

.filter-tag.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.catalog-table th[scope="row"] {
  white-space: nowrap;
}

.catalog-table td a {
  font-family: var(--sans);
  font-weight: 700;
  border-bottom: 2px solid var(--berry);
}

.catalog-table td a:hover,
.catalog-table td a:focus-visible {
  color: var(--berry);
}

.catalog-guide .step-list {
  max-width: var(--read);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.entry-card {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
}

.entry-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.entry-card h3 a:hover,
.entry-card h3 a:focus-visible {
  color: var(--berry);
}

.entry-card p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 题材索引
   -------------------------------------------------------------------------- */

.page-shell {
  min-width: 0;
}

.page-title-block {
  padding: 24px 0 30px;
  border-bottom: 2px solid var(--ink);
}

.page-title-block.guide-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 32px;
  align-items: center;
}

.page-title-copy {
  min-width: 0;
}

.page-title-figure,
.title-cover {
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-soft);
}

.page-title-figure img,
.title-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-title-figure figcaption,
.title-cover figcaption {
  padding: 9px 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--teal);
  border-top: 1px solid rgba(16, 24, 38, 0.16);
}

.genre-anchor-band,
.genre-list,
.genre-cross,
.genre-related {
  padding: 36px 0 0;
}

.anchor-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.28);
  border-radius: var(--radius);
}

.anchor-nav a:hover,
.anchor-nav a:focus-visible {
  color: var(--berry);
  border-color: var(--berry);
}

.genre-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(16, 24, 38, 0.2);
  scroll-margin-top: 16px;
}

.genre-copy {
  min-width: 0;
}

.genre-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 2px;
}

.genre-copy h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.genre-copy > p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.genre-clue-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.genre-clue-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.genre-clue-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--berry);
  border-radius: 50%;
}

.genre-picks {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-radius: var(--radius);
}

.picks-title {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(16, 24, 38, 0.16);
}

.genre-picks ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.genre-picks li a {
  display: block;
}

.pick-name {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  border-bottom: 2px solid var(--berry);
  margin-bottom: 2px;
}

.genre-picks li a:hover .pick-name,
.genre-picks li a:focus-visible .pick-name {
  color: var(--berry);
}

.pick-meta {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
}

.cross-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.cross-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}

.cross-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.cross-tag {
  padding: 2px 9px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border-radius: 2px;
}

.cross-plus {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--berry);
}

.cross-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.cross-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--berry);
}

.cross-link:hover,
.cross-link:focus-visible {
  color: var(--berry);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related-grid > li {
  min-width: 0;
}

.related-grid a {
  display: block;
  padding: 16px 18px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-radius: var(--radius);
}

.related-grid a:hover,
.related-grid a:focus-visible {
  border-color: var(--berry);
}

.related-grid h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.related-grid p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 条目详情
   -------------------------------------------------------------------------- */

.verdict-section,
.work-head,
.work-chapters,
.serial-log,
.reading-order,
.related-works,
.page-links {
  padding: 34px 0 0;
}

.verdict-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.verdict-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-top: 3px solid var(--berry);
  border-radius: var(--radius);
}

.verdict-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border-radius: 2px;
}

.verdict-text {
  font-size: 15px;
  color: var(--ink-soft);
}

.work-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.work-cover {
  min-width: 0;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-soft);
}

.work-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.work-cover figcaption {
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--teal);
  border-top: 1px solid rgba(16, 24, 38, 0.16);
}

.work-facts {
  min-width: 0;
}

.facts-table {
  width: 100%;
  font-size: 15px;
  border: 1px solid rgba(16, 24, 38, 0.18);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.facts-table caption {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--teal);
  border-bottom: 1px solid rgba(16, 24, 38, 0.14);
}

.facts-table th,
.facts-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(16, 24, 38, 0.12);
}

.facts-table tr:last-child th,
.facts-table tr:last-child td {
  border-bottom: 0;
}

.facts-table th {
  width: 34%;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
  background: rgba(94, 122, 122, 0.1);
  white-space: nowrap;
}

.facts-table td {
  color: var(--ink-soft);
}

.facts-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--teal);
}

.facts-note a {
  font-family: var(--sans);
  font-weight: 700;
  border-bottom: 2px solid var(--berry);
}

.facts-note a:hover,
.facts-note a:focus-visible {
  color: var(--berry);
}

.chapter-block {
  padding: 22px 0;
  border-top: 1px solid rgba(16, 24, 38, 0.18);
}

.chapter-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.chapter-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.chapter-block > p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.chapter-points {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.chapter-points li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

.chapter-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--berry);
  border-radius: 50%;
}

.log-table td {
  color: var(--ink-soft);
}

.reading-order .step-list {
  max-width: var(--read);
}

.step-title {
  font-size: 17px;
  margin-bottom: 4px;
}

.step-link {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--berry);
}

.step-link:hover,
.step-link:focus-visible {
  color: var(--berry);
}

.related-works .related-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.related-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-radius: var(--radius);
}

.related-cover {
  min-width: 0;
  border: 1px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
}

.related-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.related-body {
  min-width: 0;
}

.related-name {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.related-genre {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 6px;
}

.related-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 2px solid var(--berry);
}

.related-link:hover,
.related-link:focus-visible {
  color: var(--berry);
}

.link-entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.link-entry {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-radius: var(--radius);
}

.link-entry a {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--berry);
}

.link-entry a:hover,
.link-entry a:focus-visible {
  color: var(--berry);
}

.link-entry p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 对照阅读
   -------------------------------------------------------------------------- */

.page-title-area {
  padding: 24px 0 26px;
  border-bottom: 2px solid var(--ink);
}

.anchor-bar {
  margin-top: 16px;
}

.anchor-bar ul,
.anchor-bar > a {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-bar a {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.28);
  border-radius: var(--radius);
}

.anchor-bar a:hover,
.anchor-bar a:focus-visible {
  color: var(--berry);
  border-color: var(--berry);
}

.compare-verdict,
.compare-covers,
.compare-table-section,
.choose-section,
.compare-covers ~ .related-entries,
.compare-table-section ~ .related-entries {
  padding: 36px 0 0;
}

.compare-verdict h2,
.compare-covers h2,
.compare-table-section h2,
.choose-section h2,
.related-entries h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 8px;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 15px;
  color: var(--ink-soft);
}

.compare-verdict .verdict-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.compare-verdict .verdict-item {
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num text";
  gap: 2px 10px;
}

.compare-verdict .verdict-num {
  grid-area: num;
}

.compare-verdict .verdict-item h3 {
  grid-area: title;
  font-size: 16px;
}

.compare-verdict .verdict-item p {
  grid-area: text;
  font-size: 14px;
  color: var(--ink-soft);
}

.compare-covers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.compare-cover-a,
.compare-cover-b {
  min-width: 0;
  padding: 16px 18px 20px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-radius: var(--radius);
}

.compare-cover-a {
  border-top: 3px solid var(--berry);
}

.compare-cover-b {
  border-top: 3px solid var(--teal);
}

.cover-figure {
  margin-bottom: 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.cover-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.compare-cover-a h3,
.compare-cover-b h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.cover-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0 0 14px;
  font-size: 14px;
}

.cover-facts dt {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--teal);
}

.cover-facts dd {
  margin: 0;
  color: var(--ink-soft);
}

.compare-table {
  min-width: 620px;
}

.compare-table tbody th {
  width: 26%;
  white-space: nowrap;
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.choose-short,
.choose-serial {
  min-width: 0;
  padding: 20px 22px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-radius: var(--radius);
}

.choose-short h3,
.choose-serial h3 {
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--berry);
}

.choose-short ul,
.choose-serial ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.choose-short li,
.choose-serial li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

.choose-short li::before,
.choose-serial li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--berry);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   pages · 阅读帮助
   -------------------------------------------------------------------------- */

.guide-categories,
.guide-steps,
.guide-faq,
.guide-glossary,
.guide-related {
  padding: 36px 0 0;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.category-item {
  min-width: 0;
}

.category-item a {
  display: block;
  min-height: 44px;
  padding: 16px 18px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-left: 3px solid var(--berry);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.category-item a:hover,
.category-item a:focus-visible {
  border-color: var(--berry);
  background: #fff;
}

.category-name {
  display: block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-desc {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
}

.guide-steps .step-list {
  max-width: var(--read);
}

.guide-steps .step-name {
  font-size: 17px;
  margin-bottom: 4px;
}

.guide-faq {
  max-width: var(--read);
}

.faq-item {
  border: 1px solid rgba(16, 24, 38, 0.18);
  border-radius: var(--radius);
  background: var(--paper-soft);
  margin-bottom: 10px;
}

.faq-item summary {
  position: relative;
  padding: 14px 44px 14px 18px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--berry);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid rgba(16, 24, 38, 0.14);
}

.faq-item p {
  padding: 14px 18px 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
}

.glossary-item {
  min-width: 0;
  padding: 14px 16px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-radius: var(--radius);
}

.glossary-item dt {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.glossary-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 收录与反馈
   -------------------------------------------------------------------------- */

.feedback-head {
  padding: 24px 0 30px;
  border-bottom: 2px solid var(--ink);
}

.feedback-head .head-figure {
  margin-top: 20px;
  max-width: 420px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-soft);
}

.feedback-head .head-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feedback-head .head-figure figcaption {
  padding: 9px 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--teal);
  border-top: 1px solid rgba(16, 24, 38, 0.16);
}

.feedback-scope,
.feedback-standard,
.feedback-process,
.feedback-checklist,
.related-entry {
  padding: 36px 0 0;
}

.feedback-scope h2,
.feedback-standard h2,
.feedback-process h2,
.feedback-checklist h2,
.related-entry h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 8px;
}

.feedback-scope > p,
.feedback-standard > p,
.feedback-process > p,
.feedback-checklist > p,
.related-entry > p {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.scope-list li {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-top: 3px solid var(--berry);
  border-radius: var(--radius);
}

.scope-list h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.scope-list p {
  font-size: 14px;
  color: var(--ink-soft);
}

.standard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--read);
}

.standard-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num text";
  gap: 2px 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
}

.standard-num {
  grid-area: num;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border-radius: 2px;
}

.standard-list h3 {
  grid-area: title;
  font-size: 16px;
}

.standard-list p {
  grid-area: text;
  font-size: 14px;
  color: var(--ink-soft);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.process-steps li {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.16);
  border-radius: var(--radius);
}

.process-steps .step-num {
  margin-bottom: 10px;
}

.process-steps h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.process-steps p {
  font-size: 14px;
  color: var(--ink-soft);
}

.process-steps p a {
  font-family: var(--sans);
  font-weight: 700;
  border-bottom: 2px solid var(--berry);
}

.process-steps p a:hover,
.process-steps p a:focus-visible {
  color: var(--berry);
}

.check-table {
  min-width: 560px;
}

.check-table tbody th {
  width: 24%;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.error-panel {
  max-width: 660px;
  padding: 32px 28px;
  background: var(--paper-soft);
  border: 2px solid var(--ink);
  border-top: 4px solid var(--berry);
  border-radius: var(--radius);
}

.error-panel h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 14px;
}

.error-lead {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--berry);
  border-color: var(--berry);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.error-hints {
  margin-top: 36px;
}

.error-hints h2 {
  font-size: 22px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.hint-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.hint-list a {
  display: block;
  min-height: 44px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid rgba(16, 24, 38, 0.18);
  border-left: 3px solid var(--berry);
  border-radius: var(--radius);
}

.hint-list a:hover,
.hint-list a:focus-visible {
  color: var(--berry);
  border-color: var(--berry);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    gap: 16px;
    padding: 0 20px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-mark {
    flex: 1 1 auto;
    font-size: 18px;
  }

  .home-main,
  .inner-main {
    padding: 0 20px 60px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 0 34px;
  }

  .hero-cover {
    max-width: 420px;
  }

  .help-feedback-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .catalog-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-head-figure {
    max-width: 420px;
  }

  .genre-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-title-block.guide-title {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-title-figure,
  .title-cover {
    max-width: 420px;
  }

  .work-head-grid {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand-mark {
    font-size: 17px;
    white-space: normal;
  }

  .home-main,
  .inner-main {
    padding: 0 16px 52px;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px 18px;
  }

  .hero-cover {
    max-width: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .section-head p {
    flex: 0 0 auto;
    min-width: 0;
    font-size: 13px;
  }

  .cover-card {
    flex: 0 0 148px;
  }

  .update-item {
    flex: 0 0 240px;
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .genre-index {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .chart-lines {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .compare-bridge {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .compare-covers-grid,
  .choose-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .step-item {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }

  .step-num {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .work-head-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .work-cover {
    max-width: 280px;
  }

  .facts-table th {
    white-space: normal;
  }

  .verdict-list,
  .compare-verdict .verdict-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-list,
  .related-grid,
  .entry-grid,
  .cross-list,
  .category-list,
  .scope-list,
  .hint-list,
  .glossary-list,
  .process-steps,
  .link-entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .standard-list li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 2px 10px;
  }

  .standard-num {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .filter-tags,
  .anchor-nav ul,
  .anchor-bar ul,
  .anchor-bar > a {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tag,
  .anchor-nav a,
  .anchor-bar a {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px 16px 24px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    padding: 14px 16px 24px;
  }

  .error-main {
    padding: 40px 16px 52px;
  }

  .error-panel {
    padding: 24px 20px;
  }

  .feedback-head .head-figure {
    max-width: none;
  }
}
