    /* =========================================================
       Token system
       ========================================================= */
    :root {
      --bg: #080f12;
      --surface: #0c1418;
      --fg: #d2c4a8;
      --muted: #8a7e6b;
      --border: #1e3d32;
      --accent: #b8860b;
      --accent-glow: rgba(184, 134, 11, 0.35);

      --font-display: 'Cinzel', 'Times New Roman', Georgia, serif;
      --font-body: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;

      --tentacle-left: url('left.png');
      --tentacle-right: url('right.png');
    }

    /* =========================================================
       Reset + base
       ========================================================= */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html {
      scroll-behavior: smooth;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body {
      background: var(--bg);
      color: var(--fg);
      font-family: var(--font-body);
      font-size: 18px;
      line-height: 1.9;
      min-height: 100vh;
      overflow-x: hidden;
      position: relative;
    }

    /* =========================================================
       Loading overlay — ink diffusion 1.5s
       ========================================================= */
    #ink-loader {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: all;
      transition: opacity 0.8s ease, visibility 0.8s ease;
    }
    #ink-loader.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    #ink-loader .ink-blob {
      width: 120px;
      height: 120px;
      background: radial-gradient(circle, rgba(30,61,50,0.9) 0%, rgba(8,15,18,0) 70%);
      border-radius: 50%;
      animation: inkPulse 1.5s ease-out forwards;
    }
    @keyframes inkPulse {
      0%   { transform: scale(0.2); opacity: 1; }
      60%  { transform: scale(2.5); opacity: 0.6; }
      100% { transform: scale(4);   opacity: 0; }
    }

    /* =========================================================
       Noise texture — 6% opacity parchment
       ========================================================= */
    .noise-overlay {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      opacity: 0.06;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      background-size: 256px 256px;
      background-repeat: repeat;
    }

    /* =========================================================
       Tentacles — fixed, full height, no parallax
       ========================================================= */
    .tentacle {
      position: fixed;
      top: 0;
      width: clamp(80px, 12vw, 180px);
      height: 100vh;
      z-index: 2;
      pointer-events: none;
      background-repeat: no-repeat;
      background-size: 100% 100%;
      background-position: center;
      opacity: 0.4;
      filter: brightness(0.7) contrast(1.1);
    }
    .tentacle--left {
      left: 0;
      background-image: var(--tentacle-left);

      transform-origin: left center;
    }
    .tentacle--right {
      right: 0;
      background-image: var(--tentacle-right);

      transform-origin: right center;
    }

    /* =========================================================
       Custom scrollbar — 6px dark gold, transparent track
       ========================================================= */
    ::-webkit-scrollbar {
      width: 6px;
    }
    ::-webkit-scrollbar-track {
      background: transparent;
    }
    ::-webkit-scrollbar-thumb {
      background: var(--accent);
      border-radius: 3px;
      box-shadow: inset 0 0 2px rgba(0,0,0,0.4);
    }
    ::-webkit-scrollbar-thumb:hover {
      background: #c9940c;
    }
    /* Firefox */
    * {
      scrollbar-width: thin;
      scrollbar-color: var(--accent) transparent;
    }

    /* =========================================================
       Back button — fixed top-left, semi-transparent
       ========================================================= */
    .back-btn {
      position: fixed;
      top: 24px;
      left: 24px;
      z-index: 100;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      background: rgba(8, 15, 18, 0.6);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(184, 134, 11, 0.3);
      border-radius: 8px;
      color: var(--accent);
      font-family: var(--font-display);
      font-size: 13px;
      letter-spacing: 0.08em;
      text-decoration: none;
      transition: background 0.3s, border-color 0.3s;
      cursor: pointer;
    }
    .back-btn:hover {
      background: rgba(8, 15, 18, 0.85);
      border-color: var(--accent);
    }
    .back-btn svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* =========================================================
       Eye decoration — top-right, 12% opacity
       ========================================================= */
    .eye-deco {
      position: fixed;
      top: 20px;
      right: 40px;
      z-index: 2;
      pointer-events: none;
      opacity: 0.12;
      width: clamp(60px, 8vw, 100px);
      height: auto;
    }

    /* =========================================================
       Main content wrapper
       ========================================================= */
    .reader-wrap {
      position: relative;
      z-index: 3;
      max-width: 100%;
      margin: 0 auto;
      padding: 120px 24px 80px;
    }

    /* =========================================================
       Chapter titles + trident divider
       ========================================================= */
    .chapter-title {
      font-family: var(--font-display);
      font-size: clamp(28px, 3.5vw, 42px);
      font-weight: 600;
      color: var(--accent);
      letter-spacing: -0.01em;
      margin: 80px 0 24px;
      position: relative;

      display: block;
      text-align: center;
    }
    .chapter-title:first-child {
      margin-top: 0;
    }

    .trident-divider {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin: 32px 0 40px;
      position: relative;
    }
    .trident-divider::before,
    .trident-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(to right, transparent, var(--border), transparent);
    }
    .trident-divider .trident-icon {
      width: 28px;
      height: 28px;
      flex-shrink: 0;
      filter: drop-shadow(0 0 8px rgba(184, 134, 11, 0.7)) drop-shadow(0 0 16px rgba(184, 134, 11, 0.4));
    }
    .trident-divider .trident-icon svg {
      width: 100%;
      height: 100%;
      stroke: var(--accent);
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* =========================================================
       Body text
       ========================================================= */
    .prose {
      font-size: 18px;
      line-height: 1.9;
      color: var(--fg);
      max-width: 65%;
      margin: 0 auto;
      text-align: justify;
      text-indent: 2em;
    }
    .prose p {
      margin-bottom: 1.6em;
    }
    .prose p:last-child {
      margin-bottom: 0;
    }
    .prose .lead {
      font-size: 1.15em;
      color: #e8dcc6;
      text-indent: 0;
      margin-bottom: 1.8em;
      line-height: 2;
    }

    /* =========================================================
       Chapter drop-cap (optional flourish)
       ========================================================= */
    .drop-cap::first-letter {
      float: left;
      font-family: var(--font-display);
      font-size: 3.8em;
      line-height: 0.85;
      padding-right: 12px;
      padding-top: 6px;
      color: var(--accent);
      font-weight: 700;
    }

    /* =========================================================
       Blockquote — in-world text
       ========================================================= */
    .inscription {
      border-left: 2px solid var(--border);
      padding: 16px 24px;
      margin: 32px 0;
      background: rgba(30, 61, 50, 0.08);
      font-style: italic;
      color: #b8a88a;
      text-indent: 0;
    }

    /* =========================================================
       Corner runes — SVG in corners
       ========================================================= */
    .corner-rune {
      position: fixed;
      z-index: 2;
      pointer-events: none;
      opacity: 0.18;
      width: clamp(40px, 6vw, 80px);
      height: auto;
    }
    .corner-rune--tl { top: 16px; left: 16px; }
    .corner-rune--tr { top: 16px; right: 16px; transform: scaleX(-1); }
    .corner-rune--bl { bottom: 16px; left: 16px; transform: scaleY(-1); }
    .corner-rune--br { bottom: 16px; right: 16px; transform: scale(-1, -1); }
    .corner-rune svg {
      width: 100%;
      height: 100%;
      stroke: var(--accent);
      fill: none;
      stroke-width: 1.5;
    }

    /* =========================================================
       Responsive — mobile compact
       ========================================================= */
    @media (max-width: 768px) {
      .reader-wrap {
        max-width: 85%;
        padding: 100px 16px 60px;
      }
      .tentacle {
        width: 50px;
        opacity: 0.5;
      }
      .prose {
        font-size: 16px;
        line-height: 1.85;
        max-width: 100%;
      }
      .chapter-title {
        font-size: 26px;
        margin: 56px 0 18px;
      }
      .back-btn {
        top: 14px;
        left: 14px;
        padding: 8px 14px;
        font-size: 12px;
      }
      .eye-deco {
        right: 16px;
        top: 14px;
        width: 50px;
      }
      .corner-rune {
        width: 32px;
      }
    }

    @media (max-width: 480px) {
      .reader-wrap {
        max-width: 92%;
        padding: 90px 12px 48px;
      }
      .tentacle {
        width: 36px;
        opacity: 0.35;
      }
      .prose {
        font-size: 15px;
        line-height: 1.8;
      }
      .chapter-title {
        font-size: 22px;
      }
    }

    /* =========================================================
       Selection highlight
       ========================================================= */
    ::selection {
      background: rgba(184, 134, 11, 0.3);
      color: var(--fg);
    }

    /* =========================================================
       Radial glow behind text block
       ========================================================= */
    .reader-wrap::before {
      content: '';
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 70vw;
      height: 70vh;
      background: radial-gradient(ellipse at center, rgba(10, 20, 24, 0.9) 0%, rgba(8, 15, 18, 0) 70%);
      pointer-events: none;
      z-index: -1;
    }

/* =========================================================
   小说列表页
   ========================================================= */
.novel-list {
  max-width: 60%;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.novel-list__header {
  text-align: center;
  margin-bottom: 60px;
}
.novel-list__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.novel-list__subtitle {
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.novel-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.novel-card {
  display: block;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.novel-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.novel-card__title-zh {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
.novel-card__title-en {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.novel-card__translator {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* =========================================================
   响应式 — 列表页
   ========================================================= */
@media (max-width: 768px) {
  .novel-list {
    max-width: 92%;
    padding: 100px 16px 60px;
  }
  .novel-list__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .novel-card {
    padding: 20px 18px;
  }
}

/* =========================================================
   阅读页布局
   ========================================================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--bg);
  border-right: 1px solid var(--border);
  z-index: 50;
  padding: 24px 16px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.sidebar.is-open {
  transform: translateX(0);
}
.sidebar__back {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 20px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 6px;
  transition: background 0.3s;
}
.sidebar__back:hover {
  background: rgba(184, 134, 11, 0.1);
}
.sidebar__toc {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-item {
  display: block;
  padding: 8px 12px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toc-item:hover {
  background: rgba(184, 134, 11, 0.08);
  color: var(--accent);
}
.toc-item.is-current {
  color: var(--accent);
  font-weight: 600;
  background: rgba(184, 134, 11, 0.12);
}
.sidebar__toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(184, 134, 11, 0.4);
  border-radius: 8px;
  background: rgba(8, 15, 18, 0.7);
  backdrop-filter: blur(8px);
  color: var(--accent);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.sidebar__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 45;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.sidebar__overlay.is-open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.reader-main {
  position: relative;
  z-index: 3;
  max-width: 100%;
  margin: 0 auto;
  padding: 120px 0 80px;
}
.reader-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}
.reader-loading .ink-blob {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(30,61,50,0.9) 0%, rgba(8,15,18,0) 70%);
  border-radius: 50%;
  animation: inkPulse 1.5s ease-out forwards;
}
@keyframes inkPulse {
  0%   { transform: scale(0.2); opacity: 1; }
  60%  { transform: scale(2.5); opacity: 0.6; }
  100% { transform: scale(4);   opacity: 0; }
}
.reader-content {
  min-height: 200px;
}
.reader-content .not-found,
.reader-content .error {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: 16px;
}

.reader-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.reader-bottom-nav__prev,
.reader-bottom-nav__next {
  padding: 10px 20px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 6px;
  transition: background 0.3s, border-color 0.3s;
}
.reader-bottom-nav__prev:hover,
.reader-bottom-nav__next:hover {
  background: rgba(184, 134, 11, 0.1);
  border-color: var(--accent);
}
.reader-bottom-nav__sep {
  color: var(--muted);
  font-size: 12px;
}
.reader-bottom-nav__prev.is-disabled,
.reader-bottom-nav__next.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* 桌面端：sidebar 默认收起，toggle 始终可见 */
@media (min-width: 769px) {
  .sidebar__toggle {
    display: flex !important;
    left: 8px;
  }
  .sidebar__overlay {
    display: none !important;
  }
  .reader-main.is-sidebar-open {
    margin-left: 260px;
  }
}

/* 手机端 */
@media (max-width: 768px) {
  .sidebar__toggle {
    display: flex;
  }
  .reader-main {
    max-width: 92%;
    padding: 100px 16px 60px;
  }
  .reader-bottom-nav__prev,
  .reader-bottom-nav__next {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* 小屏 */
@media (max-width: 480px) {
  .reader-main {
    max-width: 95%;
    padding: 90px 12px 48px;
  }
}

/* =========================================================
   Markdown 渲染后元素样式
   ========================================================= */
.reader-content .chapter-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin: 60px 0 20px;
  text-align: center;
}
.reader-content .chapter-title--h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 40px 0 16px;
}
.reader-content .trident-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 32px;
}
.reader-content .trident-divider::before,
.reader-content .trident-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}
.reader-content .trident-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
}
.reader-content .inscription {
  border-left: 2px solid var(--border);
  padding: 14px 20px;
  margin: 24px 0;
  background: rgba(30, 61, 50, 0.08);
  font-style: italic;
  color: #b8a88a;
}
.reader-content .footnotes {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.reader-content .footnotes ol {
  padding-left: 20px;
}
.reader-content .footnotes li {
  margin-bottom: 8px;
}
.reader-content .footnotes a {
  color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   脚注引用脉动动画 — "被诅咒的活文字"
   ========================================================= */
@keyframes footnote-breathe {
  0%, 100% {
    opacity: 0.55;
    text-shadow: 0 0 3px var(--accent);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 8px var(--accent), 0 0 14px rgba(184, 134, 11, 0.35);
  }
}

sup a[id^="fnref-"] {
  color: var(--accent);
  animation: footnote-breathe 3.2s ease-in-out infinite;
}

/* 页脚脚注列表中的数字保持静止，仅引用标注脉动 */
.reader-content .footnotes li > a {
  animation: none;
}

/* 正文 prose（注入到 .reader-content 内） */
.reader-content .prose {
  font-size: 18px;
  line-height: 1.9;
  color: var(--fg);
  max-width: 65%;
  margin: 0 auto;
  text-align: justify;
}
.reader-content .prose p {
  margin-bottom: 1.6em;
}
.reader-content .prose p:last-child {
  margin-bottom: 0;
}
.reader-content .prose .lead {
  font-size: 1.15em;
  color: #e8dcc6;
  text-indent: 0;
  margin-bottom: 1.8em;
  line-height: 2;
}
.reader-content .prose .lead::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.8em;
  line-height: 0.85;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--accent);
  font-weight: 700;
}