@import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-tc-web/style.css');
@import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/style.css');
@import url('https://fonts.googleapis.com/css2?family=LXGW+WenKai+TC:wght@300;400;700&family=Noto+Serif+TC:wght@400;600;700;900&family=Noto+Serif+SC:wght@400;600;700;900&display=swap');

:root {
  /* 繁簡全面兼容字體棧，徹底根除缺字回退默認字體問題：
     1. 首選兼顧繁簡的 LXGW WenKai TC / LXGW WenKai 及 Noto Serif TC
     2. 徹底移除僅支持簡體 GB2312 的 Ma Shan Zheng 和 ZCOOL XiaoWei，避免繁體字或「〇」缺失回退宋體
     3. 完善 Windows/Mac/iOS/Android 本地繁體後備字體棧 (Microsoft JhengHei, DFKai-SB, PMingLiU, Songti TC) */
  --font-serif: "Noto Serif TC", "Noto Serif CJK TC", "Source Han Serif TC", "Source Han Serif TW", "Songti TC", "PingFang TC", "Microsoft JhengHei", "PMingLiU", "MingLiU", "Noto Serif SC", "SimSun", serif;
  --font-calligraphy: "LXGW WenKai TC", "LXGW WenKai Mono TC", "LXGW WenKai", "LXGW WenKai Mono", "Kaiti TC", "DFKai-SB", "BiauKai", "STKaiti", "KaiTi", "Microsoft JhengHei", cursive, serif;
  --font-brush: "LXGW WenKai TC", "LXGW WenKai Mono TC", "LXGW WenKai", "LXGW WenKai Mono", "Kaiti TC", "DFKai-SB", "BiauKai", "STKaiti", "KaiTi", "Microsoft JhengHei", cursive, serif;
  --font-deco: "Noto Serif TC", "LXGW WenKai TC", "Source Han Serif TC", "Songti TC", "PingFang TC", "Microsoft JhengHei", serif;
  --font-mono: "SF Mono", Consolas, Menlo, Monaco, "Courier New", monospace;

  --paper: #f6eedb;
  --paper-rgb: 246, 238, 219;
  --card: rgba(253, 249, 241, 0.98);
  --card-dark: #221b14;
  --ink: #2a221a;
  --ink2: #5a4b37;
  --muted: #8c7b60;
  --red: #b8432a;
  --red-dark: #8c2915;
  --gold: #b8924a;
  --gold-light: #dfc17b;
  --gold-bg: rgba(184, 146, 74, 0.12);
  --line: #ded2bd;
  --tp1: rgba(212, 175, 55, 0.45);
  --tp2: rgba(196, 110, 110, 0.4);
  --tp3: rgba(120, 150, 110, 0.4);
  --header-h: 52px;
  --bottom-bar-h: 56px;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.42);
  --radius-card: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #14100c;
  font-family: var(--font-serif);
  color: var(--ink);
  width: 100%;
  max-width: 100vw;
}

body {
  position: relative;
  background-image: 
    radial-gradient(at 0% 0%, rgba(184, 146, 74, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(184, 67, 42, 0.15) 0px, transparent 50%);
}

/* ==================== PAGES ==================== */
.page {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s cubic-bezier(0.2, 0.8, 0.2, 1), transform .45s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateX(40px);
  z-index: 1;
  overflow: hidden;
}

.page.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
}

.page.out-left {
  opacity: 0;
  transform: translateX(-40px);
  visibility: hidden;
}

.page.out-right {
  opacity: 0;
  transform: translateX(40px);
  visibility: hidden;
}

.page-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: sepia(.18) contrast(1.05) brightness(0.65);
  transform: scale(1.04);
  transition: transform 6s ease-out;
}

.page.active .page-bg {
  transform: scale(1);
}

.page-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 15, 10, 0.72), rgba(20, 15, 10, 0.52) 50%, rgba(20, 15, 10, 0.76));
}

/* ==================== TOP BAR ==================== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.94), rgba(20, 15, 10, 0.65) 75%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 146, 74, 0.15);
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ebdcb9;
  font-size: 13px;
  text-decoration: none;
  background: rgba(45, 35, 25, 0.75);
  border: 1px solid rgba(184, 146, 74, 0.4);
  padding: 5px 14px;
  border-radius: 20px;
  transition: all .2s ease;
  font-family: var(--font-serif);
  white-space: nowrap;
}

.btn-back-home:hover, .btn-back-home:active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-1px);
}

.top-center-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.top-title-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 35, 25, 0.85);
  color: #f5ecd9;
  padding: 5px 18px;
  border-radius: 22px;
  font-size: 13.5px;
  letter-spacing: .08em;
  border: 1px solid rgba(184, 146, 74, 0.4);
  font-family: var(--font-deco);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.top-title-pill:hover, .top-title-pill:active {
  background: rgba(65, 50, 36, 0.95);
  border-color: var(--gold);
}

.top-title-pill .pill-num {
  color: var(--gold);
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-toc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(45, 35, 25, 0.75);
  color: #ebdcb9;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(184, 146, 74, 0.4);
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font-serif);
  white-space: nowrap;
}

.btn-toc-toggle:hover, .btn-toc-toggle:active {
  background: var(--gold);
  color: #1a1510;
  border-color: var(--gold);
}

/* ==================== COVER PAGE ==================== */
.cover-page .cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: sepia(.2) contrast(1.08) brightness(0.6);
}

.cover-page .cover-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 10, .4), rgba(20, 15, 10, .75) 60%, rgba(20, 15, 10, .92));
}

.cover-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f7eedb;
  padding: 0 24px;
  width: 100%;
  max-width: 100%;
}

.cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  letter-spacing: .25em;
  text-transform: uppercase;
  background: rgba(184, 146, 74, 0.16);
  border: 1px solid rgba(184, 146, 74, 0.45);
  color: var(--gold-light);
  margin-bottom: 18px;
  font-family: var(--font-deco);
}

.cover-inner h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6.5vw, 68px);
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.25;
  text-shadow: 0 6px 36px rgba(0, 0, 0, .7);
  margin-bottom: 14px;
  color: #fffaf0;
}

.cover-line {
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 16px;
}

.cover-sub {
  font-family: var(--font-calligraphy);
  font-size: clamp(16px, 2.5vw, 25px);
  letter-spacing: .2em;
  color: #ebdcb9;
  margin-bottom: 24px;
}

.cover-meta-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: .15em;
  color: #c9b992;
  margin-bottom: 34px;
  max-width: 100%;
}

.cover-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cover-seal {
  position: absolute;
  top: 10%;
  right: 9%;
  width: 82px;
  height: 82px;
  border: 3px solid var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brush);
  color: var(--red);
  font-size: 19px;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-8deg);
  opacity: .9;
  background: rgba(246, 238, 219, 0.12);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 16px rgba(184, 67, 42, 0.25);
  z-index: 4;
}

.cover-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: #c9b992;
  font-size: 12.5px;
  letter-spacing: .25em;
  animation: bob 2.2s ease-in-out infinite;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(45, 35, 25, 0.4);
  border: 1px solid rgba(184, 146, 74, 0.25);
  white-space: nowrap;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ==================== CONTENT CARD ==================== */
.page-card {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: calc(var(--header-h) + 10px) auto 0;
  height: calc(100vh - var(--header-h) - 78px);
  height: calc(100dvh - var(--header-h) - 78px);
  width: calc(100% - 120px);
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(222, 210, 189, 0.8);
}

/* Card Header */
.ph {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 18px 28px 14px;
  border-bottom: 2px solid var(--ink);
  position: relative;
  background: linear-gradient(180deg, rgba(184, 146, 74, 0.12), transparent);
  flex-shrink: 0;
  width: 100%;
}

.ph::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 130px;
  height: 2.5px;
  background: var(--red);
}

.ph-big {
  font-size: clamp(42px, 5.8vw, 72px);
  font-weight: 900;
  line-height: .85;
  color: var(--red);
  text-shadow: 2px 2px 0 rgba(184, 67, 42, 0.15);
  font-family: var(--font-serif);
  flex-shrink: 0;
}

.ph-meta {
  flex: 1;
  padding-bottom: 2px;
  min-width: 0;
}

.ph-week {
  font-family: var(--font-calligraphy);
  font-size: 16.5px;
  color: var(--gold);
  letter-spacing: .15em;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-stamp {
  width: 56px;
  height: 56px;
  border: 2.5px solid var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brush);
  color: var(--red);
  font-size: 13.5px;
  line-height: 1.2;
  text-align: center;
  transform: rotate(5deg);
  opacity: .85;
  flex-shrink: 0;
  background: rgba(253, 249, 241, 0.7);
}

.ph-num {
  font-size: 46px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  font-family: var(--font-deco);
  flex-shrink: 0;
}

.ph-num + .ph-title {
  padding-bottom: 6px;
  font-size: 22px;
}

/* Card View Mode Tabs */
.card-nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 24px;
  background: rgba(246, 238, 219, 0.65);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.card-nav-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(222, 210, 189, 0.8);
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
  font-family: var(--font-serif);
  flex-shrink: 0;
}

.tab-btn:hover {
  background: rgba(184, 146, 74, 0.15);
  border-color: var(--gold);
}

.tab-btn.active {
  background: var(--ink);
  color: #fffaf0;
  border-color: var(--ink);
}

/* Page Content Scrollable Container */
.page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden; /* STRICT: No unwanted horizontal sliding */
  width: 100%;
  max-width: 100%;
  padding: 22px 30px 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  -webkit-overflow-scrolling: touch;
}

.page-content::-webkit-scrollbar {
  width: 6px;
}

.page-content::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

.tab-pane {
  display: none;
  width: 100%;
  max-width: 100%;
  animation: fadeIn .25s ease-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Prose Typography */
.page-content p {
  margin-bottom: 1.1em;
  text-align: justify;
  text-justify: inter-ideograph;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink);
  word-break: break-word;
}

.lead-drop::first-letter {
  font-size: 2.5em;
  float: left;
  line-height: .92;
  padding: 2px 8px 0 0;
  color: var(--red);
  font-weight: 900;
  font-family: var(--font-serif);
}

.sub-h {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--red);
  margin: 28px 0 12px;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3.5px solid var(--gold);
  padding-left: 10px;
  flex-wrap: wrap;
  font-family: var(--font-calligraphy);
}

.sd {
  color: var(--gold);
  font-size: 13px;
  font-family: var(--font-mono);
}

/* Quote Callout */
.quote-callout {
  margin: 18px 0;
  padding: 14px 20px;
  background: rgba(184, 146, 74, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-calligraphy);
  font-size: 16px;
  color: var(--ink2);
  line-height: 1.8;
  word-break: break-word;
}

/* ==================== DESKTOP ARROWS & DOTS ==================== */
.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(253, 249, 241, 0.9);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
  z-index: 45;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.nav-arrow:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-50%) scale(1.08);
}

.nav-arrow.prev { left: 16px; }
.nav-arrow.next { right: 16px; }

.nav-arrow:disabled {
  opacity: .2;
  cursor: default;
  pointer-events: none;
}

.dots-nav {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  gap: 8px;
  background: rgba(35, 27, 20, 0.85);
  padding: 7px 16px;
  border-radius: 22px;
  border: 1px solid rgba(184, 146, 74, 0.3);
  backdrop-filter: blur(8px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(235, 220, 185, 0.35);
  cursor: pointer;
  transition: all .22s ease;
  padding: 0;
}

.dot:hover {
  background: rgba(235, 220, 185, 0.85);
}

.dot.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}

/* ==================== LIGHTBOX ==================== */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 8, 0.95);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .25s ease;
}

.lb.show {
  display: flex;
  opacity: 1;
}

.lb-content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb img {
  max-width: 100%;
  max-height: calc(88vh - 48px);
  max-height: calc(88dvh - 48px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .8);
}

.lb-caption {
  margin-top: 12px;
  color: #ebdcb9;
  font-family: var(--font-calligraphy);
  font-size: 15px;
  letter-spacing: .08em;
  text-align: center;
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 24px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 1000;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all .2s;
}

.lb-close:hover {
  background: var(--red);
}

/* ==================== TOC MODAL ==================== */
.toc-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 8, 0.8);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
}

.toc-modal.show {
  display: flex;
  opacity: 1;
}

.toc-card {
  background: var(--card);
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .7);
}

.toc-header {
  padding: 16px 22px;
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(180deg, rgba(184, 146, 74, 0.18), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc-header h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--red);
  font-family: var(--font-serif);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}

.toc-list {
  padding: 14px 18px;
  overflow-y: auto;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(246, 238, 219, 0.65);
  border: 1px solid rgba(222, 210, 189, 0.8);
  color: var(--ink);
  cursor: pointer;
  transition: all .16s ease;
  text-decoration: none;
}

.toc-item:hover, .toc-item:active {
  background: rgba(184, 146, 74, 0.22);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.toc-item.active {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-color: var(--red);
}

.toc-idx {
  font-family: var(--font-deco);
  font-size: 14px;
  font-weight: 700;
  opacity: .85;
  min-width: 28px;
}

.toc-name {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== MOBILE ADAPTATION (< 768px) ==================== */
.mobile-nav-bar { display: none; }

@media (max-width: 768px) {
  :root {
    --header-h: 46px;
    --bottom-bar-h: 52px;
  }
  .nav-arrow { display: none !important; }
  .dots-nav { display: none !important; }

  .top-bar { padding: 0 10px; }
  .btn-back-home { font-size: 12px; padding: 4px 9px; }
  .top-title-pill { font-size: 12px; padding: 4px 10px; letter-spacing: .04em; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
  .btn-toc-toggle { font-size: 12px; padding: 4px 9px; }

  .page-card {
    margin: calc(var(--header-h) + 4px) 8px 0;
    height: calc(100dvh - var(--header-h) - var(--bottom-bar-h) - 14px);
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    border-radius: 12px;
  }

  .ph { padding: 10px 12px 8px; gap: 8px; }
  .ph-big { font-size: 32px; line-height: .9; }
  .ph-week { font-size: 12px; margin-bottom: 2px; }
  .ph-title { font-size: 15px; line-height: 1.25; }
  .ph-stamp { display: none; }
  .ph-num { font-size: 32px; }
  .ph-num + .ph-title { font-size: 15.5px; padding-bottom: 2px; }

  .card-nav-tabs { padding: 6px 10px; gap: 4px; }
  .tab-btn { font-size: 11px; padding: 4px 8px; }

  .page-content {
    padding: 12px 14px 24px;
    overflow-x: hidden; /* Guarantee zero horizontal wobble on mobile */
  }
  .page-content p { font-size: 14.5px; line-height: 1.85; margin-bottom: .85em; }
  .lead-drop::first-letter { font-size: 2em; padding: 1px 5px 0 0; }
  .sub-h { font-size: 15px; margin: 18px 0 8px; padding-left: 8px; }

  .cover-inner { padding: 0 16px; }
  .cover-badge { font-size: 10px; margin-bottom: 10px; letter-spacing: .15em; }
  .cover-inner h1 { font-size: clamp(28px, 8.5vw, 42px); margin-bottom: 10px; }
  .cover-sub { font-size: 15px; margin-bottom: 16px; }
  .cover-meta-grid { font-size: 11.5px; gap: 8px; margin-bottom: 20px; }
  .cover-seal { top: 5%; right: 5%; width: 56px; height: 56px; font-size: 14px; border-width: 2px; }
  .cover-hint { bottom: 16px; font-size: 11px; }

  .mobile-nav-bar {
    position: fixed;
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: var(--bottom-bar-h);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 8px;
    background: rgba(26, 20, 14, 0.97);
    border: 1px solid rgba(184, 146, 74, 0.4);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .m-nav-btn {
    flex: 1.1;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: rgba(246, 238, 219, 0.12);
    border: 1px solid rgba(184, 146, 74, 0.3);
    border-radius: 8px;
    color: #f7eedb;
    font-size: 12.5px;
    font-weight: 600;
    font-family: var(--font-serif);
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
    padding: 0 4px;
  }

  .m-nav-btn:active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
  }

  .m-nav-btn:disabled {
    opacity: .3;
    pointer-events: none;
  }

  .m-nav-center {
    flex: 1.5;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(184, 146, 74, 0.25);
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: #f7eedb;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-deco);
    cursor: pointer;
    white-space: nowrap;
    padding: 0 6px;
  }
}
