/* 枕边英文 · Lover's English — dark boudoir edition */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --reader-size: 21.5px;
  --font-display: "Literata", "Noto Serif SC", Georgia, "Songti SC", serif;
  --font-read: "Literata", "Noto Serif SC", Georgia, "Songti SC", "Palatino Linotype", serif;
  --font-ui: "Source Sans 3", "Noto Sans SC", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg: #0c080d; --bg2: #130d16; --surface: #1b1320; --surface2: #241a2b;
  --border: #3a2840; --hairline: rgba(207, 163, 103, .22);
  --text: #f2e8dc; --muted: #ab97a3; --faint: #6f5d6b;
  --accent: #e8536e; --accent-2: #ff8ba0; --accent-soft: rgba(232, 83, 110, .14); --accent-deep: #9e2f47;
  --gold: #cfa367; --gold-dim: rgba(207, 163, 103, .55);
  --dlg: #e9c9a3;
  --shadow: rgba(0, 0, 0, .55);
  color-scheme: dark;
}
html[data-theme="sepia"] {
  --bg: #efe4cd; --bg2: #e7dabd; --surface: #f8efdc; --surface2: #efe3c8;
  --border: #d3bf98; --hairline: rgba(122, 84, 40, .3);
  --text: #40332a; --muted: #857050; --faint: #ab9a76;
  --accent: #ad3a54; --accent-2: #8f2c43; --accent-soft: rgba(173, 58, 84, .12); --accent-deep: #86263c;
  --gold: #8f6a34; --gold-dim: rgba(143, 106, 52, .6);
  --dlg: #9a5a30;
  --shadow: rgba(95, 72, 40, .3);
}
html[data-theme="light"] {
  --bg: #f9f6f2; --bg2: #f1ece5; --surface: #ffffff; --surface2: #f3eee7;
  --border: #e3d9cb; --hairline: rgba(150, 110, 60, .3);
  --text: #2c2622; --muted: #80735f; --faint: #a89b86;
  --accent: #bd3f5d; --accent-2: #a03048; --accent-soft: rgba(189, 63, 93, .10); --accent-deep: #962f46;
  --gold: #8f6a34; --gold-dim: rgba(143, 106, 52, .55);
  --dlg: #9a5a30;
  --shadow: rgba(60, 45, 30, .16);
}

html, body { height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .35s, color .35s;
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--accent-2); }

/* ============ 氛围层 ============ */
.glow { position: fixed; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(90px); }
.glow-a {
  width: 55vw; height: 55vw; right: -18vw; top: -22vw;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  opacity: .8;
}
.glow-b {
  width: 45vw; height: 45vw; left: -15vw; bottom: -20vw;
  background: radial-gradient(circle, rgba(207, 163, 103, .10), transparent 65%);
}
html[data-theme="light"] .glow, html[data-theme="sepia"] .glow { opacity: .45; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

#read-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--gold));
  z-index: 80; transition: width .1s linear;
  box-shadow: 0 0 8px var(--accent-soft);
}

#app { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ============ 侧边栏 ============ */
#sidebar {
  width: 330px; flex-shrink: 0;
  background: color-mix(in srgb, var(--bg2) 92%, transparent);
  border-right: 1px solid var(--border);
  height: 100vh; position: sticky; top: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.side-brand {
  display: flex; align-items: center; gap: 13px;
  padding: 22px 22px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--hairline);
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 65% 35%, transparent 42%, var(--gold) 46%);
  box-shadow: 0 0 14px rgba(207, 163, 103, .5);
  flex-shrink: 0;
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 4px; }
.brand-sub {
  font-size: 11px; color: var(--accent); letter-spacing: 1.5px;
  font-family: var(--font-display); font-style: italic;
}

#side-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }

.side-search { padding: 14px 18px 4px; }
.side-search input {
  width: 100%; padding: 9px 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.side-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.side-progress {
  padding: 12px 22px 4px; font-size: 11px; color: var(--muted);
  letter-spacing: 1.5px;
}
.progress-track { height: 3px; background: var(--surface2); border-radius: 3px; margin-top: 7px; overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--gold));
  box-shadow: 0 0 8px var(--accent-soft);
  transition: width .5s ease;
}

#toc { flex: 1; padding: 8px 12px 40px; }
.toc-part { margin-top: 18px; }
.toc-part-title {
  font-size: 11px; color: var(--gold); font-weight: 700;
  padding: 4px 10px 8px; letter-spacing: 1px; line-height: 1.6;
  border-bottom: 1px solid var(--hairline);
  margin: 0 8px 6px;
}
.toc-item {
  position: relative;
  display: flex; align-items: baseline; gap: 9px;
  padding: 7px 12px; border-radius: 9px;
  font-size: 13.5px; line-height: 1.45;
  cursor: pointer; color: var(--muted);
  transition: background .18s, color .18s, transform .18s;
}
.toc-item:hover { background: var(--surface); color: var(--text); transform: translateX(3px); }
.toc-item.active {
  background: linear-gradient(90deg, var(--accent-soft), transparent 75%);
  color: var(--accent-2); font-weight: 600;
}
.toc-item.active::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 2.5px; border-radius: 2px;
  background: linear-gradient(var(--accent), var(--gold));
}
.toc-item .tno {
  font-family: var(--font-display); font-size: 11.5px; font-style: italic;
  color: var(--faint); flex-shrink: 0; min-width: 22px; text-align: right;
}
.toc-item.active .tno { color: var(--accent); }
.toc-item .tcheck { margin-left: auto; color: var(--accent); font-size: 12px; flex-shrink: 0; }
.toc-empty { padding: 24px; font-size: 13px; color: var(--faint); text-align: center; }

.side-booklist { padding: 18px 16px; }
.side-book {
  display: block; padding: 16px 18px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.side-book:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: 0 6px 24px var(--shadow); }
.side-book .sb-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.side-book .sb-cn { font-size: 12px; color: var(--muted); margin-top: 5px; }
.side-book .sb-prog { font-size: 11px; color: var(--accent); margin-top: 8px; letter-spacing: 1px; }

#side-overlay { display: none; }

/* ============ 主区 ============ */
#main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

#topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.icon-btn {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 16px; padding: 5px 10px; cursor: pointer;
}
.crumb {
  flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .5px;
}
.crumb b { color: var(--text); font-weight: 600; }

.controls { display: flex; align-items: center; gap: 8px; }
.ctl-group { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.ctl-group .ctl-btn { border: none; border-radius: 0; }
.ctl-group .ctl-btn + .ctl-btn { border-left: 1px solid var(--border); }
.ctl-btn {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 12.5px; padding: 6px 12px; cursor: pointer;
  transition: all .18s; font-family: var(--font-ui);
}
.ctl-btn:hover { color: var(--text); border-color: var(--accent); }
.ctl-btn.on { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent); }

#view { flex: 1; padding: 40px 24px 100px; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.reader, .hero, .shelf, .continue-card { animation: pageIn .5s cubic-bezier(.2, .7, .3, 1) both; }
.shelf { animation-delay: .08s; }
.continue-card { animation-delay: .04s; }

/* ============ 书架首页 ============ */
.hero { max-width: 780px; margin: 7vh auto 60px; text-align: center; position: relative; }
.hero-moon {
  width: 84px; height: 84px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 68% 32%, transparent 44%, var(--gold) 47%);
  box-shadow: 0 0 40px rgba(207, 163, 103, .45), 0 0 120px rgba(207, 163, 103, .2);
  animation: moonFloat 7s ease-in-out infinite;
}
@keyframes moonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-kicker {
  margin-top: 30px; font-size: 12px; letter-spacing: 6px; color: var(--gold);
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.hero-kicker::before, .hero-kicker::after {
  content: ""; width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.hero-kicker::after { transform: scaleX(-1); }
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(44px, 7vw, 84px); letter-spacing: 10px;
  margin: 18px 0 4px; line-height: 1.2;
}
.hero .en {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(19px, 2.6vw, 30px); letter-spacing: 3px;
  background: linear-gradient(100deg, var(--accent-deep), var(--accent-2) 55%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .for {
  margin: 30px auto 0; color: var(--muted); font-size: 14px; line-height: 2.2; max-width: 520px;
}
.hero .for em { color: var(--gold); font-style: normal; border-bottom: 1px dotted var(--gold-dim); }

.continue-card {
  max-width: 780px; margin: 0 auto 40px;
  background: linear-gradient(120deg, var(--accent-soft), transparent 55%), var(--surface);
  border: 1px solid var(--accent-deep); border-radius: 18px;
  padding: 20px 28px; display: flex; align-items: center; gap: 18px;
  cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.continue-card:hover {
  transform: translateY(-3px); border-color: var(--accent);
  box-shadow: 0 14px 44px var(--shadow), 0 0 30px var(--accent-soft);
}
.continue-card .cc-label { font-size: 11px; color: var(--accent); letter-spacing: 3px; }
.continue-card .cc-title { font-family: var(--font-display); font-size: 19px; margin-top: 5px; font-weight: 700; }
.continue-card .cc-go {
  margin-left: auto; color: var(--accent); font-size: 24px;
  transition: transform .25s;
}
.continue-card:hover .cc-go { transform: translateX(6px); }

.shelf { max-width: 780px; margin: 0 auto; display: grid; gap: 22px; }
.book-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 30px 32px 26px; cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.book-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 90% -20%, var(--accent-soft), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.book-card:hover { transform: translateY(-4px); border-color: var(--accent-deep); box-shadow: 0 18px 50px var(--shadow); }
.book-card:hover::before { opacity: 1; }
.book-card .bc-no {
  position: absolute; right: 18px; top: 2px;
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 74px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--border);
  pointer-events: none;
}
.book-card .bc-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; position: relative; }
.book-card h2 { font-family: var(--font-display); font-size: 23px; font-weight: 700; line-height: 1.4; }
.book-card .bc-cn { color: var(--accent); font-size: 13px; letter-spacing: 1px; }
.book-card .bc-desc { color: var(--muted); font-size: 13.5px; line-height: 2; margin-top: 14px; position: relative; }
.book-card .bc-quote {
  margin-top: 14px; padding: 12px 16px; position: relative;
  border-left: 2px solid var(--gold); border-radius: 0 12px 12px 0;
  background: var(--surface2);
  color: var(--muted); font-size: 12.5px; line-height: 2;
}
.book-card .bc-foot { display: flex; align-items: center; gap: 16px; margin-top: 18px; font-size: 12px; color: var(--faint); letter-spacing: 1px; position: relative; }
.book-card .bc-foot .progress-track { flex: 1; margin-top: 0; }
.book-card .bc-pct { color: var(--accent); font-weight: 600; }
.book-card .bc-go {
  margin-top: 16px; font-size: 12px; letter-spacing: 2px; color: var(--gold);
  opacity: 0; transform: translateX(-6px); transition: all .25s; position: relative;
}
.book-card:hover .bc-go { opacity: 1; transform: none; }

/* ============ 阅读页 ============ */
.reader { max-width: 760px; margin: 0 auto; }

.reader-head { position: relative; text-align: center; margin-bottom: 40px; padding-top: 26px; }
.ch-watermark {
  position: absolute; left: 50%; top: -30px; transform: translateX(-50%);
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: clamp(120px, 22vw, 200px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--border);
  opacity: .8; pointer-events: none; user-select: none;
}
.reader-part {
  position: relative; font-size: 12px; color: var(--gold);
  letter-spacing: 3px; text-transform: uppercase;
}
.reader-kind {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  margin-top: 18px; font-size: 11px; letter-spacing: 4px; color: var(--accent);
  text-transform: uppercase;
}
.reader-kind::before, .reader-kind::after {
  content: ""; width: 42px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.reader-kind::after { transform: scaleX(-1); }
.reader-title {
  position: relative;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.8vw, 46px);
  margin-top: 18px; line-height: 1.35; letter-spacing: 0.2px;
}
.reader-source {
  position: relative; font-family: var(--font-display); font-style: italic;
  color: var(--muted); font-size: 15px; margin-top: 12px; letter-spacing: 1px;
}

.epigraph {
  margin: 0 auto 30px; padding: 15px 20px;
  background: var(--surface2); border-radius: 14px;
  border-left: 2px solid var(--gold);
  color: var(--muted); font-size: 13px; line-height: 2.1;
}

.sec-label {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 4px; color: var(--gold);
  margin: 44px 0 18px; text-transform: uppercase;
}
.sec-label::before, .sec-label::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}
.sec-label i { font-style: normal; color: var(--faint); letter-spacing: 2px; }

.vocab-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.vocab-box summary {
  padding: 15px 20px; cursor: pointer; font-size: 13px; color: var(--accent-2);
  list-style: none; user-select: none; letter-spacing: 1px;
  transition: background .2s;
}
.vocab-box summary:hover { background: var(--accent-soft); }
.vocab-box summary::-webkit-details-marker { display: none; }
.vocab-box summary::before { content: "✦ "; color: var(--gold); }
.vocab-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px; background: var(--border); border-top: 1px solid var(--border);
}
.vocab-cell {
  background: var(--surface); padding: 12px 18px;
  display: flex; align-items: baseline; gap: 10px;
  transition: background .18s;
}
.vocab-cell:hover { background: var(--accent-soft); }
.vocab-cell .w {
  font-family: var(--font-read); font-weight: 600; font-size: 16.5px;
  color: var(--text); cursor: pointer;
  border-bottom: 1px dashed transparent; transition: color .18s, border-color .18s;
}
.vocab-cell .w:hover { color: var(--accent-2); border-bottom-color: var(--accent); }
.vocab-cell .w::after { content: " ♪"; font-size: 10px; opacity: 0; transition: opacity .18s; }
.vocab-cell:hover .w::after { opacity: .8; color: var(--accent); }
.vocab-cell .m { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.passage {
  font-family: var(--font-read);
  font-size: var(--reader-size);
  font-weight: 450;
  line-height: 1.9;
  letter-spacing: 0.01em;
  word-spacing: 0.02em;
  color: var(--text);
}
.passage p { margin: 0 0 1.2em; }
.passage p.lead::first-letter {
  font-family: var(--font-display); font-weight: 900;
  font-size: 3.4em; line-height: .85;
  float: left; margin: .06em .12em 0 0;
  color: var(--accent);
}
.passage p.dlg { color: var(--dlg); font-weight: 500; }
.passage p.scene {
  text-align: center; color: var(--gold);
  font-size: .82em; letter-spacing: 2.5px; margin: 2em 0;
  display: flex; align-items: center; gap: 16px;
}
.passage p.scene::before, .passage p.scene::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.passage p.cn-note {
  font-family: var(--font-ui); font-size: 14.5px; line-height: 1.85;
  color: var(--muted); background: var(--surface2);
  border-left: 2px solid var(--gold); border-radius: 0 12px 12px 0;
  padding: 14px 18px;
}
.passage em { color: var(--gold); font-style: italic; }

.vw {
  border-bottom: 1.5px dotted var(--accent); cursor: pointer;
  border-radius: 2px; padding: 0 1px;
  transition: background .15s, color .15s;
}
.vw:hover { background: var(--accent-soft); color: var(--accent-2); }
.no-hl .vw { border-bottom: none; cursor: text; }
.no-hl .vw:hover { background: none; color: inherit; }

.qa-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 10px 26px 18px;
}
.qa-box ol { padding-left: 22px; }
.qa-box li {
  font-family: var(--font-read);
  font-size: calc(var(--reader-size) - 0.5px);
  line-height: 1.85;
  margin-top: 10px;
}
.qa-box li::marker { color: var(--accent); font-family: var(--font-display); font-style: italic; }

.sum-box { background: var(--surface2); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.sum-box summary {
  padding: 15px 20px; cursor: pointer; font-size: 13px; color: var(--gold);
  list-style: none; user-select: none; letter-spacing: 1px; transition: background .2s;
}
.sum-box summary:hover { background: rgba(207, 163, 103, .08); }
.sum-box summary::-webkit-details-marker { display: none; }
.sum-box summary::before { content: "✦ "; }
.sum-box .sum-body {
  padding: 2px 22px 18px; font-family: var(--font-read);
  font-size: calc(var(--reader-size) - 0.5px); line-height: 1.9; color: var(--muted);
}

.read-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 52px 0 12px; }
.mark-btn {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 12px 32px; font-size: 13px; letter-spacing: 3px; cursor: pointer;
  transition: all .25s;
}
.mark-btn:hover { border-color: var(--accent); color: var(--accent-2); box-shadow: 0 0 24px var(--accent-soft); }
.mark-btn.done {
  background: linear-gradient(120deg, var(--accent-deep), var(--accent));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 26px var(--accent-soft);
}

.prev-next { display: flex; gap: 16px; margin-top: 30px; }
.pn-btn {
  flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 20px; cursor: pointer; color: var(--text); text-align: left;
  transition: border-color .22s, transform .22s, box-shadow .22s; font-size: 13px;
}
.pn-btn:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 10px 34px var(--shadow);
}
.pn-btn.next { text-align: right; }
.pn-btn .pn-dir { font-size: 11px; color: var(--gold); letter-spacing: 2px; }
.pn-btn .pn-title {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  margin-top: 6px; color: var(--muted); transition: color .22s;
}
.pn-btn:hover .pn-title { color: var(--accent-2); }
.pn-btn.disabled { opacity: .35; pointer-events: none; }

/* ============ 气泡 ============ */
#tooltip {
  position: fixed; z-index: 100;
  background: color-mix(in srgb, var(--surface2) 88%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-deep);
  border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 14px 44px var(--shadow), 0 0 24px var(--accent-soft);
  max-width: 270px;
  animation: tipIn .18s ease both;
}
@keyframes tipIn {
  from { opacity: 0; transform: translateY(5px) scale(.97); }
  to { opacity: 1; transform: none; }
}
#tooltip .tt-word {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--accent-2); cursor: pointer; letter-spacing: .5px;
}
#tooltip .tt-word:hover { text-decoration: underline; }
#tooltip .tt-mean { margin-top: 6px; font-size: 13.5px; color: var(--text); line-height: 1.7; }
#tooltip .tt-hint { margin-top: 7px; font-size: 11px; color: var(--faint); letter-spacing: 1px; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  #sidebar {
    position: fixed; left: 0; top: 0; z-index: 50;
    transform: translateX(-105%); transition: transform .28s;
    box-shadow: 0 0 60px var(--shadow);
  }
  body.side-open #sidebar { transform: translateX(0); }
  #side-overlay {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .28s;
  }
  body.side-open #side-overlay { opacity: 1; pointer-events: auto; }
  .icon-btn { display: block; }
  #view { padding: 26px 18px 80px; }
  .hero { margin-top: 4vh; }
  .hero h1 { letter-spacing: 6px; }
  .ch-watermark { top: -16px; }
  .book-card .bc-no { font-size: 54px; }
  .crumb { font-size: 12px; }
  .controls .ctl-btn { padding: 5px 9px; font-size: 12px; }
}

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }
::-webkit-scrollbar-track { background: transparent; }
