
.top-guide-menu[hidden],
.top-guide-overlay[hidden],
.top-search-popup[hidden] {
  display: none;
}

.top-guide-overlay {
  background: rgba(0, 0, 0, .35);
  border: 0;
  inset: 0;
  position: fixed;
  z-index: 100;
}

.top-guide-menu {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  padding: 20px;
  position: absolute;
  right: max(calc((100% - 1200px) / 2), 20px);
  top: 105px;
  width: 240px;
  z-index: 101;
}

.top-guide-menu a {
  color: #333;
  display: block;
  line-height: 38px;
  text-decoration: none;
}

.top-guide-menu a:hover {
  color: #e60000;
}

.top-search-popup {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .24);
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 28px;
  position: fixed;
  top: 18vh;
  transform: translateX(-50%);
  width: 520px;
  z-index: 120;
}

.top-search-popup form {
  display: flex;
  gap: 8px;
}

.top-search-popup input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
}

.top-search-popup-clear {
  cursor: pointer;
  padding: 10px 12px;
}

.top-search-popup button,
.top-search-popup-close {
  cursor: pointer;
  padding: 10px 16px;
}

.top-search-popup-close {
  background: transparent;
  border: 0;
  color: #666;
  float: right;
}

.top-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.top-search-tags a {
  color: #555;
}

.rank-content-default__main {
  box-sizing: border-box;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.top-default {
      -webkit-tap-highlight-color: transparent;
        background-color: transparent;
}

.rank-content-default__rank {
  background-color: #fff;
  background-image: url('/css/img/a30a996.png');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  min-width: 0;
  overflow: hidden;
}

.rank-board-click {
  background-image: url('/css/img/top1.png');
}

.rank-board-recommend {
  background-image: url('/css/img/top2.png');
}

.rank-board-favorite {
  background-image: url('/css/img/top3.png');
}

.rank-board-new {
  background-image: url('/css/img/top4.png');
}

.rank-board-completed {
  background-image: url('/css/img/top5.png');
}

.rank-board-flower {
  background-image: url('/css/img/top6.png');
}

.rank-panel-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px 14px 0;
}

.rank-panel-heading h2 {
  color: #333;
  flex: 1;
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-panel-crown {
  height: 22px;
  margin-right: 5px;
  vertical-align: -4px;
  width: 22px;
}

.rank-panel-preview {
  align-items: center;
  display: flex;
  gap: 5px;
}

.rank-panel-preview-item {
  color: #999;
  font-size: 10px;
  line-height: 1.2;
  overflow: hidden;
  position: relative;
  text-align: center;
  width: 40px;
}

.rank-panel-preview-item > span:last-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-panel-preview-item img {
  border-radius: 3px;
  display: block;
  height: 40px;
  margin: 0 auto 3px;
  object-fit: cover;
  width: 30px;
}

.rank-preview-number {
  background: #fff;
  border-radius: 6px;
  color: #d85f25;
  font-weight: 700;
  left: 0;
  line-height: 14px;
  position: absolute;
  top: 0;
  width: 14px;
}

.zh-modules-rank {
  border-radius: 14px;
  padding: 0 0 14px;
  width: 100%;
}

.zh-modules-rank-box {
  padding: 12px 10px;
  height: 755px;
}

.zh-modules-rank-book {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  min-height: 42px;
  padding: 4px 8px;
}

.zh-modules-rank-book:nth-of-type(n+4) {
  padding-left: 10px;
}

.zh-modules-rank-book:last-child {
  margin-bottom: 0;
}

.book-rank--num {
  align-items: flex-start;
  color: #c6c4c4;
  display: flex;
  flex: 0 0 33px;
  font-size: 18px;
  font-weight: 700;
  justify-content: left;
  text-align: left;
}

.book-rank--num .rank-no {
  background-image: url('/css/img/week_top.png');
  background-repeat: no-repeat;
  background-size: 81px 36px;
  display: block;
  height: 36px;
  width: 27px;
}

.book-rank--num .rank-no.rank-1 {
  background-position: 0 0;
}

.book-rank--num .rank-no.rank-2 {
  background-position: -27px 0;
}

.book-rank--num .rank-no.rank-3 {
  background-position: -54px 0;
}

.book-rank-number {
  align-self: flex-start;
  color: #c6c4c4;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.book-rank--title {
  align-items: start;
  column-gap: 6px;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: auto auto;
  min-width: 0;
}

.book-rank--title a {
  color: #333;
  text-decoration: none;
}

.book-rank--title a:hover {
  color: #e60000;
}

.book-rank--title .book-rank--author {
  color: #999;
}

.book-rank--title .book-rank--author:hover {
  color: #e60000;
}

.book-rank--title-text {
  font-size: 14px;
  font-weight: 400;
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  min-width: 0;
}

.book-rank--title-text a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 27ch;
}

.rank-content-default__rank-text {
  color: #999;
  font-size: 11px;
  grid-column: 2;
  grid-row: 2;
  text-align: left;
  white-space: nowrap;
}

.book-rank--author {
  grid-column: 1;
  grid-row: 2;
}

.book-rank--words {
  color: #999;
  font-size: 10px;
  grid-column: 3;
  grid-row: 2;
  white-space: nowrap;
}

.book-rank--meta {
  color: #999;
  font-size: 10px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-hover-avtive {
  background: rgba(255, 255, 255, .75);
  border-radius: 6px;
  min-height: 76px;
}

.rank-hover-avtive .book-rank--num {
  align-self: flex-start;
  color: #d85f25;
  padding-top: 6px;
}

.rank-hover-avtive .book-rank--hover {
  display: flex;
  flex: 1;
  min-width: 0;
}

.book-rank--hover-main {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 6px;
  justify-content: space-between;
  min-width: 0;
}

.book--hover-box {
  min-width: 0;
}

.book--hover-box p {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-content-default__right-slot {
  align-items: center;
  column-gap: 6px;
  display: grid;
  font-size: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  line-height: 1.5;
  overflow: hidden;
}

.rank-content-default__right-slot a {
  color: #777;
  grid-column: 1;
  overflow: hidden;
  min-width: 0;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-content-default__right-slot .book-rank--author {
  grid-row: 1;
}

.rank-content-default__right-slot .rank-content-default__rank-text {
  grid-column: 2;
  grid-row: 1;
}

.rank-content-default__right-slot .book-rank--words {
  grid-column: 3;
  grid-row: 1;
}

.book-rankimg {
  flex: 0 0 42px;
  height: 58px;
  width: 42px;
}

.book-rankimg--cover {
  display: block;
  height: 100%;
  overflow: hidden;
  width: 100%;
}

.book-rankimg--cover img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.rank-panel-empty {
  color: #999;
  padding: 30px 10px;
  text-align: center;
}

@media (max-width: 1100px) {
  .rank-content-default__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rank-content-default__main {
    grid-template-columns: minmax(0, 1fr);
    padding: 3px;
  }

  .top-guide-menu {
    right: 12px;
    top: 80px;
  }
  .book-rank--title-text a {
    font-size: 16px;
  }
  .zh-modules-rank-box {
    height: 795px;
}

}