@charset "UTF-8";

body.page-art-read {
  background: #f2eee4;
  color: #2b241c;
  margin: 0;
  padding-top: 0 !important;
}
body.page-art-read.bstem,
body.bstem.page-art-read {
  background: #171717;
  color: #e7e1d6;
}
#novel_read_page,
#novel_read_page * {
  box-sizing: border-box;
}
#novel_read_page .container,
#novel_read_page .member-wrap {
  max-width: none;
  padding: 0;
}
#novel_read_page .container .show-pc,
#novel_read_page .hot_banner,
#novel_read_page [class*="ads_"],
#novel_read_page .ads,
#bottomNav,
body.page-art-read .foot,
body.page-art-read .footer {
  display: none !important;
}
#novel_read_page .seo_page_h1 {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

.novel-reader-top {
  align-items: center;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(248, 245, 238, .94);
  border-bottom: 1px solid rgba(126, 105, 76, .16);
  display: flex;
  height: 56px;
  justify-content: space-between;
  left: 0;
  padding: 0 20px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}
.novel-reader-top .back-btn,
.novel-reader-top .icon-btn {
  align-items: center;
  border-radius: 6px;
  color: #3a3025;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  font-size: 18px;
  height: 36px;
  justify-content: center;
  text-decoration: none;
  width: 36px;
}
.novel-reader-top .novel-top-catalog-btn {
  font-size: 14px;
  font-weight: 700;
  line-height: 36px;
  padding: 0 8px;
  width: auto;
}
.novel-reader-top .back-btn:hover,
.novel-reader-top .icon-btn:hover {
  background: rgba(126, 105, 76, .1);
}
.novel-reader-top .title-wrap {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
}
.novel-reader-top .book-title {
  color: #2b241c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.novel-reader-top .chapter-title {
  color: #8a765f;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.novel-reader-top .actions {
  align-items: center;
  display: flex;
  gap: 6px;
}

.novel-reader-body {
  min-height: 100vh;
  padding: 72px 20px 112px;
}
.novel-reader-inner {
  background: #fffaf0;
  border: 1px solid rgba(126, 105, 76, .12);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(70, 53, 31, .08);
  margin: 0 auto;
  max-width: 820px;
  padding: 28px 70px 64px;
}
.novel-reader-chapter-heading {
  color: #2b241c;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 16px;
  text-align: center;
}
.novel-meta-line {
  align-items: center;
  border-bottom: 1px solid rgba(126, 105, 76, .13);
  color: #8a765f;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px 18px;
  justify-content: center;
  margin-bottom: 34px;
  padding-bottom: 18px;
}
.novel-meta-line span {
  white-space: nowrap;
}
.novel-content {
  color: #2b241c;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 2.05;
  overflow-wrap: anywhere;
  text-align: justify;
}
.novel-content > div {
  min-height: 55vh;
}
.novel-content p {
  margin: 0 0 1.05em;
}
.novel-content p + p {
  text-indent: 2em;
}
.novel-content img {
  display: block;
  height: auto;
  margin: 18px auto;
  max-width: 100%;
}

.novel-reader-bar {
  align-items: center;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 240, .96);
  border: 1px solid rgba(126, 105, 76, .16);
  border-radius: 8px;
  bottom: 24px;
  box-shadow: 0 14px 42px rgba(70, 53, 31, .16);
  display: flex;
  gap: 8px;
  height: 58px;
  justify-content: center;
  left: 50%;
  padding: 0 14px;
  position: fixed;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px));
  z-index: 1000;
}
.novel-reader-bar .bar-item {
  align-items: center;
  border-radius: 6px;
  color: #675542;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  font-size: 13px;
  gap: 6px;
  height: 40px;
  justify-content: center;
  min-width: 88px;
  padding: 0 12px;
  text-decoration: none;
}
.novel-reader-bar .bar-item:hover {
  background: rgba(126, 105, 76, .1);
}
.novel-reader-bar .bar-item.disabled {
  opacity: .42;
  pointer-events: none;
}
.novel-reader-bar .novel-bar-img {
  display: block;
  flex-shrink: 0;
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.novel-settings-sheet {
  background: rgba(255, 250, 240, .98);
  border: 1px solid rgba(126, 105, 76, .16);
  border-radius: 8px;
  bottom: 92px;
  box-shadow: 0 16px 42px rgba(70, 53, 31, .18);
  display: none;
  left: 50%;
  padding: 16px;
  position: fixed;
  transform: translateX(-50%);
  width: min(360px, calc(100vw - 32px));
  z-index: 999;
}
.novel-settings-sheet.show {
  display: block;
}
.novel-settings-row {
  align-items: center;
  display: flex;
  font-size: 14px;
  justify-content: space-between;
}
.novel-settings-label {
  color: #675542;
}
.novel-font-controls {
  align-items: center;
  display: flex;
  gap: 8px;
}
.novel-font-btn {
  align-items: center;
  background: #fffaf0;
  border: 1px solid rgba(126, 105, 76, .3);
  border-radius: 6px;
  color: #3a3025;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  height: 32px;
  justify-content: center;
  width: 38px;
}
.novel-font-size-value {
  color: #675542;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: center;
}

.novel-catalog {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 2000;
}
.novel-catalog.open {
  display: block;
}
.novel-catalog-mask {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(24, 20, 16, .34);
  inset: 0;
  position: absolute;
}
.novel-catalog-panel {
  background: #fffaf0;
  border-right: 1px solid rgba(126, 105, 76, .16);
  box-shadow: 20px 0 60px rgba(24, 20, 16, .22);
  display: flex;
  flex-direction: column;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transform: translateX(-100%);
  transition: transform .22s ease;
  width: min(390px, 88vw);
}
.novel-catalog.open .novel-catalog-panel {
  transform: translateX(0);
}
.novel-catalog-header {
  align-items: center;
  border-bottom: 1px solid rgba(126, 105, 76, .14);
  display: flex;
  justify-content: space-between;
  padding: 18px 16px;
}
.novel-catalog-title .t1 {
  color: #2b241c;
  font-size: 17px;
  font-weight: 700;
}
.novel-catalog-title .t2 {
  color: #8a765f;
  font-size: 12px;
  margin-top: 3px;
}
.novel-catalog-close {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(126, 105, 76, .3);
  border-radius: 6px;
  color: #675542;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  text-align: center;
  width: 34px;
}
.novel-catalog-progress {
  align-items: center;
  border-bottom: 1px solid rgba(126, 105, 76, .14);
  color: #675542;
  display: flex;
  font-size: 13px;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 16px;
}
.novel-catalog-progress .p-continue {
  align-items: center;
  background: #d69a24;
  border-radius: 6px;
  color: #1f1609;
  display: inline-flex;
  flex-shrink: 0;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
}
.novel-catalog-list {
  flex: 1;
  overflow: auto;
  padding: 8px 10px 18px;
  -webkit-overflow-scrolling: touch;
}
.novel-catalog-item {
  align-items: center;
  border-radius: 6px;
  color: #3a3025;
  display: grid;
  gap: 10px;
  grid-template-columns: 48px 1fr auto;
  min-height: 44px;
  padding: 8px 10px;
  text-decoration: none;
}
.novel-catalog-item:hover {
  background: rgba(126, 105, 76, .09);
}
.novel-catalog-item .c-no {
  align-items: center;
  background: rgba(126, 105, 76, .1);
  border-radius: 6px;
  display: inline-flex;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  height: 28px;
  justify-content: center;
  width: 48px;
}
.novel-catalog-item .c-title {
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.novel-catalog-item .c-now {
  color: #a36b00;
  font-size: 12px;
}
.novel-catalog-item.active {
  background: rgba(214, 154, 36, .16);
}
.novel-catalog-item.read:not(.active) .c-title::after {
  background: rgba(126, 105, 76, .1);
  border-radius: 999px;
  color: #8a765f;
  content: "已读";
  display: inline-block;
  font-size: 10px;
  line-height: 16px;
  margin-left: 6px;
  padding: 1px 6px;
  vertical-align: middle;
}
.novel-popedom-gate {
  align-items: center;
  bottom: 80px;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  text-align: center;
  top: 56px;
}

body.bstem .novel-reader-top,
body.bstem .novel-reader-bar,
body.bstem .novel-settings-sheet,
body.bstem .novel-catalog-panel {
  background: rgba(28, 26, 23, .97);
  border-color: rgba(255, 255, 255, .1);
}
body.bstem .novel-reader-inner {
  background: #201e1b;
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}
body.bstem .novel-content,
body.bstem .novel-reader-top .book-title,
body.bstem .novel-reader-chapter-heading,
body.bstem .novel-catalog-title .t1,
body.bstem .novel-catalog-item {
  color: #e7e1d6;
}
body.bstem .novel-reader-top .chapter-title,
body.bstem .novel-meta-line,
body.bstem .novel-reader-bar .bar-item,
body.bstem .novel-settings-label,
body.bstem .novel-font-size-value,
body.bstem .novel-catalog-title .t2,
body.bstem .novel-catalog-progress {
  color: #b8aa98;
}
body.bstem .novel-font-btn {
  background: #201e1b;
  border-color: rgba(255, 255, 255, .14);
  color: #e7e1d6;
}
body.bstem .novel-catalog-mask {
  background: rgba(0, 0, 0, .56);
}

@media (max-width: 820px) {
  body.page-art-read {
    background: #f7f0e2;
    padding-top: 0 !important;
  }
  body.page-art-read.bstem,
  body.bstem.page-art-read {
    background: #171717;
  }
  #novel_read_page {
    padding-top: 0 !important;
  }
  .novel-reader-top {
    display: block;
    height: 48px;
    padding: 0 10px;
  }
  .novel-reader-top .back-btn {
    left: 10px;
    position: absolute;
    top: 6px;
    z-index: 3;
  }
  .novel-reader-top .actions {
    position: absolute;
    right: 10px;
    top: 6px;
    z-index: 3;
  }
  .novel-reader-top .back-btn,
  .novel-reader-top .icon-btn {
    height: 36px;
    width: 36px;
  }
  .novel-reader-top .title-wrap {
    left: 56px;
    padding: 0;
    position: absolute;
    right: 56px;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .novel-reader-top .book-title {
    font-size: 15px;
    text-align: center;
  }
  .novel-reader-top .chapter-title {
    font-size: 11px;
    text-align: center;
  }
  .novel-reader-body {
    padding: 48px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .novel-reader-inner {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    padding: 0 18px;
  }
  .novel-reader-chapter-heading {
    font-size: 22px;
    line-height: 1.35;
    margin: 0 0 12px;
    text-align: left;
  }
  .novel-meta-line {
    border-bottom: 0;
    font-size: 12px;
    justify-content: flex-start;
    margin-bottom: 18px;
    opacity: .72;
    padding-bottom: 0;
  }
  .novel-content {
    font-size: 18px;
    line-height: 1.92;
    padding-bottom: 0;
    text-align: justify;
  }
  .novel-content p {
    margin-bottom: 1em;
  }
  .novel-reader-bar {
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    bottom: 0;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    left: 0;
    padding: 0 6px env(safe-area-inset-bottom, 0px);
    transform: none;
    width: 100%;
  }
  .novel-reader-bar .bar-item {
    flex-direction: column;
    font-size: 12px;
    gap: 2px;
    height: 52px;
    min-width: 58px;
    padding: 4px 2px;
  }
  .novel-reader-bar .novel-bar-img {
    height: 23px;
    width: 23px;
  }
  .novel-settings-sheet {
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    left: 0;
    padding: 14px 18px;
    transform: none;
    width: 100%;
  }
  .novel-catalog-panel {
    width: min(330px, 88vw);
  }
  .novel-catalog-header {
    align-items: center;
    min-height: 92px;
    padding: 16px 14px;
  }
  .novel-catalog-close {
    flex: 0 0 56px;
    font-size: 30px;
    height: 56px;
    margin-left: 12px;
    padding-bottom: 3px;
    width: 56px;
  }
  .novel-catalog-list {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .novel-catalog-item {
    grid-template-columns: 42px 1fr auto;
    min-height: 46px;
    padding: 8px;
  }
  .novel-catalog-item .c-no {
    height: 28px;
    width: 42px;
  }
  .novel-popedom-gate {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    top: 48px;
  }
}

@media (min-width: 821px) {
  .novel-reader-body {
    padding-bottom: 116px;
  }
  .novel-reader-bar {
    bottom: 24px;
    left: 50%;
    margin: 0;
    position: fixed;
    transform: translateX(-50%);
  }
  .novel-settings-sheet {
    bottom: 92px;
  }
}

@media (min-width: 1200px) {
  .novel-reader-inner {
    max-width: 860px;
    padding-left: 78px;
    padding-right: 78px;
  }
}

/* Novel reader final isolation layer: keep the reading UI away from global theme patches. */
html:has(body.page-art-read) {
  background: #f2eee4;
}
html:has(body.page-art-read.bstem),
html:has(body.bstem.page-art-read) {
  background: #171717;
}
body.page-art-read {
  overflow-x: hidden;
}
body.page-art-read #novel_read_page {
  background: inherit;
  isolation: isolate;
  min-height: 100vh;
}
body.page-art-read #novel_read_page a,
body.page-art-read #novel_read_page button {
  -webkit-tap-highlight-color: transparent;
}
body.page-art-read .novel-reader-top .title-wrap {
  text-align: center;
}
body.page-art-read .novel-reader-top .back-btn .iconfont {
  display: block;
  font-size: 20px;
  line-height: 1;
}
body.page-art-read .novel-catalog-close {
  font-family: Arial, sans-serif;
  line-height: 1;
  place-items: center;
}

@media (max-width: 820px) {
  body.page-art-read .novel-reader-top {
    align-items: center;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 0 8px;
  }
  body.page-art-read .novel-reader-top .back-btn,
  body.page-art-read .novel-reader-top .actions,
  body.page-art-read .novel-reader-top .title-wrap {
    left: auto;
    position: static;
    right: auto;
    top: auto;
    transform: none;
  }
  body.page-art-read .novel-reader-top .back-btn {
    grid-column: 1;
    justify-self: start;
  }
  body.page-art-read .novel-reader-top .title-wrap {
    grid-column: 2;
    min-width: 0;
    padding: 0 4px;
  }
  body.page-art-read .novel-reader-top .actions {
    grid-column: 3;
    justify-self: end;
  }
  body.page-art-read .novel-reader-body {
    padding-top: 48px;
  }
  body.page-art-read .novel-reader-inner {
    padding-bottom: 0;
  }
  body.page-art-read .novel-content {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  body.page-art-read .novel-reader-bar {
    min-height: calc(62px + env(safe-area-inset-bottom, 0px));
  }
  body.page-art-read .novel-catalog-header {
    min-height: 72px;
    padding: 14px;
  }
  body.page-art-read .novel-catalog-close {
    flex-basis: 40px;
    font-size: 24px;
    height: 40px;
    margin-left: 10px;
    padding: 0 0 2px;
    width: 40px;
  }
}
