/* 职路读书：界面照微信读书 iOS 版。颜色、间距集中在变量里，对照本人截图再微调。 */

:root {
  --brand: #1b88ee;
  --brand-press: #1676d0;
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1f2329;
  --text-2: #5c6066;
  --text-3: #9aa0a6;
  --line: #e7e8eb;
  --search-bg: #ecedf1;
  --mask: rgba(0, 0, 0, 0.4);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "ZT Serif", "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --kai: "ZT Kai", "LXGW WenKai Screen", "Kaiti SC", "STKaiti", serif;
  --zt-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

html[data-dark="1"] {
  --bg: #121212;
  --card: #1e1e1e;
  --text: #d6d6d6;
  --text-2: #a0a0a0;
  --text-3: #6f6f6f;
  --line: #2a2a2a;
  --search-bg: #262626;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }

.ic { display: inline-flex; width: 24px; height: 24px; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic svg .fill { fill: currentColor; stroke: none; }

.page { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); }

/* ---------------------------------------------------------------- 标签栏 */
.tabbar {
  display: flex;
  justify-content: space-around;
  border-top: 0.5px solid var(--line);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 6px 0 calc(4px + var(--safe-bottom));
  flex: none;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--text-3); min-width: 64px; }
.tab .ic { width: 25px; height: 25px; }
.tab.on { color: var(--brand); }
.tab.on .ic svg { stroke-width: 1.9; }

/* ---------------------------------------------------------------- 书架 */
.shelf-top {
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + var(--safe-top)) 20px 8px;
  flex: none;
}
.search {
  flex: 1; display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border-radius: 18px; background: var(--search-bg); color: var(--text-3);
}
.search .ic { width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--text); -webkit-appearance: none; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search-sep { width: 0.5px; height: 18px; background: color-mix(in srgb, var(--text) 18%, transparent); margin: 0 4px 0 6px; }
.shelf-add { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: -6px; color: var(--text); }
.shelf-add .ic { width: 20px; height: 20px; }
.shelf-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 20px 24px; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 16px; font-size: 13px; color: var(--text-3); }
.shelf-tab { font-size: 17px; color: var(--text-2); }
.shelf-tab.on { color: var(--brand); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 22px; row-gap: 22px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); column-gap: 28px; } }
.book { display: block; min-width: 0; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.book:active .cover { opacity: 0.85; }
.cover {
  position: relative; width: 100%; aspect-ratio: 3 / 4.3; border-radius: 3px; overflow: hidden;
  background: #e2e3e6; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-ph {
  display: flex; flex-direction: column; justify-content: space-between; padding: 14% 12% 10%;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 82%, white), var(--c));
  color: rgba(255, 255, 255, 0.95);
}
.cover-ph-title {
  font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.35; letter-spacing: 0.02em;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all;
}
.cover-ph-author { font-size: 10px; opacity: 0.8; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cover-tag { position: absolute; right: 0; bottom: 0; font-size: 9px; padding: 2px 5px; background: rgba(0, 0, 0, 0.25); border-top-left-radius: 4px; }
.book-title {
  margin-top: 9px; font-size: 13px; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all;
}
.book-meta { margin-top: 3px; font-size: 11px; color: var(--text-3); }
.shelf-empty { text-align: center; padding: 80px 32px; color: var(--text-3); }
.empty-title { font-size: 16px; color: var(--text-2); margin-bottom: 8px; }
.empty-sub { font-size: 13px; line-height: 1.6; }
.shelf-page.dragging .shelf-body { outline: 2px dashed var(--brand); outline-offset: -8px; }

/* ---------------------------------------------------------------- 通用导航栏 */
.navbar {
  display: flex; align-items: center; height: calc(48px + var(--safe-top)); padding: var(--safe-top) 8px 0;
  background: var(--bg); flex: none;
}
.nav-back { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-right { min-width: 40px; font-size: 15px; color: var(--brand); padding: 0 8px; }
.page-head { padding: calc(14px + var(--safe-top)) 20px 10px; flex: none; }
.page-title { font-size: 28px; font-weight: 700; }

/* 公众号文章列表 */
.mp-list { flex: 1; overflow-y: auto; padding: 4px 0 calc(20px + var(--safe-bottom)); }
.mp-item { display: block; margin: 0 16px 10px; padding: 16px; background: var(--card); border-radius: 10px; }
.mp-item-title { font-size: 16px; line-height: 1.45; font-weight: 500; }
.mp-item-meta { margin-top: 8px; font-size: 12px; color: var(--text-3); }

/* ---------------------------------------------------------------- 阅读页 */
.reader-page { background: var(--rd-bg); }
.rd, .reader-page { --rd-bg: #ffffff; --rd-text: #1f1f1f; --rd-text-2: #9b9b9b; --rd-chrome: #ffffff; --rd-chrome-line: #ececec; --rd-chrome-text: #2a2a2a; }
.reader-page[data-theme="yellow"], .rd[data-theme="yellow"] { --rd-bg: #f7f1e1; --rd-text: #3a3125; --rd-text-2: #a1967f; --rd-chrome: #f7f1e1; --rd-chrome-line: #e6dcc4; --rd-chrome-text: #3a3125; }
.reader-page[data-theme="green"], .rd[data-theme="green"] { --rd-bg: #ccf0cf; --rd-text: #1e3323; --rd-text-2: #6f9476; --rd-chrome: #ccf0cf; --rd-chrome-line: #b5dcb9; --rd-chrome-text: #1e3323; }
.reader-page[data-theme="gray"], .rd[data-theme="gray"] { --rd-bg: #e9e9ea; --rd-text: #262626; --rd-text-2: #8e8e8e; --rd-chrome: #e9e9ea; --rd-chrome-line: #d7d7d8; --rd-chrome-text: #262626; }
.reader-page[data-theme="dark"], .rd[data-theme="dark"] { --rd-bg: #0f0f0f; --rd-text: #8d8d8d; --rd-text-2: #555; --rd-chrome: #1c1c1c; --rd-chrome-line: #2a2a2a; --rd-chrome-text: #b0b0b0; }

.rd { position: absolute; inset: 0; background: var(--rd-bg); color: var(--rd-text); overflow: hidden; }
.rd-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.rd[data-mode="scroll"] .rd-stage { overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; overscroll-behavior: contain; }
.rd-track { position: absolute; left: 0; top: 0; width: 100%; height: 100%; will-change: transform; }
.rd[data-mode="scroll"] .rd-track { position: relative; height: auto; will-change: auto; padding: var(--pad-top) 0 calc(var(--pad-bottom) + 40px); }
.rd-chap { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.rd[data-mode="scroll"] .rd-chap { position: relative; height: auto; padding: 0 var(--pad-x) 28px; }
.rd[data-mode="scroll"] .rd-chap + .rd-chap { border-top: 0.5px solid var(--rd-chrome-line); padding-top: 36px; }
.rd-safe-probe { position: absolute; visibility: hidden; pointer-events: none; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.rd-marks { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 0; pointer-events: none; }

/* 正文 */
.zt-content {
  position: absolute; left: var(--pad-x); top: var(--pad-top); width: var(--page-w); height: var(--page-h);
  column-width: var(--page-w); column-gap: calc(var(--pad-x) * 2); column-fill: auto;
  z-index: 1;
  font-size: var(--font-size); line-height: var(--line-height);
  color: var(--rd-text); text-align: justify; word-wrap: break-word; overflow-wrap: break-word;
  font-family: var(--sans);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  font-kerning: normal;
}
.rd[data-font="serif"] .zt-content { font-family: var(--serif); }
.rd[data-font="kai"] .zt-content { font-family: var(--kai); }
.rd[data-mode="scroll"] .zt-content { position: relative; left: 0; top: 0; width: auto; height: auto; column-width: auto; columns: auto; }
.zt-content .zt-body { margin: 0; padding: 0; }
.zt-content p { margin: 0 0 0.62em; }
.zt-content h1, .zt-content h2, .zt-content h3, .zt-content h4, .zt-content h5, .zt-content h6 {
  font-weight: 700; line-height: 1.45; margin: 1.2em 0 0.8em; break-after: avoid; color: var(--rd-text); text-indent: 0;
}
.zt-content h1 { font-size: 1.42em; margin-top: 0.4em; }
.zt-content h2 { font-size: 1.24em; }
.zt-content h3 { font-size: 1.1em; }
.zt-content h4, .zt-content h5, .zt-content h6 { font-size: 1em; }
.zt-content img { max-width: 100%; height: auto; max-height: calc(var(--page-h) - 8px); object-fit: contain; display: inline-block; vertical-align: bottom; break-inside: avoid; }
.rd[data-mode="scroll"] .zt-content img { max-height: none; }
.zt-content figure { margin: 1em 0; text-align: center; break-inside: avoid; }
.zt-content figcaption { font-size: 0.82em; color: var(--rd-text-2); margin-top: 0.4em; text-indent: 0; text-align: center; }
.zt-content blockquote { margin: 1em 0; padding: 0 0 0 1em; border-left: 3px solid color-mix(in srgb, var(--rd-text) 18%, transparent); color: color-mix(in srgb, var(--rd-text) 85%, var(--rd-bg)); }
.zt-content ul, .zt-content ol { margin: 0.5em 0 0.8em; padding-left: 1.6em; }
.zt-content li { margin: 0.25em 0; }
.zt-content pre { white-space: pre-wrap; font-family: var(--zt-mono); font-size: 0.86em; line-height: 1.6; background: color-mix(in srgb, var(--rd-text) 6%, transparent); padding: 0.8em; border-radius: 6px; break-inside: avoid; }
.zt-content code { font-family: var(--zt-mono); font-size: 0.9em; }
.zt-content table { border-collapse: collapse; margin: 1em 0; font-size: 0.86em; max-width: 100%; }
.zt-content td, .zt-content th { border: 0.5px solid color-mix(in srgb, var(--rd-text) 25%, transparent); padding: 0.3em 0.5em; }
.zt-content hr { border: 0; border-top: 0.5px solid color-mix(in srgb, var(--rd-text) 25%, transparent); margin: 1.4em 0; }
.zt-content a { color: inherit; text-decoration: none; }
.zt-content a[href^="#zt:"] { color: var(--brand); }
.zt-content a[target="_blank"] { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.zt-content sup, .zt-content sub { line-height: 0; }
.zt-content strong, .zt-content b { font-weight: 700; }
.zt-content .zt-end { height: 0; margin: 0; padding: 0; }
.zt-content .zt-mp-title { font-size: 1.36em; text-align: left; margin: 0.2em 0 0.5em; }
.zt-content .zt-mp-meta { font-size: 0.8em; color: var(--rd-text-2); text-indent: 0; margin-bottom: 1.6em; }
.rd[data-theme="dark"] .zt-content img { opacity: 0.82; }

/* 划线 */
.mk { position: absolute; }
.mk-c-red { --hl: #ee5a52; --mk: rgba(255, 150, 140, 0.42); }
.mk-c-yellow { --hl: #f5a623; --mk: rgba(255, 205, 120, 0.55); }
.mk-c-green { --hl: #3dbb6a; --mk: rgba(140, 220, 160, 0.48); }
.mk-c-blue { --hl: #2f86e8; --mk: rgba(130, 190, 255, 0.42); }
.mk-c-purple { --hl: #9a68dc; --mk: rgba(195, 160, 245, 0.45); }
/* 直线：细线压在字下面；波浪线；马克笔：盖住下面八成的半透明色块（照微信读书） */
.mk-line::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--hl); border-radius: 1px; }
.mk-wave::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 5px; background: var(--hl);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='5'><path d='M0 3.5 Q2.5 0.5 5 3.5 T10 3.5' fill='none' stroke='black' stroke-width='1.4'/></svg>") repeat-x left / 10px 5px;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='5'><path d='M0 3.5 Q2.5 0.5 5 3.5 T10 3.5' fill='none' stroke='black' stroke-width='1.4'/></svg>") repeat-x left / 10px 5px;
}
.mk-marker::after { content: ''; position: absolute; left: -1px; right: -1px; top: 18%; bottom: -1px; background: var(--mk); border-radius: 2px; }
.rd[data-theme="dark"] .mk-marker::after { opacity: 0.55; }
.mk-thought { border-bottom: 1.5px dotted color-mix(in srgb, var(--rd-text) 55%, transparent); }
.mk-note-badge {
  position: absolute; width: 14px; height: 12px; margin-left: 2px;
  background: var(--hl, var(--brand)); opacity: 0.85;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'><path d='M1 1h12v7H6.5L3.5 11V8H1z' fill='black'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'><path d='M1 1h12v7H6.5L3.5 11V8H1z' fill='black'/></svg>") no-repeat center / contain;
}
.mk-sel { position: absolute; background: rgba(27, 136, 238, 0.24); }
.mk-flash { position: absolute; background: rgba(27, 136, 238, 0.28); animation: flash 1.6s ease-out forwards; }
@keyframes flash { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }

/* 选字手柄 */
.rd-ui { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.rd-handle { position: absolute; left: 0; top: 0; width: 2px; display: none; background: var(--brand); pointer-events: auto; }
.rd-handle::before { content: ''; position: absolute; left: -15px; right: -15px; top: -16px; bottom: -16px; }
.rd-handle::after { content: ''; position: absolute; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.rd-handle-start { margin-left: -1px; }
.rd-handle-start::after { top: -9px; }
.rd-handle-end::after { bottom: -9px; }

/* 页眉页脚 */
.rd-title, .rd-pageno {
  position: absolute; font-size: 11.5px; color: var(--rd-text-2); pointer-events: none; z-index: 2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--sans);
}
.rd-title { top: calc(var(--safe-top) + 16px); left: var(--pad-x, 24px); right: var(--pad-x, 24px); }
.rd-pageno { bottom: calc(var(--safe-bottom) + 14px); right: var(--pad-x, 24px); }
.reader-page:has(.rd[data-mode="scroll"]) .rd-title,
.reader-page:has(.rd[data-mode="scroll"]) .rd-pageno { display: none; }

/* 呼出的菜单 */
.rd-chrome { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.rd-top, .rd-bottom { position: absolute; left: 0; right: 0; background: var(--rd-chrome); color: var(--rd-chrome-text); pointer-events: auto; transition: transform 0.22s ease; }
.rd-top {
  top: 0; display: flex; align-items: center; height: calc(48px + var(--safe-top)); padding: var(--safe-top) 6px 0;
  transform: translateY(-100%); box-shadow: 0 0.5px 0 var(--rd-chrome-line);
}
.rd-top-title { flex: 1; text-align: center; font-size: 15px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 8px; opacity: 0; }
.rd-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.rd-mark.on { color: var(--brand); }
.rd-mark.on .ic svg { fill: var(--brand); }
.rd-bottom { bottom: 0; padding: 0 0 calc(4px + var(--safe-bottom)); transform: translateY(100%); box-shadow: 0 -0.5px 0 var(--rd-chrome-line); }
.rd-chrome.show .rd-top, .rd-chrome.show .rd-bottom { transform: none; }
.rd-prog { display: flex; align-items: center; gap: 12px; padding: 4px 0 6px; }
.rd-chap-btn { font-size: 13px; color: var(--rd-chrome-text); white-space: nowrap; }
.rd-slider { flex: 1; }
.rd-say {
  display: flex; align-items: center; gap: 8px; width: calc(100% - 32px); margin: 10px 16px 2px; height: 38px; padding: 0 14px;
  border-radius: 19px; background: color-mix(in srgb, var(--rd-chrome-text) 6%, transparent); color: var(--rd-text-2); font-size: 14px; text-align: left;
}
.rd-say .ic { width: 18px; height: 18px; }
.rd-chrome.has-panel .rd-say { display: none; }
.rd-tools { display: flex; justify-content: space-around; padding: 6px 10px 4px; }
.rd-tool { display: flex; align-items: center; justify-content: center; width: 56px; height: 44px; color: var(--rd-chrome-text); }
.rd-tool .ic { width: 25px; height: 25px; }
.rd-tool.on { color: var(--brand); }
.rd-panel:empty { display: none; }
.rd-panel { padding: 14px 20px 4px; border-bottom: 0.5px solid var(--rd-chrome-line); }
.pp-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--rd-text-2); margin-bottom: 6px; }
.pp-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dim-row { gap: 12px; }
.dim-row .dim-slider { flex: 1; }
.dim-ic { color: var(--rd-text-2); width: 20px; height: 20px; }
.dim-ic.big { width: 24px; height: 24px; }
.swatches { justify-content: space-between; padding-bottom: 12px; }
.swatches .swatch { width: 52px; height: 52px; }
.rd-dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 8; transition: opacity 0.15s; }
.rd-prog-tip {
  position: absolute; left: 50%; bottom: calc(130px + var(--safe-bottom)); transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78); color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 8px;
  max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 0.15s; pointer-events: none;
}
.rd-prog-tip.show { opacity: 1; }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 24px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--rd-chrome-text, #333) 18%, transparent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; margin-top: -8.5px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25), 0 0 0 0.5px rgba(0, 0, 0, 0.08); }
input[type="range"]::-moz-range-track { height: 3px; background: color-mix(in srgb, var(--rd-chrome-text, #333) 18%, transparent); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }

/* 弹出气泡：选字菜单、划线菜单、注释 */
.rd-pop { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.pop-menu, .pop-note {
  position: absolute; pointer-events: auto; background: #2b2b2d; color: #fff; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); font-family: var(--sans);
}
.pop-menu { display: flex; padding: 4px 6px; }
.pop-menu > button, .hl-acts > button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; min-width: 56px; padding: 7px 4px 6px; color: #fff; }
.pop-menu .ic { width: 22px; height: 22px; }
.pop-menu .ic svg .accent { stroke: #4ea4f5; }
.pop-arrow { position: absolute; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: #2b2b2d; transform: rotate(45deg); border-radius: 2px; }
.below > .pop-arrow { bottom: auto; top: -6px; }
.pop-hl { flex-direction: column; padding: 8px 8px 2px; }
.hl-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.hl-row:first-child { padding: 2px 4px 8px; border-bottom: 0.5px solid rgba(255, 255, 255, 0.14); }
.hl-acts { padding-top: 2px; }
.hl-style { width: 34px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.hl-style.on { background: rgba(255, 255, 255, 0.16); }
.hs { width: 18px; height: 12px; position: relative; }
.hs-line { border-bottom: 2px solid #fff; }
.hs-marker { background: rgba(255, 255, 255, 0.55); border-radius: 2px; }
.hs-wave::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='4'><path d='M0 3 Q1.5 0 3 3 T6 3' fill='none' stroke='black' stroke-width='1.3'/></svg>") repeat-x left / 6px 4px;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='4'><path d='M0 3 Q1.5 0 3 3 T6 3' fill='none' stroke='black' stroke-width='1.3'/></svg>") repeat-x left / 6px 4px; }
.hl-sep { width: 0.5px; height: 18px; background: rgba(255, 255, 255, 0.2); margin: 0 4px; }
.hl-color { width: 20px; height: 20px; border-radius: 50%; margin: 0 2px; box-shadow: inset 0 0 0 2px #2b2b2d; }
.hl-color.on { outline: 2px solid #fff; outline-offset: 1px; }
.c-red { background: #ee5a52; } .c-yellow { background: #f5a623; } .c-green { background: #3dbb6a; } .c-blue { background: #2f86e8; } .c-purple { background: #9a68dc; }
.pop-note { max-width: min(86vw, 420px); padding: 12px 14px; }
.pop-note-text { font-size: 14px; line-height: 1.65; max-height: 40vh; overflow-y: auto; }

/* 抽屉：目录、笔记、书签 */
.drawer-mask, .panel-mask, .sheet-mask, .search-mask, .thought-mask { position: absolute; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0); transition: background 0.25s; }
.sheet-mask { position: fixed; }
.drawer-mask.show, .panel-mask.show, .sheet-mask.show { background: var(--mask); }
.drawer {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(86vw, 400px); background: var(--rd-chrome); color: var(--rd-chrome-text);
  display: flex; flex-direction: column; transform: translateX(-100%); transition: transform 0.25s ease;
}
.drawer-mask.show .drawer { transform: none; }
.drawer-head { display: flex; gap: 14px; padding: calc(20px + var(--safe-top)) 20px 16px; }
.drawer-cover { width: 56px; flex: none; }
.drawer-cover .cover-ph-title { font-size: 9px; }
.drawer-cover .cover-ph-author { display: none; }
.drawer-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.drawer-title { font-size: 16px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drawer-author { font-size: 12px; color: var(--rd-text-2); margin-top: 4px; }
.drawer-prog { font-size: 12px; color: var(--rd-text-2); margin-top: 6px; }
.drawer-tabs { display: flex; gap: 26px; padding: 0 20px; border-bottom: 0.5px solid var(--rd-chrome-line); }
.drawer-tabs button { font-size: 15px; padding: 10px 0; color: var(--rd-text-2); position: relative; }
.drawer-tabs button.on { color: var(--rd-chrome-text); font-weight: 600; }
.drawer-tabs button.on::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--brand); }
.drawer-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(16px + var(--safe-bottom)); }
.toc-item { display: block; width: 100%; text-align: left; padding: 13px 20px; font-size: 15px; line-height: 1.4; border-bottom: 0.5px solid var(--rd-chrome-line); }
.toc-item.lv2 { padding-left: 36px; font-size: 14px; }
.toc-item.lv3 { padding-left: 52px; font-size: 13.5px; color: var(--rd-text-2); }
.toc-item.lv4 { padding-left: 66px; font-size: 13px; color: var(--rd-text-2); }
.toc-item.on { color: var(--brand); }
.drawer-empty { text-align: center; color: var(--rd-text-2); padding: 60px 24px; font-size: 14px; line-height: 1.8; }
.drawer-empty span { font-size: 12px; }
.note-chapter { font-size: 12px; color: var(--rd-text-2); padding: 18px 20px 6px; }
.note-item { display: block; width: 100%; text-align: left; padding: 12px 20px 14px; border-bottom: 0.5px solid var(--rd-chrome-line); }
.note-quote { font-size: 14px; line-height: 1.7; padding-left: 10px; border-left: 3px solid var(--hl, var(--brand)); color: var(--rd-chrome-text); }
.note-thought { font-size: 15px; line-height: 1.65; margin: 8px 0 0; white-space: pre-wrap; }
.note-date { font-size: 11px; color: var(--rd-text-2); margin-top: 8px; }
.mark-item { display: flex; align-items: center; border-bottom: 0.5px solid var(--rd-chrome-line); }
.mark-go { flex: 1; text-align: left; padding: 12px 0 12px 20px; min-width: 0; }
.mark-chapter { font-size: 12px; color: var(--rd-text-2); }
.mark-snippet { font-size: 14px; margin-top: 4px; line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mark-del { padding: 12px 16px; color: var(--rd-text-2); }
.mark-del .ic { width: 18px; height: 18px; }

/* 设置面板 */
.panel {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--rd-chrome); color: var(--rd-chrome-text);
  border-radius: 14px 14px 0 0; padding: 18px 20px calc(18px + var(--safe-bottom)); transform: translateY(100%); transition: transform 0.25s ease;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
}
.panel-mask.show .panel { transform: none; }
.panel-mask.show { background: rgba(0, 0, 0, 0.12); }
.set-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.set-label { width: 34px; font-size: 13px; color: var(--rd-text-2); flex: none; }
.set-opts { flex: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.opt { flex: 1; height: 34px; border-radius: 17px; font-size: 13px; background: color-mix(in srgb, var(--rd-chrome-text) 7%, transparent); white-space: nowrap; padding: 0 10px; }
.opt.on { color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); font-weight: 500; }
.font-serif { font-family: var(--serif); }
.font-kai { font-family: var(--kai); }
.set-size { gap: 14px; }
.size-btn { width: 40px; height: 34px; border-radius: 17px; font-size: 13px; background: color-mix(in srgb, var(--rd-chrome-text) 7%, transparent); }
.size-btn.big { font-size: 19px; }
.size-track { flex: 1; display: flex; align-items: center; gap: 10px; }
.size-slider { flex: 1; }
.size-val { width: 22px; font-size: 13px; color: var(--rd-text-2); text-align: right; }
.swatch { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15); }
.swatch.on { box-shadow: 0 0 0 2px var(--brand); }
.sw-white { background: #ffffff; } .sw-yellow { background: #f7f1e1; } .sw-green { background: #ccf0cf; } .sw-gray { background: #e9e9ea; }
.sw-dark { background: #111; color: #3b82f6; }
.sw-dark .ic { width: 18px; height: 18px; }

/* 写想法 */
.thought-mask { background: var(--rd-chrome); transform: translateY(100%); transition: transform 0.25s ease; }
.thought-mask.show { transform: none; }
.thought { display: flex; flex-direction: column; height: 100%; color: var(--rd-chrome-text); padding-top: var(--safe-top); }
.thought-bar { display: flex; align-items: center; height: 48px; padding: 0 16px; border-bottom: 0.5px solid var(--rd-chrome-line); }
.tb-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.tb-cancel { font-size: 15px; color: var(--rd-text-2); min-width: 44px; text-align: left; }
.tb-ok { font-size: 15px; color: #fff; background: var(--brand); border-radius: 15px; padding: 5px 14px; }
.thought-quote { margin: 16px 20px 6px; padding-left: 10px; border-left: 3px solid color-mix(in srgb, var(--rd-chrome-text) 22%, transparent); font-size: 14px; line-height: 1.7; color: var(--rd-text-2); max-height: 30vh; overflow-y: auto; }
.thought-input { flex: 1; margin: 6px 20px; border: 0; outline: 0; resize: none; background: none; font-size: 16px; line-height: 1.7; }
.thought-del { margin: 0 20px calc(16px + var(--safe-bottom)); padding: 12px; font-size: 14px; color: #e8524a; }

/* 书内搜索 */
.search-mask { background: var(--rd-chrome); opacity: 0; transition: opacity 0.2s; }
.search-mask.show { opacity: 1; }
.search-page { display: flex; flex-direction: column; height: 100%; color: var(--rd-chrome-text); }
.search-bar { display: flex; align-items: center; gap: 12px; padding: calc(8px + var(--safe-top)) 16px 8px; }
.search-cancel { font-size: 15px; color: var(--brand); }
.search-results { flex: 1; overflow-y: auto; padding-bottom: calc(16px + var(--safe-bottom)); }
.search-hint, .search-count { padding: 14px 20px; font-size: 13px; color: var(--rd-text-2); }
.search-hit { display: block; width: 100%; text-align: left; padding: 12px 20px; border-bottom: 0.5px solid var(--rd-chrome-line); }
.search-hit-title { font-size: 12px; color: var(--rd-text-2); }
.search-hit-text { font-size: 14px; line-height: 1.6; margin-top: 4px; }
.search-hit-text em { font-style: normal; color: var(--brand); }

/* 看图 */
.img-viewer { position: absolute; inset: 0; z-index: 40; background: #000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; touch-action: none; }
.img-viewer.show { opacity: 1; }
.img-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; }

/* ---------------------------------------------------------------- 动作面板、对话框、提示 */
.action-sheet {
  position: absolute; left: 8px; right: 8px; bottom: calc(8px + var(--safe-bottom)); transform: translateY(120%); transition: transform 0.25s ease;
  color: var(--text);
}
.sheet-mask.show .action-sheet { transform: none; }
.as-title { background: var(--card); border-radius: 14px 14px 0 0; padding: 14px 16px; text-align: center; font-size: 13px; color: var(--text-3); border-bottom: 0.5px solid var(--line); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.as-group { background: var(--card); border-radius: 14px; overflow: hidden; }
.as-title + .as-group { border-radius: 0 0 14px 14px; }
.as-item { display: block; width: 100%; padding: 16px; font-size: 17px; text-align: center; border-bottom: 0.5px solid var(--line); background: var(--card); }
.as-item:last-child { border-bottom: 0; }
.as-item.danger { color: #e8524a; }
.as-cancel { margin-top: 8px; border-radius: 14px; font-weight: 600; }
.dialog-mask { position: fixed; inset: 0; z-index: 50; background: var(--mask); display: flex; align-items: center; justify-content: center; padding: 24px; }
.dialog { width: min(100%, 320px); background: var(--card); border-radius: 14px; overflow: hidden; color: var(--text); }
.dialog-title { padding: 18px 18px 4px; font-size: 16px; font-weight: 600; text-align: center; }
.dialog-body { padding: 22px 20px; font-size: 15px; line-height: 1.6; text-align: center; }
.dialog-input { display: block; width: calc(100% - 32px); margin: 12px 16px 16px; border: 0.5px solid var(--line); border-radius: 8px; padding: 10px; font-size: 15px; background: var(--bg); outline: 0; resize: none; }
.dialog-btns { display: flex; border-top: 0.5px solid var(--line); }
.dialog-btns button { flex: 1; padding: 14px; font-size: 16px; }
.dialog-btns .ok { color: var(--brand); font-weight: 600; border-left: 0.5px solid var(--line); }
.dialog-btns .ok.danger { color: #e8524a; }
.toast {
  position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 60; max-width: 80vw;
  background: rgba(30, 30, 30, 0.88); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; line-height: 1.5;
  opacity: 0; transition: opacity 0.2s; pointer-events: none; text-align: center;
}
.toast.show { opacity: 1; }
.upload-bar { position: fixed; left: 16px; right: 16px; bottom: calc(70px + var(--safe-bottom)); z-index: 55; background: rgba(30, 30, 30, 0.92); color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.upload-track { height: 3px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.upload-fill { height: 100%; width: 0; background: var(--brand); transition: width 0.2s; }

/* ---------------------------------------------------------------- 笔记页 */
.nb-list { flex: 1; overflow-y: auto; padding: 0 16px 20px; }
.nb-item { display: flex; gap: 14px; padding: 14px; background: var(--card); border-radius: 10px; margin-bottom: 10px; }
.nb-cover { width: 54px; flex: none; }
.nb-cover .cover-ph-title { font-size: 8px; }
.nb-cover .cover-ph-author { display: none; }
.nb-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.nb-title { font-size: 15px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-author { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.nb-count { font-size: 12px; color: var(--text-2); margin-top: 8px; }
.booknotes-page { --rd-chrome-text: var(--text); --rd-text-2: var(--text-3); --rd-chrome-line: var(--line); }
.bn-head { display: flex; gap: 16px; align-items: center; padding: 8px 20px 18px; }
.bn-cover { width: 64px; flex: none; }
.bn-title { font-size: 18px; font-weight: 600; line-height: 1.4; }
.bn-author { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.bn-count { font-size: 12px; color: var(--text-2); margin-top: 8px; }
.bn-list { flex: 1; overflow-y: auto; background: var(--card); padding-bottom: calc(20px + var(--safe-bottom)); }
.note-quote.with-thought { margin-top: 10px; color: var(--text-2); font-size: 13.5px; }

/* ---------------------------------------------------------------- 我 */
.me-body { flex: 1; overflow-y: auto; padding: 0 16px 20px; }
.card { background: var(--card); border-radius: 12px; padding: 18px; margin-bottom: 12px; }
.wk-label { font-size: 14px; color: #b08a4a; }
.wk-num { font-size: 34px; font-weight: 700; margin-top: 6px; letter-spacing: -0.5px; }
.wk-num span { font-size: 14px; font-weight: 500; margin-left: 4px; }
.wk-days { display: flex; justify-content: space-between; margin-top: 14px; }
.wk-day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wk-box { width: 30px; height: 30px; border-radius: 6px; background: #f3efe7; display: flex; align-items: center; justify-content: center; color: #fff; }
html[data-dark="1"] .wk-box { background: #2a2620; }
.wk-box.on { background: #c9a865; }
.wk-box.today:not(.on) { box-shadow: inset 0 0 0 1.5px #c9a865; }
.wk-box .ic { width: 18px; height: 18px; }
.wk-box .ic svg { stroke-width: 2.4; }
.wk-d { font-size: 11px; color: var(--text-3); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
.stat-num { font-size: 22px; font-weight: 700; }
.stat-num span { font-size: 12px; font-weight: 500; margin-left: 2px; }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.top-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.top-cover { width: 36px; flex: none; }
.top-cover .cover-ph-title, .top-cover .cover-ph-author { display: none; }
.top-title { flex: 1; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.top-time { font-size: 12px; color: var(--text-3); }
.list-card { padding: 0; }
.list-row { display: block; width: 100%; text-align: center; padding: 15px; font-size: 15px; color: #e8524a; }
.me-foot { text-align: center; font-size: 12px; color: var(--text-3); padding: 12px 0 24px; }

/* ---------------------------------------------------------------- 登录 */
.login { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: min(100%, 320px); display: flex; flex-direction: column; gap: 12px; }
.login-logo { font-family: var(--serif); font-size: 30px; font-weight: 700; text-align: center; letter-spacing: 0.08em; }
.login-sub { text-align: center; font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.login-input { height: 46px; border-radius: 10px; border: 0; background: var(--card); padding: 0 14px; font-size: 16px; outline: 0; }
.login-btn { height: 46px; border-radius: 23px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 600; margin-top: 8px; }
.login-btn:active { background: var(--brand-press); }
.login-err { min-height: 20px; text-align: center; font-size: 13px; color: #e8524a; }

/* 大屏：阅读区居中，菜单不铺满 */
@media (min-width: 700px) {
  .rd-bottom { left: 50%; right: auto; width: 560px; transform: translate(-50%, 100%); border-radius: 14px 14px 0 0; }
  .rd-chrome.show .rd-bottom { transform: translate(-50%, 0); }
  .panel { left: 50%; right: auto; width: 480px; transform: translate(-50%, 100%); }
  .panel-mask.show .panel { transform: translate(-50%, 0); }
  .action-sheet { left: 50%; right: auto; width: 400px; transform: translate(-50%, 120%); }
  .sheet-mask.show .action-sheet { transform: translate(-50%, 0); }
}

/* ---------------------------------------------------------------- 2025 版细节（10-23 对照截图） */

/* 选字、划线气泡：上层三个圆钮＋颜色条，下层操作条 */
.pop-wrap { position: absolute; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--sans); }
.pop-wrap.below { flex-direction: column-reverse; }
.pop-wrap .pop-menu { position: relative; display: flex; padding: 4px 6px; background: #2b2b2d; color: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }
.pop-wrap .pop-menu > button { min-width: 58px; }
.pop-wrap.below .pop-arrow { bottom: auto; top: -6px; }
.hl-tier { display: flex; align-items: center; gap: 8px; }
.hl-style { width: 44px; height: 44px; border-radius: 50%; background: #2b2b2d; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22); }
.hl-style.on { background: #3a3a3d; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 4px 16px rgba(0, 0, 0, 0.22); }
.hs { position: relative; width: auto; height: auto; font: 500 21px/1 var(--serif); color: #fff; padding: 0 2px; border: 0; background: none; }
.hs.hs-marker { background: #f5c04a; color: #2b2b2d; border-radius: 3px; padding: 1px 4px 2px; }
.hs.hs-line { border-bottom: 2px solid #fff; padding-bottom: 1px; }
.hs.hs-wave::after { bottom: -5px; }
.hl-colors { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 22px; background: #2b2b2d; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22); }
.hl-color { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: none; margin: 0; outline: none; }
.hl-color.on { outline: none; }
.hl-color .ic { width: 16px; height: 16px; }
.hl-color .ic svg { stroke-width: 2.6; }

/* 「A」面板：胶囊滑块 */
.fp-size { padding: 2px 0 12px; }
.fp-row2 { display: flex; gap: 12px; padding-bottom: 12px; }
.pill { display: flex; align-items: center; height: 40px; border-radius: 20px; background: color-mix(in srgb, var(--rd-chrome-text) 7%, transparent); padding: 0 6px; user-select: none; -webkit-user-select: none; }
.pill-half { flex: 1; }
.pill-l, .pill-r { flex: none; min-width: 30px; text-align: center; font-size: 13px; color: var(--rd-text-2); cursor: pointer; }
.pill-size .pill-l { font-size: 13px; }
.pill-size .pill-r b { font-size: 19px; font-weight: 500; color: var(--rd-chrome-text); }
.pill-track { position: relative; flex: 1; height: 100%; touch-action: none; cursor: pointer; margin: 0 18px; }
.pill-knob {
  position: absolute; top: 50%; transform: translate(-50%, -50%); min-width: 34px; height: 34px; padding: 0 6px; border-radius: 17px;
  background: var(--rd-chrome); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--rd-chrome-text); white-space: nowrap;
}
.rd[data-theme="dark"] ~ .rd-chrome .pill-knob, .reader-page[data-theme="dark"] .pill-knob { background: #3a3a3a; }
.pill-half .pill-knob { font-size: 12px; font-weight: 500; }
.fp-links { display: flex; gap: 12px; padding-bottom: 12px; }
.fp-link { flex: 1; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 20px; background: color-mix(in srgb, var(--rd-chrome-text) 7%, transparent); font-size: 14px; }
.fp-link span { flex: 1; text-align: left; }
.fp-link em { font-style: normal; font-size: 12px; color: var(--rd-text-2); }
.fp-link .chev { width: 14px; height: 14px; transform: rotate(180deg); color: var(--rd-text-2); }
.lp-head { display: flex; align-items: center; height: 36px; font-size: 15px; font-weight: 600; }
.lp-head span:not(.lp-gap) { flex: 1; text-align: center; }
.lp-back, .lp-gap { width: 36px; height: 36px; display: flex; align-items: center; }
.lp-back .ic { width: 20px; height: 20px; }
.lp-list { padding: 4px 0 10px; }
.lp-item { display: flex; align-items: center; width: 100%; height: 48px; font-size: 15px; text-align: left; border-bottom: 0.5px solid var(--rd-chrome-line); }
.lp-item:last-child { border-bottom: 0; }
.lp-item span { flex: 1; }
.lp-item.on { color: var(--brand); }
.lp-item .ic { width: 18px; height: 18px; }
.lp-item .ic svg { stroke-width: 2.2; }

/* 目录：从下面升起 */
.toc-sheet {
  left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 86%; border-radius: 14px 14px 0 0;
  transform: translateY(100%); box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}
.drawer-mask.show .toc-sheet { transform: none; }
@media (min-width: 700px) { .toc-sheet { left: 50%; width: 560px; margin-left: -280px; } }
.ts-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 10px; }
.ts-title { flex: 1; font-size: 17px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ts-bottom { font-size: 13px; color: var(--rd-text-2); white-space: nowrap; }
.ts-search { display: flex; align-items: center; gap: 6px; margin: 0 20px 8px; height: 36px; padding: 0 12px; border-radius: 18px; width: calc(100% - 40px);
  background: color-mix(in srgb, var(--rd-chrome-text) 7%, transparent); color: var(--rd-text-2); font-size: 14px; }
.ts-search .ic { width: 17px; height: 17px; }
.toc-item { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; }
.toc-page { font-size: 12px; color: var(--rd-text-2); }
.toc-now { grid-column: 1 / -1; font-size: 12px; color: var(--rd-text-2); margin-top: 6px; }
.toc-item.on .toc-text { color: var(--brand); }
.reader-page[data-theme="yellow"] .toc-item.on .toc-text { color: #b0802c; }

/* 笔记：小图标＋原文＋想法 */
.nb-badge {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-top: 3px;
  font: 500 12px/1 var(--serif); color: var(--rd-text-2, var(--text-3)); border-radius: 3px;
}
.nb-badge.hs-marker { background: var(--mk); color: var(--rd-chrome-text, var(--text)); }
.nb-badge.hs-line { box-shadow: inset 0 -1.5px 0 var(--hl); border-radius: 0; height: 16px; }
.nb-badge.hs-wave { position: relative; }
.nb-badge.hs-wave::after { content: ''; position: absolute; left: 1px; right: 1px; bottom: -1px; height: 3px; background: var(--hl);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='3'><path d='M0 2 Q1.5 0 3 2 T6 2' fill='none' stroke='black' stroke-width='1'/></svg>") repeat-x left / 6px 3px;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='3'><path d='M0 2 Q1.5 0 3 2 T6 2' fill='none' stroke='black' stroke-width='1'/></svg>") repeat-x left / 6px 3px; }
.nb-badge.nb-thought .ic, .nb-badge.nb-thought svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.note-item { display: flex; gap: 10px; align-items: flex-start; }
.note-main { flex: 1; min-width: 0; }
.note-item .note-quote { border-left: 0; padding-left: 0; }
.bn-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--card); padding-bottom: calc(24px + var(--safe-bottom)); }
.booknotes-page .navbar { background: var(--card); }
.bn-search { margin: 4px 16px 6px; flex: none; }
.bn-head { display: flex; gap: 16px; align-items: flex-start; padding: 14px 20px 18px; border-bottom: 0.5px solid var(--line); }
.bn-info { flex: 1; min-width: 0; }
.bn-title { font-size: 20px; font-weight: 700; line-height: 1.4; font-family: var(--serif); }
.bn-author { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.bn-count { font-size: 12px; color: var(--text-3); margin-top: 10px; }
.bn-cover { width: 58px; flex: none; }
.bn-chapter { font-size: 16px; font-weight: 700; padding: 22px 20px 6px; }
.bn-item { display: flex; gap: 10px; padding: 12px 20px 14px; }
.bn-item + .bn-item .bn-main { border-top: 0.5px solid var(--line); padding-top: 14px; margin-top: -2px; }
.bn-main { flex: 1; min-width: 0; }
.bn-text { font-size: 15px; line-height: 1.7; color: var(--text); }
.bn-thought { font-size: 15px; line-height: 1.7; white-space: pre-wrap; }
.bn-quote { font-size: 13.5px; line-height: 1.65; color: var(--text-2); margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--line); }
.bn-date { font-size: 11px; color: var(--text-3); margin-top: 8px; }
.booknotes-page .nb-badge { --rd-text-2: var(--text-3); --rd-chrome-text: var(--text); }

/* ---------------------------------------------------------------- 照官方取的色值（参照 INDEX.md「关键数值」） */
.rd, .reader-page { --rd-bg: #f8f8fa; --rd-text: #0d141e; --rd-text-2: #7e7e80; --rd-chrome: #fdfdff; --rd-chrome-line: #dfdfdf; --rd-chrome-text: #605f64; }
.reader-page[data-theme="yellow"], .rd[data-theme="yellow"] { --rd-bg: #f8f0d9; --rd-text: #2e2618; --rd-text-2: #8f8470; --rd-chrome: #f8f0d9; --rd-chrome-line: #e4d9bd; --rd-chrome-text: #5a5040; }
.reader-page[data-theme="green"], .rd[data-theme="green"] { --rd-bg: #ccf0cf; --rd-text: #13281a; --rd-text-2: #688a6f; --rd-chrome: #ccf0cf; --rd-chrome-line: #b3dab7; --rd-chrome-text: #3f5845; }
.reader-page[data-theme="dark"], .rd[data-theme="dark"] { --rd-bg: #000000; --rd-text: #9c9c9c; --rd-text-2: #5c5c5e; --rd-chrome: #1c1c1c; --rd-chrome-line: #2c2c2c; --rd-chrome-text: #a0a1a5; }
.sw-white { background: #f8f8fa; } .sw-yellow { background: #f8f0d9; } .sw-green { background: #ccf0cf; }
.rd-title, .rd-pageno { font-size: 11px; color: var(--rd-text-2); }
.rd-top .rd-btn { color: #646466; }
.reader-page[data-theme="dark"] .rd-top .rd-btn { color: var(--rd-chrome-text); }
.zt-content p { margin: 0 0 0.9em; }

/* 划线五色（2025 App 取色）；马克笔是同色半透明 */
.mk-c-red { --hl: #f0959d; --mk: rgba(240, 149, 157, 0.62); }
.mk-c-purple { --hl: #b4a0f9; --mk: rgba(180, 160, 249, 0.6); }
.mk-c-blue { --hl: #82b2fa; --mk: rgba(130, 178, 250, 0.6); }
.mk-c-green { --hl: #89d08a; --mk: rgba(137, 208, 138, 0.62); }
.mk-c-yellow { --hl: #f8cd89; --mk: rgba(248, 205, 137, 0.72); }
.c-red { background: #f0959d; } .c-purple { background: #b4a0f9; } .c-blue { background: #82b2fa; } .c-green { background: #89d08a; } .c-yellow { background: #f8cd89; }
.mk-line::after { height: 1.5px; bottom: -1px; }
/* 自己的想法：1px 红色虚线（网页版 CSS 原值） */
.mk-thought { border-bottom: 1px dashed #ff374f; }
.mk-has-note:not(.mk-thought) { box-shadow: inset 0 -1px 0 transparent; }
.mk-note-badge { background: #ff374f; opacity: 0.7; }

/* 选中文字和手柄 */
.mk-sel { background: rgba(95, 125, 140, 0.32); }
.rd-handle, .rd-handle::after { background: #4185e6; }

/* 弹出层底色 */
.pop-wrap .pop-menu, .hl-style, .hl-colors, .pop-arrow { background: #3c3c3c; }
.hl-style.on { background: #4a4a4c; }
.pop-note { background: #3c3c3c; }

/* 开关 */
.switch { position: relative; width: 44px; height: 26px; border-radius: 13px; background: color-mix(in srgb, var(--rd-chrome-text) 22%, transparent); transition: background 0.15s; flex: none; }
.switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.15s; }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(18px); }
.fp-links { flex-wrap: wrap; }
.fp-link.fp-more { flex-basis: 100%; }

/* 写想法：贴在键盘上面的输入条 */
.thought-mask { background: rgba(0, 0, 0, 0); transform: none; transition: background 0.2s; }
.thought-mask.show { background: rgba(0, 0, 0, 0.25); transform: none; }
.thought-dock {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--rd-chrome); color: var(--rd-chrome-text);
  padding: 10px 14px calc(10px + var(--safe-bottom)); box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08); transition: transform 0.15s;
}
.td-row { display: flex; align-items: flex-end; gap: 8px; }
.td-ic { width: 22px; height: 22px; margin-bottom: 7px; color: var(--rd-text-2); }
.thought-dock .thought-input { flex: 1; margin: 0; padding: 8px 0; min-height: 36px; font-size: 16px; line-height: 1.5; border: 0; outline: 0; resize: none; background: none; color: var(--rd-text); }
.thought-dock .tb-ok { background: none; color: var(--brand); font-size: 16px; font-weight: 600; padding: 8px 2px; border-radius: 0; }
.td-quote { display: flex; align-items: center; gap: 10px; padding: 2px 0 0 30px; font-size: 12px; color: var(--rd-text-2); }
.td-quote-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.thought-dock .thought-del { margin: 0; padding: 4px 0; font-size: 12px; color: #e8524a; }

/* ================================================================ 第三轮：对照参照清单补齐（10-23 晚） */

/* 标签栏：阅读 / 书架 / 笔记 / 我 */
.tabbar { background: #f9f9f9; }
html[data-dark="1"] .tabbar { background: #161616; }
.tab { min-width: 0; flex: 1; }

/* 书架：书架 ……… 选择；默认 更新 进度 */
.shelf-head { padding: 10px 0 8px; align-items: center; }
.shelf-tabs { display: flex; gap: 22px; }
.shelf-select { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-2); }
.shelf-select .ic { width: 17px; height: 17px; }
.shelf-filters { display: flex; gap: 22px; padding: 2px 0 16px; font-size: 14px; }
.shelf-filters button { color: var(--text-3); }
.shelf-filters button.on { color: var(--brand); font-weight: 600; }
.shelf-group-head { padding: 0 0 12px; }
.sg-back { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.sg-back .ic { width: 18px; height: 18px; }
.group-card { text-align: left; }
.group-stack { position: relative; }
.group-stack::before, .group-stack::after { content: ''; position: absolute; left: 6%; right: 6%; top: -4px; height: 8px; border-radius: 3px 3px 0 0; background: #d9dadd; z-index: 0; }
.group-stack::after { left: 12%; right: 12%; top: -8px; background: #e6e7ea; }
.group-stack .cover { position: relative; z-index: 1; }
.shelf-foot { text-align: center; font-size: 12px; color: var(--text-3); padding: 26px 0 8px; }
.book { position: relative; }
.pick { position: absolute; right: 6px; top: 6px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, 0.25); border: 1.5px solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; }
.book.chosen .pick { background: var(--brand); }
.pick .ic { width: 14px; height: 14px; }
.pick .ic svg { stroke-width: 2.6; }
.selecting .book:not(.chosen) .cover { opacity: 0.85; }
.select-bar { display: flex; border-top: 0.5px solid var(--line); background: var(--card); flex: none; }
.select-bar button { flex: 1; padding: 14px; font-size: 15px; color: var(--brand); }
.select-bar button.danger { color: #e8524a; }

/* 阅读（首页）：本月、本周卡片＋最近在读 */
.home-page { background: #f3f5f7; }
html[data-dark="1"] .home-page { background: var(--bg); }
a.search { text-decoration: none; }
.search-ph { flex: 1; font-size: 15px; color: var(--text-3); }
.home-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 24px; }
.home-cards { display: flex; gap: 10px; overflow-x: auto; padding: 8px 20px 4px; scrollbar-width: none; }
.home-cards::-webkit-scrollbar { display: none; }
.hc { flex: none; width: 168px; background: var(--card); border-radius: 12px; padding: 14px 14px 12px; display: flex; flex-direction: column; }
.hc-label { font-size: 13px; color: var(--text-2); }
.hc-num { font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: -0.5px; }
.hc-num span { font-size: 12px; font-weight: 500; margin-left: 2px; color: var(--text-2); }
.hc-bars { display: flex; align-items: flex-end; gap: 2px; height: 30px; margin-top: 10px; }
.hc-bars i { flex: 1; background: #dfe3e8; border-radius: 1px; min-height: 2px; }
.hc-bars i.today { background: var(--brand); }
.hc-days { display: flex; gap: 4px; margin-top: 12px; }
.hc-days i { flex: 1; height: 16px; border-radius: 3px; background: #eceef1; }
.hc-days i.on { background: #c9a865; }
.hc-dl { display: flex; gap: 4px; margin-top: 4px; }
.hc-dl span { flex: 1; text-align: center; font-size: 10px; color: var(--text-3); }
.home-title { font-size: 20px; font-weight: 700; padding: 22px 20px 14px; }
.home-sec .grid { padding: 0 20px; }

/* 笔记列表：左边「N个笔记」、书名、在读 · 进度 · 时长，右边封面 */
.page-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.nb-item { align-items: center; }
.nb-item .nb-count { margin: 0 0 4px; font-size: 12px; color: var(--brand); }
.nb-item .nb-author { margin-top: 6px; font-size: 12px; color: var(--text-3); }

/* 阅读页：书签缎带、时间、自动翻页胶囊、下拉提示、覆盖翻页 */
.rd-ribbon {
  position: absolute; z-index: 3; top: 0; right: calc(var(--pad-x, 24px) + 4px); width: 16px; height: 30px; pointer-events: none;
  background: #c8853f; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.rd-ribbon[hidden] { display: none; }
.rd-clock { position: absolute; z-index: 2; left: var(--pad-x, 24px); bottom: calc(var(--safe-bottom) + 14px); font-size: 11px; color: var(--rd-text-2); pointer-events: none; }
.rd-auto-pill {
  position: absolute; z-index: 9; left: 16px; bottom: calc(var(--safe-bottom) + 38px); height: 34px; padding: 0 14px; border-radius: 17px;
  background: rgba(60, 60, 60, 0.82); color: #fff; font-size: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.rd-auto-pill[hidden] { display: none; }
.rd-pull { position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 0; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding-bottom: 12px; font-size: 13px; color: var(--rd-text-2); background: color-mix(in srgb, var(--rd-text) 5%, var(--rd-bg)); opacity: 0; pointer-events: none; }
.rd-pull-mark { width: 12px; height: 18px; border: 1.5px solid var(--rd-text-2); border-bottom: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); }
.rd-pull-mark.on { background: #c8853f; border-color: #c8853f; }
.rd-shot { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: var(--rd-bg); pointer-events: none; }
.rd-shot-top { z-index: 3; box-shadow: 6px 0 18px rgba(0, 0, 0, 0.16); }
.zt-content h1, .zt-content h2 { font-family: var(--serif); }

/* ⋮ 更多：书卡＋图标网格 */
.more-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--card); color: var(--text); border-radius: 14px 14px 0 0; padding: 16px 16px calc(8px + var(--safe-bottom)); transform: translateY(100%); transition: transform 0.25s ease; }
.sheet-mask.show .more-sheet { transform: none; }
.more-book { display: flex; gap: 12px; align-items: center; padding: 4px 4px 16px; border-bottom: 0.5px solid var(--line); }
.more-cover { width: 46px; flex: none; }
.more-cover .cover-ph-title { font-size: 7px; }
.more-cover .cover-ph-author { display: none; }
.more-info { min-width: 0; }
.more-title { font-size: 16px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.more-author { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.more-prog { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 16px; padding: 18px 0 12px; }
.more-grid button { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.more-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--text); }
.more-ic .ic { width: 24px; height: 24px; }
.more-sheet .as-cancel { margin-top: 4px; background: var(--bg); }
@media (min-width: 700px) { .more-sheet { left: 50%; right: auto; width: 460px; margin-left: -230px; } }

/* 进度面板：‹ 滑条 ›；已读 N 分钟、进度、约多久读完；开启自动阅读 */
.pp-step { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--rd-chrome-text); flex: none; }
.pp-step .ic { width: 18px; height: 18px; }
.pp-next .ic { transform: rotate(180deg); }
.pp-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 4px 10px; }
.pp-time { font-size: 14px; color: var(--rd-chrome-text); }
.pp-sub { font-size: 12px; color: var(--rd-text-2); margin-top: 4px; }
.pp-auto { flex: none; height: 32px; padding: 0 14px; border-radius: 16px; font-size: 13px; background: color-mix(in srgb, var(--rd-chrome-text) 8%, transparent); color: var(--rd-chrome-text); }
.ap-title { font-size: 15px; font-weight: 600; text-align: center; padding: 2px 0 12px; }
.ap-row { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.ap-label { font-size: 13px; color: var(--rd-text-2); flex: none; }
.seg { display: flex; flex: 1; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--rd-chrome-text, #333) 8%, transparent); }
.seg button { flex: 1; height: 30px; border-radius: 8px; font-size: 13px; color: var(--rd-text-2, var(--text-2)); display: flex; align-items: center; justify-content: center; gap: 4px; }
.seg button.on { background: var(--rd-card, #fff); color: var(--rd-chrome-text, var(--text)); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.seg .ic { width: 15px; height: 15px; }
.ap-off { display: block; width: 100%; padding: 10px 0 12px; font-size: 15px; color: #008af5; }

/* 亮度和背景：「颜色」四个圆角色块，选中 2px 蓝框 */
.lp-sub { font-size: 12px; color: var(--rd-text-2); padding: 6px 0 4px; }
.swatches { gap: 10px; }
.swatches .swatch { flex: 1; width: auto; height: 44px; border-radius: 10px; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.swatches .swatch.on { box-shadow: 0 0 0 2px #008af5; }
.swatches .sw-white { background: #ffffff; }
.swatches .sw-yellow { background: #f8f1de; }
.swatches .sw-green { background: #c3f1cd; }
.swatches .sw-dark { background: #202833; color: #4c8dff; }

/* 目录、笔记面板：停在底栏上面，主题色底＋白色圆角卡片，顶上有拖动小横条 */
.rd, .reader-page { --rd-sheet: #f4f5f7; --rd-card: #ffffff; }
.reader-page[data-theme="yellow"] { --rd-sheet: #f1e8cf; --rd-card: #fbf6e8; }
.reader-page[data-theme="green"] { --rd-sheet: #bce7c0; --rd-card: #dbf5dd; }
.reader-page[data-theme="dark"] { --rd-sheet: #161616; --rd-card: #222222; }
.sheet-wrap { position: absolute; left: 0; right: 0; top: 0; z-index: 11; background: rgba(0, 0, 0, 0); transition: background 0.25s; }
.sheet-wrap.show { background: rgba(0, 0, 0, 0.35); }
.rsheet {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(100% - 7%); display: flex; flex-direction: column;
  background: var(--rd-sheet); color: var(--rd-chrome-text); border-radius: 14px 14px 0 0;
  transform: translateY(105%); transition: transform 0.26s ease;
}
.sheet-wrap.show .rsheet { transform: none; }
@media (min-width: 700px) { .rsheet { left: 50%; right: auto; width: 560px; margin-left: -280px; } }
.rsheet-handle { display: block; width: 36px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--rd-chrome-text) 22%, transparent); margin: 8px auto 6px; flex: none; }
.rs-seg { flex: none; margin: 4px 16px 10px; }
.rs-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 16px; }
.rs-search { margin: 4px 0 10px; background: var(--rd-card); }
.rs-results .search-hit { background: var(--rd-card); border-radius: 10px; margin-bottom: 8px; border: 0; }
.ts-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 12px; }
.ts-title { flex: 1; font-size: 16px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--rd-chrome-text); }
.ts-now { font-size: 13px; color: #008af5; white-space: nowrap; }
.toc-card { background: var(--rd-card); border-radius: 12px; overflow: hidden; }
.toc-card .toc-item { padding: 14px 16px; border-bottom: 0.5px solid var(--rd-chrome-line); }
.toc-card .toc-item:last-child { border-bottom: 0; }
.toc-card .toc-item.lv2 { padding-left: 30px; }
.toc-card .toc-item.lv3 { padding-left: 44px; }
.toc-card .toc-item.lv4 { padding-left: 56px; }
.toc-now { display: flex; justify-content: space-between; align-items: center; grid-column: 1 / -1; margin-top: 6px; font-size: 12px; color: var(--rd-text-2); }
.toc-addmark { color: #008af5; padding: 2px 0 2px 12px; }
.ns-head { padding: 2px 20px 10px; flex: none; }
.ns-title { font-size: 17px; font-weight: 700; color: var(--rd-chrome-text); }
.ns-book { display: flex; gap: 12px; align-items: center; margin: 0 16px; padding: 12px; background: var(--rd-card); border-radius: 12px; flex: none; }
.ns-cover { width: 44px; flex: none; }
.ns-cover .cover-ph-title { font-size: 7px; }
.ns-cover .cover-ph-author { display: none; }
.ns-info { min-width: 0; }
.ns-name { font-size: 15px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ns-line { font-size: 12px; color: var(--rd-text-2); margin-top: 5px; }
.ns-tools { display: flex; gap: 10px; padding: 10px 16px 6px; flex: none; }
.ns-tools button { display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--rd-card); font-size: 13px; }
.ns-tools .ic { width: 16px; height: 16px; }
.ns-find { padding: 4px 16px; flex: none; }
.ns-find .search { background: var(--rd-card); }
.ns-filter { flex: none; margin: 6px 16px 8px; flex: none; }
.ns-card { display: flex; width: 100%; text-align: left; background: var(--rd-card); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; border: 0; }
.ns-list .note-chapter { padding: 12px 4px 8px; }
.ns-card.mark-item { padding: 0; align-items: center; }
.ns-card .mark-go { padding: 12px 0 12px 14px; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 划线实际画出来的颜色（比色点深一档）：直线、波浪线用深色，马克笔用浅色、两头圆 */
.mk-c-red { --hl: #d85858; --mk: rgba(255, 144, 156, 0.42); }
.mk-c-purple { --hl: #8a6ee0; --mk: rgba(184, 159, 255, 0.42); }
.mk-c-blue { --hl: #5888d8; --mk: rgba(116, 180, 255, 0.4); }
.mk-c-green { --hl: #45a85c; --mk: rgba(112, 211, 130, 0.42); }
.mk-c-yellow { --hl: #e0a038; --mk: rgba(255, 195, 75, 0.5); }
.mk-line::after { height: 1.2px; bottom: -1.5px; }
.mk-wave::after { height: 4px; bottom: -3.5px; }
.mk-marker::after { top: 6%; bottom: 0; border-radius: 0.6em; left: -2px; right: -2px; }

.select-bar[hidden] { display: none; }
