/* 心经漫画 · 单页翻阅（按需加载） */
.nj-mh-shell {
  width: 1006px;
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 0 36px;
  box-sizing: border-box;
  background: #fef8e8;
  min-height: calc(100vh - 200px);
}

.nj-mh-head {
  width: 980px;
  max-width: 96%;
  margin: 0 auto 10px;
  text-align: center;
}

.nj-mh-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: bold;
  color: #781012;
  letter-spacing: 0.06em;
}

.nj-mh-sub {
  margin: 0;
  font-size: 13px;
  color: #7a6550;
  line-height: 1.6;
}

.nj-mh-reader {
  width: 1000px;
  max-width: 98%;
  margin: 0 auto;
  background: #1a1a1a;
  border: 1px solid #d4c48a;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(80, 40, 20, 0.12);
}

.nj-mh-stage {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #222;
  cursor: pointer;
  user-select: none;
  padding: 4px 0 8px;
  box-sizing: border-box;
}

.nj-mh-stage img {
  display: block;
  /* 用满阅读区宽度，长图自然变高，小字更清晰；页面整体可滚动 */
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  background: #111;
}

.nj-mh-stage.is-loading::after {
  content: "加载中…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbb896;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.nj-mh-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.nj-mh-hit-prev { left: 0; }
.nj-mh-hit-next { right: 0; }

.nj-mh-hit:focus-visible {
  outline: 2px solid #e8c56a;
  outline-offset: -4px;
}

.nj-mh-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f7f0dc;
  border-top: 1px solid #e0d2a4;
}

.nj-mh-pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nj-mh-btn {
  appearance: none;
  border: 1px solid #c4ae78;
  background: #fffdf6;
  color: #5c3d1e;
  font-size: 14px;
  line-height: 1.2;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.nj-mh-btn:hover:not(:disabled) {
  background: #781012;
  border-color: #781012;
  color: #fff;
}

.nj-mh-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nj-mh-status {
  font-size: 14px;
  color: #5c3d1e;
  min-width: 7em;
  text-align: center;
}

.nj-mh-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #5c3d1e;
}

.nj-mh-jump input {
  width: 4.2em;
  padding: 6px 8px;
  border: 1px solid #c4ae78;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}

.nj-mh-hint {
  width: 980px;
  max-width: 96%;
  margin: 10px auto 0;
  font-size: 12px;
  color: #8a7460;
  text-align: center;
}

.nj-mh-links {
  width: 980px;
  max-width: 96%;
  margin: 18px auto 0;
  text-align: center;
  font-size: 13px;
}

.nj-mh-links a {
  color: #781012;
  margin: 0 8px;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .nj-mh-shell { width: 100%; padding: 12px 0 24px; }
  .nj-mh-toolbar { justify-content: center; }
  .nj-mh-hit { width: 32%; }
}
