.card-excerpt { overflow-wrap: anywhere; }
.excerpt-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.article-title-link { text-decoration: none; }
.article-title-link:hover { color: #a30005; }
.content-card .course-meta { margin-bottom: 12px; }
body[data-page="module"] .content-card { justify-content: flex-start; }
body[data-page="module"] .content-card .card-footer { margin-top: auto; padding-top: 20px; }
.content-card .markdown-article { font-size: 15px; line-height: 1.85; }
.content-card .markdown-article h2 { font-size: 16px; }
.content-card .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.content-card .card-footer small { margin-left: auto; text-align: right; overflow-wrap: anywhere; }
.read-more { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; color: #86483b; font-size: 13px; font-weight: 600; text-decoration: none; }
.read-more:hover { color: #a30005; text-decoration: underline; text-underline-offset: 4px; }
.read-more svg, .submission-entry svg, .attachment-link svg { width: 16px; height: 16px; }
.source-citation { text-decoration: none; }
.source-citation:hover { text-decoration: underline; }
.attachment-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: #3b665e; font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.course-meta { font-size: 12px; color: #948174; margin: 7px 0 0; overflow-wrap: anywhere; }
.notes-title-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: none !important; width: 100%; }
.notes-title-row h1 { margin-bottom: 12px; }
.submission-entry { display: inline-flex; gap: 8px; align-items: center; flex-shrink: 0; padding: 10px 17px; border-radius: 5px; color: #fff; background: #a30005; font-size: 13px; text-decoration: none; }
.submission-entry:hover { background: #820004; }
.course-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.course-filters label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8c7c70; }
body[data-page="module"] .course-filters select { width: auto; max-width: 230px; font-size: 12px; padding: 8px 12px; box-shadow: none; background: #ffffff80; }
.filter-feedback { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.filter-default { color: #8a8f8b; font-size: 12px; }
.active-filter-list { min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.active-filter-list span { max-width: 190px; padding: 4px 8px; border-radius: 3px; background: #eee4e2; color: #7f1d1d; font-size: 11px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clear-filters { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; padding: 4px 2px; border: 0; background: transparent; color: #7a807c; font: inherit; font-size: 11px; cursor: pointer; }
.clear-filters:hover { color: #8c0000; }
.clear-filters svg { width: 13px; height: 13px; }
.search-snippet mark { padding: 1px 2px; background: #f4d9d6; color: #6d0000; }
.filter-empty { grid-column: 1 / -1; min-height: 230px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; }
.filter-empty > svg { width: 26px; height: 26px; color: #a8aeaa; }
.filter-empty h3, .filter-empty p { margin: 0; }
.filter-empty h3 { font-size: 16px; }
.filter-empty p { font-size: 13px; color: #858b87; }
.filter-empty .button { margin-top: 8px; }
.reader-body { color: #343d32; background: #f9faf7; }
.reader-body::before { display: none; }
.reader-header { max-width: 1120px; margin: auto; padding: 20px 24px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.reader-brand img { width: 280px; max-width: 100%; height: auto; display: block; }
.reader-header nav { display: flex; gap: 24px; color: #77806d; font-size: 13px; }
.reader-header a { text-decoration: none; }
.reader-main { --reader-theme-accent: #8c0000; --reader-theme-heading: #780006; --reader-theme-marker: #8c0000; --reader-theme-text: #333a32; --reader-theme-muted: #6f6a64; --reader-theme-tint: #f7eeee; --reader-theme-soft: #fbf7f6; --reader-theme-border: #e8dfdc; width: min(1025px,calc(100% - 48px)); margin: 36px auto 80px; }
.reader-back { color: #849079; text-decoration: none; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 30px; }
.reader-back svg { width: 16px; height: 16px; }
.reader-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: 15px; color: #8a947f; }
.reader-title { position: relative; font-size: 38px; font-weight: 600; color: var(--reader-theme-heading); line-height: 1.6; overflow-wrap: anywhere; margin-bottom: 22px; }
body[data-page="article"] .reader-main > .reader-heading-aside { display: none; }
.reader-progress { position: fixed; z-index: 1200; inset: 0 0 auto; height: 3px; background: rgba(140,0,0,.08); pointer-events: none; }
.reader-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: #8c0000; transition: transform 80ms linear; }
.reader-dock {
  position: fixed;
  z-index: 1100;
  top: 50%;
  left: 0;
  width: 70px;
  max-height: calc(100vh - 160px);
  display: block;
  overflow: visible;
  border: 1px solid var(--reader-theme-border, #e8dfdc);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 4px 8px 20px rgba(25, 27, 26, 0.08);
  color: var(--reader-theme-muted);
  transform: translateY(-50%);
  pointer-events: auto;
  transition:
    width 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.26s ease;
}
.reader-dock-rail {
  position: relative;
  z-index: 2;
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px 14px;
  background: var(--reader-theme-tint, #f7eeee);
  border-radius: 0 12px 12px 0;
  pointer-events: auto;
}
.reader-toc-handle {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0;
  padding: 8px 0 7px;
  border: 0;
  border-top: 1px solid var(--reader-theme-border, #e8dfdc);
  background: transparent;
  color: var(--reader-theme-accent, #8c0000);
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}
.reader-toc-handle svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  pointer-events: none;
}
.reader-toc-handle span,
.reader-dock .reader-dock-label,
.reader-dock .reader-favorite span,
.reader-dock .reader-share span,
.reader-dock .reader-edit span,
.reader-dock .reader-export span {
  display: block;
  height: 14px;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  writing-mode: horizontal-tb;
  letter-spacing: 0.04em;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.2;
  transition: opacity 0.16s ease;
  pointer-events: none;
}
.reader-dock:hover .reader-toc-handle span,
.reader-dock:hover .reader-dock-label,
.reader-dock:hover .reader-favorite span,
.reader-dock:hover .reader-share span,
.reader-dock:hover .reader-edit span,
.reader-dock:hover .reader-export span,
.reader-dock:focus-within .reader-toc-handle span,
.reader-dock:focus-within .reader-dock-label,
.reader-dock:focus-within .reader-favorite span,
.reader-dock:focus-within .reader-share span,
.reader-dock:focus-within .reader-edit span,
.reader-dock:focus-within .reader-export span {
  opacity: 1;
}
.reader-style-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.reader-style-swatch {
  display: grid !important;
  justify-items: center;
  gap: 7px;
  min-height: 0;
  padding: 10px 6px 9px !important;
  border: 1px solid #eee6e2;
  border-radius: 10px;
  background: #fbf8f5;
  color: #4a514d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}
.reader-style-swatch[aria-pressed="true"] {
  border-color: rgba(140, 0, 0, .38);
  background: #f6eceb;
  color: #8c0000;
}
.reader-style-swatch i {
  display: block;
  width: 42px;
  height: 10px;
  background-repeat: repeat-x;
  background-position: left center;
  background-size: 42px 8px;
}
.reader-heading-aside .reader-like {
  position: relative;
}
.reader-heading-aside .reader-like [data-like-count] {
  position: absolute;
  top: 3px;
  right: 6px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 99px;
  background: #f6eceb;
  color: #8c0000;
  font-size: 9px;
  font-weight: 750;
  line-height: 14px;
  opacity: 1;
  max-height: none;
  overflow: visible;
}
.reader-marks-handle { position: relative; }
.reader-marks-handle em {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 99px;
  background: #8c0000;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  line-height: 14px;
  text-align: center;
}
.reader-toc-panel {
  --toc-h2: clamp(12px, calc(var(--article-size, 20px) * 0.7), 20px);
  --toc-h3: clamp(12px, calc(var(--article-size, 20px) * 0.64), 18px);
  --toc-h4: clamp(11px, calc(var(--article-size, 20px) * 0.58), 16px);
  position: fixed;
  top: 50%;
  left: 70px;
  z-index: 1101;
  width: clamp(228px, calc(var(--article-size, 20px) * 13.2), 300px);
  min-width: 228px;
  max-height: 0;
  padding: 0 14px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--reader-theme-border, #e8dfdc);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 8px 12px 28px rgba(25, 27, 26, 0.12);
  transform: translateY(-50%);
  transition: opacity 0.18s ease, max-height 0.26s cubic-bezier(0.22, 1, 0.36, 1), padding 0.26s ease;
}
.reader-toc-panel p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--reader-theme-border, #e8dfdc);
  color: #272b28;
  font-size: var(--toc-h2);
  font-weight: 750;
}
.reader-toc-panel p span { color: #969c98; font-size: 0.78em; font-weight: 500; }
.reader-toc-panel nav { display: grid; gap: 1px; }
.reader-toc-panel a {
  border-left: 2px solid transparent;
  color: #737a76;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-radius: 0 4px 4px 0;
}
.reader-toc-panel a:hover { color: var(--reader-theme-accent); background: var(--reader-theme-soft, #fbf7f6); }
.reader-toc-panel a[aria-current] { border-left-color: var(--reader-theme-marker); background: var(--reader-theme-tint); color: var(--reader-theme-heading); font-weight: 700; }
.reader-toc-panel .toc-h2 {
  margin-top: 8px;
  padding: 0.45em 0.55em;
  color: #2a312c;
  font-size: var(--toc-h2);
  font-weight: 750;
}
.reader-toc-panel .toc-h2:first-child { margin-top: 0; }
.reader-toc-panel .toc-h3 {
  padding: 0.32em 0.55em 0.32em 1.1em;
  color: #7a827d;
  font-size: var(--toc-h3);
  font-weight: 500;
}
.reader-toc-panel .toc-h4 {
  padding: 0.28em 0.55em 0.28em 1.85em;
  color: #9aa19c;
  font-size: var(--toc-h4);
  font-weight: 500;
}
.reader-dock.is-open {
  box-shadow: 8px 12px 28px rgba(25, 27, 26, 0.12);
}
.reader-dock.is-open .reader-toc-panel {
  max-height: calc(100vh - 120px);
  padding: 14px 14px 16px 10px;
  overflow: auto;
  opacity: 1;
  pointer-events: auto;
}
.reader-top-button { position: fixed; z-index: 600; right: 24px; bottom: 24px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #8c0000; box-shadow: 0 8px 24px rgba(25,27,26,.13); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 160ms ease, transform 160ms ease; cursor: pointer; }
.reader-top-button.visible { opacity: 1; pointer-events: auto; transform: none; }
.reader-top-button svg { width: 17px; height: 17px; }
.reader-content img { cursor: zoom-in; }
.reader-image-dialog { width: min(94vw, 1180px); max-width: none; height: min(92vh, 900px); max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.reader-image-dialog::backdrop { background: rgba(18,20,19,.82); backdrop-filter: blur(3px); }
.reader-image-dialog > button { position: absolute; z-index: 2; top: -2px; right: -2px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #2d312e; cursor: pointer; }
.reader-image-dialog > button svg { width: 18px; height: 18px; }
.reader-image-dialog figure { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 10px; margin: 0; }
.reader-image-dialog img { max-width: 100%; max-height: calc(92vh - 46px); object-fit: contain; background: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.28); }
.reader-image-dialog figcaption { color: #fff; font-size: 12px; text-align: center; }
.reader-content { padding-top: 16px; }
.reader-main:not(.qa-reader-main)[data-article-theme="pku"] .reader-title { margin-bottom: 68px; padding: 0 0 15px; border-bottom: 1px solid var(--reader-theme-border); }
.reader-main:not(.qa-reader-main)[data-article-theme="pku"] .reader-title::after,
.reader-main:not(.qa-reader-main)[data-article-theme="yanyuan"] .reader-title::after { content: ""; position: absolute; top: -18px; right: 0; width: 108px; height: 74px; background: url("./assets/cloud-gray-top.png") center / contain no-repeat; opacity: .17; pointer-events: none; }
.reader-main:not(.qa-reader-main)[data-article-theme="pku"] .reader-title::after { top: calc(100% + 10px); right: auto; left: 50%; width: 64px; height: 42px; transform: translateX(-50%); opacity: .28; }
.reader-main:not(.qa-reader-main)[data-article-theme="ink"] .reader-title { padding: .55em .8em; border-top: 1px solid var(--reader-theme-marker); border-bottom: 3px double var(--reader-theme-marker); text-align: center; }
.reader-main:not(.qa-reader-main)[data-article-theme="cinnabar"] .reader-title { padding: .12em 2.2em .25em .7em; border-left: 6px solid var(--reader-theme-accent); }
.reader-main:not(.qa-reader-main)[data-article-theme="cinnabar"] .reader-title::after { content: ""; position: absolute; right: .3em; bottom: .3em; width: .72em; height: .72em; border: 2px solid var(--reader-theme-accent); box-shadow: inset 0 0 0 3px var(--reader-theme-tint); }
.reader-main:not(.qa-reader-main)[data-article-theme="yanyuan"] .reader-title { min-height: 86px; padding: 18px 132px 18px 21px; border-left: 7px solid var(--reader-theme-accent); background: var(--reader-theme-tint); box-shadow: inset 0 -1px 0 var(--reader-theme-border); }
.reader-main:not(.qa-reader-main)[data-article-theme="yanyuan"] .reader-title::after { top: 4px; right: 12px; width: 112px; height: 76px; opacity: .22; }
.reader-main:not(.qa-reader-main)[data-article-theme="weiming"] .reader-title { padding: 62px 20px 18px; border-bottom: 3px double var(--reader-theme-accent); text-align: center; }
.reader-main:not(.qa-reader-main)[data-article-theme="weiming"] .reader-title::before { content: ""; position: absolute; top: -5px; left: 50%; width: 90px; height: 58px; transform: translateX(-50%); background: url("./assets/cloud-gray-top.png") center / contain no-repeat; opacity: .2; }
.reader-main:not(.qa-reader-main)[data-article-theme="boya"] .reader-title { padding: .58em .8em; border-top: 3px double var(--reader-theme-text); border-bottom: 3px double var(--reader-theme-text); font-family: "Noto Serif SC","Source Han Serif SC","Songti SC",STSong,serif; text-align: center; }
.reader-main:not(.qa-reader-main)[data-article-theme="boya"] .reader-title::after { content: "顶学"; display: inline-grid; place-items: center; width: 2.25em; height: 2.25em; margin-left: .85em; border: 1px solid var(--reader-theme-heading); background: var(--reader-theme-heading); color: #fff; font: 600 .34em/1 "Noto Serif SC","Songti SC",serif; vertical-align: .28em; }
.reader-main:not(.qa-reader-main)[data-article-theme="ginkgo"] .reader-title { padding: .55em .72em; border: 1px solid var(--reader-theme-border); border-left: 8px solid var(--reader-theme-marker); background: var(--reader-theme-soft); }
.reader-attachment { margin-top: 34px; padding: 20px 0; background: none; }
.reader-attachment h2 { font-size: 15px; color: #6e7f60; margin-bottom: 8px; }
.reader-attachment p { font-size: 12px; color: #8a957d; margin: 10px 0 0; }
.reader-source { margin-top: 35px; color: #8b937f; font-size: 12px; }
.reader-source a { color: #738765; }
.reader-private-badge { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; padding: 0 12px; border: 1px solid #e3ceca; border-radius: 4px; background: #faf2f1; color: #8c2119; font-size: 12px; font-weight: 700; white-space: nowrap; }
.reader-private-badge svg { width: 15px; height: 15px; }
.submission-main { max-width: 1190px; margin: 30px auto 60px; padding: 0 28px; }
.course-fields { display: grid; grid-template-columns: 130px minmax(0,1.5fr) minmax(0,1fr) 120px; gap: 18px; margin: 22px 0; }
.submission-course-fields { grid-template-columns: 130px minmax(0,1.5fr) minmax(0,1fr); }
.course-fields label { display: grid; gap: 8px; color: #78866b; font-size: 12px; }
.submission-kinds { display: flex; align-items: center; gap: 24px; padding: 12px 0 22px; border: 0; margin: 0; }
.submission-kinds label { display: inline-flex; gap: 7px; align-items: center; color: #929c85; font-size: 13px; cursor: pointer; padding-bottom: 7px; }
.admin-body .submission-kinds input { width: 14px; height: 14px; accent-color: #a30005; }
.submission-kinds label:has(input:checked) { color: #9b382f; }
.submission-attachments { margin-top: 26px; }
.attachment-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.attachment-heading h2 { display: flex; gap: 8px; align-items: center; margin: 0; color: #68765c; font-size: 14px; font-weight: 500; }
.attachment-heading a { display: inline-flex; gap: 6px; align-items: center; color: #8a9a79; font-size: 12px; text-decoration: none; }
.attachment-heading svg { width: 15px; height: 15px; }
.attachment-fields { grid-template-columns: minmax(0,2fr) minmax(0,1.3fr) minmax(80px,.7fr) minmax(100px,.8fr); }
.submission-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.submission-bottom > span { font-size: 12px; color: #8e9b7d; }
.submission-visibility { margin: 26px 0 18px; padding: 16px 18px; border: 1px solid #e2e5df; border-left: 4px solid #8c0000; background: #f8f9f6; }
.submission-visibility label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.admin-body .submission-visibility input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: #8c0000; }
.submission-visibility span { display: grid; gap: 3px; }
.submission-visibility strong { color: #343b36; font-size: 13px; }
.submission-visibility small { color: #7e8780; font-size: 11px; }
.submission-error { color: #a30005; font-size: 13px; }
.submission-success { padding: 80px 10px; text-align: center; }
.submission-success > svg { width: 48px; height: 48px; color: #789c6c; }
.submission-success h1 { font-size: 26px; margin: 22px 0 16px; color: #56694a; }
.submission-success p { color: #8b987c; font-size: 13px; line-height: 1.8; }
.submission-success > div { display: flex; justify-content: center; gap: 15px; margin-top: 26px; }
@media (max-width: 680px) {
  body[data-page="module"] .card-grid { grid-template-columns: minmax(0,1fr); }
  body[data-page="module"] .card-grid.note-tile-grid { grid-template-columns: 1fr; }
  body[data-page="module"] .content-card.note-tile { min-height: 0; padding: 0; background: transparent; box-shadow: none; }
  body[data-page="module"] .control-panel { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
  body[data-page="module"] .module-page-hero { min-height: 174px; padding-top: 26px; padding-bottom: 22px; }
  body[data-page="module"] .module-board { padding: 16px 12px; }
  body[data-page="module"] .content-card { min-height: 190px; }
  .course-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .filter-feedback { order: 3; flex-basis: 100%; }
  .course-filters label { min-width: 0; }
  body[data-page="module"] .course-filters select { width: 100%; min-width: 0; flex: 1; }
  .notes-title-row { align-items: flex-start; }
  .notes-title-row p { font-size: 13px !important; }
  .submission-entry { padding: 9px 12px; font-size: 12px; }
  .content-card .card-footer { flex-wrap: wrap; }
  .reader-header { padding: 18px 16px; flex-wrap: wrap; }
  .reader-brand img { width: 240px; }
  .reader-header nav { gap: 18px; }
  .reader-main { margin-top: 18px; }
  .reader-title { font-size: 24px; }
  .reader-main:not(.qa-reader-main)[data-article-theme="pku"] .reader-title { margin-bottom: 62px; padding-right: 0; }
  .reader-main:not(.qa-reader-main)[data-article-theme="pku"] .reader-title::after { top: calc(100% + 10px); width: 58px; height: 38px; }
  .reader-main:not(.qa-reader-main)[data-article-theme="yanyuan"] .reader-title { min-height: 76px; padding: 15px 88px 15px 16px; }
  .reader-main:not(.qa-reader-main)[data-article-theme="yanyuan"] .reader-title::after { right: 7px; width: 78px; height: 60px; }
  .reader-main:not(.qa-reader-main)[data-article-theme="boya"] .reader-title::after { margin-left: .5em; }
  .reader-top-button { right: 14px; bottom: 14px; }
  .submission-main { padding: 0 14px; margin-top: 22px; }
  .course-fields, .attachment-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .attachment-fields label:first-child { grid-column: 1 / -1; }
  .submission-kinds { gap: 12px; flex-wrap: wrap; }
  .submission-kinds label { font-size: 12px; gap: 5px; }
  .submission-kinds svg { width: 14px; }
  .submission-bottom { align-items: flex-start; flex-direction: column; }
  .submission-bottom .button { align-self: stretch; justify-content: center; }
  .submission-body .workspace-brand { width: 210px; }
  .submission-body .quiet-link { font-size: 11px; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .reader-dock,
  .reader-toc-panel { transition: none; }
}

@media (max-width: 720px) {
  .reader-dock { top: auto; bottom: 88px; transform: none; }
  .reader-dock .reader-toc-handle span,
  .reader-dock .reader-dock-label,
  .reader-dock .reader-favorite span,
  .reader-dock .reader-share span {
    opacity: 1;
  }
  .reader-toc-handle {
    min-height: 56px;
    padding: 10px 0 8px;
  }
  .reader-selection-bar button {
    min-height: 44px;
    min-width: 84px;
    font-size: 14px;
  }
  .reader-type-panel,
  .reader-marks-panel {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 168px;
    width: auto;
    transform: none;
  }
  .reader-toc-panel {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 168px;
    width: auto;
    min-width: 0;
    transform: none;
    border-left: 1px solid var(--reader-theme-border, #e8dfdc);
    border-radius: 12px;
  }
  .reader-dock.is-open .reader-toc-panel {
    max-height: min(52vh, calc(100vh - 220px));
  }
}

.reader-content[data-reader-font="system"] { font-family: "Microsoft YaHei","PingFang SC","Noto Sans SC",system-ui,sans-serif; }
.reader-content[data-reader-font="song"] { font-family: "Noto Serif SC",serif; }
.reader-content[data-reader-font="hei"] { font-family: "Noto Sans SC",sans-serif; }
.reader-content[data-reader-font="kinghwa"] { font-family: "KingHwa_OldSong",serif; }
.reader-content[data-reader-font="zhisong"],
.reader-content[data-reader-font="genwan"] { font-family: "LXGW Neo ZhiSong",serif; }
.reader-content[data-reader-font="fangsong"] { font-family: "Zhuque Fangsong (technical preview)",serif; }
.reader-content[data-reader-font="wenkai"],
.reader-content[data-reader-font="kai"] { font-family: "LXGW WenKai",serif; }
.reader-content[data-reader-font="medium"],
.reader-content[data-reader-font="screen"],
.reader-content[data-reader-font="zhenkai"] { font-family: "LXGW WenKai Medium",serif; }
.reader-content[data-reader-font="zhengkai"],
.reader-content[data-reader-font="zhuokai"],
.reader-content[data-reader-font="mashan"] { font-family: "Huiwen-ZhengKai",serif; }

.reader-flow { position: relative; }
.reader-spread,
.reader-spread-clip { min-width: 0; }
body[data-reader-layout="columns"] .reader-flow {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 228px);
}
body[data-reader-layout="columns"] .reader-spread-clip {
  overflow: hidden;
  overscroll-behavior: none;
  clip-path: inset(0);
  width: 100%;
  height: calc(100vh - 268px);
  min-height: 460px;
}
body[data-reader-layout="columns"] .reader-spread {
  box-sizing: border-box;
  height: 100%;
  column-fill: auto;
  column-gap: 48px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
body[data-reader-layout="columns"] .reader-spread,
body[data-reader-layout="columns"] .reader-spread * {
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
body[data-reader-layout="columns"] .reader-spread :is(h1,h2,h3,h4,h5,h6,pre,table,img,blockquote,.katex-display,.markdown-table-scroll,.reader-title) {
  break-inside: avoid;
  max-width: 100%;
}
body[data-reader-layout="columns"] .reader-content {
  width: auto;
  max-width: none;
  height: auto;
  padding-top: 0;
}
body[data-reader-layout="columns"] .reader-content img { max-height: 42vh; }
body[data-reader-layout="columns"] .reader-meta { display: none; }
body[data-reader-layout="columns"] .reader-heading-row { margin-bottom: 18px; }
body[data-reader-layout="columns"] .reader-title { font-size: 2rem; margin-bottom: 0.35em; }

.reader-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 28px;
  padding: 0;
  background: none;
  box-shadow: none;
  color: #8a847c;
  font-size: 13px;
  user-select: none;
}
.reader-pager[hidden] { display: none; }
.reader-pager button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #e4ddd2;
  border-radius: 999px;
  background: #fff;
  color: #5c5852;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(44, 40, 34, 0.04);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.reader-pager button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}
.reader-pager button:hover:not(:disabled) {
  color: #8c0000;
  border-color: #d8c4c4;
  background: #fffaf8;
  box-shadow: 0 6px 18px rgba(140, 0, 0, 0.08);
}
.reader-pager button:disabled {
  opacity: .38;
  cursor: default;
  box-shadow: none;
}
.reader-pager-status {
  min-width: 64px;
  color: #9a948c;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-align: center;
}

mark.reader-mark {
  background: none;
  color: inherit;
  border-radius: 0;
  cursor: pointer;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-bottom: 2px;
}
mark.reader-mark.is-mine[data-style="wave"],
mark.reader-mark.is-mine:not([data-style]),
.reader-style-swatch[data-style="wave"] i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='8' viewBox='0 0 42 8'%3E%3Cpath d='M0 4.4 C5 .9 9 6.8 14 3.8 S24 .7 28 4.3 36 7.4 42 3.6' fill='none' stroke='%23d4a04a' stroke-width='1.55' stroke-linecap='round'/%3E%3C/svg%3E");
}
mark.reader-mark.is-mine[data-style="scribble"],
.reader-style-swatch[data-style="scribble"] i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='10' viewBox='0 0 46 10'%3E%3Cpath d='M0 6 C4 1 7 8 11 3 C15 9 18 2 23 6 C27 1 32 8 36 4 C40 8 43 2 46 5' fill='none' stroke='%23c9863a' stroke-width='1.35' stroke-linecap='round'/%3E%3Cpath d='M1 4 C6 8 10 2 16 5 C21 8 26 2 31 6 C35 3 41 7 46 4' fill='none' stroke='%23d4a04a' stroke-width='1.1' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E");
}
mark.reader-mark.is-mine[data-style="brush"],
.reader-style-swatch[data-style="brush"] i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Cpath d='M0 6 C8 2 16 8 24 5 C32 2 40 7 48 4' fill='none' stroke='%23c9863a' stroke-width='3.1' stroke-linecap='round' opacity='.82'/%3E%3C/svg%3E");
}
mark.reader-mark.is-mine[data-style="marker"] {
  background-image: none;
  background-color: transparent;
  background-image: linear-gradient(transparent 58%, rgba(245, 214, 130, .78) 58%);
}
.reader-style-swatch[data-style="marker"] i {
  background-image: none;
  background: rgba(245, 214, 130, .78);
  height: 7px;
  border-radius: 2px;
}
mark.reader-mark.is-mine[data-style="chalk"],
.reader-style-swatch[data-style="chalk"] i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='8' viewBox='0 0 44 8'%3E%3Cpath d='M0 5 C4 3 6 6 10 4 M13 5 C17 3 19 6 24 4 M27 5 C31 2 34 6 38 4 M40 5 44 4' fill='none' stroke='%23c9a35c' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}
mark.reader-mark.is-mine[data-style="zigzag"],
.reader-style-swatch[data-style="zigzag"] i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='8' viewBox='0 0 42 8'%3E%3Cpath d='M0 6 L7 2 L14 6 L21 2 L28 6 L35 2 L42 6' fill='none' stroke='%23c9863a' stroke-width='1.45' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}
mark.reader-mark.is-mine[data-style="double"],
.reader-style-swatch[data-style="double"] i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='9' viewBox='0 0 42 9'%3E%3Cpath d='M0 3 H42' fill='none' stroke='%23d4a04a' stroke-width='1.2'/%3E%3Cpath d='M0 6.4 H42' fill='none' stroke='%23d4a04a' stroke-width='1.2'/%3E%3C/svg%3E");
}
mark.reader-mark.is-mine[data-style="dots"],
.reader-style-swatch[data-style="dots"] i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='8' viewBox='0 0 42 8'%3E%3Cpath d='M1 5 H41' fill='none' stroke='%23c9863a' stroke-width='1.7' stroke-linecap='round' stroke-dasharray='0.1 5.2'/%3E%3C/svg%3E");
}
mark.reader-mark.is-mine[data-style="solid"],
.reader-style-swatch[data-style="solid"] i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='8' viewBox='0 0 42 8'%3E%3Cpath d='M0 5 H42' fill='none' stroke='%23d4a04a' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}
mark.reader-mark.is-mine[data-style="dash"],
.reader-style-swatch[data-style="dash"] i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='8' viewBox='0 0 42 8'%3E%3Cpath d='M1 5 H41' fill='none' stroke='%23c4a574' stroke-width='1.5' stroke-linecap='round' stroke-dasharray='4.5 3.5'/%3E%3C/svg%3E");
}
mark.reader-mark.is-mine[data-style="wave"],
mark.reader-mark.is-mine[data-style="scribble"],
mark.reader-mark.is-mine[data-style="brush"],
mark.reader-mark.is-mine[data-style="chalk"],
mark.reader-mark.is-mine[data-style="zigzag"],
mark.reader-mark.is-mine[data-style="double"],
mark.reader-mark.is-mine[data-style="dots"],
mark.reader-mark.is-mine[data-style="solid"],
mark.reader-mark.is-mine[data-style="dash"],
mark.reader-mark.is-mine:not([data-style]) {
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 42px 8px;
}
mark.reader-mark.is-other {
  background-image: none;
  border-bottom: 1px dashed #c4a574;
}
mark.reader-mark.is-flash {
  animation: reader-mark-flash 1.1s ease;
}
@keyframes reader-mark-flash {
  0%, 35% { background-color: rgba(245, 214, 130, .42); }
  100% { background-color: transparent; }
}
.reader-mark-count {
  margin-left: 3px;
  color: #c4a574;
  font-size: 10px;
  font-weight: 750;
  vertical-align: super;
}

.reader-type-panel,
.reader-marks-panel {
  position: fixed;
  z-index: 50;
  left: 78px;
  top: 50%;
  width: min(336px, calc(100vw - 96px));
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 16px 16px 14px;
  border: 1px solid var(--reader-theme-border, #e8dfdc);
  border-radius: 12px;
  background: #fff;
  box-shadow: 8px 14px 32px rgba(25, 27, 26, 0.14);
  color: #303632;
  transform: translateY(-50%);
}
.reader-type-panel[hidden],
.reader-marks-panel[hidden] {
  display: none !important;
}
.reader-type-panel > p,
.reader-marks-panel > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  color: #262b28;
  font-size: 14px;
  font-weight: 750;
}
.reader-marks-panel > p span { color: #969c98; font-size: 11px; font-weight: 500; }
.reader-type-size { display: grid; gap: 8px; margin-bottom: 16px; color: #6b716d; font-size: 12px; }
.reader-type-size strong { color: #8c0000; font-size: 12px; justify-self: end; }
.reader-type-size { grid-template-columns: 1fr auto; }
.reader-type-size div {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.reader-type-size input[type="range"] {
  flex: 1;
  accent-color: #8c0000;
}
.reader-type-size b:first-child { font-size: 12px; font-weight: 500; }
.reader-type-size b:last-child { font-size: 18px; font-weight: 600; }
.reader-type-row { display: grid; gap: 8px; margin-bottom: 14px; }
.reader-type-row > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #6b716d; font-size: 12px; }
.reader-type-row > span small { color: #969c98; font-size: 11px; font-weight: 500; }
.reader-type-row > div { display: flex; flex-wrap: wrap; gap: 8px; }
.reader-font-grid { display: grid !important; grid-template-columns: 1fr 1fr; }
.reader-font-grid button { min-height: 40px; }
.reader-type-row button,
.reader-type-reset {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #e6e0dc;
  border-radius: 8px;
  background: #f7f6f3;
  color: #3b413e;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.reader-type-row button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.reader-type-row button svg { width: 14px; height: 14px; }
.reader-type-row button[aria-pressed="true"] {
  border-color: rgba(140, 0, 0, .35);
  background: #f6eceb;
  color: #8c0000;
  font-weight: 750;
}
.reader-type-row button:disabled { opacity: .45; cursor: not-allowed; }
.reader-type-reset {
  width: 100%;
  margin-top: 2px;
  background: transparent;
  color: #7a817c;
  font-size: 12px;
}

.reader-marks-sub {
  margin: 14px 0 8px;
  color: #8a918c;
  font-size: 12px;
  font-weight: 650;
}
.reader-style-grid + .reader-marks-sub { margin-top: 16px; }
[data-marks-list] > .reader-marks-sub:first-child { margin-top: 0; }
.reader-mark-card {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
  padding: 10px 10px 8px;
  border: 1px solid #eee6e2;
  border-radius: 8px;
  background: #fbf8f5;
  cursor: default;
}
.reader-mark-card [data-mark-jump] { cursor: pointer; }
.reader-mark-card:hover {
  border-color: #e3d4ce;
  background: #f7f1ec;
}
.reader-mark-card p {
  margin: 0;
  color: #2f3531;
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.reader-mark-card small { color: #8a8478; font-size: 12px; line-height: 1.5; }
.reader-mark-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.reader-mark-card-actions em {
  color: #9a8b6c;
  font-size: 11px;
  font-style: normal;
}
.reader-mark-card-actions button,
.reader-share-row button {
  padding: 0;
  border: 0;
  background: none;
  color: #8c0000;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.reader-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee6e2;
}
.reader-share-row > span {
  color: #8a8478;
  font-size: 12px;
  font-weight: 650;
}
.reader-share-preview {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 20, 19, 0.55);
}
.reader-share-preview-card {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #faf8f5;
  box-shadow: 0 18px 48px rgba(25, 27, 26, 0.22);
}
.reader-share-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.reader-share-preview-head strong {
  color: #2f3531;
  font-size: 15px;
}
.reader-share-preview-head button,
.reader-share-preview-actions button:not(.primary) {
  border: 0;
  background: none;
  color: #8c0000;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.reader-share-preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 8px;
  background: #efeae4;
}
.reader-share-preview-tabs[data-share-format-tabs] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.reader-share-preview-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6d6760;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
}
.reader-share-preview-tabs button[aria-pressed="true"] {
  background: #fff;
  color: #8c0000;
  box-shadow: 0 1px 6px rgba(38, 49, 34, 0.08);
}
.reader-share-qr-toggle,
.reader-share-qr-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #6d6760;
  font-size: 13px;
  line-height: 1.4;
}
.reader-share-qr-toggle {
  cursor: pointer;
  user-select: none;
}
.reader-share-qr-toggle input {
  width: 15px;
  height: 15px;
  accent-color: #8c0000;
}
.reader-share-preview-stage {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 280px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 8px;
  border-radius: 8px;
  background: #ebe7e1;
}
.reader-share-preview-stage img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 27, 26, 0.12);
}
.reader-share-preview-stage p {
  margin: 0;
  color: #7a817c;
  font-size: 13px;
}
.reader-share-preview-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.reader-share-preview-pager[hidden] { display: none; }
.reader-share-preview-pager button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #8c0000;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.reader-share-preview-pager span {
  color: #6d6760;
  font-size: 12px;
  font-weight: 650;
}
.reader-share-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.reader-share-preview-actions .primary {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #8c0000;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.reader-share-preview-actions .primary:disabled {
  cursor: wait;
  opacity: 0.55;
}
.reader-marks-empty { margin: 0; color: #8a918c; font-size: 13px; line-height: 1.7; }

.reader-selection-bar {
  position: fixed;
  z-index: 80;
  display: flex;
  padding: 4px;
  border-radius: 10px;
  background: #2a2e2c;
  box-shadow: 0 10px 24px rgba(18, 20, 19, .22);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.reader-selection-bar[hidden] { display: none; }
.reader-selection-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  min-width: 72px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.reader-selection-bar button:hover { background: rgba(255,255,255,.1); }
.reader-selection-bar svg { width: 14px; height: 14px; }

.reader-thought-pop {
  position: fixed;
  z-index: 85;
  width: min(300px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #eadfc8;
  border-radius: 12px;
  background: #fff8ea;
  box-shadow: 0 14px 30px rgba(25, 27, 26, .16);
}
.reader-thought-pop[hidden] { display: none; }
.reader-thought-pop textarea {
  width: 100%;
  min-height: 92px;
  padding: 8px 10px;
  border: 1px solid #ead9b4;
  border-radius: 8px;
  background: #fffdf7;
  color: #3a3530;
  font: inherit;
  font-size: 13px;
  line-height: 1.65;
  resize: vertical;
}
.reader-thought-row,
.reader-thought-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reader-thought-row > span { color: #8a7a5a; font-size: 12px; }
.reader-thought-pop button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #7a6a4e;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.reader-thought-pop .reader-style-swatch {
  min-height: 0;
  padding: 10px 6px 9px !important;
  border: 1px solid #eee6e2;
  background: #fbf8f5;
  color: #4a514d;
  font-weight: 650;
}
.reader-thought-pop .reader-style-swatch[aria-pressed="true"] {
  border-color: rgba(140, 0, 0, .38);
  background: #f6eceb;
  color: #8c0000;
}
.reader-thought-row button[aria-pressed="true"] {
  border-color: rgba(140, 0, 0, .28);
  background: #f6eceb;
  color: #8c0000;
}
.reader-thought-actions { justify-content: flex-end; margin-top: 4px; }
.reader-thought-pop [data-thought-save] { background: #8c0000; color: #fff; }
.reader-thought-pop [data-thought-remove] { margin-right: auto; }
.reader-mark-people { margin: 8px 0 0; color: #9a8b6c; font-size: 12px; }
.reader-thought-others { display: grid; gap: 8px; margin-top: 8px; }
.reader-thought-others article { padding: 8px 10px; border-radius: 8px; background: #fff; }
.reader-thought-others strong { color: #8c0000; font-size: 12px; }
.reader-thought-others p { margin: 4px 0 0; color: #4a4338; font-size: 13px; line-height: 1.6; }
.reader-mark-card em { color: #9a8b6c; font-size: 11px; font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  body[data-reader-layout="columns"] .reader-content { transition: none; }
}

.wechat-share-guide {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px 0;
  background: rgba(18, 20, 19, 0.58);
  cursor: pointer;
}
.wechat-share-guide-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 240px;
  color: #fff;
  text-align: right;
}
.wechat-share-guide-card svg {
  width: 28px;
  height: 28px;
  margin-right: 2px;
}
.wechat-share-guide-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.55;
}
.wechat-share-guide-card small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.4;
}

.reader-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 20, 19, 0.42);
}
.reader-share-sheet-card {
  width: min(360px, 100%);
  display: grid;
  gap: 10px;
  padding: 18px 16px 14px;
  border: 1px solid #e8dfdc;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(25, 27, 26, 0.16);
}
.reader-share-sheet-card p {
  margin: 0;
  color: #303532;
  font-size: 14px;
  font-weight: 750;
}
.reader-share-sheet-card input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #e4ddd9;
  border-radius: 6px;
  background: #faf8f6;
  color: #4a514d;
  font: inherit;
  font-size: 12px;
}
.reader-share-sheet-card button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: #8c0000;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
