*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color: #18222d;
  background: #f5f6f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f5f6f8;
}

a {
  color: inherit;
  text-decoration: none;
}

a:not(.wr-primary-btn):hover {
  color: #1f9f88;
}
.trxs-pagination-wrapper a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

.wr-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input,
select {
  font: inherit;
}

.site-body {
  padding-top: 64px;
}

.reader-body {
  padding-top: 56px;
  background: #e9edf1;
}

.reader-body[data-reader-theme="dark"] {
  background: #1c2026;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.reader-body .page-shell {
  width: min(2560px, calc(100% - 48px));
  height: calc(100vh - 56px);
  padding: 12px 0;
  overflow: hidden;
}

.wr-topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(22, 34, 45, 0.08);
  backdrop-filter: blur(16px);
}

.wr-topbar-inner {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.reader-body .wr-topbar-inner {
  height: 56px;
}

.wr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  font-weight: 700;
}

.wr-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #1f9f88;
  font-size: 18px;
}

.wr-brand-name {
  white-space: nowrap;
  font-size: 18px;
}

.wr-nav {
  display: flex;
  gap: 22px;
  color: #58636f;
  font-size: 15px;
}

.wr-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 320px;
  margin-left: auto;
  border: 1px solid #dce3e8;
  border-radius: 22px;
  background: #f7f9fa;
}

.wr-search input,
.wr-mobile-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #24313d;
  background: transparent;
}

.wr-search input {
  padding: 5px 8px 5px 14px;
}

.wr-search button,
.wr-mobile-search button {
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: #1f9f88;
  cursor: pointer;
  width: 70px;
}

.wr-search button {
  padding: 6px 14px;
}

.wr-actions,
.wr-mobile-panel,
.header_search,
.nav {
  display: none;
}

.wr-icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef3f5;
  color: #34424e;
  cursor: pointer;
}

#search-btn::before {
  content: "⌕";
  font-size: 21px;
}

#menu-btn::before {
  content: "☰";
  font-size: 18px;
}

.wr-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #7a8793;
  font-size: 14px;
}
.wr-breadcrumb h1 {
  all: unset;
}

.wr-card,
.wr-book-hero,
.box_con,
#main,
#hotcontent,
#newscontent {
  border: 1px solid rgba(26, 40, 52, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(31, 43, 54, 0.06);
}

.reader-body[data-reader-theme="dark"] .wr-card,
.reader-body[data-reader-theme="dark"] .wr-book-hero,
.reader-body[data-reader-theme="dark"] .box_con,
.reader-body[data-reader-theme="dark"] #main,
.reader-body[data-reader-theme="dark"] #hotcontent,
.reader-body[data-reader-theme="dark"] #newscontent {
  border-color: rgba(255, 255, 255, 0.08);
  background: #242a31;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.wr-book-hero {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 34px;
  padding: 36px;
}

.wr-cover img,
.image img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 14px 28px rgba(28, 38, 47, 0.18);
}

.wr-cover {
  display: grid;
  place-items: start center;
}

.wr-book-main h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.wr-author,
.wr-updated,
.wr-latest {
  margin: 8px 0;
  color: #687582;
}

.wr-book-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.wr-book-stats span {
  padding: 8px 13px;
  border: 1px solid #e5ebef;
  border-radius: 20px;
  color: #53606b;
  background: #f8fafb;
  font-size: 14px;
}

.wr-book-stats strong {
  color: #18222d;
}

.wr-book-actions,
.readbtn,
.trxs-pagination-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.wr-primary-btn,
.wr-secondary-btn,
.readbtn a,
.trxs-page-btn,
.index-container-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 22px;
  font-weight: 600;
}

.wr-primary-btn,
.readbtn a:first-child,
.trxs-page-btn {
  color: #fff;
  background: #1f9f88;
}

.wr-secondary-btn,
.readbtn a,
.index-container-btn {
  border: 1px solid #d7e1e7;
  color: #2d3a45;
  background: #fff;
}

.wr-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef2f5;
}

.wr-category-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #dfe7ec;
  border-radius: 18px;
  color: #4d5b66;
  background: #fff;
  font-size: 14px;
}

.wr-category-nav a:hover,
.wr-category-nav a.is-active {
  border-color: #1f9f88;
  color: #fff;
  background: #1f9f88;
}

@media (min-width: 761px) {
  .wr-category-page #hotcontent > .rank,
  .wr-novel-list-page #hotcontent > .rank {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .wr-category-page .wr-category-nav,
  .wr-category-page .wr-list-heading-simple,
  .wr-novel-list-page .wr-list-heading {
    grid-column: 1 / -1;
  }
}

.wr-intro {
  margin-top: 18px;
  padding: 28px 32px;
}

.wr-catalog-page {
  display: grid;
  gap: 18px;
}

.wr-catalog-head,
.wr-catalog-card {
  padding: 28px 32px;
}

.wr-catalog-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.wr-catalog-title h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.wr-catalog-title p {
  margin: 10px 0 0;
  color: #73808c;
}

.wr-recommend-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
  color: #73808c;
}

.wr-recommend-inline span {
  color: #34424e;
  font-weight: 600;
}

.wr-catalog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 22px;
}

.wr-catalog-pager-bottom {
  margin: 24px 0 0;
}

.wr-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
}

.wr-catalog-item {
  display: block;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #33404c;
}

.wr-catalog-item:hover {
  color: #1f9f88;
}

.wr-intro h2,
.wr-chapter-preview h2,
.wr-reader-rec h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.wr-intro p {
  margin: 14px 0 0;
  color: #394854;
}

.wr-ad {
  margin: 18px 0;
  text-align: center;
}

.wr-chapter-preview {
  padding: 28px 32px;
}

.wr-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.wr-section-head a {
  color: #1f9f88;
  font-size: 14px;
}

.wr-chapter-grid,
#list dl,
#content_1 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.wr-chapter-grid a,
#list dd {
  margin: 0;
  min-width: 0;
  padding: 12px 10px;
  border-bottom: 1px solid #eef2f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wr-note {
  color: #bd6a1b;
  background: #fff7eb;
  border: 1px solid #f5dfbe;
  border-radius: 8px;
  padding: 10px 12px;
}

.wr-reader {
  display: grid;
  grid-template-columns: 85% 15%;
  gap: 28px;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.wr-reader-main {
  min-width: 0;
  height: 100%;
  min-height: 0;
}

.wr-reader-stage {
  position: relative;
  height: 100%;
  min-height: 0;
}

.wr-reader-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.wr-paper {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 44px 64px 56px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(27, 40, 52, 0.12);
  overflow: hidden;
}

.reader-body[data-reader-theme="dark"] .wr-paper {
  background: #242a31;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

.reader-body[data-reader-layout="double"] .wr-paper {
  padding: 30px 52px 22px;
}

.wr-reader-head {
  text-align: center;
}

.wr-reader-head p {
  margin: 0 0 8px;
  color: #8a96a2;
}

.wr-reader-head h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: 0;
}

.wr-reader-head small {
  color: #8b97a2;
  font-size: 15px;
  font-weight: 400;
}

.reader-body[data-reader-theme="dark"] .wr-breadcrumb,
.reader-body[data-reader-theme="dark"] .wr-reader-head p,
.reader-body[data-reader-theme="dark"] .wr-reader-head small,
.reader-body[data-reader-theme="dark"] .wr-reader-rec span,
.reader-body[data-reader-theme="dark"] .wr-control-label,
.reader-body[data-reader-theme="dark"] .wr-tool-link {
  color: #a8b2bb;
}

.reader-body[data-reader-theme="dark"] .wr-reader-head h1,
.reader-body[data-reader-theme="dark"] .wr-reader-rec h2,
.reader-body[data-reader-theme="dark"] .wr-reader-rec a {
  color: #edf2f6;
}

.wr-page-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.wr-page-nav-top {
  margin: 18px 0 18px;
}

.wr-page-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe4ea;
  border-radius: 22px;
  background: #fff;
}

.wr-page-nav span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe4ea;
  border-radius: 22px;
}

.wr-page-nav a:nth-child(2) {
  color: #fff;
  border-color: #1f9f88;
  background: #1f9f88;
}

.wr-page-nav .is-disabled {
  color: #9aa5ae;
  background: #f2f5f7;
}

.reader-body[data-reader-theme="dark"] .wr-page-nav a {
  border-color: rgba(255, 255, 255, 0.08);
  color: #d9dee3;
  background: #2a3139;
}

.reader-body[data-reader-theme="dark"] .wr-page-nav span {
  border-color: rgba(255, 255, 255, 0.08);
}

.reader-body[data-reader-theme="dark"] .wr-page-nav a:nth-child(2) {
  color: #0e161c;
  border-color: #6fd8c4;
  background: #6fd8c4;
}

.reader-body[data-reader-theme="dark"] .wr-page-nav .is-disabled {
  color: #7f8a94;
  background: #242a31;
}

.wr-content {
  flex: 1;
  min-height: 0;
  color: #26323c;
  font-family: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
  font-size: 18px;
  line-height: 1.96;
  overflow: hidden;
}

.reader-body[data-reader-layout="single"] .wr-content,
.reader-body:not([data-reader-layout]) .wr-content {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.reader-body[data-reader-layout="single"] .wr-content::-webkit-scrollbar,
.reader-body:not([data-reader-layout]) .wr-content::-webkit-scrollbar {
  display: none;
}

.reader-body[data-reader-layout="double"] .wr-content {
  overflow: hidden;
}

.reader-body[data-reader-font="sans"] .wr-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
}

.reader-body[data-reader-font="serif"] .wr-content {
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
}

.reader-body[data-reader-font="kaiti"] .wr-content {
  font-family: "Kaiti SC", STKaiti, KaiTi, "AR PL UKai CN", "TW-Kai", cursive, serif;
}

.wr-content p {
  margin: 0 0 0.2em;
  text-indent: 2em;
}

.wr-content .wr-note {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  text-indent: 0;
}

.wr-source-content {
  display: block;
  min-height: 100%;
}

.wr-double-page {
  position: relative;
  display: none;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.reader-body[data-reader-layout="double"] .wr-double-page {
  display: flex !important;
}

.wr-spread {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: stretch;
}

.wr-spread::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(25, 44, 63, 0.12), transparent);
  transform: translateX(-28px);
}

.wr-spread-sheet {
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.wr-spread-content {
  height: 100%;
}

.wr-spread-content > :first-child {
  margin-top: 0;
}

.wr-spread-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.wr-spread-btn {
  min-width: 96px;
  min-height: 38px;
  border: 1px solid #d6dee5;
  border-radius: 19px;
  color: #40505d;
  background: #fff;
  cursor: pointer;
}

.wr-spread-btn:disabled {
  color: #9aa5ae;
  background: #f2f5f7;
  cursor: default;
}

.wr-spread-indicator {
  color: #73808c;
  font-size: 14px;
}

.wr-spread-measure {
  position: absolute;
  left: -99999px;
  top: 0;
  width: 100%;
  height: calc(100% - 52px);
  visibility: hidden;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.reader-body[data-reader-layout="double"] .wr-page-nav-bottom {
  display: grid;
  flex: 0 0 auto;
  margin-top: 12px;
}

.reader-body[data-reader-layout="double"] .wr-page-nav-bottom a,
.reader-body[data-reader-layout="double"] .wr-page-nav-bottom span {
  min-height: 36px;
  border-radius: 18px;
  font-size: 14px;
}

.reader-body[data-reader-layout="double"] .wr-reader-rec {
  margin-top: 22px;
}

.reader-body[data-reader-theme="dark"] .wr-spread::before {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.reader-body[data-reader-theme="dark"] .wr-spread-btn {
  border-color: rgba(255, 255, 255, 0.1);
  color: #d7dde3;
  background: #2a3139;
}

.reader-body[data-reader-theme="dark"] .wr-spread-btn:disabled {
  color: #7f8a94;
  background: #242a31;
}

.reader-body[data-reader-theme="dark"] .wr-spread-indicator {
  color: #a8b2bb;
}

#hotcontent ul,
#newscontent ul,
.chapter-rec ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

#hotcontent li,
#newscontent li,
.chapter-rec li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f4;
}

.wr-sidepanel {
  position: sticky;
  top: 76px;
  height: calc(100vh - 88px);
}

.wr-sidepanel-card {
  height: 100%;
  border: 1px solid rgba(26, 40, 52, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(31, 43, 54, 0.08);
  overflow: hidden;
}

.reader-body[data-reader-theme="dark"] .wr-sidepanel-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(36, 42, 49, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.wr-sidepanel-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid #edf1f4;
}

.reader-body[data-reader-theme="dark"] .wr-sidepanel-top {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.wr-tool-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  color: #57636f;
}

.wr-tool-link + .wr-tool-link {
  border-left: 1px solid #edf1f4;
}

.reader-body[data-reader-theme="dark"] .wr-tool-link + .wr-tool-link {
  border-left-color: rgba(255, 255, 255, 0.07);
}

.wr-control-groups {
  height: calc(100% - 49px);
  padding: 18px;
  overflow: auto;
}

.wr-control-group + .wr-control-group {
  margin-top: 18px;
}

.wr-control-label {
  margin-bottom: 10px;
  color: #73808c;
  font-size: 13px;
}

.wr-control-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wr-option-btn {
  display: inline-flex;
  min-width: 52px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #d8e1e7;
  border-radius: 18px;
  color: #42505b;
  background: #fff;
  cursor: pointer;
}

.wr-option-btn.is-active {
  border-color: #1f9f88;
  color: #fff;
  background: #1f9f88;
}

.reader-body[data-reader-theme="dark"] .wr-option-btn {
  border-color: rgba(255, 255, 255, 0.08);
  color: #d4dbe1;
  background: #2a3139;
}

.reader-body[data-reader-theme="dark"] .wr-option-btn.is-active {
  border-color: #6fd8c4;
  color: #0e161c;
  background: #6fd8c4;
}

.wr-footer {
  color: #7a8793;
  font-size: 13px;
}

.reader-body .wr-footer {
  display: none;
}

.wr-footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
  text-align: center;
}

.wr-footer a {
  margin-left: 12px;
}

.gotop {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #1f9f88;
  box-shadow: 0 12px 28px rgba(31, 159, 136, 0.25);
  cursor: pointer;
}

.reader-body .gotop {
  display: none;
}

/* Compatibility for pages copied from the old template. */
.box_con,
#main,
#hotcontent,
#newscontent {
  margin-bottom: 18px;
  padding: 24px;
}

#hotcontent,
#newscontent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

#main.wr-home {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.wr-home #hotcontent,
.wr-home #newscontent {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.wr-home #hotcontent > .l,
.wr-home #hotcontent > .r,
.wr-home #newscontent > .l,
.wr-home #newscontent > .r {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(26, 40, 52, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(31, 43, 54, 0.06);
}

.wr-home #hotcontent {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
}

.wr-home #hotcontent > .l {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.wr-home #hotcontent > .l h2 {
  grid-column: 1 / -1;
}

.wr-home #newscontent {
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  align-items: start;
}

.wr-home #newscontent > .r {
  grid-column: 1;
}

.wr-home #newscontent > .l {
  grid-column: 2;
  grid-row: 1;
}

.wr-home h2 {
  margin: 0 0 16px;
  color: #16232e;
  font-size: 22px;
  line-height: 1.35;
}

.wr-home h2 a {
  color: inherit;
}

.wr-home .item {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
}

.wr-home .item:first-of-type {
  padding-top: 0;
}

.wr-home .item .image img {
  width: 78px;
  height: 104px;
  object-fit: cover;
  border-radius: 6px;
}

.wr-home .item dt a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wr-home .item dd:not(.btm) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 14px;
  line-height: 1.65;
}

.wr-home #hotcontent .r li,
.wr-home #newscontent .r li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
}

.wr-home #hotcontent .r .s2,
.wr-home #newscontent .r .s2,
.wr-home #newscontent .l .s2 {
  min-width: 0;
}

.wr-home #hotcontent .r .s2 a,
.wr-home #newscontent .r .s2 a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wr-home #newscontent .l li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, 120px) 92px;
  align-items: center;
}

.wr-home #newscontent .l .s2 {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.wr-home #newscontent .l .s2 a:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wr-home #newscontent .l .s2 a:not(:first-child) {
  flex: 0 0 auto;
}

.wr-home #newscontent .l .s4,
.wr-home #newscontent .l .s5 {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#hotcontent.no-h2,
#newscontent.no-h2 {
  grid-template-columns: minmax(0, 1fr);
}

#hotcontent h1 {
  overflow: hidden;
  margin: 0;
  padding: 0 0 0 0.5rem;
  min-height: 2rem;
  border-radius: 8px;
  background-color: rgba(20, 70, 50, 0.1);
  font-size: 18px;
  font-weight: 700;
  line-height: 2rem;
}

.wr-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0.5rem 12px;
  border-radius: 8px;
  background-color: rgba(20, 70, 50, 0.1);
}

.wr-list-heading-simple {
  margin: 0 0.5rem 12px;
}

.wr-list-heading h1 {
  flex: 1;
  background: transparent;
}

.wr-heading-links {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  padding-right: 0.5rem;
  font-size: 14px;
}

.wr-heading-links a {
  color: #1f9f88;
}

a.is-new {
  color: #c42205;
}

.wr-inline-catalog {
  color: royalblue;
}

#hotcontent .l,
#newscontent .l,
#hotcontent .r,
#newscontent .r {
  min-width: 0;
}

.item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #eef2f5;
}

.wr-category-page .item,
.wr-novel-list-page .item,
.wr-search-list-page .item {
  align-items: stretch;
  min-height: 196px;
}

.wr-category-page .item .image img,
.wr-novel-list-page .item .image img,
.wr-search-list-page .item .image img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.item dl,
.item dd,
.item dt {
  margin: 0;
}

.wr-category-page .item dl,
.wr-novel-list-page .item dl,
.wr-search-list-page .item dl {
  display: flex;
  min-width: 0;
  min-height: 160px;
  flex-direction: column;
}

.item dt {
  font-size: 18px;
  font-weight: 700;
}

.wr-category-page .item dt,
.wr-novel-list-page .item dt,
.wr-search-list-page .item dt {
  min-height: 50px;
}

.wr-category-page .item h2,
.wr-novel-list-page .item h2,
.wr-search-list-page .item dt > a {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.wr-category-page .item h2 a,
.wr-novel-list-page .item h2 a,
.wr-search-list-page .item dt > a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank {
  list-style: none;
  padding-left: 0;
  counter-reset: item;
}

.rank .item dl dt > a {
  position: relative;
  display: block;
  min-height: 20px;
  margin-bottom: 10px;
  padding-left: 30px;
}

.rank .item dl dt > a::before {
  content: counter(item) "";
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background-color: #f60;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  transform: translateY(-50%);
}

.wr-search-list-page .rank .item dl dt > a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.4;
}

.item dd {
  margin-top: 8px;
  color: #5f6d78;
}

.wr-category-page .item dd:not(.btm),
.wr-novel-list-page .item dd:not(.btm),
.wr-search-list-page .item dd:not(.btm) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  height: 75px;
  font-size: 15px;
  line-height: 1.65;
}

.wr-category-page .item .btm,
.wr-novel-list-page .item .btm,
.wr-search-list-page .item .btm {
  overflow: hidden;
  margin-top: auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wr-category-page .item .btm a,
.wr-novel-list-page .item .btm a,
.wr-search-list-page .item .btm span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.btm,
.blue,
.s4,
.s5 {
  color: #8a96a2;
}

.clear {
  display: none;
}

.wr-heading-action {
  float: right;
  min-height: 32px;
  margin-right: 0.5rem;
  padding: 0 14px;
  border: 1px solid #dbe4ea;
  border-radius: 16px;
  color: #40505d;
  background: #fff;
  cursor: pointer;
}

.con_top {
  margin-bottom: 16px;
  color: #7a8793;
}

#dmaininfo,
#maininfo {
  padding: 10px 0;
}

#dfmimg {
  float: left;
  margin-right: 24px;
}

#intro {
  clear: both;
  margin-top: 20px;
  color: #394854;
}

#list dt {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 14px 10px;
  color: #697682;
  background: #f7f9fa;
  border-radius: 8px;
}

#indexselect,
select {
  min-height: 40px;
  border: 1px solid #d7e1e7;
  border-radius: 20px;
  padding: 0 12px;
  background: #fff;
}

.index-container-btn.is-disabled {
  color: #9aa5ae;
  background: #f2f5f7;
  border-color: #e2e9ee;
}

@media (max-width: 900px) {
  .site-body,
  .reader-body {
    padding-top: 56px;
  }

  .page-shell,
  .reader-body .page-shell {
    width: min(100% - 20px, 720px);
    padding-top: 18px;
    height: auto;
    overflow: visible;
  }

  .wr-topbar-inner {
    width: calc(100% - 20px);
    height: 56px;
    gap: 12px;
  }

  .wr-brand {
    min-width: 0;
  }

  .wr-brand-name {
    max-width: 44vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wr-nav,
  .wr-search {
    display: none;
  }

  .wr-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
  }

  .wr-mobile-panel {
    width: calc(100% - 20px);
    margin: 0 auto 10px;
  }

  .wr-mobile-search,
  .wr-mobile-nav {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #e0e7ec;
    border-radius: 8px;
    background: #fff;
  }

  .wr-mobile-search {
    gap: 8px;
  }

  .wr-mobile-search button {
    padding: 7px 14px;
    width: 70px;
  }

  .wr-mobile-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .wr-book-hero {
    grid-template-columns: 104px 1fr;
    gap: 20px;
    padding: 22px;
  }

  .wr-cover img,
  .image img {
    width: 96px;
    height: 128px;
  }

  .wr-book-main h1 {
    font-size: 24px;
  }

  .wr-intro,
  .wr-chapter-preview,
  .box_con,
  #main,
  #hotcontent,
  #newscontent {
    padding: 20px;
  }

  .wr-chapter-grid,
  .wr-catalog-grid,
  #list dl,
  #content_1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wr-reader {
    grid-template-columns: 1fr;
    gap: 18px;
    height: auto;
  }

  .wr-paper {
    padding: 28px 20px 38px;
    height: auto;
    overflow: visible;
  }

  .wr-reader-head h1 {
    font-size: 23px;
  }

  .wr-content,
  .reader-body[data-reader-layout="single"] .wr-content,
  .reader-body:not([data-reader-layout]) .wr-content {
    font-size: 18px;
    line-height: 1.95;
    overflow: visible;
    padding-right: 0;
  }

  .wr-source-content {
    min-height: 0;
  }

  .wr-reader-rec {
    margin-top: 14px;
  }

  .wr-sidepanel {
    position: static;
    height: auto;
  }

  .wr-sidepanel-card {
    height: auto;
    overflow: visible;
  }

  .reader-body[data-reader-layout="double"] .wr-page-nav {
    display: grid;
  }

  .reader-body .wr-footer,
  .reader-body .gotop {
    display: block;
  }

  #hotcontent,
  #newscontent {
    display: block;
  }

  .wr-home #hotcontent,
  .wr-home #newscontent {
    display: grid;
    grid-template-columns: 1fr;
  }

  .wr-home #hotcontent > .l {
    grid-template-columns: 1fr;
  }

  .wr-home #newscontent > .r,
  .wr-home #newscontent > .l {
    grid-column: auto;
    grid-row: auto;
  }

  .wr-home #hotcontent > .l,
  .wr-home #hotcontent > .r,
  .wr-home #newscontent > .l,
  .wr-home #newscontent > .r {
    padding: 20px;
  }

  .wr-home #newscontent .l li {
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .wr-home #newscontent .l .s4 {
    display: none;
  }
}

@media (max-width: 560px) {
  .wr-book-hero {
    grid-template-columns: 1fr;
  }

  .wr-cover {
    place-items: start;
  }

  .wr-book-stats {
    gap: 8px;
  }

  .wr-page-nav {
    gap: 8px;
  }

  .wr-page-nav a,
  .wr-page-nav span {
    min-height: 40px;
    font-size: 14px;
  }

  .wr-chapter-grid,
  .wr-catalog-grid,
  #list dl,
  #content_1 {
    grid-template-columns: 1fr;
  }

  .item {
    grid-template-columns: 86px 1fr;
    gap: 14px;
  }

  .wr-category-page .item,
  .wr-novel-list-page .item,
  .wr-search-list-page .item {
    align-items: start;
    min-height: 0;
  }

  .item .image img,
  .wr-category-page .item .image img,
  .wr-novel-list-page .item .image img,
  .wr-search-list-page .item .image img {
    width: 78px;
    height: 104px;
  }

  .wr-category-page .item dl,
  .wr-novel-list-page .item dl,
  .wr-search-list-page .item dl {
    min-height: 104px;
  }

  .wr-category-page .item dt,
  .wr-novel-list-page .item dt,
  .wr-search-list-page .item dt {
    min-height: 0;
  }

  .wr-category-page .item h2,
  .wr-novel-list-page .item h2,
  .wr-search-list-page .item dt > a {
    font-size: 16px;
    line-height: 1.35;
  }

  .wr-category-page .item h2 a,
  .wr-novel-list-page .item h2 a,
  .wr-search-list-page .rank .item dl dt > a {
    -webkit-line-clamp: 1;
  }

  .wr-category-page .item dd:not(.btm),
  .wr-novel-list-page .item dd:not(.btm),
  .wr-search-list-page .item dd:not(.btm) {
    -webkit-line-clamp: 3;
    height: 65px;
    font-size: 14px;
    line-height: 1.55;
  }

  .wr-home .item {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .wr-home .item .image img {
    width: 78px;
    height: 104px;
  }

  .wr-home #newscontent .l li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .wr-home #newscontent .l .s5 {
    text-align: left;
  }

  .wr-category-nav {
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 14px;
    -webkit-overflow-scrolling: touch;
  }

  .wr-category-nav a {
    flex: 0 0 auto;
  }

  .gotop {
    right: 14px;
    bottom: 18px;
  }

  .wr-catalog-title {
    flex-direction: column;
    align-items: stretch;
  }

  .wr-spread {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wr-spread::before,
  .wr-spread-footer,
  .wr-spread-measure {
    display: none;
  }

  .wr-spread-sheet {
    height: auto;
    overflow: visible;
  }
}

.active {
  color: #1f9f88;
}
