body {
  font-family: Helvetica, Arial, "Lucida Grande", sans-serif;

  position: relative;
  margin: 0;
}

body,
body.theme-sun {
  background-color: #fff;
  color: #000;
}

body.theme-moon {
  background-color: #000;
  color: #fff;
}

body.theme-moon a {
  color: rgb(128, 178, 255);
}

body.theme-moon .nav-chapters-container {
  /* background-color: rgba(41, 41, 41, 0.5); */
}

body.theme-moon .nav-chapters-container .nav-chapter-anchor {
  color: rgba(139, 139, 255, 0.5);
}

body.lang-zh-cn .lang-zh-cn {
  display: initial;
}

body.lang-zh-cn .lang-en {
  display: none;
}

body.lang-en .lang-en {
  display: initial;
}

body.lang-en .lang-zh-cn {
  display: none;
}

section#books {
  padding: 8px;
}

section#index {
  padding: 4px;
}

section#chapter {
  padding: 0;
}

section#chapter>h3,
section#chapter>h4 {
  padding: 0 8px;
}

section#chapter .chapter {
  padding: 8px;
  border-radius: 4px 4px 0 0;
  box-shadow: -2px -3px 4px #8080802b;
}

section#chapter .chapter .chapter-title {
  padding-top: 24px;
}

.chapter-all-nav .chapter .chapter-title {
  display: none;
}

/* .books {
  width: 340px;
  overflow: hidden;
} */

.index-container .index-number,
.index-container .index-chapter,
_ {
  display: inline;
  /* display: inline-block; */
}

.index-chapter-item {
  display: flex;
}

.index-chapter-item>.index-chapter-item-number {
  margin-right: 8px;
}

.index-chapter-item>.index-chapter-item-number,
.index-chapter-item>.index-chapter-item-title,
_ {
  display: inline-block;
}

.index-chapter--bookmarked {
  border-radius: 4px;
  background-color: rgb(255 0 0 / 50%);
}

.index-container .index-number {
  font-size: 0.5rem;
}

.index-volume {
  padding: 8px 0 4px 0;
  margin: 0 0 4px 0;
}

.index-home {
  padding: 4px;
  border: 1px solid;
  border-radius: 4px;
  margin-top: 8px;
}

.index-title {
  margin-top: 16px;
}

body.theme-moon .index-volume {
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}

body.theme-sun .index-volume {
  border-bottom: 1px solid rgba(0, 0, 0, .3);
}

a {
  word-wrap: break-word;
}

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

#chapter_content a {
  display: none;
}

.nav-chapters-container {
  position: fixed;
  right: 4px;
  bottom: 56px;
  text-align: right;
  /* background-color: light-dark(rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0.5)); */
}

.nav-chapters-container .nav-chapter-anchor {
  /* color: light-dark(rgba(0, 0, 255, 0.5), rgba(80, 80, 255, 0.5)); */
}

.nav-chapters-container .nav-chapter-item-wrapper {
  height: 24px;
}

.bottom-space {
  height: 120px;
}

.book-cover-wrapper {
  display: inline-block;
  margin: 8px;
  vertical-align: top;
}

.book-cover {
  position: relative;
  /* width: 120px; */
  /* height: 160px; */
  /* background-color: coral; */
  align-content: center;

  width: 92px;
  height: 120px;

  background-color: rgb(169, 169, 205);

  overflow: hidden;

  box-shadow: 2px 0px 2px rgba(30, 30, 30, .5);
}

.book-cover-title-orig-bg {
  font-family: monospace;
  position: absolute;
  line-break: anywhere;
  text-align: center;
  line-height: 0.9;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.13);
}

.book-cover-title-origin-bg--lang-en {
  /* font-size: 90px; */
  font-size: 72px;
}

.book-cover-title-origin-bg--lang-zh {
  /* font-size: 60px; */
  font-size: 42px;
}

/* .book-cover-title-orig-bg-letter {
  display: inline-block;
  font-siz
} */

.book-cover-title-final {
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(0, 0, 0, 0.82);
  /* font-size: 20px; */

  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;

  padding: 8px;
  /* max-height: 152px; */
  /* max-width: 112px; */

  position: absolute;
  /* top: 12px; */

  font-family: monospace;
  /* font-size: 18px; */
  /* font-size: 14px; */
  font-size: 12px;

  /* word-break: break-word; */
  max-height: 100px;
  max-width: 90px;

  /* line-height: 12px; */
  line-height: 14px;

  /* font-weight: 600; */
  
  top: 10px;
  left: 4px;
  font-size: 12px;
}

.book-cover-title-final-highlight {
  display: inline-block;
  word-wrap: break-word;
  /* white-space: pre; */
  width: 74px;
  /* display: contents; */
}

.book-cover-label-comments {
  font-family: monospace;
  position: absolute;
  /* font-size: 12px; */
  /* text-align: center; */
  right: 0;
  bottom: 0;

  /* color: rgb(126, 126, 186); */
  font-style: italic;

  background-color: rgba(145, 145, 255, 0.507);
  font-size: 10px;
  color: rgb(41, 41, 41);
}

.book-cover-tags {
  font-family: monospace;
  position: absolute;
  /* font-size: 12px; */
  left: 4px;
  top: 4px;

  /* color: rgb(126, 126, 186); */
  font-style: italic;

  color: #1b1b1b;
  background-color: rgba(255, 255, 0, 0.395);
  font-size: 10px;
}

.book-cover-tags-item {
  margin-right: 4px;
}

.book-cover-label-copy-num {
  font-family: monospace;
  position: absolute;
  right: 4px;
  top: 4px;
  /* font-size: 12px; */

  border-radius: 4px;
  background-color: rgba(255, 0, 0, 0.668);
  color: rgb(239, 239, 239);
  min-width: 15px;
  text-align: center;
  font-size: 10px;
}

.book-cover-title-orig-bg-overlay {
  /* https://stackoverflow.com/questions/57929881/how-can-i-make-this-cover-look-like-a-book */

  /* background: linear-gradient(90deg, rgba(2, 0, 36, .5) 0%, rgba(0, 0, 0, .5) 2%, rgba(255, 255, 255, .5) 3%, rgba(247, 254, 255, .5) 5%, rgba(0, 0, 0, .5) 7%, rgba(255, 255, 255, .5) 13%, rgba(255, 255, 255, .2) 100%); */
  /* background: linear-gradient(90deg, rgba(2, 0, 36, .5) 0%, rgba(0, 0, 0, .5) 2%, rgba(255, 255, 255, .2) 3%, rgba(247, 254, 255, .2) 5%, rgba(0, 0, 0, .5) 7%, rgba(255, 255, 255, .2) 13%, rgba(255, 255, 255, .1) 100%); */
  background: linear-gradient(90deg, rgba(2, 0, 36, .3) 0%, rgba(0, 0, 0, .3) 2%, rgba(255, 255, 255, .2) 3%, rgba(247, 254, 255, .2) 5%, rgba(0, 0, 0, .3) 7%, rgba(255, 255, 255, .2) 13%, rgba(255, 255, 255, .1) 100%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.quick-container {
  position: fixed;
  /* right: 0; */
  /* top: 0; */
  z-index: 1;
  bottom: 12px;
  /* right: 12px; */
  right: 4px;
}

.loading {
  display: flex;
  position: fixed;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hidden {
  display: none !important;
}

.quick .separator {
  width: 12px;
}

.pages-btn--selected {
  font-weight: 800;
  text-decoration: underline;
}

.x-separator {
  width: 12px;
}

.nav-chapter-anchor {
  font-size: 12px;
}

.nav-chapter-anchor--current {
  font-weight: 800;
  text-decoration: underline !important;
}

.book-stars {
  text-align: center;
  padding-top: 4px;
  font-size: 9px;
  height: 12px;
}

body.theme-moon .book-stars>.book-stars-positive {
  color: yellow;
}

body.theme-sun .book-stars>.book-stars-positive {
  color: orange;
}

body.theme-moon .book-stars>.book-stars-negative {
  color: rgba(255, 255, 0, 0.5);
}

body.theme-sun .book-stars>.book-stars-negative {
  color: rgba(255, 165, 0, 0.5);
}

.book-filters-btns {
  font-size: 12px;
}

.book-filters-btns a {
  /* margin-right: 8px; */
  padding: 0 8px;
  display: inline-block;
  margin-bottom: 4px;
  height: 18px;
  line-height: 18px;
}

.filters-stars--current {
  border-radius: 4px;
  border: 1px solid;
}

.index-metadata {
  color: gray;
  font-style: italic;
}

/* #region STARS RATING */

.index-stars {
  cursor: pointer;
  color: orange;
}

.index-stars>.index-stars-new {
  display: none;
}

.index-stars:hover>.index-stars-new {
  display: inline;
}

.index-stars:hover>.index-stars-current {
  display: none;
}

.index-stars>.index-stars-new>.index-stars-star::before {
  content: "☆"
}

.index-stars:hover>.index-stars-new>.index-stars-star::before {
  content: "★"
}

.index-stars>.index-stars-new>.index-stars-star:hover~.index-stars-star::before {
  content: "☆";
}

/* #endregion STARS RATING */

.index-has-bookmarks {
  /* width: calc(100vw - 15px); */
  margin-left: -4px;
  margin-right: -4px;
  background-color: rgba(255 0 0 / 50%);
  padding: 2px 4px;
  text-align: right;
}

.books-app-title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.books-app-title h2 {
  display: inline-block;
}

.chapter {
  position: relative;
  border-top: 1px solid gray;
}

.chapter .chapter-btns {
  position: absolute;
  /* top: 0; */
  /* right: 20px; */
  top: -4px;
  right: 34px;
}

.chapter .chapter-btns>* {
  display: inline-block;
  /* border-radius: 0 0 4px 4px; */
  border-radius: 2px 2px 8px 2px;
  border: 0;
  color: white;
  font-size: 14px;
  padding: 2px 8px;
  cursor: pointer;
}

.chapter-btns-remove-bookmark {
  /* background-color: rgb(255 0 0 / 72%); */
  background-color: #ff6159;
}

.chapter-btns-add-bookmark {
  /* background-color: rgb(120 120 120 / 72%); */
  background-color: #9e9e9e;
}

.chapter-btns-remove-note {
  background-color:#a9a52b;
}

.chapter .chapter-id {
  position: absolute;
  /* top: 0; */
  /* left: 8px; */
  /* position: absolute; */
  top: -7px;
  left: 8px;
  height: 40px;
  line-height: 40px;
}

.chapter-volume-inner {
  margin-top: 20px;
}

.book-cover-wrapper {
  position: relative;
}

.book-cover-wrapper .book-bookmark {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: 8px;
  height: 17px;
  /* background-color: rgb(255 0 0 / 85%); */
  background-color: #ea4848;
  /* box-shadow: 3px 0px 2px rgb(0 0 0 / 30%); */
  box-shadow: 1px 0px 2px rgb(0 0 0 / 30%);
}

/* .books-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
} */

.quick-btn {
  width: 32px;
  height: 32px;
  /* font-size: 18px; */
  font-size: 14px;
  font-weight: 800;
  color: #333 !important;
  border-radius: 2px;
  border: 1px solid gray;
  text-align: center;
  /* position: absolute; */
  /* right: 20px; */
}

body.theme-sun hr.chapter-text-hr {
  border: none;
  border-top: 3px double #333;
  color: #333;
  overflow: visible;
  text-align: center;
  height: 5px;
}

body.theme-sun hr.chapter-text-hr::after {
  background: #fff;
  content: "§";
  padding: 0 4px;
  position: relative;
  top: -13px;
}

body.theme-moon hr.chapter-text-hr {
  border: none;
  border-top: 3px double #fff;
  color: #fff;
  overflow: visible;
  text-align: center;
  height: 5px;
}

body.theme-moon hr.chapter-text-hr::after {
  background: #000;
  content: "§";
  padding: 0 4px;
  position: relative;
  top: -13px;
}

/* #region HR - HORIZ. RULER - SYSTEM PANEL */
body.theme-sun hr.chapter-text-hr--system-text {
  border: none;
  border-top: 3px double #333;
  color: #333;
  overflow: visible;
  text-align: center;
  height: 5px;
  border-top-style: solid;
}

body.theme-sun hr.chapter-text-hr--system-text::after {
  background: #fff;
  content: "§";
  padding: 0 4px;
  position: relative;
  top: -13px;
  content: "//";
}

body.theme-moon hr.chapter-text-hr--system-text {
  border: none;
  border-top: 3px double #fff;
  color: #fff;
  overflow: visible;
  text-align: center;
  height: 5px;
  border-top-style: solid;
}

body.theme-moon hr.chapter-text-hr--system-text::after {
  background: #000;
  content: "§";
  padding: 0 4px;
  position: relative;
  top: -13px;
  content: "//";
}

/* #endregion HR - HORIZ. RULER - SYSTEM PANEL */

.index-categories .index-category-btn {
  display: inline-block;
  margin-right: 8px;
  font-size: 13px;
  border-radius: 4px;
  /* border: 1px solid; */
  padding: 2px 5px;
  margin-bottom: 4px;
  cursor: pointer;
}

.index-categories .index-category-btn--unselected {
  background-color: rgba(0, 0, 0, .1);
  text-decoration: line-through;
}

.index-categories .index-category-btn--selected {
  background-color: rgba(0, 116, 255, .5);
}

.text-with-tooltip {
  /* text-decoration: underline; */
  background-color: rgba(0, 128, 0, 0.3);
}

.text-with-tooltip:focus {
  color: red;
}

.index-top-notes-top-notes .index-top-notes-top-note,
.index-top-notes .index-top-notes-add-btn,
_ {
  display: inline-block;
  border: #a9a52b 1px solid;
  padding: 4px 8px;
  font-size: 13px;
  font-style: italic;
}

.index-top-notes-top-notes .index-top-notes-top-note,
_ {
  margin: 0 4px 4px 0;
  /* transform: rotateZ(-5deg); */
}

body.theme-sun .index-top-notes-top-notes .index-top-notes-top-note,
body.theme-sun .index-top-notes .index-top-notes-add-btn,
body.theme-sun .chapter-index-item-notes .chapter-index-item-note,
_ {
  background-color: #ECE63D;
}

body.theme-moon .index-top-notes-top-notes .index-top-notes-top-note,
body.theme-moon .index-top-notes .index-top-notes-add-btn,
body.theme-moon .chapter-index-item-notes .chapter-index-item-note,
_ {
  background-color: #716e33;
}

.index-top-notes .index-top-notes-add-btn {
  font-style: normal;
  font-weight: 600;
}

.index-top-notes-top-notes .index-top-notes-top-note-text {
  margin-right: 12px;
}

.index-top-notes-top-notes .index-top-notes-top-note .index-top-notes-top-note-btn {
  font-size: 13px;
  border: none;
  border-radius: 100%;
  width: 24px;
  height: 24px;
  text-align: center;
  background-color: transparent;
  cursor: pointer;
}

.chapter-index-item-notes .chapter-index-item-note {
  margin: 0 0 0 4px;
  display: inline-block;
  font-size: 13px;
  font-style: italic;
  padding: 0 4px 0 4px;
}

.book-cover-notes,
.book-cover-notes::after,
_ {
  position: absolute;
  right: 4px;
  bottom: 11px;
  background-color: yellow;
  width: 14px;
  height: 14px;
  transform: rotateZ(-10deg);
  z-index: 1;
  box-shadow: rgba(0, 0, 0, .5) 1px 1px 2px;
}

.book-cover-notes::after {
  content: "";
  bottom: 4px;
  right: 4px;
  transform: rotateZ(5deg);
}

.book-cover-categories,
_ {
  position: absolute;
  left: 12px;
  bottom: 11px;
  background-color: rgb(98, 191, 98);
  width: 16px;
  height: 12px;
  z-index: 1;
  box-shadow: rgba(0, 0, 0, .125) 1px 1px 2px;
}

.book-cover-categories::before,
_ {
  position: absolute;
  content: "";
  top: 2px;
  left: 2px;
  width: 8px;
  height: 2px;
  background-color: #599f59;
  z-index: 1;
}

/* #region UTILS */

.text-small {
  font-size: 12px;
}

.text-align-right {
  text-align: right;
}

/* #endregion UTILS */

/* @media (pointer: coarse),
(hover: none) {
  [title] {
    position: relative;
    display: inline-flex;
    justify-content: center;
  }

  [title]:focus::after {
    content: attr(title);
    position: absolute;
    top: 90%;
    color: #000;
    background-color: #fff;
    border: 1px solid;
    width: fit-content;
    padding: 3px;
  }
} */

@font-face {
  font-family:'benmo_xuyuan';
  font-style: normal;font-display: swap;src: url(/assets/本墨竞圆-常规.ttf);
}

.font-benmo_xuyuan {
  font-family: benmo_xuyuan;  
}

.nir-reader-italic {
  /* font-family: Apple Chancery, Times New Roman, serif; */
}

.nir-screen-reader-only {
  border:0;   
  clip: rect(1px, 1px, 1px, 1px); 
  clip-path: inset(50%);
  height: 1px; 
  margin: -1px;
  width: 1px; 
  overflow: hidden; 
  position: absolute !important;
  word-wrap:normal !important;
}