/* ============================================
   书阁 · 纯净阅读模式（与博客排版完全分离）
   ============================================ */
:root {
  --nr-font-size: 18px;
  --nr-line-height: 1.95;
  --nr-max-width: 62rem;
  --nr-font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --nr-bg: #faf8f5;
  --nr-color: #3a3a3a;
  --nr-text-brightness: 96;
  --nr-paragraph-indent: 2em;
  --nr-topbar-height: 52px;
}

[data-theme='dark'] {
  --nr-bg: #141414;
  --nr-color: rgb(255 255 255 / calc(var(--nr-text-brightness) * 1%));
  --nr-quote-color: rgb(255 255 255 / calc(max(50, var(--nr-text-brightness) - 14) * 1%));
}

/* ---- 隐藏博客干扰元素 ---- */
body.novel-pure-layout #page-header,
body.novel-pure-layout #footer,
body.novel-pure-layout #rightside,
body.novel-pure-layout #aside-content,
body.novel-pure-layout #sidebar,
body.novel-pure-layout #an_music_bg,
body.novel-pure-layout #web_bg,
body.novel-pure-layout #universe,
body.novel-pure-layout #nest-bg,
body.novel-pure-layout .not-top-img,
body.novel-pure-layout #popup-window {
  display: none !important;
}

/* 正文内不展示大图 / 封面 / 图床 */
body.novel-pure-layout #article-container.novel-article img,
body.novel-pure-layout #article-container.novel-article figure,
body.novel-pure-layout #article-container.novel-article .fancybox,
body.novel-pure-layout #article-container.novel-article .gallery-group,
body.novel-pure-layout #article-container.novel-article .justified-gallery,
body.novel-pure-layout #article-container.novel-article .highlight-wrap img,
body.novel-pure-layout #post-top-cover,
body.novel-pure-layout .post-cover,
body.novel-pure-layout .pagination img {
  display: none !important;
}

/* 星空背景层（置于正文后方） */
#novel-starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.novel-pure-layout #body-wrap {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

body.novel-pure-layout.novel-fx-stars {
  --nr-color: rgb(255 255 255 / calc(var(--nr-text-brightness) * 1%));
  --nr-quote-color: rgb(255 255 255 / calc(max(50, var(--nr-text-brightness) - 14) * 1%));
}

body.novel-pure-layout.novel-fx-stars #web_bg,
body.novel-pure-layout.novel-fx-stars {
  background: transparent !important;
}

body.novel-pure-layout.novel-fx-stars {
  background: #0c0e18;
}

body.novel-pure-layout.novel-fx-stars #blog-container,
body.novel-pure-layout.novel-fx-stars #content-inner.layout,
body.novel-pure-layout.novel-fx-stars #post.novel-post-shell {
  position: relative;
  z-index: 1;
  background: transparent;
}

body.novel-pure-layout.novel-fx-stars #article-container.novel-article {
  position: relative;
  z-index: 2;
}

body.novel-pure-layout.novel-fx-stars #article-container.novel-article,
body.novel-pure-layout.novel-fx-stars #article-container.novel-article p,
body.novel-pure-layout.novel-fx-stars #article-container.novel-article h1,
body.novel-pure-layout.novel-fx-stars #article-container.novel-article h2,
body.novel-pure-layout.novel-fx-stars #article-container.novel-article h3,
body.novel-pure-layout.novel-fx-stars #article-container.novel-article h4,
body.novel-pure-layout.novel-fx-stars #article-container.novel-article li {
  color: var(--nr-color) !important;
}

body.novel-pure-layout.novel-fx-stars #article-container.novel-article blockquote {
  color: var(--nr-quote-color) !important;
  border-left-color: rgba(200, 220, 255, 0.35);
}

body.novel-pure-layout.novel-fx-motes #blog-container {
  background: var(--nr-bg);
}

/* 米黄纸感：阅读默认背景（不受全站夜间影响） */
body.novel-pure-layout.novel-bg-paper:not(.novel-fx-stars),
body.novel-pure-layout:not(.novel-fx-stars):not(.novel-bg-green):not(.novel-bg-white) {
  --nr-bg: #faf8f5;
  --nr-color: #3a3a3a;
}

body.novel-pure-layout.novel-bg-paper:not(.novel-fx-stars),
body.novel-pure-layout:not(.novel-fx-stars):not(.novel-bg-green):not(.novel-bg-white) {
  background-color: var(--nr-bg) !important;
}

body.novel-pure-layout:not(.novel-fx-stars) #blog-container,
body.novel-pure-layout:not(.novel-fx-stars) #body-wrap {
  background-color: var(--nr-bg);
}

/* 日间阅读：保持米黄纸感背景 */
html[data-theme='light'] body.novel-pure-layout.novel-bg-sepia:not(.novel-fx-stars) {
  --nr-bg: #f4ecd8;
  --nr-color: #4a3f35;
}

body.novel-pure-layout #body-wrap {
  padding-top: 0;
}

body.novel-pure-layout #blog-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: var(--nr-bg);
}

body.novel-pure-layout #post.novel-post-shell {
  position: relative;
  z-index: 1;
}

body.novel-pure-layout #content-inner.layout {
  max-width: 100%;
  padding: 0 clamp(0.5rem, 2vw, 1.25rem);
  margin: 0;
}

body.novel-pure-layout #post.novel-post-shell {
  margin: 0 auto;
  max-width: min(100%, calc(var(--nr-max-width) + 1.5rem));
  padding: calc(var(--nr-topbar-height) + 1rem) clamp(0.75rem, 2vw, 1.5rem) 6.5rem;
  background: transparent;
  box-shadow: none;
  border: none;
}

body.novel-pure-layout #post.novel-post-shell:hover {
  box-shadow: none;
}

/* ---- 正文排版 ---- */
body.novel-pure-layout #article-container.novel-article {
  font-family: var(--nr-font-family);
  font-size: var(--nr-font-size);
  line-height: var(--nr-line-height);
  max-width: var(--nr-max-width);
  margin: 0 auto;
  padding: 0;
  color: var(--nr-color);
  background: transparent;
}

body.novel-pure-layout #article-container.novel-article style {
  display: none !important;
}

body.novel-pure-layout #article-container.novel-article p {
  text-indent: var(--nr-paragraph-indent);
  margin-bottom: 0.85em;
}

body.novel-pure-layout #article-container.novel-article input[type="hidden"] {
  display: none !important;
}

body.novel-pure-layout #article-container.novel-article h1,
body.novel-pure-layout #article-container.novel-article h2,
body.novel-pure-layout #article-container.novel-article h3 {
  text-indent: 0;
  text-align: center;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

body.novel-pure-layout #article-container.novel-article .novel-chapter-head h2.novel-chapter-title {
  margin: 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
  font-weight: 700;
}

body.novel-pure-layout #article-container.novel-article .novel-chapter-head + .novel-epigraph {
  margin-top: 0.15rem;
}

body.novel-pure-layout #article-container.novel-article blockquote {
  text-indent: 0;
  border-left: 3px solid rgba(66, 90, 239, 0.35);
  padding-left: 1rem;
  color: var(--anzhiyu-secondtext);
}

/* 日间阅读：保持米黄纸感背景 */
html[data-theme='light'] body.novel-pure-layout.novel-bg-sepia:not(.novel-fx-stars) {
  --nr-bg: #f4ecd8;
  --nr-color: #4a3f35;
}

body.novel-pure-layout.novel-bg-sepia {
  --nr-bg: #f4ecd8;
  --nr-color: #4a3f35;
}

body.novel-pure-layout.novel-bg-green {
  --nr-bg: #e3eddf;
  --nr-color: #2a3d28;
}

body.novel-pure-layout.novel-bg-white {
  --nr-bg: #ffffff;
  --nr-color: #333333;
}

[data-theme='dark'] body.novel-pure-layout.novel-bg-white {
  --nr-bg: #0d0d0d;
  --nr-color: rgb(255 255 255 / calc(var(--nr-text-brightness) * 1%));
  --nr-quote-color: rgb(255 255 255 / calc(max(50, var(--nr-text-brightness) - 14) * 1%));
}

[data-theme='dark'] body.novel-pure-layout #article-container.novel-article,
[data-theme='dark'] body.novel-pure-layout #article-container.novel-article p,
[data-theme='dark'] body.novel-pure-layout #article-container.novel-article h1,
[data-theme='dark'] body.novel-pure-layout #article-container.novel-article h2,
[data-theme='dark'] body.novel-pure-layout #article-container.novel-article h3 {
  color: var(--nr-color) !important;
}

[data-theme='dark'] body.novel-pure-layout #article-container.novel-article blockquote {
  color: var(--nr-quote-color) !important;
}

/* ---- 阅读控件：仅正文阅读页 ---- */
body:not(.novel-pure-layout) #novel-reader-tools,
body:not(.novel-pure-layout) #novel-edge-toc,
body:not(.novel-pure-layout) #novel-top-bar,
body:not(.novel-pure-layout) #novel-reader-bar,
body:not(.novel-pure-layout) #novel-toc-drawer,
body:not(.novel-pure-layout) #novel-toc-overlay {
  display: none !important;
}

/* ---- 顶部导航栏（保留上方） ---- */
#novel-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nr-topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme='dark'] #novel-top-bar {
  background: rgba(20, 20, 20, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

#novel-top-bar.is-hidden {
  transform: translateY(-100%);
}

#novel-top-bar.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.novel-top-left,
.novel-top-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.novel-top-center {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 0.75rem;
}

.novel-top-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--anzhiyu-fontcolor);
  text-decoration: none !important;
  transition: background 0.2s;
  white-space: nowrap;
}

.novel-top-back:hover {
  background: rgba(66, 90, 239, 0.1);
  color: var(--anzhiyu-main);
}

.novel-top-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--anzhiyu-fontcolor);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.novel-top-sub {
  font-size: 11px;
  color: var(--anzhiyu-secondtext);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  margin-top: 1px;
}

.novel-top-btn {
  border: none;
  background: transparent;
  color: var(--anzhiyu-fontcolor);
  cursor: pointer;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.novel-top-btn:hover,
.novel-top-btn.is-active {
  background: rgba(66, 90, 239, 0.12);
  color: var(--anzhiyu-main);
}

/* ---- 目录侧栏 ---- */
#novel-toc-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#novel-toc-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

#novel-toc-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 220;
  width: min(320px, 88vw);
  height: 100vh;
  background: var(--anzhiyu-card-bg);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

#novel-toc-drawer.is-open {
  transform: translateX(0);
}

/* ---- 左侧目录拉出条（低存在感）---- */
#novel-edge-toc {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 199;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 18px;
  padding: 0.85rem 0;
  border: none;
  border-radius: 0 10px 10px 0;
  background: rgba(0, 0, 0, 0.04);
  color: var(--anzhiyu-gray);
  cursor: pointer;
  opacity: 0.42;
  transition: opacity 0.25s ease, width 0.25s ease, background 0.25s ease;
}

[data-theme='dark'] #novel-edge-toc {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
}

#novel-edge-toc:hover,
#novel-edge-toc:focus-visible {
  opacity: 0.92;
  width: 24px;
  background: rgba(0, 0, 0, 0.08);
}

[data-theme='dark'] #novel-edge-toc:hover,
[data-theme='dark'] #novel-edge-toc:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.novel-edge-toc-bar {
  width: 2px;
  height: 28px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.65;
}

.novel-edge-toc-text {
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1;
}

body.novel-toc-open #novel-edge-toc {
  opacity: 0;
  pointer-events: none;
}

/* ---- 右上角阅读工具 ---- */
#novel-reader-tools {
  position: fixed;
  top: calc(var(--nr-topbar-height) + 12px);
  right: clamp(12px, 3vw, 28px);
  z-index: 201;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

[data-theme='dark'] #novel-reader-tools {
  background: rgba(24, 24, 24, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.novel-tool-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--anzhiyu-fontcolor);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.novel-tool-btn:hover,
.novel-tool-btn.is-active {
  background: rgba(0, 0, 0, 0.06);
  color: var(--anzhiyu-fontcolor);
}

[data-theme='dark'] .novel-tool-btn:hover,
[data-theme='dark'] .novel-tool-btn.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.novel-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--anzhiyu-card-border);
  flex-shrink: 0;
}

.novel-toc-header h3 {
  margin: 0;
  font-size: 15px;
}

.novel-toc-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.novel-toc-item {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  text-decoration: none !important;
  color: var(--anzhiyu-fontcolor) !important;
  margin-bottom: 4px;
  transition: background 0.2s;
}

.novel-toc-item:hover {
  background: rgba(66, 90, 239, 0.08);
}

.novel-toc-item.is-current {
  background: rgba(66, 90, 239, 0.14);
  color: var(--anzhiyu-main) !important;
  font-weight: 600;
}

.novel-toc-item-index {
  font-size: 11px;
  color: var(--anzhiyu-secondtext);
  display: block;
  margin-bottom: 2px;
}

.novel-epigraph-author {
  font-size: calc(var(--nr-font-size) * 0.92);
  line-height: 1.6;
  color: var(--nr-quote-color, var(--anzhiyu-secondtext));
  text-align: right;
  text-indent: 0 !important;
  margin: 0.35rem 0 0;
}

.novel-chapter-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 0.5rem;
  padding: 0;
  border: none;
}

/* 卷名/章名：fit-content 子块 + 全宽父级，与下方横线、名言共用页面中轴 */
.novel-chapter-volume,
.novel-chapter-title {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
  text-indent: 0 !important;
  letter-spacing: normal;
}

body.novel-pure-layout #article-container.novel-article .novel-chapter-head p.novel-chapter-volume {
  text-indent: 0 !important;
  margin: 0 0 0.45rem;
}

.novel-chapter-volume {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--anzhiyu-secondtext);
  opacity: 0.88;
}

.novel-chapter-title {
  font-size: clamp(1.55rem, 3.5vw, 1.95rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--nr-color, var(--anzhiyu-fontcolor));
  border: none;
}

.novel-chapter-head::after {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 2.75rem;
  height: 1px;
  margin: 0.9rem auto 0;
  background: color-mix(in srgb, var(--anzhiyu-secondtext) 35%, transparent);
}

.novel-epigraph {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: min(36rem, 100%);
  margin: 0 auto 2rem;
  padding: 0 0.5rem;
  text-align: center;
}

.novel-epigraph-quote {
  margin: 0;
  width: 100%;
  text-align: center;
  text-indent: 0 !important;
  font-size: calc(var(--nr-font-size) * 0.98);
  line-height: 1.85;
  font-style: italic;
  color: var(--nr-quote-color, var(--anzhiyu-secondtext));
}

body.novel-pure-layout #article-container.novel-article .novel-epigraph p {
  text-indent: 0 !important;
}


body.novel-pure-layout #article-container.novel-article h2:not(.novel-chapter-title) {
  margin-top: 2rem;
}

.novel-toc-item-title {
  font-size: 13px;
  line-height: 1.4;
}

.novel-toc-volume + .novel-toc-volume {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--anzhiyu-card-border);
}

.novel-toc-volume-title {
  padding: 0.35rem 1rem 0.5rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--anzhiyu-main);
  letter-spacing: 0.03em;
}

.novel-toc-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--anzhiyu-card-border);
  flex-shrink: 0;
}

.novel-toc-footer a {
  display: block;
  text-align: center;
  padding: 0.6rem;
  border-radius: 8px;
  background: rgba(66, 90, 239, 0.1);
  color: var(--anzhiyu-main) !important;
  text-decoration: none !important;
  font-size: 13px;
}

/* ---- 底部设置栏 ---- */
#novel-reader-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 105;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(66, 90, 239, 0.12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 24px);
  flex-wrap: wrap;
  justify-content: center;
}

[data-theme='dark'] #novel-reader-bar {
  background: rgba(24, 23, 29, 0.92);
  border-color: rgba(242, 185, 75, 0.15);
}

#novel-reader-bar.is-collapsed .nr-panel {
  display: none;
}

.nr-quick {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nr-size-label {
  min-width: 1.5rem;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--anzhiyu-secondtext);
  user-select: none;
}

.nr-btn-font {
  min-width: 2rem;
  font-weight: 700;
}

#novel-reader-bar.is-collapsed {
  padding: 8px 12px;
}

#novel-reader-bar:not(.is-collapsed) {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  border-radius: 16px;
  padding: 10px 12px;
}

#novel-reader-bar:not(.is-collapsed) .nr-quick {
  justify-content: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--anzhiyu-card-border);
}

#novel-reader-bar.is-dismissed {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
  visibility: hidden;
}

.nr-btn {
  border: none;
  background: transparent;
  color: var(--anzhiyu-fontcolor);
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nr-btn:hover:not(:disabled) {
  background: rgba(66, 90, 239, 0.12);
  color: var(--anzhiyu-main);
}

.nr-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nr-btn-icon {
  min-width: 32px;
  font-weight: 700;
  font-size: 15px;
}

.nr-divider {
  width: 1px;
  height: 20px;
  background: var(--anzhiyu-card-border);
  flex-shrink: 0;
}

.nr-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.nr-select-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nr-label {
  font-size: 12px;
  color: var(--anzhiyu-secondtext);
}

.nr-select {
  border: 1px solid var(--anzhiyu-card-border);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  background: var(--anzhiyu-card-bg);
  color: var(--anzhiyu-fontcolor);
  cursor: pointer;
  max-width: 88px;
}

.nr-brightness-group {
  min-width: 168px;
}

.nr-brightness-label {
  min-width: 2.5rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--anzhiyu-secondtext);
  text-align: right;
  user-select: none;
}

.nr-range {
  width: 88px;
  height: 4px;
  margin: 0;
  accent-color: var(--anzhiyu-main);
  cursor: pointer;
}

/* ---- 上下章导航（紧凑） ---- */
#novel-chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--nr-max-width);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--anzhiyu-card-border);
}

.novel-nav-spacer {
  flex: 0 0 auto;
  min-width: 0;
}

.novel-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 46%;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  text-decoration: none !important;
  color: var(--anzhiyu-fontcolor);
  transition: color 0.2s ease, background 0.2s ease;
}

.novel-nav-link:hover {
  color: var(--anzhiyu-main);
  background: rgba(66, 90, 239, 0.06);
}

.novel-nav-prev {
  text-align: left;
}

.novel-nav-next {
  margin-left: auto;
  text-align: right;
}

.novel-nav-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.novel-nav-label {
  font-size: 11px;
  color: var(--anzhiyu-secondtext);
  line-height: 1.3;
  white-space: nowrap;
}

.novel-nav-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--anzhiyu-fontcolor);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
}

.novel-nav-next .novel-nav-title {
  text-align: right;
}

.novel-nav-arrow {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--anzhiyu-main);
  opacity: 0.75;
  line-height: 1;
}

.novel-nav-link:hover .novel-nav-arrow {
  opacity: 1;
}

@media (max-width: 768px) {
  body.novel-pure-layout #post.novel-post-shell {
    padding: calc(var(--nr-topbar-height) + 1.25rem) clamp(1.25rem, 6vw, 2rem) 5.5rem;
  }

  body.novel-pure-layout #content-inner.layout {
    padding: 0 clamp(0.85rem, 4vw, 1.5rem);
  }

  body.novel-pure-layout #article-container.novel-article {
    padding: 0 clamp(0.5rem, 2vw, 1rem);
  }

  .novel-top-back span {
    display: none;
  }

  #novel-edge-toc {
    width: 14px;
    opacity: 0.35;
  }

  #novel-reader-tools {
    top: calc(var(--nr-topbar-height) + 8px);
    right: 10px;
    flex-direction: row;
    border-radius: 999px;
    padding: 4px 6px;
  }

  .novel-tool-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
  }

  #novel-reader-bar {
    bottom: 14px;
    padding: 6px 8px;
  }

  .nr-select-group .nr-label {
    display: none;
  }

  #novel-chapter-nav {
    margin-top: 1.5rem;
    gap: 0.5rem;
  }

  .novel-nav-title {
    max-width: 8rem;
  }
}
