/* split-build 2026-08-28-1507 delete-comment */
#book-page{
  --bg: #f7f3ec;
  --bg-warm: #f4f4f4;
  --surface: #ffffff;
  --ink: #1c1814;
  --ink-soft: #3f3a34;
  --muted: #7a736a;
  --faint: #a39b90;
  --line: #e6ded2;
  --line-strong: #d4cbbc;
  --accent: #e24a17;
  --accent-hover: #c53f12;
  --accent-soft: #fce6dc;
  --accent-fg: #fffdfb;
  --success: #2c6e45;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card:
    0 0 0 1px rgba(28, 24, 20, 0.05),
    0 1px 2px -1px rgba(28, 24, 20, 0.05),
    0 10px 28px -16px rgba(28, 24, 20, 0.14);
  --shadow-cover:
    0 0 0 1px rgba(28, 24, 20, 0.08),
    0 14px 32px -12px rgba(28, 24, 20, 0.35);
  --font: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --display: "Newsreader", "Iowan Old Style", Palatino, serif;
}#book-page, #book-page *, #book-page *::before, #book-page *::after{ box-sizing: border-box; }#book-page{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}#book-page button{ font: inherit; cursor: pointer; }#book-page button:disabled{ cursor: default; opacity: 0.4; }#book-page img{ max-width: 100%; display: block; }#book-page p{ text-wrap: pretty; margin: 0; }#book-page .page{
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem 12px 2.5rem;
}
@media (min-width: 576px) { #book-page .page{ max-width: 540px; } }
@media (min-width: 768px) { #book-page .page{ max-width: 720px; padding: 1.5rem 12px 2.5rem; } }
@media (min-width: 992px) { #book-page .page{ max-width: 960px; } }
@media (min-width: 1200px) { #book-page .page{ max-width: 1140px; } }
@media (min-width: 1400px) { #book-page .page{ max-width: 1320px; } }#book-page .paper{
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
}#book-page .hero{
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}
@media (min-width: 768px) {#book-page .hero{ padding: 1.75rem; }
}
#book-page .hero-inner{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 0;
  }
@media (min-width: 640px) {#book-page .hero-inner{ flex-direction: row; }
}#book-page .cover-col{
  width: 12rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-shrink: 0;
}
@media (min-width: 640px) {#book-page .cover-col{ margin: 0; } }#book-page .cover-btn{
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 8px;
  text-align: left;
}#book-page .cover{
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-cover);
  outline: 1px solid rgba(28, 24, 20, 0.1);
  outline-offset: -1px;
}#book-page .book-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  border: 0;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}#book-page .book-btn svg{ width: 1rem; height: 1rem; }#book-page .book-btn-primary{ background: var(--accent); color: var(--accent-fg); width: 100%; }#book-page .book-btn-primary:hover{ background: var(--accent-hover); }#book-page .book-btn-secondary{
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  width: 100%;
}#book-page .book-btn-secondary:hover{ background: var(--bg-warm); }#book-page .book-btn-outline{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}#book-page .book-btn-outline:hover{ background: var(--bg-warm); }#book-page .book-btn-sm{ height: 2.25rem; padding: 0 0.75rem; }#book-page .book-btn-icon{
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  flex-shrink: 0;
  color: var(--muted);
}#book-page .book-btn-icon:hover{ background: var(--bg-warm); color: var(--ink); }#book-page .info{ flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }#book-page .share-btn{
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
}
@media (min-width: 768px) {
  #book-page .share-btn{ top: 1.1rem; right: 1.1rem; }
}
#book-page .owned-note{
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--success);
}
#book-page .title-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-right: 2.5rem;
}#book-page h1{
  font-family: var(--display);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 400;
  margin: 0;
}#book-page .book-status{
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
}#book-page .author{
  position: relative;
  z-index: 20;
  display: inline-block;
  margin-top: 0.25rem;
}#book-page .author-name{
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none;
}#book-page .author-name:hover{ color: var(--accent); }#book-page .author-card{
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 15rem;
  padding: 1rem;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 30;
}#book-page .author:hover .author-card, #book-page .author:focus-within .author-card{ display: flex; }#book-page .author-card-head{ display: flex; align-items: center; gap: 0.75rem; }#book-page .avatar{
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}#book-page .avatar-sm{ width: 1.75rem; height: 1.75rem; font-size: 0.65rem; }#book-page .followers{ font-size: 0.75rem; color: var(--muted); }#book-page .meta{ margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); }#book-page .meta .n{ color: var(--ink); font-variant-numeric: tabular-nums; }#book-page .published{ margin-top: 0.5rem; font-size: 0.875rem; }#book-page .published .n{ color: var(--ink); }#book-page .stats-row{
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
}#book-page .stat{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}#book-page .stat svg{ width: 1rem; height: 1rem; }#book-page .stat .n{ color: var(--ink); font-variant-numeric: tabular-nums; }#book-page .rating{ position: relative; display: inline-flex; align-items: center; gap: 0.4rem; }#book-page .rating-star{
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  display: inline-flex;
}#book-page .rating-star svg{ width: 1rem; height: 1rem; fill: none; stroke: currentColor; }#book-page .rating-star.filled svg{ fill: currentColor; }#book-page .rating-drop{
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem;
  z-index: 30;
  min-width: 10rem;
}#book-page .rating.open .rating-drop{ display: block; }#book-page .rating-drop p{ font-size: 0.75rem; color: var(--muted); margin-bottom: 0.4rem; }#book-page .stars{ display: flex; gap: 2px; }#book-page .stars button{
  padding: 2px;
  border: 0;
  background: none;
  color: var(--accent);
}#book-page .stars svg{ width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; }#book-page .stars button.on svg{ fill: currentColor; }#book-page .tabs{
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
}#book-page .book-tab-list{
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}#book-page .book-tab{
  position: relative;
  z-index: 2;
  padding: 0 0 0.75rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  pointer-events: auto;
}#book-page .book-tab:hover{ color: var(--ink); }#book-page .book-tab.active{
  color: var(--ink);
  font-weight: 500;
}#book-page .book-tab.active::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
}#book-page .book-tab .faint{ margin-left: 0.35rem; color: var(--faint); font-weight: 400; }#book-page .book-tab-panel{
  display: none;
  padding-top: 1.25rem;
}#book-page .book-tab-panel.active{ display: block; }#book-page #panel-toc,
#book-page #panel-inside,
#book-page #panel-stats {
  max-height: 26rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}#book-page .anno{ display: flex; flex-direction: column; gap: 0.85rem; font-size: 0.9rem; line-height: 1.65; color: var(--ink-soft); }#book-page .anno strong{ color: var(--ink); font-weight: 500; }#book-page .chapters{ list-style: none; margin: 0; padding: 0 0.5rem 0 0; }#book-page .chapters li{ border-bottom: 1px solid var(--line); }#book-page .chapters li:last-child{ border-bottom: 0; }#book-page .ch-btn{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border: 0;
  background: none;
  text-align: left;
}#book-page .ch-num{ width: 1.5rem; font-size: 0.875rem; color: var(--faint); font-variant-numeric: tabular-nums; }#book-page .ch-title{ flex: 1; font-size: 0.875rem; color: var(--ink); }#book-page .ch-new{ margin-left: 0.5rem; font-size: 0.75rem; color: var(--accent); }#book-page .ch-free{ font-size: 0.75rem; color: var(--success); }#book-page .ch-price{ font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }#book-page .ch-chev{ width: 1rem; height: 1rem; color: var(--faint); transition: transform 0.2s; }#book-page .ch-btn.open .ch-chev{ transform: rotate(180deg); }#book-page .ch-sum{
  display: none;
  padding: 0 1.5rem 0.75rem 2.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}#book-page .ch-btn.open + .ch-sum{ display: block; }#book-page .inside{ display: flex; flex-direction: column; gap: 1rem; padding-right: 0.5rem; }#book-page .inside-grid{
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {#book-page .inside-grid{ grid-template-columns: 1fr 1fr; } }#book-page .box{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.75rem;
}#book-page .box h3{ margin: 0; font-size: 0.875rem; font-weight: 500; }#book-page .meters{ list-style: none; margin: 0.65rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }#book-page .meter-top{ display: flex; justify-content: space-between; font-size: 0.75rem; margin-bottom: 0.25rem; }#book-page .meter-top span:first-child{ color: var(--ink-soft); }#book-page .meter-top span:last-child{ color: var(--muted); font-variant-numeric: tabular-nums; }#book-page .bar{ height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }#book-page .bar i{ display: block; height: 100%; border-radius: 99px; background: var(--accent); }#book-page .bar i.t1{ background: var(--ink-soft); }#book-page .bar i.t2{ background: var(--muted); }#book-page .chips{ display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }#book-page .chip{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}#book-page .linkish{
  margin-top: 0.65rem;
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.75rem;
  color: var(--muted);
}#book-page .linkish:hover{ color: var(--ink); }#book-page .book-stack{ display: flex; flex-direction: column; gap: 0.75rem; }#book-page .is-hidden{ display: none !important; }#book-page .rail-wrap{ padding: 1rem; }#book-page .rail{
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}#book-page .rail-track{
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}#book-page .rail-track::-webkit-scrollbar{ display: none; }
#book-page .item{
  width: 4.1rem;
  flex-shrink: 0;
  text-align: center;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}
#book-page .item-ico{
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
}
#book-page .item-ico svg{ width: 1.25rem; height: 1.25rem; }
#book-page .item p{
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}#book-page .rail-btn{
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}#book-page .rail-btn svg{ width: 1rem; height: 1rem; }#book-page .kpi{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
@media (min-width: 640px) {#book-page .kpi{ grid-template-columns: repeat(4, 1fr); } }#book-page .kpi div{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}#book-page .kpi p{ font-size: 0.75rem; color: var(--muted); }#book-page .kpi b{
  display: block;
  margin-top: 0.15rem;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 400;
}#book-page .chart{ display: flex; align-items: flex-end; gap: 0.5rem; height: 7rem; margin-top: 1rem; }#book-page .chart span{
  flex: 1;
  background: var(--accent);
  opacity: 0.35;
  border-radius: 4px 4px 0 0;
}#book-page .chart-labels{
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
}#book-page .chart-labels i{ flex: 1; font-style: normal; text-align: center; }#book-page .updated{ margin-top: 1rem; font-size: 0.75rem; color: var(--muted); }#book-page .comments{ margin-top: 0; }#book-page .comments-head{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}#book-page .comments-head h2{
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}#book-page .comments-head h2 span{ color: var(--muted); font-weight: 400; }#book-page .sort{ display: flex; gap: 0.25rem; font-size: 0.75rem; }#book-page .sort button{
  border: 0;
  background: none;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}#book-page .sort button.on{ background: var(--bg-warm); color: var(--ink); }#book-page .comments-body{ padding: 1.25rem; }#book-page textarea{
  width: 100%;
  min-height: 4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 2.75rem 0.75rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  resize: none;
  overflow: hidden;
  outline: none;
  background: #fff;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#book-page textarea::-webkit-scrollbar,
#book-page textarea::-webkit-resizer{ display: none; }
#book-page .composer{ position: relative; }
#book-page .send-btn{
  position: absolute;
  top: 50%;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
}
#book-page .send-btn svg{ width: 1.15rem; height: 1.15rem; display: block; }
#book-page .send-btn:hover{ color: var(--accent-hover); background: var(--accent-soft); }
#book-page .send-btn:disabled{ opacity: 0.4; cursor: default; }#book-page textarea:focus{ border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }#book-page .clist{ list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }#book-page .c-item{ display: flex; gap: 0.65rem; }#book-page .c-meta{ display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.875rem; }#book-page .c-meta b{ font-weight: 500; }#book-page .tag-author{
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
}#book-page .time{ font-size: 0.75rem; color: var(--faint); }#book-page .c-text{ margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.6; color: var(--ink-soft); }#book-page .heart{
  margin: 0;
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1;
  height: 1.25rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
#book-page .heart.on{ color: var(--accent); }
#book-page .heart svg{ width: 0.9rem; height: 0.9rem; }
#book-page .c-actions{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
  min-height: 1.25rem;
}
#book-page .c-reply{
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  cursor: pointer;
}
#book-page .c-reply:hover{ color: var(--ink); }
#book-page .c-delete{
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  cursor: pointer;
}
#book-page .c-delete:hover{ color: var(--accent); }
#book-page .reply-box{
  position: relative;
  margin: 0.75rem 0 0 2.25rem;
}
#book-page .reply-box .reply-input{
  width: 100%;
  min-height: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem 2.6rem 0.7rem 0.85rem;
  line-height: 1.45;
  resize: none;
  overflow: hidden;
}
#book-page .reply-box .send-btn{
  top: 45%;
  bottom: auto;
  right: 0.45rem;
  width: 1.75rem;
  height: 1.75rem;
  transform: translateY(-50%);
}#book-page .replies{
  list-style: none;
  margin: 0.75rem 0 0 2.25rem;
  padding: 0 0 0 0.75rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}#book-page .more{ margin-top: 1.25rem; width: 100%; }#book-page .others{ margin-top: 1rem; }#book-page .others-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}#book-page .others-head h2{
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
}#book-page .others-head a{ font-size: 0.875rem; color: var(--muted); text-decoration: none; }#book-page .others-head a:hover{ color: var(--accent); }#book-page .others-row{ display: flex; flex-wrap: wrap; gap: 1rem; }#book-page .mini{
  width: 8rem;
  text-decoration: none;
  color: inherit;
}#book-page .mini img, #book-page .mini .cover-svg{
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-cover);
}#book-page .mini h3{
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.3;
}#book-page .mini .r{ font-size: 11px; color: var(--muted); margin-top: 0.15rem; }#book-page .book-modal{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(28, 24, 20, 0.45);
  place-items: center;
  padding: 1rem;
}#book-page .book-modal.open{ display: grid; }#book-page .book-modal-box{
  background: #fff;
  border-radius: 14px;
  padding: 0.4rem;
  max-width: min(22rem, calc(100% - 2rem));
  width: 100%;
  position: relative;
}
#book-page .book-modal-box .cover{
  border-radius: 10px;
  box-shadow: none;
  outline: none;
}
#book-page .book-modal-close {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  border: 0;
  background: #000000;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  color: #ffffff;
  display: grid;
  place-items: center;
  z-index: 2;
  border-radius: 16px;
}
#book-page .book-modal-close svg{ width: 0.95rem; height: 0.95rem; display: block; }
#book-page .book-modal-close:hover{
  color: var(--bg);
  background: var(--accent);
}
#book-page .book-dialog{
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  max-width: 22rem;
  width: 100%;
  box-shadow: var(--shadow-card);
}
#book-page .book-dialog-title{
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
#book-page .book-dialog-text{
  margin: 0.55rem 0 1.35rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
#book-page .book-dialog-actions{
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
#book-page .book-dialog-actions .book-btn{
  width: auto;
  min-width: 6.75rem;
  height: 2.5rem;
}
#book-page .item-dialog{
  text-align: center;
  padding-top: 1.75rem;
}
#book-page .item-dialog-ico{
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-warm);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--accent);
}
#book-page .item-dialog-ico img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#book-page .item-dialog-ico svg{ width: 2rem; height: 2rem; }
#book-page .item-dialog .book-dialog-text{
  text-align: left;
  white-space: pre-wrap;
  margin-bottom: 0;
}#book-page .book-toast{
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 80;
}#book-page .book-toast.show{ opacity: 1; }

#book-page { height: auto !important; min-height: 0; }
#book-page .hero { height: auto !important; }
#book-page a { color: inherit; text-decoration: none; }
#book-page button { font: inherit; cursor: pointer; }
#book-page .book-btn { appearance: none; }
#book-page .old-price { color: var(--faint); text-decoration: line-through; margin-right: 0.35rem; }

#book-page .layout { display: flex; flex-direction: column; gap: 1rem; }
#book-page .main-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; flex: 1; }
#book-page .side { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1024px) {
  #book-page .layout { flex-direction: row; align-items: flex-start; gap: 1.25rem; }
  #book-page .side { width: 16rem; flex-shrink: 0; }
}

#book-page .author-name {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
#book-page .author-name:hover { color: var(--accent); }

#book-page .author-panel { padding: 1.25rem; }
#book-page .author-panel-inner { display: flex; align-items: center; gap: 0.75rem; }
#book-page .avatar-lg { width: 3.5rem; height: 3.5rem; font-size: 1.125rem; }
#book-page .author-panel-name { display: block; font-weight: 500; color: var(--ink); }
#book-page .author-panel-name:hover { color: var(--accent); }
#book-page .author-meta {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
#book-page .author-panel .book-btn { margin-top: 1rem; width: 100%; }
@media (min-width: 1024px) {
  #book-page .author-panel-inner { flex-direction: column; text-align: center; }
  #book-page .author-panel-inner > div { margin-top: 0.75rem; }
}

#book-page .others { margin-top: 0; padding: 1.15rem 1.25rem 1.25rem; }
#book-page .others-head {
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
#book-page .others-head h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
#book-page .others-head a { font-size: 0.75rem; }
#book-page .others-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
#book-page .others-grid .mini { width: auto; }
#book-page .others-grid .mini h3 {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-top: 0.5rem;
}
#book-page .others-grid .mini .r {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0;
}
#book-page .mini-meta{
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: var(--muted);
}
#book-page .mini-views{
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
#book-page .mini-views svg{
  width: 0.85rem;
  height: 0.85rem;
}

#book-page #panel-anno { max-height: none; overflow: visible; }
#book-page .anno-wrap {
  position: relative;
  max-height: 9.5rem;
  overflow: hidden;
}
#book-page .anno-wrap.is-open {
  max-height: 80rem;
  overflow: visible;
}
#book-page .anno-wrap::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.5rem;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}
#book-page .anno-wrap.is-open::after { display: none; }
#book-page .anno-more {
  position: relative;
  z-index: 2;
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.875rem;
  pointer-events: auto;
  cursor: pointer;
}
#book-page .anno-more:hover { color: var(--accent-hover); }

#book-page .cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: #5c3a2e;
  color: #f7f3ec;
  font-family: var(--display);
  font-size: 3rem;
}
#book-page .mini-fallback {
  aspect-ratio: 2 / 3;
  font-size: 1.25rem;
  border-radius: 6px;
}
#book-page .avatar.avatar-lg[src],
#book-page img.avatar {
  object-fit: cover;
}
#book-page .item-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
#book-page .mini img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
}
#book-page a.book-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
